Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the dependency on collections package #36

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

okuryu
Copy link

@okuryu okuryu commented Jul 16, 2021

The collections package we are using seems to be an obsolete pollyfill, so depending on how you use this package, there is a problem that pollutes the global scope and breaks the runtime. For example, there seems to be
a bug in the Object.values() function of collections. These modern ECMAScript features are already available as standard in many browsers and Node.js, so it is better to use the native standard features rather than fixing collections package.

Instead of collections/fast-map, it will change it to use native JavaScript Maps. These work faster in current browsers and Node.js.

The collections package we are using seems to be an obsolete pollyfill,
so depending on how you use this package, there is a problem that pollutes
the global scope and breaks the runtime. For example, there seems to be
a bug in the Object.values() function of collections. These modern
ECMAScript features are already available as standard in many browsers
and Node.js, so it is better to use the native standard features rather
than fixing collections package.

Instead of collections/fast-map, it will change it to use native
JavaScript Maps. These work faster in current browsers and Node.js.
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.

1 participant