UNPKG

array.prototype.splice

Version:

An ES5 spec-compliant `Array.prototype.splice` shim/polyfill/replacement that works as far down as ES3.

70 lines (46 loc) 5.64 kB
# Changelog All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [v1.0.6](https://github.com/es-shims/Array.prototype.splice/compare/v1.0.5...v1.0.6) - 2025-03-14 ### Commits - [Deps] update `call-bind`, `es-abstract`, `es-object-atoms`, `get-intrinsic`, `is-string` [`87c32ac`](https://github.com/es-shims/Array.prototype.splice/commit/87c32aca6034f79202f199882c326d63b03d873e) - [Dev Deps] update `@es-shims/api`, `@ljharb/eslint-config`, `auto-changelog`, `has-strict-mode`, `tape` [`1596d3b`](https://github.com/es-shims/Array.prototype.splice/commit/1596d3bde0892d76328088fa037477b9dc881fb2) - [Refactor] use `call-bound` directly [`d1aca67`](https://github.com/es-shims/Array.prototype.splice/commit/d1aca6718eac893909a89e9057759ce61b90d3f1) - [Tests] replace `aud` with `npm audit` [`0d51e2e`](https://github.com/es-shims/Array.prototype.splice/commit/0d51e2eac58726c26c3d8398ff7c57a5e2a76cf9) - [Dev Deps] add missing peer dep [`6450b29`](https://github.com/es-shims/Array.prototype.splice/commit/6450b29fae7c4e9341cf998307e97c014d4c47db) ## [v1.0.5](https://github.com/es-shims/Array.prototype.splice/compare/v1.0.4...v1.0.5) - 2024-03-20 ### Commits - [Deps] update `call-bind`, `es-abstract`, `es-errors`, `get-intrinsic` [`001a03c`](https://github.com/es-shims/Array.prototype.splice/commit/001a03cc611546994081304da6121074d7e2c26e) - [actions] use reusable workflows [`5b2dcac`](https://github.com/es-shims/Array.prototype.splice/commit/5b2dcac45da746f15b135c648e2dcccd133df717) - [Refactor] use `es-object-atoms` where possible [`6d67717`](https://github.com/es-shims/Array.prototype.splice/commit/6d67717e96d83012aece9fd5788ff614f2431ea6) - [Dev Deps] update `tape` [`b76ad1f`](https://github.com/es-shims/Array.prototype.splice/commit/b76ad1fb400762b4b0158f493f800d2c4187a3dc) ## [v1.0.4](https://github.com/es-shims/Array.prototype.splice/compare/v1.0.3...v1.0.4) - 2024-02-04 ### Commits - [Deps] update `call-bind`, `define-properties`, `es-abstract`, `get-intrinsic` [`a3f4dfb`](https://github.com/es-shims/Array.prototype.splice/commit/a3f4dfb45601239b4fb7ae03c83e3766f2a08fa8) - [Dev Deps] update `aud`, `npmignore`, `tape` [`f60825e`](https://github.com/es-shims/Array.prototype.splice/commit/f60825e2d1b66376a6f03eb3272b84d606e514fe) - [Refactor] use `es-errors` where possible, so things that only need those do not need `get-intrinsic` [`19b46a8`](https://github.com/es-shims/Array.prototype.splice/commit/19b46a80229fd675bf43c325e72342d001a1a3f1) ## [v1.0.3](https://github.com/es-shims/Array.prototype.splice/compare/v1.0.2...v1.0.3) - 2023-09-01 ### Commits - [Deps] update `define-properties`, `es-abstract`, `get-intrinsic` [`f24f412`](https://github.com/es-shims/Array.prototype.splice/commit/f24f412a95d935ed1a04d1f5cff76183f9046209) - [Dev Deps] update `@es-shims/api`, `@ljharb/eslint-config`, `aud`, `tape` [`8edd988`](https://github.com/es-shims/Array.prototype.splice/commit/8edd98857487e2dfba53049bcfb4444c7d055275) - [actions] fix permissions [`853b8a9`](https://github.com/es-shims/Array.prototype.splice/commit/853b8a9c507128f8af0488c77b91f2d5bca8b1b1) ## [v1.0.2](https://github.com/es-shims/Array.prototype.splice/compare/v1.0.1...v1.0.2) - 2022-11-04 ### Commits - [meta] use `npmignore` to autogenerate an npmignore file [`77d693c`](https://github.com/es-shims/Array.prototype.splice/commit/77d693cf4abf71e0ca29c5f2e65e5e6df883f5bd) - [Deps] update `define-properties`, `es-abstract`, `get-intrinsic` [`074c5a9`](https://github.com/es-shims/Array.prototype.splice/commit/074c5a94c09a6a23decc5333acac7192943ab149) - [actions] update rebase action to use reusable workflow [`7cc3529`](https://github.com/es-shims/Array.prototype.splice/commit/7cc352921b374af62031dcc046bbb6a2f646cc4f) - [Dev Deps] update `aud`, `functions-have-names`, `tape` [`832cc23`](https://github.com/es-shims/Array.prototype.splice/commit/832cc231952c3c0f0ab822b4ea0f08613e3a4a5d) ## [v1.0.1](https://github.com/es-shims/Array.prototype.splice/compare/v1.0.0...v1.0.1) - 2022-04-13 ### Commits - [Fix] IE 8 and pre-ES6 engines need a full reimplementation [`0457bd5`](https://github.com/es-shims/Array.prototype.splice/commit/0457bd563adc4ebbddac8e975f0eb407501dcb70) - [Tests] add some intermediate assertions to splice chains [`c873f6c`](https://github.com/es-shims/Array.prototype.splice/commit/c873f6c7b836d2f560a71e6cd8f613da195f675f) - [readme] add note about engines that need the polyfill [`cbfd52f`](https://github.com/es-shims/Array.prototype.splice/commit/cbfd52fc18704ab09ac809254f54b1c5eb5ab34e) - [Tests] skip strict mode tests in non-strict-mode engines [`2d9750b`](https://github.com/es-shims/Array.prototype.splice/commit/2d9750b82747886650987d1e4dd5c3a846984018) - [Deps] update `es-abstract` [`155f96f`](https://github.com/es-shims/Array.prototype.splice/commit/155f96f328426355039840e3ddf135ffe161542b) ## v1.0.0 - 2022-04-13 ### Commits - Initial implementation, tests, readme [`b1eaea4`](https://github.com/es-shims/Array.prototype.splice/commit/b1eaea451ade7ebf11aabbb1b139033830a75bb0) - Initial commit [`7c46eca`](https://github.com/es-shims/Array.prototype.splice/commit/7c46eca5a3b48ae701c3445e50b7c2e0b6adde7c) - npm init [`d5ce5d3`](https://github.com/es-shims/Array.prototype.splice/commit/d5ce5d3d0f262e2d63bca89738c00508d8b3e0a9) - Only apps should have lockfiles [`0152e2f`](https://github.com/es-shims/Array.prototype.splice/commit/0152e2f02fd971eb9dbe9c3bd74290e59e24dd5a)