Upgrading @peculiar/x509 from 2.x to 3.x
Comparison of the public API of @peculiar/x509 2.2.0 and 3.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 | 7 |
| Removed class or interface members | 1 |
| Changed class or interface members | 2 |
| Newly deprecated | 0 |
| Requirement changes (engines, peer dependencies) | 2 |
| New exports | 0 |
Removed exports
None detected.
Changed signatures
| export | Before | After |
|---|---|---|
@peculiar/x509 · PublicKeyType | BufferSource | PublicKey | CryptoKey | IPublicKeyContainer | BufferSource | IPublicKeyContainer | PublicKey | CryptoKey |
@peculiar/x509 · AccessItemTypes | string | GeneralName | GeneralName[] | string[] | string | GeneralName | string[] | GeneralName[] |
@peculiar/x509 · GeneralNameType | "dn" | "dns" | "email" | "guid" | "ip" | "url" | "upn" | "id" | "dns" | "dn" | "email" | "guid" | "ip" | "url" | "upn" | "id" |
@peculiar/x509 · TextObjectItemType | string | number | boolean | BufferSource | TextObject | Date | TextObject[] | TextObjectConvertible | string | number | boolean | TextObjectConvertible | TextObject | Date | BufferSource | TextObject[] |
@peculiar/x509 · JsonAttributeAndValue | JsonAttributeAndObjectValue | JsonAttributeAndStringValue | JsonAttributeAndStringValue | JsonAttributeAndObjectValue |
@peculiar/x509 · X509CertificateCreateParamsName | string | Name | JsonName | string | JsonName | Name |
@peculiar/x509 · Pkcs10CertificateRequestCreateParamsName | string | Name | JsonName | string | JsonName | Name |
Removed class or interface members
| member | import | Before |
|---|---|---|
X509Certificates.static __@species@825 | @peculiar/x509 | (arrayLength?: number | undefined): any[] | <T>(arrayLength: number): T[] | <T>(...items: T[]): T[] |
Changed class or interface members
| member | Before | After |
|---|---|---|
EdAlgorithm.toWebAlgorithm | (alg: AlgorithmIdentifier): Algorithm | HashedAlgorithm | EcKeyGenParams | null | (alg: AlgorithmIdentifier): HashedAlgorithm | Algorithm | EcKeyGenParams | null |
RsaAlgorithm.toWebAlgorithm | (alg: AlgorithmIdentifier): Algorithm | HashedAlgorithm | null | (alg: AlgorithmIdentifier): HashedAlgorithm | Algorithm | null |
Newly deprecated
None detected.
Requirement changes (engines, peer dependencies)
| Before | After | |
|---|---|---|
engines.node | >=20.0.0 | ^20.19.0 || >=22.12.0 |
peerDependencies.@peculiar/asn1-schema | — | ^3.0.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 @peculiar/x509 from 2 to 3?
Between @peculiar/x509 2.2.0 and 3.0.0, Vigia found 0 removed exports, 7 changed signatures and 3 removed or changed class or interface members.
What became deprecated in @peculiar/x509 3?
0 exports or members are newly marked as deprecated in @peculiar/x509 3.0.0.
For agents
GET https://vigia.coredls.cloud/v1/packages/npm/@peculiar/x509/upgrade?from=2.2.0&to=3.0.0