@pnpm/core-loggers 8.0.2 → 9.0.0

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/LICENSE CHANGED
@@ -1,7 +1,7 @@
1
1
  The MIT License (MIT)
2
2
 
3
3
  Copyright (c) 2015-2016 Rico Sta. Cruz and other contributors
4
- Copyright (c) 2016-2022 Zoltan Kochan and other contributors
4
+ Copyright (c) 2016-2023 Zoltan Kochan and other contributors
5
5
 
6
6
  Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  of this software and associated documentation files (the "Software"), to deal
@@ -1,10 +1,10 @@
1
- import { LogBase } from '@pnpm/logger';
1
+ import { type LogBase } from '@pnpm/logger';
2
2
  export declare const contextLogger: import("@pnpm/logger").Logger<unknown>;
3
3
  export interface ContextMessage {
4
4
  currentLockfileExists: boolean;
5
5
  storeDir: string;
6
6
  virtualStoreDir: string;
7
7
  }
8
- export declare type ContextLog = {
8
+ export type ContextLog = {
9
9
  name: 'pnpm:context';
10
10
  } & LogBase & ContextMessage;
@@ -1,4 +1,4 @@
1
- import { LogBase, Logger } from '@pnpm/logger';
1
+ import { type LogBase, type Logger } from '@pnpm/logger';
2
2
  export declare const deprecationLogger: Logger<DeprecationMessage>;
3
3
  export interface DeprecationMessage {
4
4
  pkgName: string;
@@ -8,6 +8,6 @@ export interface DeprecationMessage {
8
8
  deprecated: string;
9
9
  depth: number;
10
10
  }
11
- export declare type DeprecationLog = {
11
+ export type DeprecationLog = {
12
12
  name: 'pnpm:deprecation';
13
13
  } & LogBase & DeprecationMessage;
@@ -1,9 +1,9 @@
1
- import { LogBase } from '@pnpm/logger';
1
+ import { type LogBase } from '@pnpm/logger';
2
2
  export declare const executionTimeLogger: import("@pnpm/logger").Logger<unknown>;
3
3
  export interface ExecutionTimeMessage {
4
4
  startedAt: number;
5
5
  endedAt: number;
6
6
  }
7
- export declare type ExecutionTimeLog = {
7
+ export type ExecutionTimeLog = {
8
8
  name: 'pnpm:execution-time';
9
9
  } & LogBase & ExecutionTimeMessage;
@@ -1,6 +1,6 @@
1
- import { LogBase, Logger } from '@pnpm/logger';
1
+ import { type LogBase, type Logger } from '@pnpm/logger';
2
2
  export declare const fetchingProgressLogger: Logger<FetchingProgressMessage>;
3
- export declare type FetchingProgressMessage = {
3
+ export type FetchingProgressMessage = {
4
4
  attempt: number;
5
5
  packageId: string;
6
6
  size: number | null;
@@ -10,6 +10,6 @@ export declare type FetchingProgressMessage = {
10
10
  packageId: string;
11
11
  status: 'in_progress';
12
12
  };
13
- export declare type FetchingProgressLog = {
13
+ export type FetchingProgressLog = {
14
14
  name: 'pnpm:fetching-progress';
15
15
  } & LogBase & FetchingProgressMessage;
@@ -1,4 +1,4 @@
1
- import { LogBase } from '@pnpm/logger';
1
+ import { type LogBase } from '@pnpm/logger';
2
2
  export declare const hookLogger: import("@pnpm/logger").Logger<unknown>;
3
3
  export interface HookMessage {
4
4
  from: string;
@@ -6,6 +6,6 @@ export interface HookMessage {
6
6
  message: string;
7
7
  prefix: string;
8
8
  }
9
- export declare type HookLog = {
9
+ export type HookLog = {
10
10
  name: 'pnpm:hook';
11
11
  } & LogBase & HookMessage;
package/lib/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { ContextLog, DeprecationLog, FetchingProgressLog, ExecutionTimeLog, HookLog, InstallCheckLog, LifecycleLog, LinkLog, PackageImportMethodLog, PackageManifestLog, PeerDependencyIssuesLog, ProgressLog, RegistryLog, RequestRetryLog, RootLog, ScopeLog, SkippedOptionalDependencyLog, StageLog, StatsLog, SummaryLog, UpdateCheckLog } from './all';
1
+ import { type ContextLog, type DeprecationLog, type FetchingProgressLog, type ExecutionTimeLog, type HookLog, type InstallCheckLog, type LifecycleLog, type LinkLog, type PackageImportMethodLog, type PackageManifestLog, type PeerDependencyIssuesLog, type ProgressLog, type RegistryLog, type RequestRetryLog, type RootLog, type ScopeLog, type SkippedOptionalDependencyLog, type StageLog, type StatsLog, type SummaryLog, type UpdateCheckLog } from './all';
2
2
  export * from './all';
3
- export declare type Log = ContextLog | DeprecationLog | FetchingProgressLog | ExecutionTimeLog | HookLog | InstallCheckLog | LifecycleLog | LinkLog | PackageManifestLog | PackageImportMethodLog | PeerDependencyIssuesLog | ProgressLog | RegistryLog | RequestRetryLog | RootLog | ScopeLog | SkippedOptionalDependencyLog | StageLog | StatsLog | SummaryLog | UpdateCheckLog;
3
+ export type Log = ContextLog | DeprecationLog | FetchingProgressLog | ExecutionTimeLog | HookLog | InstallCheckLog | LifecycleLog | LinkLog | PackageManifestLog | PackageImportMethodLog | PeerDependencyIssuesLog | ProgressLog | RegistryLog | RequestRetryLog | RootLog | ScopeLog | SkippedOptionalDependencyLog | StageLog | StatsLog | SummaryLog | UpdateCheckLog;
@@ -1,9 +1,9 @@
1
- import { LogBase } from '@pnpm/logger';
1
+ import { type LogBase } from '@pnpm/logger';
2
2
  export declare const installCheckLogger: import("@pnpm/logger").Logger<InstallCheckMessage>;
3
3
  export interface InstallCheckMessage {
4
4
  code: string;
5
5
  pkgId: string;
6
6
  }
7
- export declare type InstallCheckLog = {
7
+ export type InstallCheckLog = {
8
8
  name: 'pnpm:install-check';
9
9
  } & LogBase & InstallCheckMessage;
@@ -1,6 +1,6 @@
1
- import { LogBase } from '@pnpm/logger';
1
+ import { type LogBase } from '@pnpm/logger';
2
2
  export declare const lifecycleLogger: import("@pnpm/logger").Logger<LifecycleMessage>;
3
- export declare type LifecycleMessage = {
3
+ export type LifecycleMessage = {
4
4
  depPath: string;
5
5
  stage: string;
6
6
  wd: string;
@@ -14,6 +14,6 @@ export declare type LifecycleMessage = {
14
14
  script: string;
15
15
  optional: boolean;
16
16
  });
17
- export declare type LifecycleLog = {
17
+ export type LifecycleLog = {
18
18
  name: 'pnpm:lifecycle';
19
19
  } & LogBase & LifecycleMessage;
@@ -1,9 +1,9 @@
1
- import { LogBase } from '@pnpm/logger';
1
+ import { type LogBase } from '@pnpm/logger';
2
2
  export declare const linkLogger: import("@pnpm/logger").Logger<LinkMessage>;
3
3
  export interface LinkMessage {
4
4
  target: string;
5
5
  link: string;
6
6
  }
7
- export declare type LinkLog = {
7
+ export type LinkLog = {
8
8
  name: 'pnpm:link';
9
9
  } & LogBase & LinkMessage;
@@ -1,8 +1,8 @@
1
- import { LogBase } from '@pnpm/logger';
1
+ import { type LogBase } from '@pnpm/logger';
2
2
  export declare const packageImportMethodLogger: import("@pnpm/logger").Logger<unknown>;
3
3
  export interface PackageImportMethodMessage {
4
4
  method: 'clone' | 'hardlink' | 'copy';
5
5
  }
6
- export declare type PackageImportMethodLog = {
6
+ export type PackageImportMethodLog = {
7
7
  name: 'pnpm:package-import-method';
8
8
  } & LogBase & PackageImportMethodMessage;
@@ -1,13 +1,13 @@
1
- import { LogBase } from '@pnpm/logger';
2
- import { ProjectManifest } from '@pnpm/types';
1
+ import { type LogBase } from '@pnpm/logger';
2
+ import { type ProjectManifest } from '@pnpm/types';
3
3
  export declare const packageManifestLogger: import("@pnpm/logger").Logger<PackageManifestMessage>;
4
- export declare type PackageManifestMessage = {
4
+ export type PackageManifestMessage = {
5
5
  prefix: string;
6
6
  } & ({
7
7
  initial: ProjectManifest;
8
8
  } | {
9
9
  updated: ProjectManifest;
10
10
  });
11
- export declare type PackageManifestLog = {
11
+ export type PackageManifestLog = {
12
12
  name: 'pnpm:package-manifest';
13
13
  } & LogBase & PackageManifestMessage;
@@ -1,9 +1,9 @@
1
- import { LogBase, Logger } from '@pnpm/logger';
2
- import { PeerDependencyIssuesByProjects } from '@pnpm/types';
1
+ import { type LogBase, type Logger } from '@pnpm/logger';
2
+ import { type PeerDependencyIssuesByProjects } from '@pnpm/types';
3
3
  export declare const peerDependencyIssuesLogger: Logger<PeerDependencyIssuesMessage>;
4
4
  export interface PeerDependencyIssuesMessage {
5
5
  issuesByProjects: PeerDependencyIssuesByProjects;
6
6
  }
7
- export declare type PeerDependencyIssuesLog = {
7
+ export type PeerDependencyIssuesLog = {
8
8
  name: 'pnpm:peer-dependency-issues';
9
9
  } & LogBase & PeerDependencyIssuesMessage;
@@ -1,6 +1,6 @@
1
- import { LogBase, Logger } from '@pnpm/logger';
1
+ import { type LogBase, type Logger } from '@pnpm/logger';
2
2
  export declare const progressLogger: Logger<ProgressMessage>;
3
- export declare type ProgressMessage = {
3
+ export type ProgressMessage = {
4
4
  packageId: string;
5
5
  requester: string;
6
6
  status: 'fetched' | 'found_in_store' | 'resolved';
@@ -10,6 +10,6 @@ export declare type ProgressMessage = {
10
10
  requester: string;
11
11
  to: string;
12
12
  };
13
- export declare type ProgressLog = {
13
+ export type ProgressLog = {
14
14
  name: 'pnpm:progress';
15
15
  } & LogBase & ProgressMessage;
@@ -1,5 +1,5 @@
1
- import { LogBase } from '@pnpm/logger';
2
- export declare type RegistryLog = {
1
+ import { type LogBase } from '@pnpm/logger';
2
+ export type RegistryLog = {
3
3
  name: 'pnpm:registry';
4
4
  } & LogBase & {
5
5
  message: string;
@@ -1,4 +1,4 @@
1
- import { LogBase } from '@pnpm/logger';
1
+ import { type LogBase } from '@pnpm/logger';
2
2
  export declare const requestRetryLogger: import("@pnpm/logger").Logger<RequestRetryMessage>;
3
3
  export interface RequestRetryMessage {
4
4
  attempt: number;
@@ -8,6 +8,6 @@ export interface RequestRetryMessage {
8
8
  timeout: number;
9
9
  url: string;
10
10
  }
11
- export declare type RequestRetryLog = {
11
+ export type RequestRetryLog = {
12
12
  name: 'pnpm:request-retry';
13
13
  } & LogBase & RequestRetryMessage;
@@ -1,7 +1,7 @@
1
- import { LogBase } from '@pnpm/logger';
1
+ import { type LogBase } from '@pnpm/logger';
2
2
  export declare const rootLogger: import("@pnpm/logger").Logger<RootMessage>;
3
- export declare type DependencyType = 'prod' | 'dev' | 'optional';
4
- export declare type RootMessage = {
3
+ export type DependencyType = 'prod' | 'dev' | 'optional';
4
+ export type RootMessage = {
5
5
  prefix: string;
6
6
  } & ({
7
7
  added: {
@@ -20,6 +20,6 @@ export declare type RootMessage = {
20
20
  dependencyType?: DependencyType;
21
21
  };
22
22
  });
23
- export declare type RootLog = {
23
+ export type RootLog = {
24
24
  name: 'pnpm:root';
25
25
  } & LogBase & RootMessage;
@@ -1,10 +1,10 @@
1
- import { LogBase } from '@pnpm/logger';
1
+ import { type LogBase } from '@pnpm/logger';
2
2
  export declare const scopeLogger: import("@pnpm/logger").Logger<ScopeMessage>;
3
3
  export interface ScopeMessage {
4
4
  selected: number;
5
5
  total?: number;
6
6
  workspacePrefix?: string;
7
7
  }
8
- export declare type ScopeLog = {
8
+ export type ScopeLog = {
9
9
  name: 'pnpm:scope';
10
10
  } & LogBase & ScopeMessage;
@@ -1,9 +1,9 @@
1
- import { LogBase } from '@pnpm/logger';
1
+ import { type LogBase } from '@pnpm/logger';
2
2
  export declare const skippedOptionalDependencyLogger: import("@pnpm/logger").Logger<SkippedOptionalDependencyMessage>;
3
- export declare type SkippedOptionalDependencyLog = {
3
+ export type SkippedOptionalDependencyLog = {
4
4
  name: 'pnpm:skipped-optional-dependency';
5
5
  } & LogBase & SkippedOptionalDependencyMessage;
6
- export declare type SkippedOptionalDependencyMessage = {
6
+ export type SkippedOptionalDependencyMessage = {
7
7
  details?: string;
8
8
  parents?: Array<{
9
9
  id: string;
@@ -1,9 +1,9 @@
1
- import { LogBase } from '@pnpm/logger';
1
+ import { type LogBase } from '@pnpm/logger';
2
2
  export declare const stageLogger: import("@pnpm/logger").Logger<StageMessage>;
3
3
  export interface StageMessage {
4
4
  prefix: string;
5
5
  stage: 'resolution_started' | 'resolution_done' | 'importing_started' | 'importing_done';
6
6
  }
7
- export declare type StageLog = {
7
+ export type StageLog = {
8
8
  name: 'pnpm:stage';
9
9
  } & LogBase & StageMessage;
@@ -1,12 +1,12 @@
1
- import { LogBase } from '@pnpm/logger';
1
+ import { type LogBase } from '@pnpm/logger';
2
2
  export declare const statsLogger: import("@pnpm/logger").Logger<StatsMessage>;
3
- export declare type StatsMessage = {
3
+ export type StatsMessage = {
4
4
  prefix: string;
5
5
  } & ({
6
6
  added: number;
7
7
  } | {
8
8
  removed: number;
9
9
  });
10
- export declare type StatsLog = {
10
+ export type StatsLog = {
11
11
  name: 'pnpm:stats';
12
12
  } & LogBase & StatsMessage;
@@ -1,8 +1,8 @@
1
- import { LogBase } from '@pnpm/logger';
1
+ import { type LogBase } from '@pnpm/logger';
2
2
  export declare const summaryLogger: import("@pnpm/logger").Logger<SummaryMessage>;
3
3
  export interface SummaryMessage {
4
4
  prefix: string;
5
5
  }
6
- export declare type SummaryLog = {
6
+ export type SummaryLog = {
7
7
  name: 'pnpm:summary';
8
8
  } & LogBase & SummaryMessage;
@@ -1,9 +1,9 @@
1
- import { LogBase } from '@pnpm/logger';
1
+ import { type LogBase } from '@pnpm/logger';
2
2
  export declare const updateCheckLogger: import("@pnpm/logger").Logger<unknown>;
3
3
  export interface UpdateCheckMessage {
4
4
  currentVersion: string;
5
5
  latestVersion: string;
6
6
  }
7
- export declare type UpdateCheckLog = {
7
+ export type UpdateCheckLog = {
8
8
  name: 'pnpm:update-check';
9
9
  } & LogBase & UpdateCheckMessage;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pnpm/core-loggers",
3
3
  "description": "Core loggers of pnpm",
4
- "version": "8.0.2",
4
+ "version": "9.0.0",
5
5
  "bugs": {
6
6
  "url": "https://github.com/pnpm/pnpm/issues"
7
7
  },
@@ -15,21 +15,21 @@
15
15
  "@pnpm/logger": "^5.0.0"
16
16
  },
17
17
  "devDependencies": {
18
- "@pnpm/core-loggers": "8.0.2"
18
+ "@pnpm/core-loggers": "9.0.0"
19
19
  },
20
20
  "directories": {
21
21
  "test": "test"
22
22
  },
23
23
  "keywords": [
24
- "pnpm7"
24
+ "pnpm8"
25
25
  ],
26
26
  "license": "MIT",
27
27
  "engines": {
28
- "node": ">=14.6"
28
+ "node": ">=16.14"
29
29
  },
30
30
  "repository": "https://github.com/pnpm/pnpm/blob/main/packages/core-loggers",
31
31
  "dependencies": {
32
- "@pnpm/types": "8.9.0"
32
+ "@pnpm/types": "9.0.0"
33
33
  },
34
34
  "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/core-loggers#readme",
35
35
  "funding": "https://opencollective.com/pnpm",
@@ -39,7 +39,7 @@
39
39
  "scripts": {
40
40
  "start": "tsc --watch",
41
41
  "test": "pnpm run compile",
42
- "lint": "eslint src/**/*.ts",
42
+ "lint": "eslint \"src/**/*.ts\"",
43
43
  "compile": "tsc --build && pnpm run lint --fix"
44
44
  }
45
45
  }