Passer de webcrypto-core 1.x à 2.x
Comparaison de l’API publique de webcrypto-core 1.9.2 et 2.0.0, calculée automatiquement à partir de leurs types TypeScript. Une signature modifiée est un changement incompatible possible, pas une certitude.
Résumé
| Chemins d’importation supprimés | 0 |
|---|---|
| Exports supprimés | 2 |
| Signatures modifiées | 1 |
| Membres de classes ou d’interfaces supprimés | 0 |
| Membres de classes ou d’interfaces modifiés | 59 |
| Nouvelles dépréciations | 0 |
| Changements d’exigences (engines, dépendances peer) | 4 |
| Nouveaux exports | 0 |
Exports supprimés
| import | export | kind | Avant |
|---|---|---|---|
webcrypto-core | PemConverter | class | class |
webcrypto-core | BufferSourceConverter | variable | any |
Signatures modifiées
| export | Avant | Après |
|---|---|---|
webcrypto-core · ImportAlgorithms | Algorithm | EcKeyImportParams | RsaHashedImportParams | Algorithm | RsaHashedImportParams | EcKeyImportParams |
Membres de classes ou d’interfaces supprimés
Aucun détecté.
Membres de classes ou d’interfaces modifiés
| member | Avant | Après |
|---|---|---|
Crypto.subtle | SubtleCrypto$1 | SubtleCrypto |
Crypto.constructor | (): Crypto$1 | (): Crypto |
CryptoKey.constructor | (): CryptoKey$1 | (): CryptoKey |
CryptoKey.static create | <T extends CryptoKey$1>(this: new () => T, algorithm: Algorithm, type: KeyType, extractable: boolean, usages: KeyUsages): T | <T extends CryptoKey>(this: new () => T, algorithm: Algorithm, type: KeyType, extractable: boolean, usages: KeyUsages): T |
AesProvider.onExportKey | (format: KeyFormat, key: CryptoKey$1, ...args: any[]): Promise<ArrayBuffer | JsonWebKey> | (format: KeyFormat, key: CryptoKey, ...args: any[]): Promise<ArrayBuffer | JsonWebKey> |
AesProvider.onImportKey | (format: KeyFormat, keyData: ArrayBuffer | JsonWebKey, algorithm: Algorithm, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey$1> | (format: KeyFormat, keyData: ArrayBuffer | JsonWebKey, algorithm: Algorithm, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey> |
AesProvider.onGenerateKey | (algorithm: AesKeyGenParams, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey$1> | (algorithm: AesKeyGenParams, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey> |
DesProvider.onDecrypt | (algorithm: DesParams, key: CryptoKey$1, data: ArrayBuffer, ...args: any[]): Promise<ArrayBuffer> | (algorithm: DesParams, key: CryptoKey, data: ArrayBuffer, ...args: any[]): Promise<ArrayBuffer> |
DesProvider.onEncrypt | (algorithm: DesParams, key: CryptoKey$1, data: ArrayBuffer, ...args: any[]): Promise<ArrayBuffer> | (algorithm: DesParams, key: CryptoKey, data: ArrayBuffer, ...args: any[]): Promise<ArrayBuffer> |
DesProvider.onExportKey | (format: KeyFormat, key: CryptoKey$1, ...args: any[]): Promise<ArrayBuffer | JsonWebKey> | (format: KeyFormat, key: CryptoKey, ...args: any[]): Promise<ArrayBuffer | JsonWebKey> |
DesProvider.onImportKey | (format: KeyFormat, keyData: ArrayBuffer | JsonWebKey, algorithm: Algorithm, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey$1> | (format: KeyFormat, keyData: ArrayBuffer | JsonWebKey, algorithm: Algorithm, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey> |
DesProvider.onGenerateKey | (algorithm: DesKeyGenParams, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey$1> | (algorithm: DesKeyGenParams, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey> |
RsaProvider.onExportKey | (format: KeyFormat, key: CryptoKey$1, ...args: any[]): Promise<ArrayBuffer | JsonWebKey> | (format: KeyFormat, key: CryptoKey, ...args: any[]): Promise<ArrayBuffer | JsonWebKey> |
RsaProvider.onImportKey | (format: KeyFormat, keyData: ArrayBuffer | JsonWebKey, algorithm: RsaHashedImportParams, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey$1> | (format: KeyFormat, keyData: ArrayBuffer | JsonWebKey, algorithm: RsaHashedImportParams, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey> |
EcdhProvider.onExportKey | (format: KeyFormat, key: CryptoKey$1, ...args: any[]): Promise<ArrayBuffer | JsonWebKey> | (format: KeyFormat, key: CryptoKey, ...args: any[]): Promise<ArrayBuffer | JsonWebKey> |
EcdhProvider.onImportKey | (format: KeyFormat, keyData: ArrayBuffer | JsonWebKey, algorithm: EcKeyImportParams, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey$1> | (format: KeyFormat, keyData: ArrayBuffer | JsonWebKey, algorithm: EcKeyImportParams, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey> |
EcdhProvider.onDeriveBits | (algorithm: EcdhKeyDeriveParams, baseKey: CryptoKey$1, length: number, ...args: any[]): Promise<ArrayBuffer> | (algorithm: EcdhKeyDeriveParams, baseKey: CryptoKey, length: number, ...args: any[]): Promise<ArrayBuffer> |
HkdfProvider.onImportKey | (format: KeyFormat, keyData: ArrayBuffer | JsonWebKey, algorithm: Algorithm, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey$1> | (format: KeyFormat, keyData: ArrayBuffer | JsonWebKey, algorithm: Algorithm, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey> |
HkdfProvider.onDeriveBits | (algorithm: HkdfParams, baseKey: CryptoKey$1, length: number, ...args: any[]): Promise<ArrayBuffer> | (algorithm: HkdfParams, baseKey: CryptoKey, length: number, ...args: any[]): Promise<ArrayBuffer> |
HmacProvider.onExportKey | (format: KeyFormat, key: CryptoKey$1, ...args: any[]): Promise<ArrayBuffer | JsonWebKey> | (format: KeyFormat, key: CryptoKey, ...args: any[]): Promise<ArrayBuffer | JsonWebKey> |
HmacProvider.onImportKey | (format: KeyFormat, keyData: ArrayBuffer | JsonWebKey, algorithm: HmacImportParams, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey$1> | (format: KeyFormat, keyData: ArrayBuffer | JsonWebKey, algorithm: HmacImportParams, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey> |
HmacProvider.onGenerateKey | (algorithm: HmacKeyGenParams, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey$1> | (algorithm: HmacKeyGenParams, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey> |
SubtleCrypto.constructor | (): SubtleCrypto$1 | (): SubtleCrypto |
SubtleCrypto.checkCryptoKey | (key: CryptoKey): asserts key is CryptoKey$1 | (key: CryptoKey): asserts key is CryptoKey |
AesKwProvider.onExportKey | (format: KeyFormat, key: CryptoKey$1, ...args: any[]): Promise<ArrayBuffer | JsonWebKey> | (format: KeyFormat, key: CryptoKey, ...args: any[]): Promise<ArrayBuffer | JsonWebKey> |
AesKwProvider.onImportKey | (format: KeyFormat, keyData: ArrayBuffer | JsonWebKey, algorithm: Algorithm, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey$1> | (format: KeyFormat, keyData: ArrayBuffer | JsonWebKey, algorithm: Algorithm, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey> |
AesKwProvider.onGenerateKey | (algorithm: AesKeyGenParams, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey$1> | (algorithm: AesKeyGenParams, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey> |
EcdsaProvider.onExportKey | (format: KeyFormat, key: CryptoKey$1, ...args: any[]): Promise<ArrayBuffer | JsonWebKey> | (format: KeyFormat, key: CryptoKey, ...args: any[]): Promise<ArrayBuffer | JsonWebKey> |
EcdsaProvider.onImportKey | (format: KeyFormat, keyData: ArrayBuffer | JsonWebKey, algorithm: EcKeyImportParams, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey$1> | (format: KeyFormat, keyData: ArrayBuffer | JsonWebKey, algorithm: EcKeyImportParams, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey> |
EdDsaProvider.onExportKey | (format: KeyFormat, key: CryptoKey$1, ...args: any[]): Promise<ArrayBuffer | JsonWebKey> | (format: KeyFormat, key: CryptoKey, ...args: any[]): Promise<ArrayBuffer | JsonWebKey> |
EdDsaProvider.onImportKey | (format: KeyFormat, keyData: ArrayBuffer | JsonWebKey, algorithm: EcKeyImportParams, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey$1> | (format: KeyFormat, keyData: ArrayBuffer | JsonWebKey, algorithm: EcKeyImportParams, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey> |
AesCbcProvider.onExportKey | (format: KeyFormat, key: CryptoKey$1, ...args: any[]): Promise<ArrayBuffer | JsonWebKey> | (format: KeyFormat, key: CryptoKey, ...args: any[]): Promise<ArrayBuffer | JsonWebKey> |
AesCbcProvider.onImportKey | (format: KeyFormat, keyData: ArrayBuffer | JsonWebKey, algorithm: Algorithm, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey$1> | (format: KeyFormat, keyData: ArrayBuffer | JsonWebKey, algorithm: Algorithm, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey> |
AesCbcProvider.onGenerateKey | (algorithm: AesKeyGenParams, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey$1> | (algorithm: AesKeyGenParams, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey> |
AesCtrProvider.onExportKey | (format: KeyFormat, key: CryptoKey$1, ...args: any[]): Promise<ArrayBuffer | JsonWebKey> | (format: KeyFormat, key: CryptoKey, ...args: any[]): Promise<ArrayBuffer | JsonWebKey> |
AesCtrProvider.onImportKey | (format: KeyFormat, keyData: ArrayBuffer | JsonWebKey, algorithm: Algorithm, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey$1> | (format: KeyFormat, keyData: ArrayBuffer | JsonWebKey, algorithm: Algorithm, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey> |
AesCtrProvider.onGenerateKey | (algorithm: AesKeyGenParams, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey$1> | (algorithm: AesKeyGenParams, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey> |
AesEcbProvider.onExportKey | (format: KeyFormat, key: CryptoKey$1, ...args: any[]): Promise<ArrayBuffer | JsonWebKey> | (format: KeyFormat, key: CryptoKey, ...args: any[]): Promise<ArrayBuffer | JsonWebKey> |
AesEcbProvider.onImportKey | (format: KeyFormat, keyData: ArrayBuffer | JsonWebKey, algorithm: Algorithm, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey$1> | (format: KeyFormat, keyData: ArrayBuffer | JsonWebKey, algorithm: Algorithm, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey> |
AesEcbProvider.onGenerateKey | (algorithm: AesKeyGenParams, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey$1> | (algorithm: AesKeyGenParams, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey> |
AesGcmProvider.onExportKey | (format: KeyFormat, key: CryptoKey$1, ...args: any[]): Promise<ArrayBuffer | JsonWebKey> | (format: KeyFormat, key: CryptoKey, ...args: any[]): Promise<ArrayBuffer | JsonWebKey> |
AesGcmProvider.onImportKey | (format: KeyFormat, keyData: ArrayBuffer | JsonWebKey, algorithm: Algorithm, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey$1> | (format: KeyFormat, keyData: ArrayBuffer | JsonWebKey, algorithm: Algorithm, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey> |
AesGcmProvider.onGenerateKey | (algorithm: AesKeyGenParams, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey$1> | (algorithm: AesKeyGenParams, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey> |
EcdhEsProvider.onExportKey | (format: KeyFormat, key: CryptoKey$1, ...args: any[]): Promise<ArrayBuffer | JsonWebKey> | (format: KeyFormat, key: CryptoKey, ...args: any[]): Promise<ArrayBuffer | JsonWebKey> |
EcdhEsProvider.onImportKey | (format: KeyFormat, keyData: ArrayBuffer | JsonWebKey, algorithm: EcKeyImportParams, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey$1> | (format: KeyFormat, keyData: ArrayBuffer | JsonWebKey, algorithm: EcKeyImportParams, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey> |
EcdhEsProvider.onDeriveBits | (algorithm: EcdhKeyDeriveParams, baseKey: CryptoKey$1, length: number, ...args: any[]): Promise<ArrayBuffer> | (algorithm: EcdhKeyDeriveParams, baseKey: CryptoKey, length: number, ...args: any[]): Promise<ArrayBuffer> |
Pbkdf2Provider.onImportKey | (format: KeyFormat, keyData: ArrayBuffer | JsonWebKey, algorithm: Algorithm, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey$1> | (format: KeyFormat, keyData: ArrayBuffer | JsonWebKey, algorithm: Algorithm, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey> |
Pbkdf2Provider.onDeriveBits | (algorithm: Pbkdf2Params, baseKey: CryptoKey$1, length: number, ...args: any[]): Promise<ArrayBuffer> | (algorithm: Pbkdf2Params, baseKey: CryptoKey, length: number, ...args: any[]): Promise<ArrayBuffer> |
RsaPssProvider.onExportKey | (format: KeyFormat, key: CryptoKey$1, ...args: any[]): Promise<ArrayBuffer | JsonWebKey> | (format: KeyFormat, key: CryptoKey, ...args: any[]): Promise<ArrayBuffer | JsonWebKey> |
RsaPssProvider.onImportKey | (format: KeyFormat, keyData: ArrayBuffer | JsonWebKey, algorithm: RsaHashedImportParams, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey$1> | (format: KeyFormat, keyData: ArrayBuffer | JsonWebKey, algorithm: RsaHashedImportParams, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey> |
RsaSsaProvider.onExportKey | (format: KeyFormat, key: CryptoKey$1, ...args: any[]): Promise<ArrayBuffer | JsonWebKey> | (format: KeyFormat, key: CryptoKey, ...args: any[]): Promise<ArrayBuffer | JsonWebKey> |
RsaSsaProvider.onImportKey | (format: KeyFormat, keyData: ArrayBuffer | JsonWebKey, algorithm: RsaHashedImportParams, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey$1> | (format: KeyFormat, keyData: ArrayBuffer | JsonWebKey, algorithm: RsaHashedImportParams, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey> |
AesCmacProvider.onExportKey | (format: KeyFormat, key: CryptoKey$1, ...args: any[]): Promise<ArrayBuffer | JsonWebKey> | (format: KeyFormat, key: CryptoKey, ...args: any[]): Promise<ArrayBuffer | JsonWebKey> |
AesCmacProvider.onImportKey | (format: KeyFormat, keyData: ArrayBuffer | JsonWebKey, algorithm: Algorithm, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey$1> | (format: KeyFormat, keyData: ArrayBuffer | JsonWebKey, algorithm: Algorithm, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey> |
AesCmacProvider.onGenerateKey | (algorithm: AesKeyGenParams, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey$1> | (algorithm: AesKeyGenParams, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey> |
RsaOaepProvider.onExportKey | (format: KeyFormat, key: CryptoKey$1, ...args: any[]): Promise<ArrayBuffer | JsonWebKey> | (format: KeyFormat, key: CryptoKey, ...args: any[]): Promise<ArrayBuffer | JsonWebKey> |
RsaOaepProvider.onImportKey | (format: KeyFormat, keyData: ArrayBuffer | JsonWebKey, algorithm: RsaHashedImportParams, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey$1> | (format: KeyFormat, keyData: ArrayBuffer | JsonWebKey, algorithm: RsaHashedImportParams, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey> |
EllipticProvider.onExportKey | (format: KeyFormat, key: CryptoKey$1, ...args: any[]): Promise<ArrayBuffer | JsonWebKey> | (format: KeyFormat, key: CryptoKey, ...args: any[]): Promise<ArrayBuffer | JsonWebKey> |
EllipticProvider.onImportKey | (format: KeyFormat, keyData: ArrayBuffer | JsonWebKey, algorithm: EcKeyImportParams, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey$1> | (format: KeyFormat, keyData: ArrayBuffer | JsonWebKey, algorithm: EcKeyImportParams, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKey> |
Nouvelles dépréciations
Aucun détecté.
Changements d’exigences (engines, dépendances peer)
| Avant | Après | |
|---|---|---|
engines.node | — | ^20.19.0 || >=22.12.0 |
peerDependencies.asn1js | — | ^4.0.0 |
peerDependencies.@peculiar/asn1-schema | — | ^3.0.0 |
peerDependencies.@peculiar/json-schema | — | ^3.0.0 |
Donnez ces données à votre agent IA
Vigia est un serveur MCP gratuit : votre agent de code vérifie les versions, les changements incompatibles et les vulnérabilités avant d'écrire du code. Sans inscription ni clé d'API.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Ajouter à CursorAjouter à VS Code★ Étoile sur GitHub
Tout autre client MCP
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Skill pour agents (SKILL.md) : indique à l'agent quand utiliser Vigia · GitHub Action pour les pull requests
Questions fréquentes
Quels sont les changements incompatibles en passant de webcrypto-core 1 à 2 ?
Entre webcrypto-core 1.9.2 et 2.0.0, Vigia a trouvé 2 exports supprimés, 1 signatures modifiées et 59 membres de classes ou d’interfaces supprimés ou modifiés.
Qu’est-ce qui a été déprécié dans webcrypto-core 2 ?
0 exports ou membres sont désormais marqués comme dépréciés dans webcrypto-core 2.0.0.
Pour les agents
GET https://vigia.coredls.cloud/v1/packages/npm/webcrypto-core/upgrade?from=1.9.2&to=2.0.0