proposal-array-grouping
proposal-error-cause
proposal-array-grouping | proposal-error-cause | |
---|---|---|
19 | 6 | |
513 | 334 | |
- | - | |
0.0 | 5.7 | |
6 months ago | over 2 years ago | |
HTML | HTML | |
MIT License | MIT License |
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-array-grouping
-
TC39: Add Object.groupBy and Map.groupBy
Global iterator type is coming: https://github.com/tc39/proposal-iterator-helpers
But a method named `groupBy` on iterators traditionally means a different thing: https://github.com/tc39/proposal-array-grouping/issues/51#is...
Global iterable type it's too late for, since there's many extant iterables in the language and on the web which don't have it in their prototype chain and can't reasonably be changed.
-
What's New in Node.js 21
Array grouping to combine like data into groups using Object.groupBy() and Map.groupBy().
-
Updates from the 97th TC39 meeting
Array Grouping: A proposal to make grouping of array items easier.
-
Snap.js - A competitor to Lodash
They are coming out with array.group() soon, which is supposed to also fulfil the use-case of partitioning :) - https://github.com/tc39/proposal-array-grouping.
-
[AskJS] Is JavaScript missing some built-in methods?
https://github.com/tc39/proposal-array-grouping for those curious
-
Set methods proposal reaches stage 3
I'm also looking forward to map.emplace() and arr.group() and iterator helpers.
-
SmooshGate
At the end of the day, it comes down to whether browser vendors are willing to ship the feature even though it breaks said websites, and they do have visitor data to back those decisions. If the rule was "never break any website ever", you'd be able to block proposals you don't personally like by crafting a website that "gets broken" by that proposal.
At least in the array grouping proposal, they did evaluate amount and popularity of possibly breaking sites, before eventually renaming the method from .groupBy to .group
https://github.com/tc39/proposal-array-grouping/issues/37
-
New ECMAScript 23 array features
The proposal is described here.
-
how can I split an array into multiple arrays based on a property?
Remarkably, this is now a TC39 proposal.
-
Upcoming ECMAScript features I'm excited about
Proposal, Polyfill
proposal-error-cause
-
GraphQL error handling to the max with Typescript, codegen and fp-ts
:::note When using remote APIs, we often have the possibility to generate the types automatically from a JSON schema for REST APIs, from protobuf files for gRPC-based APIs, from a database schema, etc. You might even be using an external API through an SDK that already provides you with all types. In such cases, the creation of specialized Error classes is not mandatory. However, it might still be a good idea to do so to provide application-specific errors rather than bubbling up 3rd-party low-level errors. For such cases, the upcoming Ecma TC39 proposal for Error Cause is useful as it allows to chain errors. Polyfills exist: Pony Cause or error-cause. :::
-
Updates from the 86th meeting of TC39
Error Cause : .cause property on all Error types slides.
-
Pony Cause 1.0: Error Causes
The impact and cause provides the most value when paired with the other, and that's what Error Cause enables and what Pony Cause is is a ponyfill for and provides helpers for.
-
Error Cause in JavaScript
Well, we have error-cause on stage-3 for the same and with which we could do something like:
-
Updates from the 81st meeting of TC39
Error Cause: Enhancing errors with a distinct "cause".
-
Updates from 78th meeting of TC39
Error Cause
What are some alternatives?
es1995 - ES1995 – The Missing JS Polyfill
proposal-intl-segmenter - Unicode text segmentation for ECMAScript
retro-random-number
proposal-temporal - Provides standard objects and functions for working with dates and times.
proposal-regexp-r-escape - Regular Expression `\R` Escape for ECMAScript
pony-cause - Ponyfill and helpers for the standardized Error Causes
proposal-string-cooked - ECMAScript proposal for String.cooked built-in template tag
proposals - ✍️ Tracking the status of Babel's implementation of TC39 proposals (may be out of date)
proposal-function-pipe-flow - A proposal to standardize helper functions for serial function application and function composition.
types-in-js - Tips and tricks for working with types in JavaScript
proposal-array-from-async - Draft specification for a proposed Array.fromAsync method in JavaScript.
proposal-resizablearraybuffer - Proposal for resizable array buffers