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
- Maintenance status: The last upstream push and published update are from 2024-06-03, and there have been no evidence-backed updates since then, so the project appears quiet or in maintenance mode rather than actively maintained as of 2026-06-09.
- Update cadence: Updates were somewhat frequent in 2022 to 2024 (roughly every few to several months early on, then v1.1.4 in mid-2024), followed by a gap of nearly two years with no further updates evidenced here.
AI summary generated
Recent updates
v1.1.4
v1.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
This 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
Release 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
v1.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
Release 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
This 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.