which-typed-array
Advanced tools
| import ljharbConfig from '@ljharb/eslint-config/flat'; | ||
| export default [ | ||
| ...ljharbConfig, | ||
| { | ||
| rules: { | ||
| 'max-statements-per-line': ['error', { max: 2 }], | ||
| 'no-extra-parens': 'off', | ||
| }, | ||
| }, | ||
| ]; |
+11
-0
@@ -8,2 +8,13 @@ # Changelog | ||
| ## [v1.1.21](https://github.com/inspect-js/which-typed-array/compare/v1.1.20...v1.1.21) - 2026-05-26 | ||
| ### Commits | ||
| - [types] add Float16Array [`b3dac9f`](https://github.com/inspect-js/which-typed-array/commit/b3dac9f6931f463d10b7e21b1b5e5369602642c4) | ||
| - [Dev Deps] update `eslint`, `@ljharb/eslint-config`; migrate to flat config [`2dd9b04`](https://github.com/inspect-js/which-typed-array/commit/2dd9b04cd3f461a0f4b19c607124e134e12df135) | ||
| - [Dev Deps] update `@ljharb/eslint-config`, `auto-changelog`, `eslint` [`b46f6a2`](https://github.com/inspect-js/which-typed-array/commit/b46f6a2f000e932f7b78c54b9dce0bf940379fea) | ||
| - [Tests] pin `fflate` to 0.8.2 [`06eb54e`](https://github.com/inspect-js/which-typed-array/commit/06eb54e4ee7369da3639a2291a1c6add642e53fb) | ||
| - [Dev Deps] update `eslint` [`2181d61`](https://github.com/inspect-js/which-typed-array/commit/2181d61990f20c82c84d06bcd4a91ba70b486bc1) | ||
| - [Deps] update `call-bind` [`ca58bca`](https://github.com/inspect-js/which-typed-array/commit/ca58bca5034adcbfc05797ffde7e9134c9df4a72) | ||
| ## [v1.1.20](https://github.com/inspect-js/which-typed-array/compare/v1.1.19...v1.1.20) - 2026-01-14 | ||
@@ -10,0 +21,0 @@ |
+4
-26
@@ -14,2 +14,3 @@ /** | ||
| declare function whichTypedArray(value: Uint32Array): 'Uint32Array'; | ||
| declare function whichTypedArray(value: Float16Array): 'Float16Array'; | ||
| declare function whichTypedArray(value: Float32Array): 'Float32Array'; | ||
@@ -24,15 +25,3 @@ declare function whichTypedArray(value: Float64Array): 'Float64Array'; | ||
| declare namespace whichTypedArray { | ||
| export type TypedArrayName = | ||
| | 'Int8Array' | ||
| | 'Uint8Array' | ||
| | 'Uint8ClampedArray' | ||
| | 'Int16Array' | ||
| | 'Uint16Array' | ||
| | 'Int32Array' | ||
| | 'Uint32Array' | ||
| | 'Float32Array' | ||
| | 'Float64Array' | ||
| | 'Float16Array' | ||
| | 'BigInt64Array' | ||
| | 'BigUint64Array'; | ||
| export type TypedArrayName = ReturnType<typeof import('available-typed-arrays')>[number]; | ||
@@ -47,2 +36,3 @@ export type TypedArray = | ||
| | Uint32Array | ||
| | Float16Array | ||
| | Float32Array | ||
@@ -54,17 +44,5 @@ | Float64Array | ||
| export type TypedArrayConstructor = | ||
| | Int8ArrayConstructor | ||
| | Uint8ArrayConstructor | ||
| | Uint8ClampedArrayConstructor | ||
| | Int16ArrayConstructor | ||
| | Uint16ArrayConstructor | ||
| | Int32ArrayConstructor | ||
| | Uint32ArrayConstructor | ||
| | Float32ArrayConstructor | ||
| | Float64ArrayConstructor | ||
| | Float16ArrayConstructor | ||
| | BigInt64ArrayConstructor | ||
| | BigUint64ArrayConstructor; | ||
| export type TypedArrayConstructor = typeof globalThis[TypedArrayName]; | ||
| } | ||
| export = whichTypedArray; |
+10
-7
| { | ||
| "name": "which-typed-array", | ||
| "version": "1.1.20", | ||
| "version": "1.1.21", | ||
| "author": { | ||
@@ -33,3 +33,3 @@ "name": "Jordan Harband", | ||
| "posttest": "npx npm@'>=10.2' audit --production", | ||
| "lint": "eslint --ext=js,mjs .", | ||
| "lint": "eslint .", | ||
| "postlint": "tsc -p . && attw -P", | ||
@@ -65,3 +65,3 @@ "version": "auto-changelog && git add CHANGELOG.md", | ||
| "available-typed-arrays": "^1.0.7", | ||
| "call-bind": "^1.0.8", | ||
| "call-bind": "^1.0.9", | ||
| "call-bound": "^1.0.4", | ||
@@ -75,3 +75,3 @@ "for-each": "^0.3.5", | ||
| "@arethetypeswrong/cli": "^0.18.2", | ||
| "@ljharb/eslint-config": "^22.1.3", | ||
| "@ljharb/eslint-config": "^22.2.3", | ||
| "@ljharb/tsconfig": "^0.3.2", | ||
@@ -85,7 +85,7 @@ "@types/call-bind": "^1.0.5", | ||
| "@types/tape": "^5.8.1", | ||
| "auto-changelog": "^2.5.0", | ||
| "encoding": "^0.1.13", | ||
| "eslint": "^8.57.1", | ||
| "auto-changelog": "^2.5.1", | ||
| "eslint": "^10.4.0", | ||
| "in-publish": "^2.0.1", | ||
| "is-callable": "^1.2.7", | ||
| "jiti": "^0.0.0", | ||
| "make-arrow-function": "^1.2.0", | ||
@@ -133,3 +133,6 @@ "make-generator-function": "^2.1.0", | ||
| ] | ||
| }, | ||
| "overrides": { | ||
| "fflate": "=0.8.2" | ||
| } | ||
| } |
-10
| { | ||
| "root": true, | ||
| "extends": "@ljharb", | ||
| "rules": { | ||
| "max-statements-per-line": [2, { "max": 2 }], | ||
| "no-extra-parens": 0, | ||
| }, | ||
| } |
45536
1.57%265
-4.33%Updated