-
-
Notifications
You must be signed in to change notification settings - Fork 321
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added support for ESM (ECMAScript modules)
BREAKING CHANGE: due to added ESM module support Node.js version with ESM implementation bugs are no longer supported, this only affects early v13.x versions. The resulting Node.js semver range is `>=10.13.0 < 13 || >=13.7.0`
- Loading branch information
Showing
3 changed files
with
18 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,7 +48,7 @@ jobs: | |
- 11 | ||
- 12.0.0 | ||
- 12 | ||
- 13.0.0 | ||
- 13.7.0 | ||
- 13 | ||
- 14.0.0 | ||
- 14 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import mod from './index.js' | ||
|
||
export default mod | ||
export const JWE = mod.JWE | ||
export const JWK = mod.JWK | ||
export const JWKS = mod.JWKS | ||
export const JWS = mod.JWS | ||
export const JWT = mod.JWT | ||
export const errors = mod.errors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,18 +45,22 @@ | |
"funding": "https://github.com/sponsors/panva", | ||
"license": "MIT", | ||
"author": "Filip Skokan <[email protected]>", | ||
"exports": { | ||
"import": "./lib/index.mjs", | ||
"require": "./lib/index.js" | ||
}, | ||
"main": "lib/index.js", | ||
"types": "types/index.d.ts", | ||
"files": [ | ||
"lib/**/*.js", | ||
"LICENSE_THIRD_PARTY", | ||
"types/index.d.ts" | ||
], | ||
"main": "lib/index.js", | ||
"types": "types/index.d.ts", | ||
"scripts": { | ||
"coverage": "c8 ava", | ||
"lint": "standard", | ||
"lint-ts": "npx typescript@~3.6.0 --build types", | ||
"lint-fix": "standard --fix", | ||
"lint-ts": "npx typescript@~3.6.0 --build types", | ||
"test": "ava", | ||
"watch": "ava --watch" | ||
}, | ||
|
@@ -90,7 +94,7 @@ | |
"standard": "^14.3.1" | ||
}, | ||
"engines": { | ||
"node": ">=10.13.0" | ||
"node": ">=10.13.0 < 13 || >=13.7.0" | ||
}, | ||
"standard": { | ||
"parser": "babel-eslint" | ||
|