Skip to content

refactor!: split methods to separated namespaces - #1219

Merged
slapec93 merged 12 commits into
upcomingfrom
refactor/interface-separate-methods-to-namespaces
Jul 22, 2026
Merged

refactor!: split methods to separated namespaces#1219
slapec93 merged 12 commits into
upcomingfrom
refactor/interface-separate-methods-to-namespaces

Conversation

@slapec93

@slapec93 slapec93 commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@slapec93 slapec93 linked an issue Jul 9, 2026 that may be closed by this pull request
@ferencsarai

Copy link
Copy Markdown
Member

Hi @slapec93!
First of all, this refactor is a very good idea — the namespaces make the API much cleaner.
Just a suggestion: Almost all namespaces follow the bee.<noun>.<verb> pattern

bee.stamp.create()
bee.pin.add()

but upload/download are verb-first

bee.upload.file() → bee.file.upload()
bee.download.data() → bee.data.download()

Since this is already a breaking change, it feels like a good opportunity to unify the convention.

@slapec93

Copy link
Copy Markdown
Contributor Author

hi @ferencsarai, thank you for pointing this out, good point! I will adjust accordingly and follow the suggested pattern

@slapec93 slapec93 changed the title refactor: split methods to separated namespaces feat!: refactor interface, split methods to separated namespaces Jul 10, 2026
@slapec93 slapec93 changed the title feat!: refactor interface, split methods to separated namespaces refactor!: split methods to separated namespaces Jul 10, 2026
@slapec93
slapec93 requested a review from Cafe137 July 10, 2026 10:14
@slapec93
slapec93 changed the base branch from master to upcoming July 16, 2026 09:22
@github-actions

Copy link
Copy Markdown
Contributor
File Coverage Now Coverage Before Delta% Rating
Total 2320 / 2760 2195 / 2648 1.17 🟢
bee.ts 69 / 71 395 / 468 12.78 🟢
index.ts 15 / 15 15 / 15 0.00
version.ts 3 / 3 3 / 3 0.00
api/balance.ts 9 / 9 0 / 0 100.00 🟢
api/batches.ts 9 / 9 0 / 0 100.00 🟢
api/bytes.ts 23 / 26 0 / 0 88.46 🟢
api/bzz.ts 31 / 32 0 / 0 96.88 🟢
api/chequebook.ts 32 / 34 0 / 0 94.12 🟢
api/chunk.ts 15 / 15 0 / 0 100.00 🟢
api/connectivity.ts 24 / 32 0 / 0 75.00 🟢
api/consumed.ts 9 / 9 0 / 0 100.00 🟢
api/envelope.ts 7 / 7 0 / 0 100.00 🟢
api/feed.ts 21 / 23 0 / 0 91.30 🟢
api/grantee.ts 18 / 18 0 / 0 100.00 🟢
api/pin.ts 16 / 16 0 / 0 100.00 🟢
api/pss.ts 5 / 5 0 / 0 100.00 🟢
api/rchash.ts 6 / 6 0 / 0 100.00 🟢
api/redistributionstate.ts 6 / 6 0 / 0 100.00 🟢
api/settlement.ts 9 / 9 0 / 0 100.00 🟢
api/soc.ts 11 / 11 0 / 0 100.00 🟢
api/stake.ts 13 / 19 0 / 0 68.42 🟢
api/stamp.ts 27 / 29 0 / 0 93.10 🟢
api/status.ts 27 / 27 0 / 0 100.00 🟢
api/stewardship.ts 8 / 8 0 / 0 100.00 🟢
api/tag.ts 15 / 16 0 / 0 93.75 🟢
api/transaction.ts 11 / 18 0 / 0 61.11 🟢
api/wallet.ts 12 / 12 0 / 0 100.00 🟢
chunk/bmt.ts 15 / 16 15 / 16 0.00
chunk/cac.ts 22 / 23 22 / 23 0.00
chunk/soc.ts 58 / 59 58 / 59 0.00
feed/identifier.ts 5 / 5 5 / 5 0.00
feed/index.ts 85 / 87 85 / 87 0.00
feed/retrievable.ts 18 / 19 18 / 19 0.00
manifest/manifest.ts 238 / 253 238 / 253 0.00
modules/balance.ts 11 / 11 0 / 0 100.00 🟢
modules/cheque.ts 13 / 14 0 / 0 92.86 🟢
modules/chequebook.ts 13 / 13 0 / 0 100.00 🟢
modules/chunk.ts 18 / 22 15 / 15 -18.18 🔴
modules/collection.ts 25 / 28 0 / 0 89.29 🟢
modules/connectivity.ts 11 / 20 0 / 0 55.00 🟢
modules/data.ts 20 / 23 0 / 0 86.96 🟢
modules/feed.ts 26 / 33 21 / 23 -12.52 🔴
modules/file.ts 26 / 28 0 / 0 92.86 🟢
modules/grantee.ts 16 / 16 18 / 18 0.00
modules/messaging.ts 80 / 94 0 / 0 85.11 🟢
modules/pin.ts 15 / 15 0 / 0 100.00 🟢
modules/settlement.ts 7 / 7 0 / 0 100.00 🟢
modules/soc.ts 9 / 10 11 / 11 -10.00 🔴
modules/stake.ts 12 / 16 0 / 0 75.00 🟢
modules/stamp.ts 48 / 54 0 / 0 88.89 🟢
modules/status.ts 11 / 17 5 / 9 9.15 🟢
modules/storage.ts 67 / 68 0 / 0 98.53 🟢
modules/tag.ts 14 / 17 15 / 16 -11.40 🔴
modules/transaction.ts 8 / 13 0 / 0 61.54 🟢
modules/wallet.ts 12 / 12 0 / 0 100.00 🟢
stamper/stamper.ts 22 / 22 22 / 22 0.00
types/debug.ts 8 / 12 8 / 12 0.00
types/index.ts 21 / 21 21 / 21 0.00
types/schema/balance.ts 7 / 7 7 / 7 0.00
types/schema/chequebook.ts 28 / 28 28 / 28 0.00
types/schema/connectivity.ts 15 / 15 15 / 15 0.00
types/schema/envelope.ts 7 / 7 7 / 7 0.00
types/schema/grantee.ts 6 / 6 6 / 6 0.00
types/schema/pinning.ts 2 / 2 2 / 2 0.00
types/schema/rchash.ts 2 / 2 2 / 2 0.00
types/schema/settlements.ts 10 / 10 10 / 10 0.00
types/schema/stake.ts 13 / 14 13 / 14 0.00
types/schema/stamps.ts 14 / 14 14 / 14 0.00
types/schema/states.ts 14 / 14 14 / 14 0.00
types/schema/status.ts 7 / 7 7 / 7 0.00
types/schema/stewardship.ts 2 / 2 2 / 2 0.00
types/schema/tag.ts 4 / 4 4 / 4 0.00
types/schema/transactions.ts 10 / 11 10 / 11 0.00
types/schema/upload.ts 4 / 4 4 / 4 0.00
utils/bad-ports.ts 1 / 1 1 / 1 0.00
utils/bytes.ts 44 / 55 44 / 55 0.00
utils/chunk-size.ts 9 / 9 9 / 9 0.00
utils/chunk-stream.browser.ts 0 / 71 0 / 71 0.00
utils/chunk-stream.ts 57 / 63 57 / 63 0.00
utils/cid.ts 22 / 23 22 / 23 0.00
utils/collection.browser.ts 0 / 4 0 / 4 0.00
utils/collection.node.ts 29 / 33 29 / 33 0.00
utils/collection.ts 14 / 18 14 / 18 0.00
utils/constants.ts 7 / 7 7 / 7 0.00
utils/data.browser.ts 0 / 8 0 / 8 0.00
utils/data.ts 4 / 11 4 / 11 0.00
utils/duration.ts 20 / 22 20 / 22 0.00
utils/error.ts 13 / 13 13 / 13 0.00
utils/expose.ts 16 / 16 16 / 16 0.00
utils/file.ts 8 / 12 8 / 12 0.00
utils/headers.ts 68 / 77 68 / 77 0.00
utils/hex-schema.ts 3 / 3 3 / 3 0.00
utils/http.ts 66 / 74 66 / 74 0.00
utils/mime.ts 1 / 1 1 / 1 0.00
utils/pss.ts 5 / 5 5 / 5 0.00
utils/redundancy.ts 32 / 44 32 / 44 0.00
utils/resource-locator.ts 7 / 8 7 / 8 0.00
utils/schema.ts 23 / 27 23 / 27 0.00
utils/size.ts 12 / 14 12 / 14 0.00
utils/stamps.ts 55 / 78 55 / 78 0.00
utils/tar-uploader.browser.ts 0 / 11 0 / 11 0.00
utils/tar-uploader.ts 12 / 12 12 / 12 0.00
utils/tar-writer.browser.ts 0 / 8 0 / 8 0.00
utils/tar-writer.ts 13 / 14 13 / 14 0.00
utils/tar.browser.ts 0 / 73 0 / 73 0.00
utils/tar.ts 65 / 67 65 / 67 0.00
utils/tokens.ts 26 / 41 26 / 41 0.00
utils/type.ts 23 / 31 23 / 31 0.00
utils/typed-bytes.ts 85 / 86 85 / 86 0.00
utils/url.ts 21 / 26 21 / 26 0.00
utils/workaround.ts 9 / 14 9 / 14 0.00

@slapec93
slapec93 merged commit cfb9756 into upcoming Jul 22, 2026
5 checks passed
@slapec93
slapec93 deleted the refactor/interface-separate-methods-to-namespaces branch July 22, 2026 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor interface, separate methods to namespaces

3 participants