This project adheres to Semantic Versioning.
Nothing yet!
v2.0.4 = 2021-08-16
- Upgraded dependencies with security issues
v2.0.3 - 2021-04-27
- Typescript build now uses CommonJS module types for higher compatibility
v2.0.2 - 2021-04-23
- Typescript types are now published with the package
v2.0.1 - 2021-01-14
- Updated build settings to include documentation. Intellisense in editors can now show TSDoc data.
- Corrected public/private scope issues in Token.js that exposed two private functions to the public and included them in the API documentation.
v2.0.0 - 2021-01-13
- Embassy has been completely rewritten in TypeScript. While the API is similar to previous versions, there was no attempt to maintain backward-compatibility for this first major release. Notable changes follow.
- Permissions have been changed to scopes, which can be granted and revoked as plain strings
- Claims can now be read and written directly on a
token.claims
object without accessor functions - HMAC signing and verification is now supported
This version intentionally skipped due to 2015 publishing error
- Updated all dependencies to resolve security warnings
- Updated all dependencies to resolve security warnings
- refreshPermissions, getPrivKey, and getPubKey are now called with the Token object itself as the final argument.
- options.getPrivKey is now called when a public key for the same KID already exists
- sign() can now be called when an
exp
claim is already set. Embassy will delete the existing claim before calculating the new one and signing.
- The
getPrivKey
option to dynamically load a private signing key.
- The sign() function now only throws if the subject is not found. Key resolution errors are rejections with a KeyNotFoundError.
- Initial release