Commit graph

185 commits

Author SHA1 Message Date
Filip Skokan
f3a0cc9e73 refactor: src/jws/general/sign.ts 2021-11-11 17:06:00 +01:00
Filip Skokan
c6da6c2bc2 refactor: src/jwe/general/encrypt.ts 2021-11-11 16:58:27 +01:00
Filip Skokan
cfc93f5daf feat: add GeneralSign signature and GeneralEncrypt recipient builder chaining 2021-11-11 16:16:01 +01:00
Filip Skokan
808877ae88 refactor: src/runtime/node/hmac_digest.ts 2021-11-11 14:29:25 +01:00
Filip Skokan
3925ebc561 docs: update readmes and examples 2021-11-10 15:19:37 +01:00
Filip Skokan
53e84fa385 refactor(web): use is_key_like types 2021-11-09 18:13:00 +01:00
Filip Skokan
401cabf974 fix(node): dont mention CryptoKey in versions without webcrypto 2021-11-09 18:12:25 +01:00
Filip Skokan
e9981a6ab7 refactor(node): less unnecessary async 2021-11-09 16:03:39 +01:00
Filip Skokan
5f1320e08d refactor: runtime and lib 2021-11-09 15:28:06 +01:00
Filip Skokan
34e8e9cb00 refactor: simplify refs in general produce code 2021-11-09 11:21:46 +01:00
Filip Skokan
be56574b19 docs: GeneralSign addSignature 2021-11-08 22:30:59 +01:00
Filip Skokan
94eca81687 feat: General JWE Encryption 2021-11-08 22:30:58 +01:00
Filip Skokan
29e03ada92 refactor: update JWE Header disjoint error message 2021-11-08 21:38:49 +01:00
Filip Skokan
51a18b675a fix: importX509 certificate values that do not include a version number
closes #308
2021-11-05 23:40:10 +01:00
Filip Skokan
c3731481c7 refactor(node): skip concat on counter mode de/encrypt 2021-11-03 14:45:41 +01:00
Filip Skokan
57126f1806 fix: allow shorter HMAC secrets
With workarounds available its enforcement is just adding extra code
that annoys developers.
2021-11-01 17:52:04 +01:00
Filip Skokan
39520302d0 fix(edge-functions): don't use globalThis 2021-11-01 15:35:49 +01:00
Filip Skokan
92df7032fe
style: global prettierc 2021-10-27 17:47:13 +02:00
Filip Skokan
7ed731c567
fix(typescript): work around potentially missing global URL from DOM lib
This is a workaround for https://github.com/DefinitelyTyped/DefinitelyTyped/issues/34960

closes #295
2021-10-21 10:16:04 +02:00
Filip Skokan
e7658db400
refactor: less code 2021-10-17 19:42:41 +02:00
Filip Skokan
180d5abf31
refactor: remove duplicate code 2021-10-17 18:53:42 +02:00
Filip Skokan
5a4ea20fdc
refactor: src/lib/crypto_key.ts 2021-10-17 14:03:59 +02:00
Filip Skokan
e8299f246b
fix(web): check Uint8Array CEK lengths, refactor for better tree-shaking 2021-10-17 12:57:22 +02:00
Filip Skokan
89dc2aab99
fix(web): checking cryptokey applicability early 2021-10-15 14:49:34 +02:00
Shueh Chou Lu
2b8738e38a
fix(typescript): export ProduceJWT (#285) 2021-10-15 09:08:27 +02:00
Filip Skokan
cd850efac6
refactor(node): createRemoteJWKSet can now be easier mocked
closes #259
2021-10-14 23:19:29 +02:00
Filip Skokan
d68f104d58
fix(typescript): re-export all types from index.d.ts 2021-10-14 19:49:38 +02:00
Filip Skokan
dd2cf9ed2d
refactor: redo exports to support broader tooling
BREAKING CHANGE: All module named exports have moved from subpaths to
just "jose". For example, `import { jwtVerify } from 'jose/jwt/verify'`
is now just `import { jwtVerify } from 'jose'`.

BREAKING CHANGE: All submodule default exports and named have been
removed in favour of just "jose" named exports.
2021-10-14 14:08:05 +02:00
Filip Skokan
3e137d2427
refactor(typescript)!: remove repeated type re-exports 2021-10-14 13:45:06 +02:00
Filip Skokan
a51a9f6770
refactor: remove public API default exports in favour of named ones 2021-10-14 13:45:03 +02:00
Filip Skokan
cd1ccc6936
docs: reoder usage and import examples, update to import from "jose" 2021-10-14 13:44:59 +02:00
Filip Skokan
914e47fc9b
refactor: remove util/random
BREAKING CHANGE: The undocumented `jose/util/random` was removed.
2021-10-14 13:44:53 +02:00
Filip Skokan
5afb713fbb
refactor: rename calculateThumprint to calculateJwkThumbprint
BREAKING CHANGE: The `jose/jwk/thumbprint` named export
is renamed to `calculateJwkThumbprint`, now
`import { calculateJwkThumbprint } from 'jose'`
2021-10-14 13:44:40 +02:00
Filip Skokan
8d3cc3bb46
refactor: removed the deprecated jwk/parse module
BREAKING CHANGE: The deprecated `jose/jwk/parse` module was
removed, use `import { importJWK } from 'jose'` instead.
2021-10-14 13:44:33 +02:00
Filip Skokan
ec1d0e72fe
refactor: removed the deprecated jwk/from_key_like module
BREAKING CHANGE: The deprecated `jose/jwk/from_key_like` module was
removed, use `import { exportJWK } from 'jose'` instead.
2021-10-14 13:44:26 +02:00
Filip Skokan
73ba3708d4
fix: remove clutter when tree shaking browser dist 2021-10-14 12:21:02 +02:00
Filip Skokan
373e0e4b22
fix(typescript): JWTExpired error TS2417 2021-10-14 12:13:38 +02:00
Filip Skokan
08243010d9
fix: allow tree-shaking of errors 2021-10-13 13:35:22 +02:00
Filip Skokan
9932bb6828
chore: remove a bunch of ignores for deno's sake 2021-10-13 10:53:03 +02:00
Filip Skokan
d76bc2ce24
refactor: src/runtime/node/random.ts 2021-10-11 18:55:10 +02:00
Filip Skokan
8ef3a8ebb7
fix(typescript): PEM import functions always resolve a KeyLike, never a Uint8Array 2021-10-06 16:28:09 +02:00
Filip Skokan
efa1619517
fix: proper createRemoteJWKSet timeoutDuration handling
fixes #277
2021-10-06 16:09:34 +02:00
Filip Skokan
a13eb045d8
feat: improve key input type errors, remove dependency on @types/node 2021-10-06 11:57:48 +02:00
Filip Skokan
a34bdabb95
refactor: minor tweaks 2021-09-29 14:14:04 +02:00
Filip Skokan
7e3e59c236
docs: update types.d.ts 2021-09-27 21:12:52 +02:00
Filip Skokan
49fb62cb96
feat: return resolved key when verify and decrypt resolve functions are used 2021-09-25 22:27:28 +02:00
Filip Skokan
6c17d7fa63
refactor: parseJwk and fromKeyLike proper deprecation 2021-09-24 16:54:53 +02:00
Filip Skokan
203eef7000
refactor: remote and embedded helpers return extractable keys 2021-09-24 16:39:51 +02:00
Filip Skokan
a2af0f45fe
feat: add X.509/SPKI/PKCS8 key import and SPKI/PKCS8 export functions 2021-09-22 23:50:08 +02:00
Filip Skokan
31c7204ae8
style: prettier lint 2021-09-15 10:17:55 +02:00