Back to Explore

es-shims/Array.prototype.toSorted

GitHub
3 watchersOpen source

Last release:

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 source appears not to be actively maintained today, with the last upstream push on 2024-06-03, and no updates since that date in the provided history (gap of over two years as of 2026-09-10).
  • The update cadence has been sporadic, with the most recent updates clustering in 2024 (v1.1.3 and v1.1.4), then earlier updates in 2023 and 2022, indicating no steady recent cadence.

AI summary generated

AI-generated from public sources. May be inaccurate. Report

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.

    Features
  • v1.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.