From 59b7b667fbc4969b50d59aa746c9c08fc74483d2 Mon Sep 17 00:00:00 2001 From: Shuo Wu Date: Tue, 8 Jun 2021 17:45:57 +0000 Subject: [PATCH] chore: move crypto related modules to deps OKTA-402664 <<>> Artifact: okta-auth-js Files changed count: 3 PR Link: "https://github.com/okta/okta-auth-js/pull/808" --- CHANGELOG.md | 6 ++++++ package.json | 8 ++++---- yarn.lock | 2 +- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 100a0852a..446ba6c4e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 5.1.1 + +### Bug Fixes + +- [#808](https://github.com/okta/okta-auth-js/pull/808) Fixes CommonJS bundle missing crypto modules issue + ## 5.1.0 ### Features diff --git a/package.json b/package.json index adb92e3a8..fb697623f 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "private": true, "name": "@okta/okta-auth-js", "description": "The Okta Auth SDK", - "version": "5.1.0", + "version": "5.1.1", "homepage": "https://github.com/okta/okta-auth-js", "license": "Apache-2.0", "type": "commonjs", @@ -68,7 +68,10 @@ "dependencies": { "@babel/runtime": "^7.12.5", "@okta/okta-idx-js": "0.17.0", + "@peculiar/webcrypto": "1.1.6", "Base64": "1.1.0", + "atob": "^2.1.2", + "btoa": "^1.2.1", "core-js": "^3.6.5", "cross-fetch": "^3.0.6", "js-cookie": "2.2.1", @@ -89,17 +92,14 @@ "@babel/plugin-transform-typescript": "^7.10.5", "@babel/preset-env": "^7.8.2", "@babel/preset-typescript": "^7.10.4", - "@peculiar/webcrypto": "^1.1.6", "@types/jest": "^25.2.3", "@types/node": "^14.0.3", "@typescript-eslint/eslint-plugin": "^2.34.0", "@typescript-eslint/parser": "^2.34.0", - "atob": "^2.1.2", "babel-jest": "^26.6.3", "babel-loader": "^8.2.2", "babel-plugin-add-module-exports": "^1.0.2", "babel-plugin-inline-replace-variables": "^1.3.1", - "btoa": "^1.2.1", "chalk": "2.4.2", "cross-env": "^5.1.1", "eslint": "^7.1.0", diff --git a/yarn.lock b/yarn.lock index c12b687ef..7861d4332 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2206,7 +2206,7 @@ dependencies: tslib "^2.0.0" -"@peculiar/webcrypto@^1.1.4", "@peculiar/webcrypto@^1.1.6": +"@peculiar/webcrypto@1.1.6", "@peculiar/webcrypto@^1.1.4": version "1.1.6" resolved "https://registry.yarnpkg.com/@peculiar/webcrypto/-/webcrypto-1.1.6.tgz#484bb58be07149e19e873861b585b0d5e4f83b7b" integrity sha512-xcTjouis4Y117mcsJslWAGypwhxtXslkVdRp7e3tHwtuw0/xCp1te8RuMMv/ia5TsvxomcyX/T+qTbRZGLLvyA==