@nubjs/extensions 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/README.md CHANGED
@@ -1,12 +1,22 @@
1
1
  # @nubjs/extensions
2
2
 
3
- A drop-in replacement for `@yarnpkg/extensions` carrying 812 packages instead of 159.
3
+ Undeclared dependencies across the 10,000 most-downloaded packages on npm, published as a `packageExtensions` database that pnpm and Yarn read directly. Nub's phantom detector parses every published tarball in that corpus and resolves what the code imports against what the manifest declares.
4
4
 
5
- ```js
6
- import { packageExtensions } from '@nubjs/extensions';
7
- // Array<[selector, { dependencies?, peerDependencies?, peerDependenciesMeta? }]>
5
+ ```sh
6
+ npm add -D @nubjs/extensions
8
7
  ```
9
8
 
10
- Every rule from `@yarnpkg/extensions@2.0.7` is included verbatim, so nothing that works today stops working. The rest comes from scanning the 10000 most-downloaded packages on npm for imports their manifests never declare.
9
+ ## Drop-in for `@yarnpkg/extensions`
11
10
 
12
- Method, per-entry evidence and the ready-to-paste config blocks: https://github.com/nubjs/package-extensions
11
+ Change the specifier and nothing else changes. Same export name, same `Array<[selector, data]>` shape, same CommonJS and ESM entry points, no dependencies.
12
+
13
+ ```diff
14
+ - import { packageExtensions } from '@yarnpkg/extensions';
15
+ + import { packageExtensions } from '@nubjs/extensions';
16
+ ```
17
+
18
+ ## A strict superset of Yarn's database
19
+
20
+ Every rule in `@yarnpkg/extensions@2.0.7` is carried through field for field: the same range, the same manifest field, and a peer Yarn declared required is never relaxed to optional. Every pnpm install already merges that database unless `ignoreCompatibilityDb` is set, so a replacement that dropped a single rule would break installs that work today — a gate fails the build if any rule is weakened.
21
+
22
+ Method, per-entry evidence and the ready-to-paste config blocks for pnpm and Yarn: https://github.com/nubjs/package-extensions
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- // @nubjs/extensions 1.0.0 — generated 2026-09-06, do not edit.
2
- // 812 packages, 1190 undeclared dependencies found by scanning
1
+ // @nubjs/extensions 1.0.2 — generated 2026-09-08, do not edit.
2
+ // 811 packages, 1188 undeclared dependencies found by scanning
3
3
  // the 10000 most-downloaded npm packages, plus every rule from
4
4
  // @yarnpkg/extensions@2.0.7.
5
5
  // https://github.com/nubjs/package-extensions
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
- // @nubjs/extensions 1.0.0 — generated 2026-09-06, do not edit.
2
- // 812 packages, 1190 undeclared dependencies found by scanning
1
+ // @nubjs/extensions 1.0.2 — generated 2026-09-08, do not edit.
2
+ // 811 packages, 1188 undeclared dependencies found by scanning
3
3
  // the 10000 most-downloaded npm packages, plus every rule from
4
4
  // @yarnpkg/extensions@2.0.7.
5
5
  // https://github.com/nubjs/package-extensions
@@ -5832,19 +5832,6 @@ exports.packageExtensions = [
5832
5832
  }
5833
5833
  }
5834
5834
  ],
5835
- [
5836
- "ast-v8-to-istanbul@*",
5837
- {
5838
- "peerDependencies": {
5839
- "istanbul-lib-coverage": "*"
5840
- },
5841
- "peerDependenciesMeta": {
5842
- "istanbul-lib-coverage": {
5843
- "optional": true
5844
- }
5845
- }
5846
- }
5847
- ],
5848
5835
  [
5849
5836
  "astring@*",
5850
5837
  {
@@ -9317,7 +9304,6 @@ exports.packageExtensions = [
9317
9304
  "peerDependencies": {
9318
9305
  "call-me-maybe": "*",
9319
9306
  "fast-safe-stringify": "*",
9320
- "null": "*",
9321
9307
  "yaml": "*"
9322
9308
  },
9323
9309
  "peerDependenciesMeta": {
@@ -9327,9 +9313,6 @@ exports.packageExtensions = [
9327
9313
  "fast-safe-stringify": {
9328
9314
  "optional": true
9329
9315
  },
9330
- "null": {
9331
- "optional": true
9332
- },
9333
9316
  "yaml": {
9334
9317
  "optional": true
9335
9318
  }
package/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- // @nubjs/extensions 1.0.0 — generated 2026-09-06, do not edit.
2
- // 812 packages, 1190 undeclared dependencies found by scanning
1
+ // @nubjs/extensions 1.0.2 — generated 2026-09-08, do not edit.
2
+ // 811 packages, 1188 undeclared dependencies found by scanning
3
3
  // the 10000 most-downloaded npm packages, plus every rule from
4
4
  // @yarnpkg/extensions@2.0.7.
5
5
  // https://github.com/nubjs/package-extensions
@@ -5830,19 +5830,6 @@ export const packageExtensions = [
5830
5830
  }
5831
5831
  }
5832
5832
  ],
5833
- [
5834
- "ast-v8-to-istanbul@*",
5835
- {
5836
- "peerDependencies": {
5837
- "istanbul-lib-coverage": "*"
5838
- },
5839
- "peerDependenciesMeta": {
5840
- "istanbul-lib-coverage": {
5841
- "optional": true
5842
- }
5843
- }
5844
- }
5845
- ],
5846
5833
  [
5847
5834
  "astring@*",
5848
5835
  {
@@ -9315,7 +9302,6 @@ export const packageExtensions = [
9315
9302
  "peerDependencies": {
9316
9303
  "call-me-maybe": "*",
9317
9304
  "fast-safe-stringify": "*",
9318
- "null": "*",
9319
9305
  "yaml": "*"
9320
9306
  },
9321
9307
  "peerDependenciesMeta": {
@@ -9325,9 +9311,6 @@ export const packageExtensions = [
9325
9311
  "fast-safe-stringify": {
9326
9312
  "optional": true
9327
9313
  },
9328
- "null": {
9329
- "optional": true
9330
- },
9331
9314
  "yaml": {
9332
9315
  "optional": true
9333
9316
  }