@ethersphere/bee-js 3.0.0 → 3.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (196) hide show
  1. package/README.md +2 -2
  2. package/dist/cjs/bee-debug.js +615 -0
  3. package/dist/cjs/bee.js +922 -0
  4. package/dist/cjs/chunk/bmt.js +55 -0
  5. package/dist/cjs/chunk/cac.js +56 -0
  6. package/dist/cjs/chunk/serialize.js +19 -0
  7. package/dist/cjs/chunk/signer.js +137 -0
  8. package/dist/cjs/chunk/soc.js +172 -0
  9. package/dist/cjs/chunk/span.js +29 -0
  10. package/dist/cjs/feed/index.js +184 -0
  11. package/dist/cjs/feed/json.js +41 -0
  12. package/dist/cjs/feed/topic.js +25 -0
  13. package/dist/cjs/feed/type.js +15 -0
  14. package/dist/cjs/index.js +35 -0
  15. package/dist/cjs/modules/bytes.js +74 -0
  16. package/dist/cjs/modules/bzz.js +131 -0
  17. package/dist/cjs/modules/chunk.js +58 -0
  18. package/dist/cjs/modules/debug/balance.js +77 -0
  19. package/dist/cjs/modules/debug/chequebook.js +167 -0
  20. package/dist/cjs/modules/debug/chunk.js +51 -0
  21. package/dist/cjs/modules/debug/connectivity.js +75 -0
  22. package/dist/cjs/modules/debug/settlements.js +45 -0
  23. package/dist/cjs/modules/debug/stamps.js +89 -0
  24. package/dist/cjs/modules/debug/states.js +47 -0
  25. package/dist/cjs/modules/debug/status.js +153 -0
  26. package/dist/cjs/modules/debug/tag.js +30 -0
  27. package/dist/cjs/modules/debug/transactions.js +81 -0
  28. package/dist/cjs/modules/feed.js +76 -0
  29. package/dist/cjs/modules/pinning.js +84 -0
  30. package/dist/cjs/modules/pss.js +55 -0
  31. package/dist/cjs/modules/soc.js +40 -0
  32. package/dist/cjs/modules/status.js +26 -0
  33. package/dist/cjs/modules/stewardship.js +41 -0
  34. package/dist/cjs/modules/tag.js +96 -0
  35. package/dist/cjs/package.json +8 -0
  36. package/dist/cjs/types/debug.js +9 -0
  37. package/dist/cjs/types/index.js +46 -0
  38. package/dist/cjs/types/ky-options.js +8 -0
  39. package/dist/cjs/types/ky-universal/common.js +8 -0
  40. package/dist/cjs/types/ky-universal/hooks.js +8 -0
  41. package/dist/cjs/types/ky-universal/retry.js +8 -0
  42. package/dist/cjs/utils/bytes.js +107 -0
  43. package/dist/cjs/utils/collection.browser.js +36 -0
  44. package/dist/cjs/utils/collection.js +70 -0
  45. package/dist/cjs/utils/collection.node.js +115 -0
  46. package/dist/cjs/utils/data.browser.js +78 -0
  47. package/dist/cjs/utils/data.js +60 -0
  48. package/dist/cjs/utils/error.js +50 -0
  49. package/dist/cjs/utils/eth.js +211 -0
  50. package/dist/cjs/utils/expose.js +44 -0
  51. package/dist/cjs/utils/file.js +49 -0
  52. package/dist/cjs/utils/hash.js +21 -0
  53. package/dist/cjs/utils/headers.js +59 -0
  54. package/dist/cjs/utils/hex.js +150 -0
  55. package/dist/cjs/utils/http.js +166 -0
  56. package/dist/cjs/utils/merge.js +34 -0
  57. package/dist/cjs/utils/pss.js +18 -0
  58. package/dist/cjs/utils/stamps.js +17 -0
  59. package/dist/cjs/utils/stream.js +146 -0
  60. package/dist/cjs/utils/tar.js +25 -0
  61. package/dist/cjs/utils/type.js +327 -0
  62. package/dist/cjs/utils/uint64.js +29 -0
  63. package/dist/cjs/utils/url.js +56 -0
  64. package/dist/index.browser.min.js +1 -1
  65. package/dist/index.browser.min.js.LICENSE.txt +5 -12
  66. package/dist/index.browser.min.js.map +1 -1
  67. package/dist/mjs/bee-debug.js +609 -0
  68. package/dist/mjs/bee.js +944 -0
  69. package/dist/mjs/chunk/bmt.js +56 -0
  70. package/dist/mjs/chunk/cac.js +52 -0
  71. package/dist/mjs/chunk/serialize.js +15 -0
  72. package/dist/mjs/chunk/signer.js +131 -0
  73. package/dist/mjs/chunk/soc.js +139 -0
  74. package/dist/mjs/chunk/span.js +28 -0
  75. package/dist/mjs/feed/index.js +145 -0
  76. package/dist/mjs/feed/json.js +27 -0
  77. package/dist/mjs/feed/topic.js +21 -0
  78. package/dist/mjs/feed/type.js +10 -0
  79. package/dist/mjs/index.js +7 -0
  80. package/dist/mjs/modules/bytes.js +59 -0
  81. package/dist/mjs/modules/bzz.js +122 -0
  82. package/dist/mjs/modules/chunk.js +45 -0
  83. package/dist/mjs/modules/debug/balance.js +57 -0
  84. package/dist/mjs/modules/debug/chequebook.js +150 -0
  85. package/dist/mjs/modules/debug/chunk.js +35 -0
  86. package/dist/mjs/modules/debug/connectivity.js +45 -0
  87. package/dist/mjs/modules/debug/settlements.js +29 -0
  88. package/dist/mjs/modules/debug/stamps.js +64 -0
  89. package/dist/mjs/modules/debug/states.js +31 -0
  90. package/dist/mjs/modules/debug/status.js +134 -0
  91. package/dist/mjs/modules/debug/tag.js +16 -0
  92. package/dist/mjs/modules/debug/transactions.js +63 -0
  93. package/dist/mjs/modules/feed.js +67 -0
  94. package/dist/mjs/modules/pinning.js +66 -0
  95. package/dist/mjs/modules/pss.js +40 -0
  96. package/dist/mjs/modules/soc.js +31 -0
  97. package/dist/mjs/modules/status.js +12 -0
  98. package/dist/mjs/modules/stewardship.js +24 -0
  99. package/dist/mjs/modules/tag.js +77 -0
  100. package/dist/mjs/package.json +8 -0
  101. package/dist/mjs/types/debug.js +7 -0
  102. package/dist/mjs/types/index.js +37 -0
  103. package/dist/mjs/types/ky-options.js +7 -0
  104. package/dist/mjs/types/ky-universal/common.js +7 -0
  105. package/dist/mjs/types/ky-universal/hooks.js +7 -0
  106. package/dist/mjs/types/ky-universal/retry.js +7 -0
  107. package/dist/mjs/utils/bytes.js +101 -0
  108. package/dist/mjs/utils/collection.browser.js +19 -0
  109. package/dist/mjs/utils/collection.js +64 -0
  110. package/dist/mjs/utils/collection.node.js +74 -0
  111. package/dist/mjs/utils/data.browser.js +73 -0
  112. package/dist/mjs/utils/data.js +43 -0
  113. package/dist/mjs/utils/error.js +56 -0
  114. package/dist/mjs/utils/eth.js +199 -0
  115. package/dist/mjs/utils/expose.js +9 -0
  116. package/dist/mjs/utils/file.js +36 -0
  117. package/dist/mjs/utils/hash.js +17 -0
  118. package/dist/mjs/utils/headers.js +58 -0
  119. package/dist/mjs/utils/hex.js +154 -0
  120. package/dist/mjs/utils/http.js +155 -0
  121. package/dist/mjs/utils/merge.js +36 -0
  122. package/dist/mjs/utils/pss.js +16 -0
  123. package/dist/mjs/utils/stamps.js +17 -0
  124. package/dist/mjs/utils/stream.js +156 -0
  125. package/dist/mjs/utils/tar.js +21 -0
  126. package/dist/mjs/utils/type.js +336 -0
  127. package/dist/mjs/utils/uint64.js +23 -0
  128. package/dist/mjs/utils/url.js +57 -0
  129. package/dist/{src → types}/bee-debug.d.ts +51 -1
  130. package/dist/{src → types}/bee.d.ts +21 -0
  131. package/dist/{src → types}/chunk/bmt.d.ts +0 -0
  132. package/dist/{src → types}/chunk/cac.d.ts +0 -0
  133. package/dist/{src → types}/chunk/serialize.d.ts +0 -0
  134. package/dist/{src → types}/chunk/signer.d.ts +0 -0
  135. package/dist/{src → types}/chunk/soc.d.ts +0 -0
  136. package/dist/{src → types}/chunk/span.d.ts +0 -0
  137. package/dist/{src → types}/feed/index.d.ts +0 -0
  138. package/dist/{src → types}/feed/json.d.ts +0 -0
  139. package/dist/{src → types}/feed/topic.d.ts +0 -0
  140. package/dist/{src → types}/feed/type.d.ts +0 -0
  141. package/dist/{src → types}/index.d.ts +0 -0
  142. package/dist/{src → types}/modules/bytes.d.ts +0 -0
  143. package/dist/{src → types}/modules/bzz.d.ts +0 -0
  144. package/dist/{src → types}/modules/chunk.d.ts +2 -10
  145. package/dist/{src → types}/modules/debug/balance.d.ts +0 -0
  146. package/dist/{src → types}/modules/debug/chequebook.d.ts +0 -0
  147. package/dist/{src → types}/modules/debug/chunk.d.ts +0 -0
  148. package/dist/{src → types}/modules/debug/connectivity.d.ts +0 -0
  149. package/dist/{src → types}/modules/debug/settlements.d.ts +0 -0
  150. package/dist/{src → types}/modules/debug/stamps.d.ts +0 -0
  151. package/dist/{src → types}/modules/debug/states.d.ts +0 -0
  152. package/dist/types/modules/debug/status.d.ts +72 -0
  153. package/dist/{src → types}/modules/debug/tag.d.ts +0 -0
  154. package/dist/{src → types}/modules/debug/transactions.d.ts +0 -0
  155. package/dist/{src → types}/modules/feed.d.ts +0 -0
  156. package/dist/{src → types}/modules/pinning.d.ts +0 -0
  157. package/dist/{src → types}/modules/pss.d.ts +0 -0
  158. package/dist/{src → types}/modules/soc.d.ts +0 -0
  159. package/dist/{src → types}/modules/status.d.ts +0 -0
  160. package/dist/{src → types}/modules/stewardship.d.ts +0 -0
  161. package/dist/{src → types}/modules/tag.d.ts +0 -0
  162. package/dist/{src → types}/types/debug.d.ts +25 -0
  163. package/dist/{src → types}/types/index.d.ts +32 -2
  164. package/dist/types/types/ky-options.d.ts +221 -0
  165. package/dist/types/types/ky-universal/common.d.ts +13 -0
  166. package/dist/types/types/ky-universal/hooks.d.ts +92 -0
  167. package/dist/types/types/ky-universal/retry.d.ts +38 -0
  168. package/dist/{src → types}/utils/bytes.d.ts +0 -0
  169. package/dist/types/utils/collection.browser.d.ts +15 -0
  170. package/dist/{src → types}/utils/collection.d.ts +0 -14
  171. package/dist/types/utils/collection.node.d.ts +15 -0
  172. package/dist/{src → types}/utils/data.browser.d.ts +0 -0
  173. package/dist/{src → types}/utils/data.d.ts +0 -0
  174. package/dist/types/utils/error.d.ts +33 -0
  175. package/dist/{src → types}/utils/eth.d.ts +0 -0
  176. package/dist/{src → types}/utils/expose.d.ts +3 -1
  177. package/dist/{src → types}/utils/file.d.ts +0 -0
  178. package/dist/{src → types}/utils/hash.d.ts +0 -0
  179. package/dist/{src → types}/utils/headers.d.ts +0 -0
  180. package/dist/{src → types}/utils/hex.d.ts +0 -0
  181. package/dist/{src → types}/utils/http.d.ts +7 -9
  182. package/dist/{src → types}/utils/merge.d.ts +0 -0
  183. package/dist/{src → types}/utils/pss.d.ts +0 -0
  184. package/dist/types/utils/stamps.d.ts +12 -0
  185. package/dist/{src → types}/utils/stream.d.ts +11 -8
  186. package/dist/{src → types}/utils/tar.d.ts +0 -0
  187. package/dist/{src → types}/utils/type.d.ts +6 -0
  188. package/dist/{src → types}/utils/uint64.d.ts +0 -0
  189. package/dist/{src → types}/utils/url.d.ts +0 -0
  190. package/package.json +61 -43
  191. package/CHANGELOG.md +0 -546
  192. package/dist/index.min.js +0 -3
  193. package/dist/index.min.js.LICENSE.txt +0 -50
  194. package/dist/index.min.js.map +0 -1
  195. package/dist/src/modules/debug/status.d.ts +0 -18
  196. package/dist/src/utils/error.d.ts +0 -14
package/CHANGELOG.md DELETED
@@ -1,546 +0,0 @@
1
- # Changelog
2
-
3
- ## [3.0.0](https://www.github.com/ethersphere/bee-js/compare/v2.1.1...v3.0.0) (2021-11-25)
4
-
5
- This is a small release in size, but big on impact. It is a breaking release thanks to breaking changes introduced in [Bee 1.4](https://github.com/ethersphere/bee/releases/tag/v1.4.0).
6
-
7
- ### ⚠ BREAKING CHANGES
8
-
9
- * dropping postage stamps methods from `Bee` class (#458)
10
-
11
- ### Features
12
-
13
- * dropping bee class postage stamps methods ([#458](https://www.github.com/ethersphere/bee-js/issues/458)) ([98afdcd](https://www.github.com/ethersphere/bee-js/commit/98afdcd3e4e930f5ea29b46f050c2b5966c850fe))
14
- * openapi versions in `/health` endpoint and methods ([#459](https://www.github.com/ethersphere/bee-js/issues/459)) ([98afdcd](https://www.github.com/ethersphere/bee-js/commit/98afdcd3e4e930f5ea29b46f050c2b5966c850fe))
15
-
16
- ---
17
-
18
- ### [2.1.1](https://www.github.com/ethersphere/bee-js/compare/v2.1.0...v2.1.1) (2021-11-08)
19
-
20
- This is small release that fixes few small issues and mainly brings compatibility with the Bee 1.3.
21
-
22
- ### Bug Fixes
23
-
24
- * **build:** sourcemap ([#440](https://www.github.com/ethersphere/bee-js/issues/440)) ([2bfb7c8](https://www.github.com/ethersphere/bee-js/commit/2bfb7c8cc2db00bc361cf14fcc766ac395dfce09))
25
- * readable-stream should be dependency ([#444](https://www.github.com/ethersphere/bee-js/issues/444)) ([fd39c46](https://www.github.com/ethersphere/bee-js/commit/fd39c460027a6578e8fc2cd8c27507e129f581bf))
26
- * **build:** limit the scope of files that are published to npm
27
-
28
- ---
29
-
30
- ## [2.1.0](https://www.github.com/ethersphere/bee-js/compare/v2.0.0...v2.1.0) (2021-10-13)
31
-
32
- This release is a compatibility release with [Bee 1.2.0](https://github.com/ethersphere/bee/releases/tag/v1.2.0) release, which brings few new features.
33
-
34
- ### Is retrievable? support
35
-
36
- The new method `bee.isReferenceRetrievable()` allows you to check whether the data represented by a reference is present in the network. This is part of the Stewardship endpoint, which also allows you to reupload the data that you have locally available (pinned).
37
-
38
- ### 🏷 New Postage Batch methods
39
-
40
- There is a new method `beeDebug.topUpBatch()`, that allows you to top-up the amount of existing batch, effectively prolonging its lifetime.
41
-
42
- Moreover, there is also a new method `beeDebug.diluteBatch()` that increases the depth of a batch, effectively extending the number of chunks that the batch can stamp and lowering the lifetime of a batch.
43
-
44
- ### 📨 PSS Target limit increase
45
-
46
- ⚠️ **If you use the utility function `makeMaxTarget`, then the time of sending a PSS message will increase! Consider using your own criteria based on your use-case.**
47
-
48
- ### Features
49
-
50
- * increased max pss target limit ([#430](https://www.github.com/ethersphere/bee-js/issues/430)) ([3134c50](https://www.github.com/ethersphere/bee-js/commit/3134c50074e9694ff916fb356e1d36c8ab23b2d6))
51
- * is reference retrievable support ([#425](https://www.github.com/ethersphere/bee-js/issues/425)) ([76601f8](https://www.github.com/ethersphere/bee-js/commit/76601f82cbc6ccee72e92f488907933c98071410))
52
- * topup and dilute batch methods ([#424](https://www.github.com/ethersphere/bee-js/issues/424)) ([7bf2135](https://www.github.com/ethersphere/bee-js/commit/7bf213582bcb5a96a000790498d57d8ee2d19c92))
53
-
54
-
55
- ### Bug Fixes
56
-
57
- * `uploadResult.tagUid` always present ([#429](https://www.github.com/ethersphere/bee-js/issues/429)) ([bc76e79](https://www.github.com/ethersphere/bee-js/commit/bc76e7986706cac76d258de098d3f0712f23f38d))
58
-
59
-
60
- ### Reverts
61
-
62
- * bee 1.1.0 version check workaround ([#428](https://www.github.com/ethersphere/bee-js/issues/428)) ([7d42eb7](https://www.github.com/ethersphere/bee-js/commit/7d42eb7d4eaca00cbae6aaf8ac740f311f8bcab5))
63
-
64
- ---
65
-
66
- ## [2.0.0](https://www.github.com/ethersphere/bee-js/compare/v1.2.1...v2.0.0) (2021-09-20)
67
-
68
- This is our first major version bump as we did a big revamp of `bee-js` internals and fixed a few things and shortcomings that required breaking changes.
69
-
70
- ### 🤖 HTTP client swap (timeout and retries support)
71
-
72
- In the JS browser ecosystem, there are two main HTTP clients: old XMLHttpRequest (XHR) API and new modern `fetch` API.
73
-
74
- We originally used `axios` library that employs the XHR client, but XHR is old and will not get any new features as it is superseded with `fetch` API that is actively developed by the WHATWG group, and hence it has its limitations. Many limitations can be overcome using polyfills etc. but a hard stop is networking that only browsers decide what to allow (usually based on the specification). In the case of XHR the limitation is streaming support.
75
-
76
- We have therefore decided to use `fetch` based library `ky` that supports streaming downloads and hopefully in close future will support also streaming uploads (see [whatwg/fetch#966](https://github.com/whatwg/fetch/issues/966), there is also already functional experiment that [enables this in Chrome](https://www.chromestatus.com/feature/5274139738767360)). `fetch` is also more future-proof.
77
-
78
- This change, unfortunately, does not come without a cost and that is support for tracking upload progress, that `fetch` still does not have (if interested please comment on the relevant [whatwg/fetch#607](https://github.com/whatwg/fetch/issues/607) issue to raise importance).
79
- If this feature is crucial for you, we have devised a workaround thanks to @mattiaz9, which is demonstrated in our [example `upload-progress`](https://github.com/ethersphere/examples-js/tree/master/upload-progress).
80
-
81
- This change unfortunately is breaking as we originally exposed `AxiosOptions` on our API. We have refactored this into more generic HTTP options that should be more future-proof. Thanks to `ky` we also now have support for retries of failed requests (only for non-`POST` requests, defaults are seen [here](https://github.com/sindresorhus/ky#retry)) and timeouts. Both are possible to set generally for the `Bee` instance and/or override it for each method call.
82
-
83
- ### 🎏 Streaming revamp
84
-
85
- As part of the HTTP client revamp, we had a deeper look at how we handle streams. In the JS land, there are two main types of streams the NodeJS [`Readable`](https://nodejs.org/api/stream.html#stream_class_stream_readable) and the browser WHATWG [`ReadableStream`](http://developer.mozilla.org/en-US/docs/Web/API/ReadableStream). As our design mindset is browser-first and polyfill the rest in NodeJs, we have unified all returned streams into the WHATWG `ReadableStream` no matter what platform you are on. Most probably you will want to use NodeJs `Readable` on NodeJs platform, so we have included utility function [`readableWebToNode`](https://bee-js.ethswarm.org/docs/api/functions/utils.readableWebToNode/) that converts WHATWG stream into NodeJs. There are also more stream-related utility functions that you can check out.
86
-
87
- For stream inputs, we accept both types of streams and convert them internally.
88
-
89
- ### ⏎ Upload results refactor
90
-
91
- One of our short-coming was dropping the returned object from upload methods in favor of the simple string `Reference`. Later on, we discovered that there is actually a need to return more information from upload operations because [Bee automatically creates a Tag for each upload](https://docs.ethswarm.org/docs/access-the-swarm/syncing#generate-the-tag-automatically) that we could return. Hence we have introduced back [`UploadResult`](https://bee-js.ethswarm.org/docs/api/interfaces/uploadresult/) interface that all the upload methods will now return.
92
-
93
- ### 🫓 Utility namespace flatting and filtering
94
-
95
- We have merged all the `Utils.*` namespaces directly into `Utils` and we have filtered out the functions only to those that make sense to expose in order to minimize the public API and possible future breaking changes.
96
-
97
- ### 🗾 `uploadCollection()` method
98
-
99
- We have introduced new `uploadCollection` method that is more flexible in uploading collection if you do not want to use our convenience methods like `uploadFilesFromDirectory()` or `uploadFiles`. This new method accepts the [`Collection<Uint8Array | Readable>`](https://bee-js.ethswarm.org/docs/api/interfaces/collection/) interface.
100
-
101
- ### ⚠ BREAKING CHANGES
102
-
103
- - Requests made by `bee-js` are now reported with `User-Agent: bee-js/<<bee-js's version>>` (#390)
104
- - `Utils.setDefaultHeaders()` was removed in favor of `Bee`/`BeeDebug` instance's option `defaultHeaders` (#390)
105
- - Hooks (#390)
106
- - `Utils.hooks.*` was removed in favor of `Bee`/`BeeDebug` instance's options `onRequest` and `onResponse`
107
- - Hooks now pass only metadata of the requests and not the payload
108
- - All returned streams are now of [`WHATWG ReadableStream`](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream). If you need NodeJS's Readable you can use `Utils.readableWebToNode()` utility function. (#390)
109
- - All `axiosOptions` were removed from those methods that supported it (for example `bee.downloadReadableData()`, `bee.reuploadPinnedData()`, `UploadOptions` does not have `axiosOptions` property anymore) (#390)
110
- - Unfortunately `fetch` does not support tracking of upload progress (like XHR/axios supported with the `onUploadProgress`). Please see our [example `upload-progress`](https://github.com/ethersphere/examples-js/tree/master/upload-progress) for work-around. (#390)
111
- - All upload methods now returns `UploadResult` interface (#408)
112
- - `bee.pssSend()` now throws error if the specified target exceeds maximal value. Use `Utils.makeMaxTarget()` that will give you the max target that Bee accepts. (#384)
113
- - `Utils` namespace is flattened and limited on the functions (#395)
114
-
115
- ### Other changes:
116
-
117
- - All upload methods that used to accept NodeJS's Readable now accept both NodeJS and WHATWG Readable(Stream).
118
- - Usage of ReadableStreams in a browser is now possible. Be aware that real support for streaming browsers has only for download, but not upload. When Readable is passed to upload methods it is first fully buffered before making the request.
119
-
120
- ### Features
121
-
122
- * HTTP request options is possible to override per method call ([#411](https://www.github.com/ethersphere/bee-js/issues/411)) ([9eac5cd](https://www.github.com/ethersphere/bee-js/commit/9eac5cd1a75277566b7d48255467afcd0d478f23))
123
- * return `UploadResult` for upload methods ([#408](https://www.github.com/ethersphere/bee-js/issues/408)) ([e58b8e8](https://www.github.com/ethersphere/bee-js/commit/e58b8e8629159cdcea23b9b3327813b459f2bf76))
124
-
125
- ### Bug Fixes
126
-
127
- * pss target length verification ([#384](https://www.github.com/ethersphere/bee-js/issues/384)) ([fd032a8](https://www.github.com/ethersphere/bee-js/commit/fd032a826a39cd48d5c2030baabc58970cd4af91))
128
- * remove check for pinned content in reupload ([#412](https://www.github.com/ethersphere/bee-js/issues/412)) ([6032a22](https://www.github.com/ethersphere/bee-js/commit/6032a220a8a572421cac0200197843470ab50858))
129
-
130
- ### Code Refactoring
131
-
132
- * ky replaces axios ([#390](https://www.github.com/ethersphere/bee-js/issues/390)) ([5f08d1e](https://www.github.com/ethersphere/bee-js/commit/5f08d1e799d5338ed9ac935805e7d9a1f7939fa6))
133
- * utility module flatting and limiting ([#395](https://www.github.com/ethersphere/bee-js/issues/395)) ([ee68ed2](https://www.github.com/ethersphere/bee-js/commit/ee68ed2a10892d53826535d85dcf5d0b734f45fb))
134
-
135
- ## [1.2.1](https://www.github.com/ethersphere/bee-js/compare/v1.2.0...v1.2.1) (2021-08-27)
136
-
137
-
138
- ### Bug Fixes
139
-
140
- * bee 1.1.0 version reporting workaround ([#401](https://www.github.com/ethersphere/bee-js/issues/401)) ([687e431](https://www.github.com/ethersphere/bee-js/commit/687e4318b0ae6ed62dc23d6d1ce1abad3938e20b))
141
-
142
- ## [1.2.0](https://www.github.com/ethersphere/bee-js/compare/v1.1.1...v1.2.0) (2021-08-24)
143
-
144
- This is mainly a compatibility release with [Bee 1.1.0](https://github.com/ethersphere/bee/releases/tag/v1.1.0) release.
145
-
146
- ### 🏷 Stamps API move and deprecation
147
-
148
- The Stamps API was moved to Debug API and on normal API it is now deprecated. Moreover, Bee provides more information on Debug API with for example `batchTtl` that gives an estimation for how long the batch will be valid.
149
-
150
- ### ⛓ Pending transaction management supports
151
-
152
- New Debug API was added that allows you to manage pending transactions and do things like:
153
-
154
- - list pending transactions
155
- - rebroadcast already created (pending) transaction
156
- - cancel a pending transaction
157
-
158
- ### Features
159
-
160
- * new debug postage api ([#381](https://www.github.com/ethersphere/bee-js/issues/381)) ([dcd6dd3](https://www.github.com/ethersphere/bee-js/commit/dcd6dd34893e961fd5716683c113927bb21b588f))
161
- * pending transactions management ([#399](https://www.github.com/ethersphere/bee-js/issues/399)) ([144440b](https://www.github.com/ethersphere/bee-js/commit/144440b4b3c5d5d8b52638b2e502b307089baec3))
162
-
163
- ## [1.1.1](https://www.github.com/ethersphere/bee-js/compare/v1.1.0...v1.1.1) (2021-07-21)
164
-
165
- This is a small patch release that fixes missing headers in requests/responses returned using the hooks system.
166
-
167
- ### Bug Fixes
168
-
169
- * provide all request headers ([#370](https://www.github.com/ethersphere/bee-js/issues/370)) ([5b4c94b](https://www.github.com/ethersphere/bee-js/commit/5b4c94bfd43904623bd2c0a4427f74784f34a3e8))
170
-
171
- ## [1.1.0](https://www.github.com/ethersphere/bee-js/compare/v1.0.0...v1.1.0) (2021-07-16)
172
-
173
- This is a small incremental release that brings two new features.
174
-
175
- ### 🪝 Hooks system
176
-
177
- If you need to know what exact HTTP requests `bee-js` sends to Bee you can now register hooks for outgoing requests and incoming responses using [`Utils.Hooks` interface](https://bee-js.ethswarm.org/docs/api/modules/utils.hooks).
178
-
179
- **Be aware! These listeners listen to all outgoing `bee-js`'s requests/responses, so if you have multiple `Bee`/`BeeDebug` instances for different Bee nodes, than all requests will be forwarded to your callbacks!**
180
-
181
- ### 🏷 New Tag endpoints
182
-
183
- With the `1.0` Bee release few new endpoints related to [Tags](https://docs.ethswarm.org/docs/access-the-swarm/syncing) were introduced that allows you to list, update and delete tags.
184
-
185
-
186
- ### Features
187
-
188
- * hooks system ([#367](https://www.github.com/ethersphere/bee-js/issues/367)) ([97441b3](https://www.github.com/ethersphere/bee-js/commit/97441b3137ff1e10ff43f7ccb8ae45b547175907))
189
- * new tags endpoints ([#365](https://www.github.com/ethersphere/bee-js/issues/365)) ([90dc15e](https://www.github.com/ethersphere/bee-js/commit/90dc15e0b0232de3d08127e16da2b5a499d5abbb))
190
-
191
- ---
192
-
193
- ## [1.0.0](https://www.github.com/ethersphere/bee-js/compare/v0.12.0...v1.0.0) (2021-06-22)
194
-
195
- This release bumps the supported Bee version to 1.0.0, which marks the mainnet launch of the project.
196
-
197
- ### Miscellaneous Chores
198
-
199
- * release 1.0.0 ([#356](https://www.github.com/ethersphere/bee-js/issues/356)) ([f409915](https://www.github.com/ethersphere/bee-js/commit/f40991585074a7cf07e7f13fdd3aef6577b59677))
200
-
201
- ## [0.12.0](https://www.github.com/ethersphere/bee-js/compare/v0.11.0...v0.12.0) (2021-06-17)
202
-
203
- This is a compatibility release for the Bee 1.0.0-rc2. It also handles extended postage stamp information.
204
-
205
- ### ⚠ BREAKING CHANGES
206
-
207
- * use string instead of bigint (#345)
208
-
209
- ### Features
210
-
211
- * add folder and collection size check utility functions ([#349](https://www.github.com/ethersphere/bee-js/issues/349)) ([f289c81](https://www.github.com/ethersphere/bee-js/commit/f289c81ecb77c8754589d67c1b9ca03d379dc23a))
212
- * extend PostageBatch type and creation with new properties ([#350](https://www.github.com/ethersphere/bee-js/issues/350)) ([7695e27](https://www.github.com/ethersphere/bee-js/commit/7695e27bcac758c153609ba973830c0472e1e5c6))
213
-
214
-
215
- ### Bug Fixes
216
-
217
- * add missing stream package with webpack ([#351](https://www.github.com/ethersphere/bee-js/issues/351)) ([a083a1b](https://www.github.com/ethersphere/bee-js/commit/a083a1b5bb98277db3ef15a80aa8044718fb00f5)), closes [#348](https://www.github.com/ethersphere/bee-js/issues/348)
218
-
219
-
220
- ### Code Refactoring
221
-
222
- * use string instead of bigint ([#345](https://www.github.com/ethersphere/bee-js/issues/345)) ([358ca42](https://www.github.com/ethersphere/bee-js/commit/358ca4231595b9883aed0d8eade39da509cbb118))
223
-
224
- ## [0.11.0](https://www.github.com/ethersphere/bee-js/compare/v0.10.0...v0.11.0) (2021-06-09)
225
-
226
- This release mainly brings internal improvements as we have attacked head-on our backlog with outstanding issues. But several changes introduce breaking changes so be aware and continue reading on!
227
-
228
- ### 🔎 Input validation
229
-
230
- We implemented thorough input validation to catch problems even before sending requests to Bee and give better errors on what is wrong.
231
-
232
- ### ⚠ BREAKING CHANGES
233
-
234
- - Methods `Bee.pin()`, `Bee.unpin()`, `Bee.pssSend()` now return `Promise<void>` (#342)
235
- - Methods `Bee.setJsonFeed()`, `SocWriter.upload()`, `FeedWriter.upload()` now return directly the reference hash (string) instead of it being wrapped in object (#341)
236
- - The new input validation might require more thorough types specification
237
-
238
- ### Features
239
-
240
- * input validation ([#343](https://www.github.com/ethersphere/bee-js/issues/343)) ([1a33932](https://www.github.com/ethersphere/bee-js/commit/1a33932233f255d7d89d8b6336ab1191f9946484))
241
-
242
-
243
- ### Reverts
244
-
245
- * empty test data ([#339](https://www.github.com/ethersphere/bee-js/issues/339)) ([ffecd9f](https://www.github.com/ethersphere/bee-js/commit/ffecd9fbc1e2a2e8a1e9b757af6a0346b826951f))
246
-
247
-
248
- ### Code Refactoring
249
-
250
- * no generic BeeResponse returned from Bee class ([#342](https://www.github.com/ethersphere/bee-js/issues/342)) ([d2a65ee](https://www.github.com/ethersphere/bee-js/commit/d2a65ee31b42eed70685a62085164c39caf092c0))
251
- * no single-property object returned ([#341](https://www.github.com/ethersphere/bee-js/issues/341)) ([572253c](https://www.github.com/ethersphere/bee-js/commit/572253c173b4acc8c2e515677f66a68c8e5076b0))
252
-
253
- ---
254
-
255
- ## [0.10.0](https://www.github.com/ethersphere/bee-js/compare/v0.9.0...v0.10.0) (2021-06-01)
256
-
257
- We would like to introduce you to a new release that brings access to other new features of `0.6.0` Bee release and several other improvements. This version is compatible with `0.6.2` version of Bee.
258
-
259
- ### ⁉️ Improved error reporting
260
-
261
- Until now most returned Errors contained very limited information on what actually went wrong as most of the problems originated directly from the Bee node. We improved our internal handling of these errors and now if Bee returns the reason for the error we pass it along with our thrown errors.
262
-
263
- ### ⛓ New endpoints
264
-
265
- We have included support for the new Bee Debug's endpoints that exposes chain state with `BeeDebug.getChainState()` (`/chainstate`) and reserve state `BeeDebug.getReserveState()` (`/reservestate`).
266
-
267
- ### ♻️ Reupload support
268
-
269
- Now you can re-upload content that you have locally pinned in your node to the network with `Bee.reuploadPinnedData()`. If the data is not pinned, then an error is thrown.
270
-
271
- ### ⛽️ Gas prices and limits for transactions
272
-
273
- Now you can specify a gas price for methods that create transactions:
274
- - `BeeDebug.cashoutLastCheque()`
275
- - `BeeDebug.depositTokens()`
276
- - `BeeDebug.withdrawTokens()`
277
-
278
- ---
279
-
280
- ### ⚠ BREAKING CHANGES
281
-
282
- * `Promise` returning methods from now on never throw errors, but return rejected promise instead (#326)
283
- * `BeeDebug.cashoutLastCheque()` now directly returns the transaction hash as string and not object (#325)
284
- * `BeeDebug.depositTokens()` now directly returns the transaction hash as string and not object (#336)
285
- * `BeeDebug.withdrawTokens()` now directly returns the transaction hash as string and not object (#336)
286
-
287
- ### Features
288
-
289
- * chain and reserve state endpoints ([#324](https://www.github.com/ethersphere/bee-js/issues/324)) ([0ec57e9](https://www.github.com/ethersphere/bee-js/commit/0ec57e986109aee3faff5061821d3f0e04bf8bae))
290
- * pass error message from bee to thrown error ([#314](https://www.github.com/ethersphere/bee-js/issues/314)) ([59b5834](https://www.github.com/ethersphere/bee-js/commit/59b5834c2b97c5e23ac8b1c5c13d29b3ca60399a))
291
- * expose stamps depth limits ([#334](https://www.github.com/ethersphere/bee-js/issues/334)) ([0bb4dcf](https://www.github.com/ethersphere/bee-js/commit/0bb4dcf24cd2de66bf682094765340ef80cfc6eb))
292
- * reupload ([#323](https://www.github.com/ethersphere/bee-js/issues/323)) ([3a256f8](https://www.github.com/ethersphere/bee-js/commit/3a256f8d26114ad18d3c361a23cc05f6bf7a27fa))
293
- * support gas price and limit for cashout ([#325](https://www.github.com/ethersphere/bee-js/issues/325)) ([61195c7](https://www.github.com/ethersphere/bee-js/commit/61195c780f934b3e4cf778ef8fa47391956459a5))
294
-
295
-
296
- ### Bug Fixes
297
-
298
- * correctly return reject promise for promise returning fnc ([#326](https://www.github.com/ethersphere/bee-js/issues/326)) ([d76ef2d](https://www.github.com/ethersphere/bee-js/commit/d76ef2dd216de9d02349e1ae818c592e1c1678a6))
299
-
300
- ---
301
-
302
- ## [0.9.0](https://www.github.com/ethersphere/bee-js/compare/v0.8.1...v0.9.0) (2021-05-20)
303
-
304
- We would like to introduce you to this big release with many changes that follow the [Bee's 0.6.0 release](https://github.com/ethersphere/bee/releases/tag/v0.6.0) and is fully compatible with it. This release contains new features and breaking changes that depend on the new Bee version, so if you have not already read the [Bee's release notes](https://github.com/ethersphere/bee/releases/tag/v0.6.0) do so for a better understanding of changes!
305
-
306
- ### 💮 Postage Stamp support
307
-
308
- One of the most significant changes in Bee is the support of Postage Stamps (read about them [here](https://docs.ethswarm.org/access-the-swarm/keep-your-data-alive)). They are now **required** for all "write" operations like uploading files, writing to manifests, or sending PSS messages. You can now create a new postage batch with `bee.createPostageBatch()` method, but be aware this spends the Bee node's Ethereum and BZZ to create the batch with the on-chain transaction! Use with caution.
309
-
310
- ```javascript=
311
- const bee = new Bee(...)
312
-
313
- const batchId = await bee.createPostageBatch(10, 17) // example values
314
- const reference = await bee.uploadData(batchId, 'Hello world')
315
- ```
316
-
317
- ### 📍 Pinning methods simplification
318
-
319
- The new pinning API now doesn't distinguish between the underlying data structure, so you simply pin any type of content with one method `bee.pin(reference)` and unpin with `bee.unpin(reference)`.
320
-
321
- ### ↺ Renaming and refactoring
322
-
323
- Some endpoints were removed, and some properties renamed. We also used this opportunity to streamline our API. Please check breaking changes!
324
-
325
- ---
326
-
327
- ### ⚠️ BREAKING CHANGES
328
-
329
- - Removing `bee.download*FromCollection` method ([#280](https://github.com/ethersphere/bee-js/pull/280))
330
- - Removed `recursive` flag from `uploadFilesFromDirectory` ([#280](https://github.com/ethersphere/bee-js/pull/280))
331
- - Following methods are removed `bee.pinFile()`, `bee.unpinFile()`, `bee.pinCollection()` `bee.unpinCollection()`, `bee.pinData()`, `bee.unpinData()`, `bee.pinChunk()`, `bee.unpinChunk()`, `bee. getChunkPinningStatus()` ([#293](https://github.com/ethersphere/bee-js/pull/293))
332
- - Following properties were converted from snake_case to camelCase ([#301](https://github.com/ethersphere/bee-js/pull/301)):
333
- - `BeeDebug.getNodeAddresses()`: `public_key`, `pss_public_key`
334
- - `BeeDebug.getChequebookAddress()`: `chequebookaddress`
335
- - `BeeDebug.getAllSettlements()`: `total_received`, `total_sent`
336
-
337
- ### Features
338
-
339
- * gas price for postage batch creation ([#312](https://www.github.com/ethersphere/bee-js/issues/312)) ([7e47e09](https://www.github.com/ethersphere/bee-js/commit/7e47e09b087b967fc2b57c50b82c630ba20df345))
340
- * limit postage depth ([#318](https://www.github.com/ethersphere/bee-js/issues/318)) ([e9a4758](https://www.github.com/ethersphere/bee-js/commit/e9a4758017c3d0fc6c554a16cd6d725819f8882d))
341
- * postage stamp support ([#290](https://www.github.com/ethersphere/bee-js/issues/290)) ([da50ad6](https://www.github.com/ethersphere/bee-js/commit/da50ad6714e1ef885c03f45510c5ac19e3b769b4))
342
-
343
-
344
- ### Bug Fixes
345
-
346
- * if there are no postage stamps the getAllPostageBatch should return [] ([#319](https://www.github.com/ethersphere/bee-js/issues/319)) ([82985d3](https://www.github.com/ethersphere/bee-js/commit/82985d3761c3d7bc51d205f20f3a0636eb76f250))
347
- * last cheque peer response property case ([#320](https://www.github.com/ethersphere/bee-js/issues/320)) ([c8f0cea](https://www.github.com/ethersphere/bee-js/commit/c8f0cea09fe996398a02138e9df0702da49d3879))
348
- * shape of `LastCashoutActionResponse` for Bee 0.6.0 ([#306](https://www.github.com/ethersphere/bee-js/issues/306)) ([d637379](https://www.github.com/ethersphere/bee-js/commit/d637379b52bc6ce229c02d18bfba87e4194b3107))
349
- * use bigint primitive ([#287](https://www.github.com/ethersphere/bee-js/issues/287)) ([6e104dc](https://www.github.com/ethersphere/bee-js/commit/6e104dca1f1da4fb9713789854bc1b4ea31cefef))
350
-
351
-
352
- ### Code Refactoring
353
-
354
- * camelCasing of some properties ([#301](https://www.github.com/ethersphere/bee-js/issues/301)) ([13cd882](https://www.github.com/ethersphere/bee-js/commit/13cd882e10094e90ae0e9f132bda7c4aec4c6f30))
355
- * new pinning api ([#293](https://www.github.com/ethersphere/bee-js/issues/293)) ([bc90e7b](https://www.github.com/ethersphere/bee-js/commit/bc90e7ba0e9dfd4f3bb92192a9348bce75ce1491))
356
- * use bzz endpoint for file and dirs ([#280](https://www.github.com/ethersphere/bee-js/issues/280)) ([6cd8f28](https://www.github.com/ethersphere/bee-js/commit/6cd8f28470f0358782f7a44c649aac29ccbc9c82))
357
-
358
- ### [0.8.1](https://www.github.com/ethersphere/bee-js/compare/v0.8.0...v0.8.1) (2021-04-21)
359
-
360
-
361
- ### Bug Fixes
362
-
363
- * expose hashing function ([#277](https://www.github.com/ethersphere/bee-js/issues/277)) ([d6c0b22](https://www.github.com/ethersphere/bee-js/commit/d6c0b22e0c083513cfdae369e90b14637083eece))
364
- * support address option for getJsonFeed ([#276](https://www.github.com/ethersphere/bee-js/issues/276)) ([85a7574](https://www.github.com/ethersphere/bee-js/commit/85a7574fbd2372542360fdd047a42e139cb733f5))
365
-
366
- ## [0.8.0](https://www.github.com/ethersphere/bee-js/compare/v0.7.1...v0.8.0) (2021-04-19)
367
-
368
- ### ☁️ High-level feed's API
369
-
370
- We understand that the current Feed's API is rather a low level and to use it for simple tasks might be overwhelming. We designed high-level API, that works for JSON data (arrays, objects, etc.) in a very convenient way. See the example bellow:
371
-
372
- ```js
373
- await bee.setJsonFeed(
374
- 'some cool arbitraty topic',
375
- { some: ['cool', { json: 'compatible' }, 'object']},
376
- { signer: '0x634fb5a872396d9693e5c9f9d7233cfa93f395c093371017ff44aa9ae6564cdd' }
377
- )
378
- const data = await bee.getJsonFeed(
379
- 'some cool arbitraty topic',
380
- { signer: '0x634fb5a872396d9693e5c9f9d7233cfa93f395c093371017ff44aa9ae6564cdd' }
381
- )
382
- console.log(data)
383
- // Prints: { some: ['cool', { json: 'compatible' }, 'object']}
384
- ```
385
-
386
- ### ⚠️ `BigInt` breaking change
387
-
388
- JavaScript has limitations on how it can safely represent big numbers before floating errors come into the picture. Since the BZZ token has 16 decimal places we are able to safely represent only `0.9` BZZ which is not much. Because of this, we had to switch from using `number` to [`bigint`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) type on money-related APIs that concerns balances, chequebook, and settlements.
389
-
390
- ### ⚙️ Internal refactors
391
-
392
- As part of our internal code improvements, we have renamed all `verify*` functions into `assert*`. This mainly impacts `BeeJS.Utils.Bytes` namespace where for example `verifyBytes` was renamed to `assertBytes`. As part of this change also the order of parameters was changed and some return types as well. If you use TypeScript the changes should be caught by our typings, if you are using JavaScript please verify you are not using these functions or refactor your code appropriately.
393
-
394
- ---
395
-
396
- ### ⚠ BREAKING CHANGES
397
-
398
- * verify to assert ([#255](https://www.github.com/ethersphere/bee-js/issues/255)) ([725292b](https://www.github.com/ethersphere/bee-js/commit/725292b97afb07354346400f915f9f678e8f3306))
399
- * use bigint for bzz amounts ([#259](https://www.github.com/ethersphere/bee-js/issues/259)) ([9da31c2](https://www.github.com/ethersphere/bee-js/commit/9da31c2051df42f48cedd5ae00821f42aeb8fec5))
400
-
401
- ### Features
402
-
403
- * enable setting default headers ([#271](https://www.github.com/ethersphere/bee-js/issues/271)) ([21d63e3](https://www.github.com/ethersphere/bee-js/commit/21d63e3efebd86d018434d5af085753bd1455b4a))
404
- * expose pinning functions ([#262](https://www.github.com/ethersphere/bee-js/issues/262)) ([8a4274e](https://www.github.com/ethersphere/bee-js/commit/8a4274ef141ffd021c5956e106978662cbaa91df))
405
- * high-level json feed api ([#246](https://www.github.com/ethersphere/bee-js/issues/246)) ([4b22563](https://www.github.com/ethersphere/bee-js/commit/4b22563d7c499b036bb5535d49417aed21ed7504))
406
-
407
-
408
- ### Bug Fixes
409
-
410
- * check typings for test folder ([#264](https://www.github.com/ethersphere/bee-js/issues/264)) ([b924e89](https://www.github.com/ethersphere/bee-js/commit/b924e890c6cfc506e114894838634bae5d904083))
411
- * use bigint for bzz amounts ([#259](https://www.github.com/ethersphere/bee-js/issues/259)) ([9da31c2](https://www.github.com/ethersphere/bee-js/commit/9da31c2051df42f48cedd5ae00821f42aeb8fec5))
412
-
413
- ### Code Refactoring
414
-
415
- * verify to assert ([#255](https://www.github.com/ethersphere/bee-js/issues/255)) ([725292b](https://www.github.com/ethersphere/bee-js/commit/725292b97afb07354346400f915f9f678e8f3306))
416
- ### [0.7.1](https://www.github.com/ethersphere/bee-js/compare/v0.7.0...v0.7.1) (2021-03-31)
417
-
418
-
419
- ### Bug Fixes
420
-
421
- * point to correct typings path ([#241](https://www.github.com/ethersphere/bee-js/issues/241)) ([e214417](https://www.github.com/ethersphere/bee-js/commit/e21441744dc6fea6025d0417121143817dd740df))
422
-
423
- ## [0.7.0](https://www.github.com/ethersphere/bee-js/compare/v0.6.0...v0.7.0) (2021-03-30)
424
-
425
-
426
- ### ⚠ BREAKING CHANGES
427
-
428
- * replaced `getPssPublicKey` with `getNodeAddresses` (#228)
429
- * isEthAddress to isHexEthAddress (#234)
430
- * hex string length support (#213)
431
-
432
- ### Features
433
-
434
- * add supported bee version to package.json ([#240](https://www.github.com/ethersphere/bee-js/issues/240)) ([7bc26e5](https://www.github.com/ethersphere/bee-js/commit/7bc26e51ecdf79f52afeb1d424bb26567bd1c9c3))
435
- * data helpers for downloaded bytes ([#219](https://www.github.com/ethersphere/bee-js/issues/219)) ([3af3826](https://www.github.com/ethersphere/bee-js/commit/3af3826a4f2343e0cd7ae37094c286dc261a6e4b))
436
- * default signer on bee instance ([#224](https://www.github.com/ethersphere/bee-js/issues/224)) ([de46e8f](https://www.github.com/ethersphere/bee-js/commit/de46e8f0f6ffab2a1e096390bb656aa8e0e86bbd))
437
- * ethereum wallet signer utility ([#230](https://www.github.com/ethersphere/bee-js/issues/230)) ([94bc9f4](https://www.github.com/ethersphere/bee-js/commit/94bc9f44b3be68529c32741a37403d9e83efd425))
438
- * expose external types ([#235](https://www.github.com/ethersphere/bee-js/issues/235)) ([5c1ddac](https://www.github.com/ethersphere/bee-js/commit/5c1ddac74064109d9eeb2459a049ad4d7100aaba))
439
- * hex string length support ([#213](https://www.github.com/ethersphere/bee-js/issues/213)) ([53a2c25](https://www.github.com/ethersphere/bee-js/commit/53a2c255620a029d18228708b5967337a025bd11))
440
- * improved signer interface and validation ([#223](https://www.github.com/ethersphere/bee-js/issues/223)) ([769476d](https://www.github.com/ethersphere/bee-js/commit/769476d3a43e7f1e001a34396d90ad76e95e7c45))
441
- * missing endpoints on Bee and BeeDebug class ([#207](https://www.github.com/ethersphere/bee-js/issues/207)) ([bad1cae](https://www.github.com/ethersphere/bee-js/commit/bad1cae41973ce213b1ed8203a5b34a6c742a8ea))
442
- * replaced `getPssPublicKey` with `getNodeAddresses` ([#228](https://www.github.com/ethersphere/bee-js/issues/228)) ([2932725](https://www.github.com/ethersphere/bee-js/commit/29327252624c9ec58082dba4729663079a3608ae))
443
-
444
-
445
- ### Bug Fixes
446
-
447
- * adding string type and assertions to Reference on API ([#232](https://www.github.com/ethersphere/bee-js/issues/232)) ([3467e7d](https://www.github.com/ethersphere/bee-js/commit/3467e7d441a86966638ea2220ff7b6c54e66dcf8))
448
-
449
-
450
- ### Code Refactoring
451
-
452
- * isEthAddress to isHexEthAddress ([#234](https://www.github.com/ethersphere/bee-js/issues/234)) ([cfe49e6](https://www.github.com/ethersphere/bee-js/commit/cfe49e60d129f99d76d8c1c0d9d648b9aec18957))
453
-
454
- ## [0.6.0](https://www.github.com/ethersphere/bee-js/compare/v0.5.1...v0.6.0) (2021-03-15)
455
-
456
-
457
- ### ⚠ BREAKING CHANGES
458
-
459
- * correct getChequebookBalance spelling (remove extra u) (#189)
460
-
461
- ### Bug Fixes
462
-
463
- * no ethereum prefix for custom signers ([#194](https://www.github.com/ethersphere/bee-js/issues/194)) ([2ee1eca](https://www.github.com/ethersphere/bee-js/commit/2ee1eca179b724a70e9d7caea6dcd677e910e3d5))
464
- * **pss:** subscribe in browsers, removed readable in browsers ([#180](https://www.github.com/ethersphere/bee-js/issues/180)) ([a88277d](https://www.github.com/ethersphere/bee-js/commit/a88277db374b3bafe273614954d43afad72018e8))
465
- * strip trailining slash in node url ([#203](https://www.github.com/ethersphere/bee-js/issues/203)) ([8e81024](https://www.github.com/ethersphere/bee-js/commit/8e81024ff25fb1f3e0e6332c4ea6bdc605c50b31))
466
-
467
-
468
- ### Code Refactoring
469
-
470
- * correct getChequebookBalance spelling (remove extra u) ([#189](https://www.github.com/ethersphere/bee-js/issues/189)) ([20efd70](https://www.github.com/ethersphere/bee-js/commit/20efd708b8cf7ddd215cc5ed972cd4fefc6917e1))
471
-
472
- ### [0.5.1](https://www.github.com/ethersphere/bee-js/compare/v0.5.0...v0.5.1) (2021-02-26)
473
-
474
-
475
- ### Features
476
-
477
- * axios options ([#134](https://www.github.com/ethersphere/bee-js/issues/134)) ([6e5fb05](https://www.github.com/ethersphere/bee-js/commit/6e5fb05a8a20d65c5c63fd4a6d3ad91b96fc2ab8))
478
- * eth utils for PSS ([#149](https://www.github.com/ethersphere/bee-js/issues/149)) ([7cbe2ee](https://www.github.com/ethersphere/bee-js/commit/7cbe2ee489e2feb469482d0e00674f675e557172))
479
- * expose the getPeers function on `BeeDebug` ([#155](https://www.github.com/ethersphere/bee-js/issues/155)) ([fcfa547](https://www.github.com/ethersphere/bee-js/commit/fcfa5471b283b2c91db37ede5a98ec53c828faf8))
480
- * expose types for BeeDebug ([#158](https://www.github.com/ethersphere/bee-js/issues/158)) ([1f3051e](https://www.github.com/ethersphere/bee-js/commit/1f3051edf92ed1970d27c5d347de7219a9863e3b))
481
- * exposing soc interface ([#147](https://www.github.com/ethersphere/bee-js/issues/147)) ([7897163](https://www.github.com/ethersphere/bee-js/commit/78971637c9e9286a232456dfd953e69f32132e2d))
482
- * feed interface ([#136](https://www.github.com/ethersphere/bee-js/issues/136)) ([021af95](https://www.github.com/ethersphere/bee-js/commit/021af9570c30b1c6283da71946bd23f45f4f09cf))
483
- * feeds endpoint ([#125](https://www.github.com/ethersphere/bee-js/issues/125)) ([6b0a59b](https://www.github.com/ethersphere/bee-js/commit/6b0a59b380d66827cf404de32bf7c6c8529c491f))
484
-
485
-
486
- ### Bug Fixes
487
-
488
- * bee.sh ([#131](https://www.github.com/ethersphere/bee-js/issues/131)) ([113b66c](https://www.github.com/ethersphere/bee-js/commit/113b66c248724de9482375d763c0ae3446257b2b))
489
- * bump elliptic version to 6.5.4 ([#142](https://www.github.com/ethersphere/bee-js/issues/142)) ([d6ac8b0](https://www.github.com/ethersphere/bee-js/commit/d6ac8b0b52093289725f8e199bbd45fc457b38a9))
490
- * release 0.5.1 ([#145](https://www.github.com/ethersphere/bee-js/issues/145)) ([b0a2168](https://www.github.com/ethersphere/bee-js/commit/b0a2168bac9769aa4c52964a3fdc923453c5e5f8))
491
- * remove automatic content-type header on file upload ([#139](https://www.github.com/ethersphere/bee-js/issues/139)) ([393d068](https://www.github.com/ethersphere/bee-js/commit/393d0681134616799b894bdd6d0a25ec061e3db9)), closes [#138](https://www.github.com/ethersphere/bee-js/issues/138)
492
-
493
- ## [0.5.0](https://www.github.com/ethersphere/bee-js/compare/v0.4.2...v0.5.0) (2021-02-09)
494
-
495
-
496
- ### ⚠ BREAKING CHANGES
497
-
498
- * breaking api changes (#105)
499
-
500
- ### Features
501
-
502
- * balance, chequebook and settlements endpoint on BeeDebug ([#101](https://www.github.com/ethersphere/bee-js/issues/101)) ([7a77050](https://www.github.com/ethersphere/bee-js/commit/7a7705081d625f98a9b8e5822434e6be540c9454))
503
- * balances and consumed endpoint ([#96](https://www.github.com/ethersphere/bee-js/issues/96)) ([162e9b3](https://www.github.com/ethersphere/bee-js/commit/162e9b3c9ab5324331a6abb87ac6b3ee716dc57c))
504
- * chequebook api ([#97](https://www.github.com/ethersphere/bee-js/issues/97)) ([f7b77f4](https://www.github.com/ethersphere/bee-js/commit/f7b77f4c3cfeb25b29f09716ebbb4cd4abb96b03))
505
- * export utils and types ([#123](https://www.github.com/ethersphere/bee-js/issues/123)) ([fb1ed72](https://www.github.com/ethersphere/bee-js/commit/fb1ed722678995666cece7cddd46e948b02598af))
506
- * settlements endpoints ([#98](https://www.github.com/ethersphere/bee-js/issues/98)) ([892ce1b](https://www.github.com/ethersphere/bee-js/commit/892ce1b9d2815902294db4372329e83ee5fcd37d))
507
- * uploadFile support for File type ([#93](https://www.github.com/ethersphere/bee-js/issues/93)) ([02202e9](https://www.github.com/ethersphere/bee-js/commit/02202e906950b4e67255a47f6fdd79abddfeba5c))
508
-
509
-
510
- ### Bug Fixes
511
-
512
- * missing content-disposition causes failure ([#116](https://www.github.com/ethersphere/bee-js/issues/116)) ([2c85db0](https://www.github.com/ethersphere/bee-js/commit/2c85db052181cf331c9cc76e0efa089112155af5))
513
- * typescript configuration ([#120](https://www.github.com/ethersphere/bee-js/issues/120)) ([e665107](https://www.github.com/ethersphere/bee-js/commit/e6651076e47a33d2d5b5c2aba786a20ae80e91b2))
514
-
515
-
516
- ### Code Refactoring
517
-
518
- * breaking api changes ([#105](https://www.github.com/ethersphere/bee-js/issues/105)) ([5eb1d15](https://www.github.com/ethersphere/bee-js/commit/5eb1d1587598f81cb4b86714cbc0196f0430dbb7))
519
-
520
- ### 0.4.2 (2021-02-01)
521
-
522
-
523
- ### Features
524
-
525
- * Bee class functionality with error handling ([#15](https://www.github.com/ethersphere/bee-js/issues/15)) ([038f013](https://www.github.com/ethersphere/bee-js/commit/038f013f44e31cb024e7503db19e8c7c116debc5))
526
- * bmt hasher ([#65](https://www.github.com/ethersphere/bee-js/issues/65)) ([5cac9b2](https://www.github.com/ethersphere/bee-js/commit/5cac9b2b573a2dfbaf7705e889dfada1520787a2))
527
- * bytes module ([#50](https://www.github.com/ethersphere/bee-js/issues/50)) ([9ec08bd](https://www.github.com/ethersphere/bee-js/commit/9ec08bd4b5c5fa1df424f43c3d1f4d640d98b7fd))
528
- * chunk API module ([#60](https://www.github.com/ethersphere/bee-js/issues/60)) ([110b092](https://www.github.com/ethersphere/bee-js/commit/110b092b88b25cb6c2b69a2713ce95da54012eb0))
529
- * module collection ([#28](https://www.github.com/ethersphere/bee-js/issues/28)) ([e4ed0bd](https://www.github.com/ethersphere/bee-js/commit/e4ed0bd265521c1c11eb55be039219a01edf2112))
530
- * pinning for files and collections ([#45](https://www.github.com/ethersphere/bee-js/issues/45)) ([c6fcc21](https://www.github.com/ethersphere/bee-js/commit/c6fcc21389414a2d420525bef3b5eda8f829cd3b))
531
- * pss send and subscribe ([#49](https://www.github.com/ethersphere/bee-js/issues/49)) ([c0b2ac1](https://www.github.com/ethersphere/bee-js/commit/c0b2ac1dc89475755d967e374135af755c0686ef))
532
- * repo setup, adds tag and file api wrapper ([#1](https://www.github.com/ethersphere/bee-js/issues/1)) ([d1d1484](https://www.github.com/ethersphere/bee-js/commit/d1d148431143059bb55c579ffceb6dcee836c5e2))
533
- * single owner chunks ([#69](https://www.github.com/ethersphere/bee-js/issues/69)) ([e152206](https://www.github.com/ethersphere/bee-js/commit/e15220660e35f77197919018612b2bc556d9c413))
534
- * tar upload in the browser ([#35](https://www.github.com/ethersphere/bee-js/issues/35)) ([4787428](https://www.github.com/ethersphere/bee-js/commit/4787428e2867d6b931e3dd4afcbdff019e75434b))
535
-
536
-
537
- ### Bug Fixes
538
-
539
- * big file upload ([#77](https://www.github.com/ethersphere/bee-js/issues/77)) ([a51e4a6](https://www.github.com/ethersphere/bee-js/commit/a51e4a6471f2c0503e71c7f9322021495b838565)), closes [#75](https://www.github.com/ethersphere/bee-js/issues/75)
540
- * collection upload with relative path ([#73](https://www.github.com/ethersphere/bee-js/issues/73)) ([b8f5c90](https://www.github.com/ethersphere/bee-js/commit/b8f5c906b8845d90ee4ba7ea02e0dfd3ae55d02f))
541
- * raise payment tolerance on tests ([#64](https://www.github.com/ethersphere/bee-js/issues/64)) ([4c3043b](https://www.github.com/ethersphere/bee-js/commit/4c3043be4034611c1b69d75f781a88366697c6b4))
542
- * remove postinstall ([#74](https://www.github.com/ethersphere/bee-js/issues/74)) ([992a2de](https://www.github.com/ethersphere/bee-js/commit/992a2deb31e54e95ab1f5751164a47b8906880f5))
543
- * remove utf8-encoder package dependency ([#82](https://www.github.com/ethersphere/bee-js/issues/82)) ([e5b9e12](https://www.github.com/ethersphere/bee-js/commit/e5b9e129c6a39cdfb714982e33e9e3761ed57b91))
544
- * replace Buffer with Uint8Array so it's not used in browser ([#84](https://www.github.com/ethersphere/bee-js/issues/84)) ([a59bcda](https://www.github.com/ethersphere/bee-js/commit/a59bcda8ac3334a0b24ceea5c37b1df6a6b80439))
545
- * upload collection with unicode filenames ([#79](https://www.github.com/ethersphere/bee-js/issues/79)) ([c893e58](https://www.github.com/ethersphere/bee-js/commit/c893e582bad30ff742c5f3884af41a02d2817f36))
546
- * websocket data buffer array typing ([#89](https://www.github.com/ethersphere/bee-js/issues/89)) ([251a650](https://www.github.com/ethersphere/bee-js/commit/251a65028ae12cc538965855a79663c402988348))