+11
-0
@@ -8,2 +8,13 @@ # Changelog | ||
| ## [v1.0.1](https://github.com/es-shims/Math.clz32/compare/v1.0.0...v1.0.1) - 2021-10-02 | ||
| ### Commits | ||
| - [actions] update workflows [`0517e9e`](https://github.com/es-shims/Math.clz32/commit/0517e9ebe8f530997f164fe006cef6aae8b41cb7) | ||
| - [Refactor] remove ESM entry points [`a3047e4`](https://github.com/es-shims/Math.clz32/commit/a3047e4fb7c276493710b8d65bba11a565279fab) | ||
| - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `@es-shims/api`, `aud`, `auto-changelog`, `tape` [`6867005`](https://github.com/es-shims/Math.clz32/commit/686700508129bf93a7a372516669b77ea8d2fedf) | ||
| - [readme] add github actions/codecov badges [`efea108`](https://github.com/es-shims/Math.clz32/commit/efea108e934ef0e2021c597360df9a552f927e95) | ||
| - [Deps] update `es-abstract` [`ae15fda`](https://github.com/es-shims/Math.clz32/commit/ae15fda29d39a424f593717e0c10ebfc1293432d) | ||
| - [Test] fix keys test in older nodes [`ee48056`](https://github.com/es-shims/Math.clz32/commit/ee48056f8ce88cf43e6dc102448aff6877f8ad07) | ||
| ## v1.0.0 - 2021-01-05 | ||
@@ -10,0 +21,0 @@ |
| 'use strict'; | ||
| var ToUint32 = require('es-abstract/2020/ToUint32'); | ||
| var Call = require('es-abstract/2020/Call'); | ||
| var ToUint32 = require('es-abstract/2021/ToUint32'); | ||
| var Call = require('es-abstract/2021/Call'); | ||
@@ -6,0 +6,0 @@ var $Number = Number; |
+11
-32
| { | ||
| "name": "math.clz32", | ||
| "version": "1.0.0", | ||
| "version": "1.0.1", | ||
| "description": "An ES-spec-compliant Math.clz32 shim/polyfill/replacement that works as far down as ES3", | ||
@@ -15,26 +15,5 @@ "main": "index.js", | ||
| ], | ||
| "./polyfill": [ | ||
| { | ||
| "import": "./polyfill.mjs", | ||
| "require": "./polyfill.js", | ||
| "default": "./polyfill.js" | ||
| }, | ||
| "./polyfill.js" | ||
| ], | ||
| "./implementation": [ | ||
| { | ||
| "import": "./implementation.mjs", | ||
| "require": "./implementation.js", | ||
| "default": "./implementation.js" | ||
| }, | ||
| "./implementation.js" | ||
| ], | ||
| "./shim": [ | ||
| { | ||
| "import": "./shim.mjs", | ||
| "require": "./shim.js", | ||
| "default": "./shim.js" | ||
| }, | ||
| "./shim.js" | ||
| ], | ||
| "./polyfill": "./polyfill.js", | ||
| "./implementation": "./implementation.js", | ||
| "./shim": "./shim.js", | ||
| "./auto": "./auto.js", | ||
@@ -78,7 +57,7 @@ "./package.json": "./package.json" | ||
| "devDependencies": { | ||
| "@es-shims/api": "^2.1.2", | ||
| "@ljharb/eslint-config": "^17.3.0", | ||
| "aud": "^1.1.3", | ||
| "auto-changelog": "^2.2.1", | ||
| "eslint": "^7.17.0", | ||
| "@es-shims/api": "^2.2.1", | ||
| "@ljharb/eslint-config": "^18.0.0", | ||
| "aud": "^1.1.5", | ||
| "auto-changelog": "^2.3.0", | ||
| "eslint": "^7.32.0", | ||
| "functions-have-names": "^1.2.2", | ||
@@ -89,7 +68,7 @@ "has-strict-mode": "^1.0.1", | ||
| "safe-publish-latest": "^1.1.4", | ||
| "tape": "^5.1.1" | ||
| "tape": "^5.3.1" | ||
| }, | ||
| "dependencies": { | ||
| "define-properties": "^1.1.3", | ||
| "es-abstract": "^1.18.0-next.1" | ||
| "es-abstract": "^1.19.0" | ||
| }, | ||
@@ -96,0 +75,0 @@ "auto-changelog": { |
+6
-0
| # Math.clz32 <sup>[![Version Badge][npm-version-svg]][package-url]</sup> | ||
| [![github actions][actions-image]][actions-url] | ||
| [![coverage][codecov-image]][codecov-url] | ||
| [![dependency status][deps-svg]][deps-url] | ||
@@ -41,1 +43,5 @@ [![dev dependency status][dev-deps-svg]][dev-deps-url] | ||
| [downloads-url]: https://npm-stat.com/charts.html?package=math.clz32 | ||
| [codecov-image]: https://codecov.io/gh/es-shims/Math.clz32/branch/main/graphs/badge.svg | ||
| [codecov-url]: https://app.codecov.io/gh/es-shims/Math.clz32/ | ||
| [actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/Math.clz32 | ||
| [actions-url]: https://github.com/es-shims/Math.clz32/actions |
+3
-3
@@ -19,7 +19,7 @@ import clz32, * as clz32Module from 'math.clz32'; | ||
| const { shim, getPolyfill, implementation } = clz32Module; | ||
| t.equal(await import('math.clz32/shim'), shim, 'shim named export matches deep export'); | ||
| t.equal(await import('math.clz32/implementation'), implementation, 'implementation named export matches deep export'); | ||
| t.equal(await import('math.clz32/polyfill'), getPolyfill, 'getPolyfill named export matches deep export'); | ||
| t.equal((await import('math.clz32/shim')).default, shim, 'shim named export matches deep export'); | ||
| t.equal((await import('math.clz32/implementation')).default, implementation, 'implementation named export matches deep export'); | ||
| t.equal((await import('math.clz32/polyfill')).default, getPolyfill, 'getPolyfill named export matches deep export'); | ||
| t.end(); | ||
| }); |
+1
-1
@@ -28,3 +28,3 @@ 'use strict'; | ||
| t.match(keys(Math.clz32).sort().join('|'), /^length|name(|prototype)?$/, 'has no unexpected own keys'); | ||
| t.match(keys(Math.clz32).sort().join('|'), /^(arguments\|caller\|)?length|name(\|prototype)?$/, 'has no unexpected own keys'); | ||
@@ -31,0 +31,0 @@ runTests(Math.clz32, t); |
| import implementation from './implementation.js'; | ||
| export default implementation; | ||
| export function then(resolve) { | ||
| resolve(implementation); | ||
| } |
| import polyfill from './polyfill.js'; | ||
| export default polyfill; | ||
| export function then(resolve) { | ||
| resolve(polyfill); | ||
| } |
-7
| import shim from './shim.js'; | ||
| export default shim; | ||
| export function then(resolve) { | ||
| resolve(shim); | ||
| } |
14881
4.75%47
14.63%19
-13.64%153
-8.93%Updated