Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Nov 25, 2024

This PR contains the following updates:

Package Change Age Confidence
@simplewebauthn/types (source) 10.0.012.0.0 age confidence

Release Notes

MasterKale/SimpleWebAuthn (@​simplewebauthn/types)

v12.0.0

Compare Source

All SimpleWebAuthn packages are now available for installation from the
JavaScript Registry (JSR)! JSR is an "open-source package registry
for modern JavaScript and TypeScript" - you can read more about this new package registry and its
ESM-centric capabilities here.

All packages in v12.0.0 are functionally identical to v11.0.0! And JSR package hosting is in
addition to
existing package hosting on NPM. Nothing changes about package installation via
npm install. Read on for more information.

Packages
Changes
  • [browser] [server] [types] All packages can now be installed from JSR wherever JSR
    imports are supported (#​634)
  • [browser] Deno projects using frameworks like Fresh can now import and use
    @​simplewebauthn/browser (#​634)

To install from JSR, use npx jsr add @​simplewebauthn/... or deno add jsr:@​simplewebauthn/...
depending on which package manager is available.

Projects using npm for package management:
npx jsr add @​simplewebauthn/browser
npx jsr add @​simplewebauthn/server
npx jsr add @​simplewebauthn/types
Projects using deno for package management:
deno add jsr:@​simplewebauthn/browser
deno add jsr:@​simplewebauthn/server
deno add jsr:@​simplewebauthn/types
Projects using HTTPS modules via deno.land/x:

v12.0.0 officially deprecates importing SimpleWebAuthn from deno.land/x. See Breaking Changes
below for refactor guidance.

Breaking Changes

Importing SimpleWebAuthn packages from "https://deno.land/x/simplewebauthn/..." URLs is no longer
supported. Please use Deno's native support for JSR imports instead, available in projects running
Deno v1.42 and higher.

Before:

import { generateAuthenticationOptions } from 'https://deno.land/x/simplewebauthn/deno/server.ts';

After:

import { generateAuthenticationOptions } from 'jsr:@​simplewebauthn/server';

Alternatively, use deno add to install these packages from
JSR:

# Deno v1.42 and higher
deno add jsr:@​simplewebauthn/server
import { generateAuthenticationOptions } from '@​simplewebauthn/server';

v11.0.0

Compare Source

Say hello to support for automatic passkey registration, support for valid conditional UI <input>
elements stashed away in web components, and to the new WebAuthnCredential type that modernizes
some logic within.

There are some breaking changes in this release! Please see Breaking Changes below for refactor
guidance.

Packages
Changes
  • [browser] [server] A new useAutoRegister argument has been added to startRegistration() to
    support attempts to automatically register passkeys for users who just completed non-passkey auth.
    verifyRegistrationResponse() has gained a new requireUserPresence option that can be set to
    false when verifying responses from startRegistration({ useAutoRegister: true, ... })
    (#​623)
  • [browser] A new verifyBrowserAutofillInput argument has been added to
    startAuthentication() to disable throwing an error when a correctly configured <input> element
    cannot be found (but perhaps a valid one is present in a web component shadow's DOM)
    (#​621)
  • [server] [types] The AuthenticatorDevice type has been renamed to WebAuthnCredential and
    has had its properties renamed. The return value out of verifyRegistrationResponse() and
    corresponding inputs into verifyAuthenticationResponse() have been updated accordingly. See
    Breaking Changes below for refactor guidance
    (#​625)
  • [server] verifyRegistrationResponse() now verifies that the authenticator data AAGUID
    matches the leaf cert's id-fido-gen-ce-aaguid extension AAGUID when it is present
    (#​609)
  • [server] TPM attestation verification recognizes the corrected TPM manufacturer identifier for
    IBM (#​610)
  • [server] Types for the defunct authenticator extensions uvm and dpk have been removed
    (#​611)
Breaking Changes
[browser] Positional arguments in startRegistration() and startAuthentication() have been replaced by a single object

Property names in the object match the names of the previously-positional arguments. To update
existing implementations, wrap existing options in an object with corresponding properties:

Before:

startRegistration(options);
startAuthentication(options, true);

After:

startRegistration({ optionsJSON: options });
startAuthentication({ optionsJSON: options, useBrowserAutofill: true });
[server] [types] The AuthenticatorDevice type has been renamed to WebAuthnCredential

AuthenticatorDevice.credentialID and AuthenticatorDevice.credentialPublicKey have been shortened
to WebAuthnCredential.id and WebAuthnCredential.publicKey respectively.

verifyRegistrationResponse() has been updated accordingly to return a new credential value of
type WebAuthnCredential. Update code that stores credentialID, credentialPublicKey, and
counter out of verifyRegistrationResponse() to store credential.id, credential.publicKey,
and credential.counter instead:

Before:

const { registrationInfo } = await verifyRegistrationResponse({...});

storeInDatabase(
  registrationInfo.credentialID,
  registrationInfo.credentialPublicKey,
  registrationInfo.counter,
  body.response.transports,
);

After:

const { registrationInfo } = await verifyRegistrationResponse({...});

storeInDatabase(
  registrationInfo.credential.id,
  registrationInfo.credential.publicKey,
  registrationInfo.credential.counter,
  registrationInfo.credential.transports,
);

Update calls to verifyAuthenticationResponse() to match the new credential argument that
replaces the authenticator argument:

Before:

import { AuthenticatorDevice } from '@&#8203;simplewebauthn/types';

const authenticator: AuthenticatorDevice = {
  credentialID: ...,
  credentialPublicKey: ...,
  counter: 0,
  transports: [...],
};

const verification = await verifyAuthenticationResponse({
  // ...
  authenticator,
});

After:

import { WebAuthnCredential } from '@&#8203;simplewebauthn/types';

const credential: WebAuthnCredential = {
  id: ...,
  publicKey: ...,
  counter: 0,
  transports: [...],
};

const verification = await verifyAuthenticationResponse({
  // ...
  credential,
});

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/simplewebauthn-types-12.x branch from e799775 to cd8cc00 Compare November 25, 2024 12:13
@renovate renovate bot force-pushed the renovate/simplewebauthn-types-12.x branch from cd8cc00 to 340b297 Compare November 26, 2024 00:15
@renovate renovate bot force-pushed the renovate/simplewebauthn-types-12.x branch from 340b297 to dbc82c6 Compare November 26, 2024 03:16
@renovate renovate bot force-pushed the renovate/simplewebauthn-types-12.x branch from dbc82c6 to 5743e5f Compare November 26, 2024 09:33
@renovate renovate bot force-pushed the renovate/simplewebauthn-types-12.x branch from 5743e5f to 601b908 Compare November 26, 2024 19:09
@renovate renovate bot force-pushed the renovate/simplewebauthn-types-12.x branch from 601b908 to 7ec5a8a Compare November 26, 2024 22:54
@renovate renovate bot force-pushed the renovate/simplewebauthn-types-12.x branch from 7ec5a8a to 6a494cc Compare November 27, 2024 02:03
@renovate renovate bot force-pushed the renovate/simplewebauthn-types-12.x branch from 6a494cc to bcace7d Compare November 27, 2024 17:27
@renovate renovate bot force-pushed the renovate/simplewebauthn-types-12.x branch from bcace7d to 7c6f10d Compare November 27, 2024 19:15
@renovate renovate bot force-pushed the renovate/simplewebauthn-types-12.x branch from 7c6f10d to 6c90983 Compare November 27, 2024 22:05
@renovate renovate bot force-pushed the renovate/simplewebauthn-types-12.x branch from 6c90983 to 034b67e Compare November 28, 2024 11:36
@renovate renovate bot force-pushed the renovate/simplewebauthn-types-12.x branch from 034b67e to 410d248 Compare November 28, 2024 12:41
@renovate renovate bot force-pushed the renovate/simplewebauthn-types-12.x branch from 410d248 to eea0901 Compare November 28, 2024 17:23
@renovate renovate bot force-pushed the renovate/simplewebauthn-types-12.x branch from eea0901 to cfc7f25 Compare November 28, 2024 18:23
@renovate renovate bot force-pushed the renovate/simplewebauthn-types-12.x branch from cfc7f25 to ebbb856 Compare November 29, 2024 18:31
@renovate renovate bot force-pushed the renovate/simplewebauthn-types-12.x branch from de7725b to 74d1e8a Compare September 21, 2025 10:54
@renovate renovate bot force-pushed the renovate/simplewebauthn-types-12.x branch from 74d1e8a to 87ee3cf Compare September 22, 2025 19:51
@renovate renovate bot force-pushed the renovate/simplewebauthn-types-12.x branch from 87ee3cf to 7a1da8f Compare September 28, 2025 10:52
@renovate renovate bot force-pushed the renovate/simplewebauthn-types-12.x branch from 7a1da8f to 8638570 Compare September 30, 2025 08:19
@renovate renovate bot force-pushed the renovate/simplewebauthn-types-12.x branch 2 times, most recently from 8ac4085 to 21d1bad Compare October 1, 2025 23:51
@renovate renovate bot force-pushed the renovate/simplewebauthn-types-12.x branch from 21d1bad to 257d37e Compare October 5, 2025 10:47
@renovate renovate bot force-pushed the renovate/simplewebauthn-types-12.x branch from 257d37e to 96bfd6a Compare October 6, 2025 20:05
@renovate renovate bot force-pushed the renovate/simplewebauthn-types-12.x branch from 96bfd6a to bf2655d Compare October 12, 2025 11:21
@renovate renovate bot force-pushed the renovate/simplewebauthn-types-12.x branch from bf2655d to cb6da2c Compare October 19, 2025 11:35
@renovate renovate bot force-pushed the renovate/simplewebauthn-types-12.x branch 2 times, most recently from cd81a2f to 8f0206c Compare October 20, 2025 08:50
@renovate renovate bot force-pushed the renovate/simplewebauthn-types-12.x branch from 8f0206c to a2c934b Compare November 20, 2025 00:01
@renovate renovate bot force-pushed the renovate/simplewebauthn-types-12.x branch from a2c934b to c2b34fc Compare November 23, 2025 11:47
@renovate renovate bot force-pushed the renovate/simplewebauthn-types-12.x branch from c2b34fc to f541ac9 Compare November 30, 2025 16:10
@renovate renovate bot force-pushed the renovate/simplewebauthn-types-12.x branch from f541ac9 to 7c2a3fe Compare December 7, 2025 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants