@pnpm/fetching.fetcher-base 1100.2.3 → 1100.2.5

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,23 @@
1
1
  # @pnpm/fetcher-base
2
2
 
3
+ ## 1100.2.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies:
8
+ - @pnpm/resolving.resolver-base@1100.5.5
9
+ - @pnpm/types@1101.7.0
10
+
11
+ ## 1100.2.4
12
+
13
+ ### Patch Changes
14
+
15
+ - 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).
16
+
17
+ - Updated dependencies:
18
+ - @pnpm/resolving.resolver-base@1100.5.4
19
+ - @pnpm/types@1101.6.0
20
+
3
21
  ## 1100.2.3
4
22
 
5
23
  ### Patch Changes
package/lib/index.d.ts ADDED
@@ -0,0 +1,70 @@
1
+ import type { BinaryResolution, DirectoryResolution, GitResolution, Resolution } from '@pnpm/resolving.resolver-base';
2
+ import type { Cafs, FilesMap } from '@pnpm/store.cafs-types';
3
+ import type { AllowBuild, BundledManifest, DependencyManifest } from '@pnpm/types';
4
+ export interface PkgNameVersion {
5
+ name?: string;
6
+ version?: string;
7
+ }
8
+ export interface FetchOptions {
9
+ allowBuild?: AllowBuild;
10
+ filesIndexFile: string;
11
+ lockfileDir: string;
12
+ onStart?: (totalSize: number | null, attempt: number) => void;
13
+ onProgress?: (downloaded: number) => void;
14
+ readManifest?: boolean;
15
+ pkg: PkgNameVersion;
16
+ appendManifest?: DependencyManifest;
17
+ /**
18
+ * Regex source (compatible with `new RegExp(pattern)`) matching file paths inside the
19
+ * downloaded archive that should be skipped during extraction. Honored by tarball fetchers.
20
+ */
21
+ ignoreFilePattern?: string;
22
+ }
23
+ export interface ResolutionFetchContract {
24
+ /**
25
+ * Returns `true` when a resolution is missing data only this fetcher can supply, so
26
+ * callers must fetch before treating the resolution as complete.
27
+ */
28
+ resolutionNeedsFetch?: (resolution: Resolution) => boolean;
29
+ }
30
+ export type FetchFunction<FetcherResolution = Resolution, Options = FetchOptions, Result = FetchResult> = ((cafs: Cafs, resolution: FetcherResolution, opts: Options) => Promise<Result>) & ResolutionFetchContract;
31
+ export interface FetchResult {
32
+ local?: boolean;
33
+ manifest?: BundledManifest;
34
+ filesMap: FilesMap;
35
+ requiresBuild: boolean;
36
+ integrity?: string;
37
+ }
38
+ export interface GitFetcherOptions {
39
+ allowBuild?: AllowBuild;
40
+ readManifest?: boolean;
41
+ filesIndexFile: string;
42
+ pkg?: PkgNameVersion;
43
+ }
44
+ export interface GitFetcherResult {
45
+ filesMap: FilesMap;
46
+ manifest?: BundledManifest;
47
+ requiresBuild: boolean;
48
+ }
49
+ export type GitFetcher = FetchFunction<GitResolution, GitFetcherOptions, GitFetcherResult>;
50
+ export type BinaryFetcher = FetchFunction<BinaryResolution>;
51
+ export interface DirectoryFetcherOptions {
52
+ lockfileDir: string;
53
+ readManifest?: boolean;
54
+ }
55
+ export interface DirectoryFetcherResult {
56
+ local: true;
57
+ filesMap: FilesMap;
58
+ packageImportMethod: 'hardlink';
59
+ manifest?: DependencyManifest;
60
+ requiresBuild: boolean;
61
+ }
62
+ export type DirectoryFetcher = FetchFunction<DirectoryResolution, DirectoryFetcherOptions, DirectoryFetcherResult>;
63
+ export interface Fetchers {
64
+ localTarball: FetchFunction;
65
+ remoteTarball: FetchFunction;
66
+ gitHostedTarball: FetchFunction;
67
+ directory: DirectoryFetcher;
68
+ git: GitFetcher;
69
+ binary: BinaryFetcher;
70
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/fetching.fetcher-base",
3
- "version": "1100.2.3",
3
+ "version": "1100.2.5",
4
4
  "description": "Types for pnpm-compatible fetchers",
5
5
  "keywords": [
6
6
  "pnpm",
@@ -28,13 +28,13 @@
28
28
  "!*.map"
29
29
  ],
30
30
  "dependencies": {
31
- "@pnpm/resolving.resolver-base": "1100.5.3",
32
- "@pnpm/types": "1101.5.0",
31
+ "@pnpm/resolving.resolver-base": "1100.5.5",
32
+ "@pnpm/types": "1101.7.0",
33
33
  "@types/ssri": "^7.1.5"
34
34
  },
35
35
  "devDependencies": {
36
- "@pnpm/fetching.fetcher-base": "1100.2.3",
37
- "@pnpm/store.cafs-types": "1100.0.1"
36
+ "@pnpm/fetching.fetcher-base": "1100.2.5",
37
+ "@pnpm/store.cafs-types": "1100.0.2"
38
38
  },
39
39
  "engines": {
40
40
  "node": ">=22.13"