Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

use native textEncoder/Decoder#382

Merged
tbfleming merged 2 commits intoEOSIO:masterfrom
boid-com:patch-2
Oct 26, 2018
Merged

use native textEncoder/Decoder#382
tbfleming merged 2 commits intoEOSIO:masterfrom
boid-com:patch-2

Conversation

@boid-com
Copy link
Copy Markdown
Contributor

@boid-com boid-com commented Oct 5, 2018

'text-encoding' npm package is no longer maintained and the node native implementation is available since 8.3
https://nodejs.org/api/util.html#util_class_util_textencoder
https://nodejs.org/api/util.html#util_class_util_textdecoder

I would suggest that this package should automatically import and use these native functions when it detects that it's being run in node. Manual import should only be necessary if you need to override this.

'text-encoding' npm package is no longer maintained and the node native implementation is available since 8.3
https://nodejs.org/api/util.html#util_class_util_textencoder
https://nodejs.org/api/util.html#util_class_util_textdecoder

I would suggest that this package should automatically import and use these native functions when it detects that it's being run in node. Manual import should only be necessary if you need to override this.
Copy link
Copy Markdown
Contributor

@tbfleming tbfleming left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

@tbfleming tbfleming merged commit f7dc46b into EOSIO:master Oct 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants