typedarray.prototype.slice 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,20 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [v1.0.2](https://github.com/es-shims/TypedArray.prototype.slice/compare/v1.0.1...v1.0.2) - 2024-02-06
9
+
10
+ ### Commits
11
+
12
+ - [Dev Deps] update `aud`, `anvailable-typed-arrays`, `npmignore`, `object-inspect`, `tape` [`9334d4e`](https://github.com/es-shims/TypedArray.prototype.slice/commit/9334d4e47106747bdf08072c362352b189fa7778)
13
+ - [Deps] update `call-bind`, `define-properties`, `es-abstract`, `get-intrinsic` [`0acd649`](https://github.com/es-shims/TypedArray.prototype.slice/commit/0acd649f03baf849a88e27cd0dcfd78c400a5cb3)
14
+ - [Refactor] use `es-errors`, so things that only need those do not need `get-intrinsic` [`70215ad`](https://github.com/es-shims/TypedArray.prototype.slice/commit/70215adca0d4b948a9945cc7d5c0a7a70fbac2a8)
15
+
16
+ ## [v1.0.1](https://github.com/es-shims/TypedArray.prototype.slice/compare/v1.0.0...v1.0.1) - 2023-07-18
17
+
18
+ ### Commits
19
+
20
+ - [readme] fix title and URLs [`391dc87`](https://github.com/es-shims/TypedArray.prototype.slice/commit/391dc876acb64d7780fded8be0d65d5f0caab688)
21
+
8
22
  ## v1.0.0 - 2023-07-18
9
23
 
10
24
  ### Commits
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # ArrayBuffer.prototype.slice <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
1
+ # TypedArray.prototype.slice <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
2
2
 
3
3
  [![github actions][actions-image]][actions-url]
4
4
  [![coverage][codecov-image]][codecov-url]
@@ -7,9 +7,9 @@
7
7
 
8
8
  [![npm badge][npm-badge-png]][package-url]
9
9
 
10
- An ES spec-compliant `ArrayBuffer.prototype.slice` shim. Invoke its "shim" method to shim ArrayBuffer.prototype.slice if it is unavailable.
10
+ An ES spec-compliant `TypedArray.prototype.slice` shim. Invoke its "shim" method to shim TypedArray.prototype.slice if it is unavailable.
11
11
 
12
- This package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES5-supported environment and complies with the [spec](https://tc39.es/ecma262/#sec-arraybuffer.prototype.slice).
12
+ This package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES5-supported environment and complies with the [spec](https://tc39.es/ecma262/#sec-%typedarray%.prototype.slice).
13
13
 
14
14
  Most common usage:
15
15
  ```js
@@ -27,7 +27,7 @@ assert.deepEqual(arr, new Uint8Array([1, 2, 3]));
27
27
  assert.deepEqual(arr2, new Uint8Array([2, 3, 3]));
28
28
  assert.notEqual(arr.buffer, arr2.buffer);
29
29
 
30
- if (!ArrayBuffer.prototype.transfer) {
30
+ if (!Uint8Array.prototype.slice) {
31
31
  slice.shim();
32
32
  }
33
33
 
@@ -48,18 +48,18 @@ assert.notEqual(arr.buffer, arr3.buffer);
48
48
  ## Tests
49
49
  Simply clone the repo, `npm install`, and run `npm test`
50
50
 
51
- [package-url]: https://npmjs.org/package/arraybuffer.prototype.slice
52
- [npm-version-svg]: https://versionbadg.es/es-shims/ArrayBuffer.prototype.slice.svg
53
- [deps-svg]: https://david-dm.org/es-shims/ArrayBuffer.prototype.slice.svg
54
- [deps-url]: https://david-dm.org/es-shims/ArrayBuffer.prototype.slice
55
- [dev-deps-svg]: https://david-dm.org/es-shims/ArrayBuffer.prototype.slice/dev-status.svg
56
- [dev-deps-url]: https://david-dm.org/es-shims/ArrayBuffer.prototype.slice#info=devDependencies
57
- [npm-badge-png]: https://nodei.co/npm/arraybuffer.prototype.slice.png?downloads=true&stars=true
58
- [license-image]: https://img.shields.io/npm/l/arraybuffer.prototype.slice.svg
51
+ [package-url]: https://npmjs.org/package/typedarray.prototype.slice
52
+ [npm-version-svg]: https://versionbadg.es/es-shims/TypedArray.prototype.slice.svg
53
+ [deps-svg]: https://david-dm.org/es-shims/TypedArray.prototype.slice.svg
54
+ [deps-url]: https://david-dm.org/es-shims/TypedArray.prototype.slice
55
+ [dev-deps-svg]: https://david-dm.org/es-shims/TypedArray.prototype.slice/dev-status.svg
56
+ [dev-deps-url]: https://david-dm.org/es-shims/TypedArray.prototype.slice#info=devDependencies
57
+ [npm-badge-png]: https://nodei.co/npm/typedarray.prototype.slice.png?downloads=true&stars=true
58
+ [license-image]: https://img.shields.io/npm/l/typedarray.prototype.slice.svg
59
59
  [license-url]: LICENSE
60
- [downloads-image]: https://img.shields.io/npm/dm/arraybuffer.prototype.slice.svg
61
- [downloads-url]: https://npm-stat.com/charts.html?package=arraybuffer.prototype.slice
62
- [codecov-image]: https://codecov.io/gh/es-shims/ArrayBuffer.prototype.slice/branch/main/graphs/badge.svg
63
- [codecov-url]: https://app.codecov.io/gh/es-shims/ArrayBuffer.prototype.slice/
64
- [actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/ArrayBuffer.prototype.slice
65
- [actions-url]: https://github.com/es-shims/ArrayBuffer.prototype.slice/actions
60
+ [downloads-image]: https://img.shields.io/npm/dm/typedarray.prototype.slice.svg
61
+ [downloads-url]: https://npm-stat.com/charts.html?package=typedarray.prototype.slice
62
+ [codecov-image]: https://codecov.io/gh/es-shims/TypedArray.prototype.slice/branch/main/graphs/badge.svg
63
+ [codecov-url]: https://app.codecov.io/gh/es-shims/TypedArray.prototype.slice/
64
+ [actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/TypedArray.prototype.slice
65
+ [actions-url]: https://github.com/es-shims/TypedArray.prototype.slice/actions
package/implementation.js CHANGED
@@ -1,8 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var GetIntrinsic = require('get-intrinsic');
4
-
5
- var $TypeError = GetIntrinsic('%TypeError%');
3
+ var $TypeError = require('es-errors/type');
6
4
 
7
5
  var Get = require('es-abstract/2023/Get');
8
6
  var GetValueFromBuffer = require('es-abstract/2023/GetValueFromBuffer');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "typedarray.prototype.slice",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "ES spec-compliant shim for TypedArray.prototype.slice",
5
5
  "author": "Jordan Harband <ljharb@gmail.com>",
6
6
  "funding": {
@@ -53,19 +53,19 @@
53
53
  "es-shim API"
54
54
  ],
55
55
  "dependencies": {
56
- "call-bind": "^1.0.2",
57
- "define-properties": "^1.2.0",
58
- "es-abstract": "^1.22.1",
59
- "get-intrinsic": "^1.2.1",
56
+ "call-bind": "^1.0.6",
57
+ "define-properties": "^1.2.1",
58
+ "es-abstract": "^1.22.3",
59
+ "es-errors": "^1.3.0",
60
60
  "typed-array-buffer": "^1.0.0",
61
61
  "typed-array-byte-offset": "^1.0.0"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@es-shims/api": "^2.4.2",
65
65
  "@ljharb/eslint-config": "^21.1.0",
66
- "aud": "^2.0.3",
66
+ "aud": "^2.0.4",
67
67
  "auto-changelog": "^2.4.0",
68
- "available-typed-arrays": "^1.0.5",
68
+ "available-typed-arrays": "^1.0.6",
69
69
  "eclint": "^2.8.1",
70
70
  "es-value-fixtures": "^1.4.2",
71
71
  "eslint": "=8.8.0",
@@ -74,11 +74,11 @@
74
74
  "functions-have-names": "^1.2.3",
75
75
  "has-strict-mode": "^1.0.1",
76
76
  "in-publish": "^2.0.1",
77
- "npmignore": "^0.3.0",
77
+ "npmignore": "^0.3.1",
78
78
  "nyc": "^10.3.2",
79
- "object-inspect": "^1.12.3",
79
+ "object-inspect": "^1.13.1",
80
80
  "safe-publish-latest": "^2.0.0",
81
- "tape": "^5.6.6"
81
+ "tape": "^5.7.4"
82
82
  },
83
83
  "testling": {
84
84
  "files": "test/index.js"