@pnpm/installing.linking.real-hoist 1100.1.8 → 1100.1.9

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/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @pnpm/real-hoist
2
2
 
3
+ ## 1100.1.9
4
+
5
+ ### Patch Changes
6
+
7
+ - Republished every package: the tarballs published by the v11.13.1 through v11.16.0 releases were missing most of their compiled files due to a packing bug [#13164](https://github.com/pnpm/pnpm/issues/13164).
8
+
9
+ - Updated dependencies:
10
+ - @pnpm/deps.path@1100.0.11
11
+ - @pnpm/error@1100.1.0
12
+ - @pnpm/lockfile.utils@1100.1.5
13
+
3
14
  ## 1100.1.8
4
15
 
5
16
  ### Patch Changes
package/lib/index.d.ts ADDED
@@ -0,0 +1,29 @@
1
+ import { type LockfileObject } from '@pnpm/lockfile.utils';
2
+ import { type HoisterResult } from '@yarnpkg/nm/hoist';
3
+ /**
4
+ * Controls how far dependencies are hoisted, mirroring yarn's
5
+ * `nmHoistingLimits`. Given workspace package `A` → `B` → `C`:
6
+ *
7
+ * - `'none'` (default): hoist as far as possible.
8
+ * - `/packages/A`, `/node_modules/B`, `/node_modules/C`
9
+ * - `'workspaces'`: hoist only as far as each workspace package.
10
+ * - `/packages/A`, `/packages/A/node_modules/B`, `/packages/A/node_modules/C`
11
+ * - `'dependencies'`: hoist only up to each workspace package's direct
12
+ * dependencies.
13
+ * - `/packages/A`, `/packages/A/node_modules/B`, `/packages/A/node_modules/B/node_modules/C`
14
+ */
15
+ export type HoistingLimits = 'none' | 'workspaces' | 'dependencies';
16
+ export type { HoisterResult };
17
+ /**
18
+ * Translate the user-facing {@link HoistingLimits} mode into the
19
+ * `@yarnpkg/nm` hoister's per-locator border map. A name in a
20
+ * locator's set is a hoisting border: that node's dependencies are
21
+ * not hoisted above it. Returns `undefined` for `'none'` (and when
22
+ * unset) so the hoister hoists as far as possible.
23
+ */
24
+ export declare function getHoistingLimits(lockfile: Pick<LockfileObject, 'importers'>, mode: HoistingLimits | undefined): Map<string, Set<string>> | undefined;
25
+ export declare function hoist(lockfile: LockfileObject, opts?: {
26
+ hoistingLimits?: HoistingLimits;
27
+ externalDependencies?: Set<string>;
28
+ autoInstallPeers?: boolean;
29
+ }): HoisterResult;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/installing.linking.real-hoist",
3
- "version": "1100.1.8",
3
+ "version": "1100.1.9",
4
4
  "description": "Hoists dependencies in a node_modules created by pnpm",
5
5
  "keywords": [
6
6
  "pnpm",
@@ -27,17 +27,17 @@
27
27
  "!*.map"
28
28
  ],
29
29
  "dependencies": {
30
- "@pnpm/deps.path": "1100.0.10",
31
- "@pnpm/error": "1100.0.1",
32
- "@pnpm/lockfile.utils": "1100.1.4",
30
+ "@pnpm/deps.path": "1100.0.11",
31
+ "@pnpm/error": "1100.1.0",
32
+ "@pnpm/lockfile.utils": "1100.1.5",
33
33
  "@yarnpkg/nm": "4.0.7"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@jest/globals": "30.4.1",
37
- "@pnpm/installing.linking.real-hoist": "1100.1.8",
38
- "@pnpm/lockfile.fs": "1100.1.13",
39
- "@pnpm/test-fixtures": "1100.0.0",
40
- "@pnpm/types": "1101.5.0"
37
+ "@pnpm/installing.linking.real-hoist": "1100.1.9",
38
+ "@pnpm/lockfile.fs": "1100.1.14",
39
+ "@pnpm/test-fixtures": "1100.0.1",
40
+ "@pnpm/types": "1101.6.0"
41
41
  },
42
42
  "engines": {
43
43
  "node": ">=22.13"