@pnpm/lockfile-types
Advanced tools
Comparing version 6.0.0 to 7.0.0
@@ -1,2 +0,2 @@ | ||
import { type DependenciesMeta, type PatchFile } from '@pnpm/types'; | ||
import { type DependenciesMeta, type DepPath, type PatchFile } from '@pnpm/types'; | ||
export type { PatchFile }; | ||
@@ -10,3 +10,3 @@ export * from './lockfileFileTypes'; | ||
importers: Record<string, ProjectSnapshot>; | ||
lockfileVersion: number | string; | ||
lockfileVersion: string; | ||
time?: Record<string, string>; | ||
@@ -23,3 +23,3 @@ packages?: PackageSnapshots; | ||
importers: Record<string, ProjectSnapshot>; | ||
lockfileVersion: number | string; | ||
lockfileVersion: string; | ||
time?: Record<string, string>; | ||
@@ -48,3 +48,3 @@ snapshots?: Record<string, PackageSnapshotV7>; | ||
export interface PackageSnapshots { | ||
[packagePath: string]: PackageSnapshot; | ||
[packagePath: DepPath]: PackageSnapshot; | ||
} | ||
@@ -51,0 +51,0 @@ /** |
import type { Lockfile, PackageSnapshot, ProjectSnapshot } from '.'; | ||
import type { DependenciesMeta } from '@pnpm/types'; | ||
export type LockfileFile = Omit<InlineSpecifiersLockfile, 'importers'> & Partial<InlineSpecifiersProjectSnapshot> & Partial<Pick<InlineSpecifiersLockfile, 'importers'>>; | ||
export type LockfileFileV7 = Omit<InlineSpecifiersLockfile, 'importers' | 'packages'> & Partial<InlineSpecifiersProjectSnapshot> & Partial<Pick<InlineSpecifiersLockfile, 'importers'>> & { | ||
export type LockfileFileV9 = Omit<InlineSpecifiersLockfile, 'importers' | 'packages'> & Partial<InlineSpecifiersProjectSnapshot> & Partial<Pick<InlineSpecifiersLockfile, 'importers'>> & { | ||
packages?: Record<string, Pick<PackageSnapshot, 'resolution' | 'engines' | 'cpu' | 'os' | 'hasBin' | 'name' | 'version' | 'bundledDependencies' | 'peerDependencies' | 'peerDependenciesMeta' | 'deprecated'>>; | ||
@@ -6,0 +6,0 @@ snapshots?: Record<string, Pick<PackageSnapshot, 'dependencies' | 'optionalDependencies' | 'patched' | 'optional' | 'transitivePeerDependencies' | 'id'>>; |
{ | ||
"name": "@pnpm/lockfile-types", | ||
"version": "6.0.0", | ||
"version": "7.0.0", | ||
"description": "Types for the pnpm-lock.yaml lockfile", | ||
@@ -27,6 +27,6 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@pnpm/types": "10.0.0" | ||
"@pnpm/types": "10.1.0" | ||
}, | ||
"devDependencies": { | ||
"@pnpm/lockfile-types": "6.0.0" | ||
"@pnpm/lockfile-types": "7.0.0" | ||
}, | ||
@@ -33,0 +33,0 @@ "exports": { |
9066
+ Added@pnpm/types@10.1.0(transitive)
- Removed@pnpm/types@10.0.0(transitive)
Updated@pnpm/types@10.1.0