Skip to content

Commit 01da49a

Browse files
authored
Remove custom Buffer.subarray polyfill (#795)
1 parent b63fe3a commit 01da49a

File tree

3 files changed

+2
-13
lines changed

3 files changed

+2
-13
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Unreleased
44

55
### Fixed
6+
* Removed [the custom `Buffer.subarray` polyfill](https://github.com/stellar/js-stellar-base/pull/733) introduced in v11.0.1 to address the issue of it not being usable in the React Native Hermes engine. We recommend using [`@exodus/patch-broken-hermes-typed-arrays`](https://github.com/ExodusMovement/patch-broken-hermes-typed-arrays) as an alternative. If needed, please review and consider manually adding it to your project ([#795](https://github.com/stellar/js-stellar-base/pull/795)).
67
* Remove `MuxedAccount.parseBaseAddress` from TypeScript definitions ([#797](https://github.com/stellar/js-stellar-base/pull/797)).
78
* Fix browser compatibility with proper module resolution and UMD configuration ([#798](https://github.com/stellar/js-stellar-base/pull/798)).
89

config/buffer.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

config/webpack.config.browser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const config = {
6666
new webpack.IgnorePlugin({ resourceRegExp: /sodium-native/ }),
6767
new NodePolyfillPlugin(),
6868
new webpack.ProvidePlugin({
69-
Buffer: [path.resolve(__dirname, 'buffer.js'), 'default']
69+
Buffer: ['buffer', 'Buffer']
7070
})
7171
],
7272
watchOptions: {

0 commit comments

Comments
 (0)