node-exports-info
Advanced tools
+12
-0
@@ -8,2 +8,14 @@ # Changelog | ||
| ## [v1.6.1](https://github.com/inspect-js/node-exports-info/compare/v1.6.0...v1.6.1) - 2026-06-22 | ||
| ### Commits | ||
| - [actions] update workflows [`84b40f7`](https://github.com/inspect-js/node-exports-info/commit/84b40f7a9d8841becee9e09078122a23c5a95ba4) | ||
| - [Fix] `subpath-imports-slash`: include the v24.14 backport in the range [`bf17480`](https://github.com/inspect-js/node-exports-info/commit/bf17480e66b341451f3418d499176bfec876b831) | ||
| - [Dev Deps] update `@arethetypeswrong/cli`, `@ljharb/eslint-config`, `auto-changelog`, `eslint`, `tape` [`7bd6677`](https://github.com/inspect-js/node-exports-info/commit/7bd667741f36cce51a4074a25f8f45561dfadf90) | ||
| - [Fix] `subpath-imports-slash`: directory-slash exports are unsupported [`6a977ea`](https://github.com/inspect-js/node-exports-info/commit/6a977eaee9079f38353c28b72719850a1bc245d4) | ||
| - [Dev Deps] update `@arethetypeswrong/cli` [`65cbb4e`](https://github.com/inspect-js/node-exports-info/commit/65cbb4e210ebd57571ca792b0fc51f5906f2b7cd) | ||
| - [Dev Deps] update `eslint` [`4461a31`](https://github.com/inspect-js/node-exports-info/commit/4461a3164cd9a60a341e475800b9b2191d2f74b3) | ||
| - [readme] add related package [`77a71af`](https://github.com/inspect-js/node-exports-info/commit/77a71afefb98754e8fe0454e5448dbb5abcb56a5) | ||
| ## [v1.6.0](https://github.com/inspect-js/node-exports-info/compare/v1.5.1...v1.6.0) - 2026-01-28 | ||
@@ -10,0 +22,0 @@ |
@@ -41,4 +41,3 @@ 'use strict'; | ||
| 'pattern-trailers': true, | ||
| 'pattern-trailers+json-imports': true, | ||
| 'subpath-imports-slash': true | ||
| 'pattern-trailers+json-imports': true | ||
| }; | ||
@@ -45,0 +44,0 @@ |
+7
-8
| { | ||
| "name": "node-exports-info", | ||
| "version": "1.6.0", | ||
| "version": "1.6.1", | ||
| "description": "Info about node `exports` field support: version ranges, categories, etc.", | ||
@@ -67,14 +67,13 @@ "main": false, | ||
| "devDependencies": { | ||
| "@arethetypeswrong/cli": "^0.18.2", | ||
| "@ljharb/eslint-config": "^22.1.3", | ||
| "@arethetypeswrong/cli": "^0.18.4", | ||
| "@ljharb/eslint-config": "^22.2.3", | ||
| "@ljharb/tsconfig": "^0.3.2", | ||
| "@types/array.prototype.flatmap": "^1.2.6", | ||
| "@types/for-each": "^0.3.3", | ||
| "@types/node": "^16.18.126", | ||
| "@types/object-inspect": "^1.13.0", | ||
| "@types/object.entries": "^1.1.1", | ||
| "@types/semver": "^6.2.7", | ||
| "@types/tape": "^5.8.1", | ||
| "auto-changelog": "^2.5.0", | ||
| "auto-changelog": "^2.6.0", | ||
| "es-value-fixtures": "^1.7.1", | ||
| "eslint": "^9.39.2", | ||
| "eslint": "^10.5.0", | ||
| "for-each": "^0.3.5", | ||
@@ -87,3 +86,3 @@ "in-publish": "^2.0.1", | ||
| "safe-publish-latest": "^2.0.0", | ||
| "tape": "^5.9.0", | ||
| "tape": "^5.10.2", | ||
| "typescript": "next" | ||
@@ -90,0 +89,0 @@ }, |
+2
-2
| declare const ranges: { | ||
| __proto__: null; | ||
| '>= 25.4': 'subpath-imports-slash'; | ||
| '23.6 - 25.3 || ^22.18': 'strips-types'; | ||
| '^24.14 || >= 25.4': 'subpath-imports-slash'; | ||
| '23.6 - 24.13 || 25 - 25.3 || ^22.18': 'strips-types'; | ||
| '23 - 23.5 || 22.12 - 22.17 || ^20.19': 'require-esm'; | ||
@@ -6,0 +6,0 @@ '17.1 - 19 || 20 - 20.18 || ^21 || 22 - 22.11': 'pattern-trailers-no-dir-slash+json-imports'; |
+2
-2
@@ -6,4 +6,4 @@ 'use strict'; | ||
| __proto__: null, | ||
| '>= 25.4': 'subpath-imports-slash', // added in 25.4 | ||
| '23.6 - 25.3 || ^22.18': 'strips-types', // added in 23.6, backported to 22.18 | ||
| '^24.14 || >= 25.4': 'subpath-imports-slash', // added in 25.4, backported to 24.14 | ||
| '23.6 - 24.13 || 25 - 25.3 || ^22.18': 'strips-types', // added in 23.6, backported to 22.18 | ||
| '23 - 23.5 || 22.12 - 22.17 || ^20.19': 'require-esm', // added in 23.0, 22.12, 20.19 | ||
@@ -10,0 +10,0 @@ '17.1 - 19 || 20 - 20.18 || ^21 || 22 - 22.11': 'pattern-trailers-no-dir-slash+json-imports', |
+3
-2
@@ -24,4 +24,4 @@ # node-exports-info <sup>[![Version Badge][npm-version-svg]][package-url]</sup> | ||
| - `require-esm`: ESM files can be `require`d (`23 - 23.5 || 22.12 - 22.17 || ^20.19`) | ||
| - `strips-types`: these versions also automatically strip types from typescript files, for both `require` and `import` (`23.6 - 25.3 || ^22.18`) | ||
| - `subpath-imports-slash`: these versions support `#/` subpath imports patterns in the `imports` field, e.g. `"#/*": "./src/*.js"` (`>= 25.4`) | ||
| - `strips-types`: these versions also automatically strip types from typescript files, for both `require` and `import` (`23.6 - 24.13 || 25 - 25.3 || ^22.18`) | ||
| - `subpath-imports-slash`: these versions support `#/` subpath imports patterns in the `imports` field, e.g. `"#/*": "./src/*.js"` (`^24.14 || >= 25.4`) | ||
@@ -39,2 +39,3 @@ ## Entry points | ||
| ## Related packages | ||
| - [`node-imports-info`](https://www.npmjs.com/package/node-imports-info): the same, for the `imports` field | ||
| - [`has-package-exports`](https://www.npmjs.com/package/has-package-exports): feature-detect your node version’s `exports` support | ||
@@ -41,0 +42,0 @@ |
@@ -123,4 +123,4 @@ 'use strict'; | ||
| getCategoryFlags('subpath-imports-slash'), | ||
| { patterns: true, patternTrailers: true, dirSlash: true }, | ||
| 'subpath-imports-slash has all flags' | ||
| { patterns: true, patternTrailers: true, dirSlash: false }, | ||
| 'subpath-imports-slash has patterns and patternTrailers but not dirSlash' | ||
| ); | ||
@@ -127,0 +127,0 @@ |
+9
-1
@@ -40,4 +40,12 @@ 'use strict'; | ||
| 'v23.6.0', | ||
| 'v23.999.999', | ||
| 'v24.0.0', | ||
| 'v24.13.999', | ||
| 'v24.14.0', | ||
| 'v24.999.999', | ||
| 'v25.0.0', | ||
| 'v25.3.999', | ||
| 'v25.4.0' | ||
| 'v25.4.0', | ||
| 'v25.999.999', | ||
| 'v26.0.0' | ||
| ]; |
44528
3.62%20
-4.76%742
0.95%59
1.72%