Skip to content

Commit

Permalink
Version Packages (#38)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored Sep 6, 2023
1 parent e0ab92a commit c1805dd
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 16 deletions.
15 changes: 0 additions & 15 deletions .changeset/curly-bottles-sing.md

This file was deleted.

16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# @articulate/authentic

## 3.0.0

### Major Changes

- e0ab92a: Typescript refactor and replace `jsonwebtoken` and `jwks-rsa` in favor of `jose`

The biggest change on this version is the replacement of [jsonwebtoken](https://github.com/auth0/node-jsonwebtoken) and [jwks-rsa](https://github.com/auth0/node-jwks-rsa) in favor of [jose](https://github.com/panva/jose). jose exports the same features the other two libraries offer, without adding the extra dependencies previously required (it has zero dependencies!). This change significantly decreases `@authentic` final bundle size, allowing it to also be used in Lambdas.

Also, this new version doesn't export `authentic` as a default export anymore, apps using this new version will to import/require `{ authentic } from "@articulate/authentic"` instead.

Before upgrading make sure your app uses the new expected `jwks` and `verify` options (which differ from the old ones).

### Dual Export of ESM and CJS Bundles

Starting with this new version, Authentic started exporting both an ECMAScript Module (ESM) bundle and a CommonJS (CJS) bundle. This means that applications utilizing either of these architectures can now choose the bundle that best suits their specific use case.

## 2.0.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@articulate/authentic",
"version": "2.0.5",
"version": "3.0.0",
"description": "Proper validation of JWT's against JWK's",
"repository": "git@github.com:articulate/authentic.git",
"license": "MIT",
Expand Down

0 comments on commit c1805dd

Please sign in to comment.