Upgrading local-pkg from 1.x to 2.x
Comparison of the public API of local-pkg 1.2.1 and 2.0.0, computed automatically from their TypeScript types. A changed signature is a candidate for a breaking change, not a certainty.
Summary
| Removed import paths | 0 |
|---|---|
| Removed exports | 0 |
| Changed signatures | 5 |
| Removed class or interface members | 0 |
| Changed class or interface members | 0 |
| Newly deprecated | 0 |
| Requirement changes (engines, peer dependencies) | 1 |
| New exports | 0 |
Removed exports
None detected.
Changed signatures
| export | Before | After |
|---|---|---|
local-pkg · resolveModule | (name: string, options?: PackageResolvingOptions | undefined): string | undefined | (name: string, options?: PackageResolvingOptions | undefined): any |
local-pkg · getPackageInfo | quansync_types.QuansyncFn<{ name: string; version: string | undefined; rootPath: string; packageJsonPath: string; packageJson: PackageJson; } | undefined, [name: string, options?: PackageResolvingOptions | undefined]> | any |
local-pkg · isPackageListed | quansync_types.QuansyncFn<boolean, [name: string, cwd?: string | undefined]> | any |
local-pkg · loadPackageJSON | quansync_types.QuansyncFn<any, [cwd?: any]> | any |
local-pkg · getPackageInfoSync | (name: string, options?: PackageResolvingOptions | undefined): { name: string; version: string | undefined; rootPath: string; packageJsonPath: string; packageJson: PackageJson; } | undefined | (name: string, options?: PackageResolvingOptions | undefined): { name: string; version: string | undefined; rootPath: any; packageJsonPath: any; packageJson: PackageJson; } | undefined |
Removed class or interface members
None detected.
Changed class or interface members
None detected.
Newly deprecated
None detected.
Requirement changes (engines, peer dependencies)
| Before | After | |
|---|---|---|
engines.node | >=14 | >=20.19.0 |
Give your AI agent these facts
Vigia is a free MCP server: your coding agent checks versions, breaking changes and vulnerabilities before it writes code. No signup, no API key.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Add to CursorAdd to VS Code★ Star on GitHub
Any other MCP client
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Agent skill (SKILL.md): tells the agent when to use Vigia · GitHub Action for pull requests
Frequently asked questions
What are the breaking changes when upgrading local-pkg from 1 to 2?
Between local-pkg 1.2.1 and 2.0.0, Vigia found 0 removed exports, 5 changed signatures and 0 removed or changed class or interface members.
What became deprecated in local-pkg 2?
0 exports or members are newly marked as deprecated in local-pkg 2.0.0.
For agents
GET https://vigia.coredls.cloud/v1/packages/npm/local-pkg/upgrade?from=1.2.1&to=2.0.0