@nubjs/extensions 1.0.1 → 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 +16 -6
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
# @nubjs/extensions
|
|
2
2
|
|
|
3
|
-
|
|
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
|
-
```
|
|
6
|
-
|
|
7
|
-
// Array<[selector, { dependencies?, peerDependencies?, peerDependenciesMeta? }]>
|
|
5
|
+
```sh
|
|
6
|
+
npm add -D @nubjs/extensions
|
|
8
7
|
```
|
|
9
8
|
|
|
10
|
-
|
|
9
|
+
## Drop-in for `@yarnpkg/extensions`
|
|
11
10
|
|
|
12
|
-
|
|
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,4 +1,4 @@
|
|
|
1
|
-
// @nubjs/extensions 1.0.
|
|
1
|
+
// @nubjs/extensions 1.0.2 — generated 2026-09-08, do not edit.
|
|
2
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.
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @nubjs/extensions 1.0.
|
|
1
|
+
// @nubjs/extensions 1.0.2 — generated 2026-09-08, do not edit.
|
|
2
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.
|
package/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @nubjs/extensions 1.0.
|
|
1
|
+
// @nubjs/extensions 1.0.2 — generated 2026-09-08, do not edit.
|
|
2
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.
|
package/package.json
CHANGED