Provides an ESnext spec-compliant shim or polyfill for `Array.prototype.toSorted`, letting you use the proposed `toSorted` behavior in environments down to ES3. It can be used either as a function that takes the input array, or via `shim()` to install `Array.prototype.toSorted` when it is missing.
Project status
- The repository appears actively maintained, with at least three tagged
updatesin a roughly year-long span (v1.1.2 on 2023-09-07, v1.1.3 on 2024-02-05, v1.1.4 on 2024-06-03), and the upstream last push is 2024-06-03. - The apparent
updatecadence is modest and regular, approximately every 4 to 6 months between the observed updates (Sep 2023 to Feb 2024, then Feb to Jun 2024).
AI summary generated Today
Recent updates
v1.1.4
6/3/2024v1.1.4 refactors the Array.prototype.toSorted shim implementation to better align with the latest ECMAScript specification, switching to newer es-abstract 2024 primitives for element comparison and indexed sorting. The change also bumps several runtime and dev dependencies, and adds an engines.node field to package.json.
v1.1.3
2/5/2024This release, v1.1.3, makes internal refactors in the `Array.prototype.toSorted` shim implementation and updates several runtime and dev dependencies. No publisher release notes were provided, so the practical impact is inferred from the actual code and `package.json` changes.
v1.1.2
9/7/2023Release v1.1.2 was published on 2023-09-07, but no release notes or change log details were provided by the publisher. As a result, there is no documented information here about new features, fixes, breaking changes, or dependency updates.
v1.1.1
11/4/2022v1.1.1 primarily updates dependency versions and the underlying internal ES abstract operations used by the Array.prototype.toSorted shim. No API surface or function signatures appear to be changed in the published module code, but the switch to newer es-abstract (2022) internals could alter edge-case behavior. Release notes were not provided by the publisher for this version.
v1.1.0
8/15/2022Release v1.1.0 updates the Array.prototype.toSorted shim packaging and internal behavior, including registering `toSorted` in `Symbol.unscopables`. It also bumps several dependency versions and adds significant additional test coverage for array-like edge cases. No release notes were provided, so these changes are not explicitly documented by the publisher.
Featuresv1.0.0
3/31/2022This release is tagged v1.0.0, but no release notes were provided by the publisher. As a result, there is no documented information about new features, breaking changes, fixes, security, or migration steps in the release materials.