Skip to content

Commit 3ab7274

Browse files
committed
Dropped support for old ways of accessing crypto. (BREAKING CHANGE)
1 parent ad9f972 commit 3ab7274

5 files changed

Lines changed: 30 additions & 36 deletions

File tree

crypto.browser.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.

crypto.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
/// <reference types="node" />
2-
import * as C from "crypto"
3-
4-
export const crypto = C.webcrypto as Crypto
1+
export const crypto = globalThis.crypto

package-lock.json

Lines changed: 29 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@
2525
}
2626
}
2727
},
28-
"browser": {
29-
"./dist/mjs/crypto": "./dist/mjs/crypto.browser",
30-
"./dist/cjs/crypto": "./dist/cjs/crypto.browser"
31-
},
3228
"git": {
3329
"tagName": "v${version}"
3430
},

tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
],
4444
"files": [
4545
"index.ts",
46-
"crypto.browser.ts",
4746
],
4847
"typeAcquisition": {
4948
"enable": true

0 commit comments

Comments
 (0)