@pnpm/core-loggers 1100.1.4 → 1100.2.1

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.
@@ -1,7 +1,7 @@
1
1
  import { type LogBase } from '@pnpm/logger';
2
2
  export declare const lockfileVerificationLogger: import("@pnpm/logger").Logger<LockfileVerificationMessage>;
3
3
  export interface LockfileVerificationMessageBase {
4
- status: 'started' | 'done' | 'failed';
4
+ status: 'started' | 'done' | 'failed' | 'cached';
5
5
  /**
6
6
  * Absolute path of the lockfile being verified. Omitted only when
7
7
  * the verifier is invoked without a path (today only in unit tests
@@ -36,7 +36,22 @@ export interface LockfileVerificationFailedMessage extends LockfileVerificationM
36
36
  /** Milliseconds elapsed between the matching `started` event and `failed`. */
37
37
  elapsedMs: number;
38
38
  }
39
- export type LockfileVerificationMessage = LockfileVerificationStartedMessage | LockfileVerificationDoneMessage | LockfileVerificationFailedMessage;
39
+ /**
40
+ * Emitted instead of a `started`/`done` pair when the verification
41
+ * cache already holds a passing verdict for this lockfile content
42
+ * under the same (or stricter) policy, so the gate short-circuited
43
+ * without contacting the registry. Carries no `entries` count — the
44
+ * short-circuit happens before candidates are collected.
45
+ */
46
+ export interface LockfileVerificationCachedMessage extends LockfileVerificationMessageBase {
47
+ status: 'cached';
48
+ /**
49
+ * ISO-8601 timestamp of the verification run the cached verdict was
50
+ * recorded by. Omitted when the cache record predates the field.
51
+ */
52
+ verifiedAt?: string;
53
+ }
54
+ export type LockfileVerificationMessage = LockfileVerificationStartedMessage | LockfileVerificationDoneMessage | LockfileVerificationFailedMessage | LockfileVerificationCachedMessage;
40
55
  export type LockfileVerificationLog = {
41
56
  name: 'pnpm:lockfile-verification';
42
57
  } & LogBase & LockfileVerificationMessage;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/core-loggers",
3
- "version": "1100.1.4",
3
+ "version": "1100.2.1",
4
4
  "description": "Core loggers of pnpm",
5
5
  "keywords": [
6
6
  "pnpm",
@@ -30,14 +30,14 @@
30
30
  "test": "test"
31
31
  },
32
32
  "dependencies": {
33
- "@pnpm/types": "1101.3.1"
33
+ "@pnpm/types": "1101.3.2"
34
34
  },
35
35
  "peerDependencies": {
36
- "@pnpm/logger": "^1001.0.1"
36
+ "@pnpm/logger": "^1100.0.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@pnpm/logger": "1100.0.0",
40
- "@pnpm/core-loggers": "1100.1.4"
39
+ "@pnpm/core-loggers": "1100.2.1",
40
+ "@pnpm/logger": "1100.0.0"
41
41
  },
42
42
  "engines": {
43
43
  "node": ">=22.13"