Repository navigation
Releases
Releases · category-labs/mera
mera - v0.4.0
Changelog
- breaking: Rename
WebAuthnClient.AllowCredentialtoWebAuthnClient.CredentialDescriptor, shared byallowCredentialand the newexcludeCredentialsfield onWebAuthnClient.CreateCredentialRequest. (#412) - Add an optional
excludeCredentialslist tocreatePasskeyWithPrfOutput,createSecretVaultWithNewPasskey, and the wagmi connector'sconnect({ create }), along with the newPASSKEY_EXISTSerror code. WhenexcludeCredentialsis non-empty and the authenticator already holds one of those passkeys, both the browser and React Native clients reject withPASSKEY_EXISTSinstead of creating a duplicate. (#412) - Add
getCredential()to themera()wagmi connector, returning the connected account'sPasskeyCredentialMetadatawhile connected (including when wagmi'sstorageisnull) orundefinedwhen disconnected. (#412) - Set
MeraError.credentialto the created passkey'sPasskeyCredentialMetadatawhencreatePasskeyWithPrfOutputorcreateSecretVaultWithNewPasskeyfails after the creation ceremony completes (including fallback-assertion, PRF-output, and vault-encryption failures). In the wagmi connector, aUserRejectedRequestErrorthrown when the fallback prompt is dismissed carries thatMeraErroras itscause. (#413)
mera - v0.3.0
Changelog
- breaking: Make the signing sessions'
signDigestandsignMessagereturn 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_CANCELLEDerror code instead ofPASSKEY_OPERATION_FAILED. (#386) - breaking: Remove
isMeraError. Useerror instanceof MeraErrorinstead. (#370) - breaking: Return
stringfromgetSolanaAddressand remove theSolanaAddresstype. (#373) - breaking: Let optional properties in public types accept
undefined. A customWebAuthnClientmay now receivetimeoutorallowCredentialset toundefined. (#371) - breaking: Raise the
react-native-passkeypeer dependency from 3.6.1 to 3.6.2. (#342) - Add
deriveEvmPrivateKeyandderiveSolanaPrivateKey, 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 withkeepSessionOpen. The connector needs@wagmi/core3, an optional peer dependency. (#376, #377, #381, #383) - Add an
immediateoption togetPasskeyPrfOutput, which rejects at once withPASSKEY_CANCELLEDand 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.subtlebeforecreateSecretVaultWithNewPasskeycreates a passkey, so a runtime without it no longer leaves a passkey behind. Report acrypto.subtlethat lacks HKDF or AES-GCM asCRYPTO_UNAVAILABLEinstead of a rawDOMException. (#375) - Remove the package's
engines.node: ">=24"requirement, so installs on older Node no longer warn or fail. (#303)
mera - v0.2.0
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