From a769dc354334fc5b92ac237b100ccc50fae68a18 Mon Sep 17 00:00:00 2001 From: Jared Perreault Date: Wed, 12 Aug 2026 12:34:00 -0400 Subject: [PATCH] removes text-encoder dep --- custom-login/package.json | 3 +-- custom-login/src/polyfills.js | 11 ++++++----- okta-hosted-login/package.json | 1 - okta-hosted-login/src/polyfills.js | 11 ++++++----- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/custom-login/package.json b/custom-login/package.json index 0a084ccc..fcf190b1 100644 --- a/custom-login/package.json +++ b/custom-login/package.json @@ -17,8 +17,7 @@ "react-dom": "^17.0.2", "react-router-dom": "5.2.0", "semantic-ui-css": "2.4.1", - "semantic-ui-react": "2.1.5", - "text-encoding": "0.7.0" + "semantic-ui-react": "2.1.5" }, "devDependencies": { "@vitejs/plugin-react": "^4.6.0", diff --git a/custom-login/src/polyfills.js b/custom-login/src/polyfills.js index 3afc8212..6fa25cad 100644 --- a/custom-login/src/polyfills.js +++ b/custom-login/src/polyfills.js @@ -10,9 +10,10 @@ * See the License for the specific language governing permissions and limitations under the License. */ -// polyfill TextEncoder for IE Edge -import { TextEncoder } from 'text-encoding'; +// Example: for polyfilling TextEncoder for IE Edge +// +// import { TextEncoder } from 'text-encoding'; -if (typeof window.TextEncoder === 'undefined') { - window.TextEncoder = TextEncoder; -} +// if (typeof window.TextEncoder === 'undefined') { +// window.TextEncoder = TextEncoder; +// } diff --git a/okta-hosted-login/package.json b/okta-hosted-login/package.json index 33d9b639..af672505 100644 --- a/okta-hosted-login/package.json +++ b/okta-hosted-login/package.json @@ -16,7 +16,6 @@ "@okta/okta-auth-js": "*", "semantic-ui-css": "2.4.1", "semantic-ui-react": "2.1.5", - "text-encoding": "0.7.0", "@okta/okta-react": "^6.10.0" }, "devDependencies": { diff --git a/okta-hosted-login/src/polyfills.js b/okta-hosted-login/src/polyfills.js index 3afc8212..6fa25cad 100644 --- a/okta-hosted-login/src/polyfills.js +++ b/okta-hosted-login/src/polyfills.js @@ -10,9 +10,10 @@ * See the License for the specific language governing permissions and limitations under the License. */ -// polyfill TextEncoder for IE Edge -import { TextEncoder } from 'text-encoding'; +// Example: for polyfilling TextEncoder for IE Edge +// +// import { TextEncoder } from 'text-encoding'; -if (typeof window.TextEncoder === 'undefined') { - window.TextEncoder = TextEncoder; -} +// if (typeof window.TextEncoder === 'undefined') { +// window.TextEncoder = TextEncoder; +// }