proposal-upsert
ECMAScript Proposal, specs, and reference implementation for Map.prototype.upsert (by tc39)
webpack-common-shake
CommonJS Tree Shaker plugin for WebPack (by indutny)
proposal-upsert | webpack-common-shake | |
---|---|---|
5 | 2 | |
165 | 914 | |
0.0% | - | |
10.0 | 0.0 | |
over 1 year ago | about 1 year ago | |
HTML | JavaScript | |
MIT License | - |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
proposal-upsert
Posts with mentions or reviews of proposal-upsert.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-12-01.
- Map.prototype.emplace
-
When using 'new Map()' object, what is the simplest way to implement checking if a value exists then incrementing it by 1? (If not found, initialize to 0)
There's a stage 2 proposal for map.emplace() that's exactly what you're looking for:
-
Set methods proposal reaches stage 3
I'm also looking forward to map.emplace() and arr.group() and iterator helpers.
-
Is there a concise way to set a key's initial value in a Map object?
Sounds like you want emplace?
-
[AskJS] What are still present issues in contemporary (2022) JavaScript?
There's a proposal to give [emplace to maps](https://github.com/tc39/proposal-upsert).
webpack-common-shake
Posts with mentions or reviews of webpack-common-shake.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-06-30.
-
CommonJS Is Hurting JavaScript
While I agree the dynamic nature of CommonJS would be problematic, there were successful projects around treeshaking commonjs[0] that worked really well.
I think dynamic imports have some of the same footguns here, to be honest. Can't deny ESM is easier to statically analyze though, that much appears to be true across the board based on available evidence.
[0]: https://github.com/indutny/webpack-common-shake
-
[AskJS] What are still present issues in contemporary (2022) JavaScript?
Tree shaking in CommonJS is possible: here's a Webpack CommonJS Tree Shaking package.
What are some alternatives?
When comparing proposal-upsert and webpack-common-shake you can also consider the following projects:
proposal-do-expressions - Proposal for `do` expressions
meta - Meta discussions and unicorns. Not necessarily in that order.
proposal-record-tuple - ECMAScript proposal for the Record and Tuple value types. | Stage 2: it will change!
esm - Tomorrow's ECMAScript modules today!
wtfjs - 🤪 A list of funny and tricky JavaScript examples
loader - A universal async JS loader.
proposal-array-grouping - A proposal to make grouping of array items easier