Cameron Martin created THRIFT-5844:
--------------------------------------
Summary: Remove dependency on Node.js-specific things in nodejs
client library
Key: THRIFT-5844
URL: https://issues.apache.org/jira/browse/THRIFT-5844
Project: Thrift
Issue Type: Improvement
Components: Node.js - Library
Affects Versions: 0.21.0
Reporter: Cameron Martin
The Node.js client package can be used in both browsers and Node.js. However,
it depends on a lot of node-specific things. As the web gets more capable
bundlers are moving away from polyfilling these. A lot of these things have
replacements that work with both the web and Node.js
* CommonJS modules. Replaced with es modules (see THRIFT-5811)
* Buffer. Replaced with typed arrays. This involves also removing the
node-int64 package. This can be replaced with BigInts.
* util package. This is mainly used for inheritence. Classes can be used here
instead.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)