Skip to content

Releases

mera - v0.4.0

Choose a tag to compare

@mmv08 mmv08 released this 19 Nov 17:18
Immutable release. Only release title and notes can be modified.

Changelog

  • breaking: Rename WebAuthnClient.AllowCredential to WebAuthnClient.CredentialDescriptor, shared by allowCredential and the new excludeCredentials field on WebAuthnClient.CreateCredentialRequest. (#412)
  • Add an optional excludeCredentials list to createPasskeyWithPrfOutput, createSecretVaultWithNewPasskey, and the wagmi connector's connect({ create }), along with the new PASSKEY_EXISTS error code. When excludeCredentials is non-empty and the authenticator already holds one of those passkeys, both the browser and React Native clients reject with PASSKEY_EXISTS instead of creating a duplicate. (#412)
  • Add getCredential() to the mera() wagmi connector, returning the connected account's PasskeyCredentialMetadata while connected (including when wagmi's storage is null) or undefined when disconnected. (#412)
  • Set MeraError.credential to the created passkey's PasskeyCredentialMetadata when createPasskeyWithPrfOutput or createSecretVaultWithNewPasskey fails after the creation ceremony completes (including fallback-assertion, PRF-output, and vault-encryption failures). In the wagmi connector, a UserRejectedRequestError thrown when the fallback prompt is dismissed carries that MeraError as its cause. (#413)

mera - v0.3.0

Choose a tag to compare

@mmv08 mmv08 released this 20 Oct 12:42

Changelog

  • breaking: Make the signing sessions' signDigest and signMessage return the signature instead of a promise, and throw errors instead of rejecting. (#372)
  • breaking: Report a dismissed or timed-out passkey prompt, or a request no passkey answers, as the new PASSKEY_CANCELLED error code instead of PASSKEY_OPERATION_FAILED. (#386)
  • breaking: Remove isMeraError. Use error instanceof MeraError instead. (#370)
  • breaking: Return string from getSolanaAddress and remove the SolanaAddress type. (#373)
  • breaking: Let optional properties in public types accept undefined. A custom WebAuthnClient may now receive timeout or allowCredential set to undefined. (#371)
  • breaking: Raise the react-native-passkey peer dependency from 3.6.1 to 3.6.2. (#342)
  • Add deriveEvmPrivateKey and deriveSolanaPrivateKey, which derive an account's private key from a PRF output. They give the same accounts MetaMask and Phantom derive from the BIP-39 phrase whose entropy is that PRF output. (#374)
  • Add a wagmi connector, mera() from @category-labs/mera/wagmi, that signs in with or creates a passkey and prompts for it at each signature, or once per page load with keepSessionOpen. The connector needs @wagmi/core 3, an optional peer dependency. (#376, #377, #381, #383)
  • Add an immediate option to getPasskeyPrfOutput, which rejects at once with PASSKEY_CANCELLED and shows no prompt when the device holds no passkey. Chrome 148 and later and the React Native client support it; other browsers ignore it. (#377)
  • Check for crypto.subtle before createSecretVaultWithNewPasskey creates a passkey, so a runtime without it no longer leaves a passkey behind. Report a crypto.subtle that lacks HKDF or AES-GCM as CRYPTO_UNAVAILABLE instead of a raw DOMException. (#375)
  • Remove the package's engines.node: ">=24" requirement, so installs on older Node no longer warn or fail. (#303)

mera - v0.2.0

Choose a tag to compare

@mmv08 mmv08 released this 12 Aug 17:35

What's Changed

  • Remove user.id from passkey creation by @mmv08 in #273
  • Run passkey ceremonies through pluggable WebAuthn clients and add a React Native demo by @mmv08 in #264

Full Changelog: https://github.com/category-labs/mera/commits/v0.2.0