has-package-exports
Advanced tools
Comparing version 1.2.3 to 1.3.0
@@ -8,2 +8,17 @@ # Changelog | ||
## [v1.3.0](https://github.com/inspect-js/has-package-exports/compare/v1.2.3...v1.3.0) - 2022-04-07 | ||
### Commits | ||
- [actions] reuse common workflows [`37270a0`](https://github.com/inspect-js/has-package-exports/commit/37270a022f12c399149249a1ec4d16c35032bf4a) | ||
- [New] add `pattern-trailers` detection [`b36a91e`](https://github.com/inspect-js/has-package-exports/commit/b36a91ec6bfb64e65ea05c423670d8999a7c3a96) | ||
- [actions] update codecov uploader [`bb74650`](https://github.com/inspect-js/has-package-exports/commit/bb746507a4299dfd0daa4ba45d529aa1d329f74f) | ||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `safe-publish-latest`, `tape` [`7e99915`](https://github.com/inspect-js/has-package-exports/commit/7e999150b9a9d4bd9e408f3664b059e0c81e7be2) | ||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `tape` [`cbfec0f`](https://github.com/inspect-js/has-package-exports/commit/cbfec0fc14677725e1954686014b63ffe9444423) | ||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `auto-changelog`, `safe-publish-latest`, `tape` [`3cf312d`](https://github.com/inspect-js/has-package-exports/commit/3cf312dbcde4773f773fdd28223701b5b08372d7) | ||
- [@ljharb/has-package-exports-patterns] [new] add pattern-trailers fixtures [`b1089da`](https://github.com/inspect-js/has-package-exports/commit/b1089da7349140201c12f50ff55080e63fae59c8) | ||
- [meta] handle npm failures in node < 4 [`3e609b2`](https://github.com/inspect-js/has-package-exports/commit/3e609b298ad72ee080241ff1a2fe51951b562bcf) | ||
- [@ljharb/has-package-exports-patterns] v0.0.2 [`f0f693d`](https://github.com/inspect-js/has-package-exports/commit/f0f693d8e03b9be35d8559df09f9d29cc93f0810) | ||
- [Dev Deps] add `in-publish`, for npm < 5 [`85cc816`](https://github.com/inspect-js/has-package-exports/commit/85cc8169287de35b0b07978f0e1d3fff201843d3) | ||
## [v1.2.3](https://github.com/inspect-js/has-package-exports/compare/v1.2.2...v1.2.3) - 2021-05-02 | ||
@@ -10,0 +25,0 @@ |
{ | ||
"name": "has-package-exports", | ||
"version": "1.2.3", | ||
"version": "1.3.0", | ||
"description": "Does the current node version have support for the \"exports\" field in package.json?", | ||
@@ -28,8 +28,9 @@ "main": "no", | ||
], | ||
"./pattern": "./pattern.js" | ||
"./pattern": "./pattern.js", | ||
"./pattern-trailers": "./pattern-trailers.js" | ||
}, | ||
"scripts": { | ||
"prepublish": "not-in-publish || npm run prepublishOnly", | ||
"prepublish": "!(type safe-publish-latest 2>&1 >/dev/null) || not-in-publish || npm run prepublishOnly", | ||
"prepublishOnly": "safe-publish-latest", | ||
"lint": "eslint .", | ||
"lint": "eslint --ext=js,mjs .", | ||
"pretest": "npm run lint", | ||
@@ -62,14 +63,14 @@ "test": "npm run tests-only", | ||
"dependencies": { | ||
"@ljharb/has-package-exports-patterns": "0.0.1" | ||
"@ljharb/has-package-exports-patterns": "^0.0.2" | ||
}, | ||
"devDependencies": { | ||
"@ljharb/eslint-config": "^17.6.0", | ||
"aud": "^1.1.5", | ||
"auto-changelog": "^2.2.1", | ||
"eslint": "^7.25.0", | ||
"@ljharb/eslint-config": "^20.2.3", | ||
"aud": "^2.0.0", | ||
"auto-changelog": "^2.4.0", | ||
"eslint": "=8.8.0", | ||
"has-package-exports": "file:.", | ||
"nyc": "^10.3.2", | ||
"safe-publish-latest": "^1.1.4", | ||
"safe-publish-latest": "^2.0.0", | ||
"semver": "^6.3.0", | ||
"tape": "^5.2.2" | ||
"tape": "^5.5.2" | ||
}, | ||
@@ -76,0 +77,0 @@ "greenkeeper": { |
@@ -20,2 +20,4 @@ # has-package-exports <sup>[![Version Badge][npm-version-svg]][package-url]</sup> | ||
Require or import `has-package-exports/pattern-trailers` to determine if the current environment supports exports pattern trailers (as of this writing, node v14.19+ and v16.9+). | ||
## Tests | ||
@@ -22,0 +24,0 @@ Simply clone the repo, `npm install`, and run `npm test` |
@@ -8,2 +8,3 @@ 'use strict'; | ||
var hasPackageExportPatterns = require('has-package-exports/pattern'); | ||
var hasPackageExportPatternTrailers = require('has-package-exports/pattern-trailers'); | ||
// eslint-disable-next-line global-require | ||
@@ -35,3 +36,6 @@ var spawnSync = typeof window === 'undefined' && require('child_process').spawnSync; | ||
var expectedPatternTrailers = typeof window === 'undefined' ? semver.satisfies(process.version, '^14.19 || >= 16.9') : null; | ||
t.equal(hasPackageExportPatternTrailers, expectedPatternTrailers, './pattern-trailers entrypoint exports expected value: ' + expectedPatternTrailers); | ||
t.end(); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19477
58
36
+ Added@ljharb/has-package-exports-patterns@0.0.2(transitive)
- Removed@ljharb/has-package-exports-patterns@0.0.1(transitive)