Skip to content

Commit b615ec1

Browse files
fix: remove class syntax from umd bundle (#1600)
OKTA-972681 fix: remove class syntax from umd bundle
1 parent 457e7b8 commit b615ec1

File tree

6 files changed

+13
-24
lines changed

6 files changed

+13
-24
lines changed

.bacon.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,3 @@ test_suites:
126126
# script_name: e2e-saucelabs
127127
# criteria: MERGE
128128
# queue_name: small
129-
130-
- name: semgrep
131-
script_path: ../okta-auth-js/scripts
132-
sort_order: '14'
133-
timeout: '10'
134-
script_name: semgrep
135-
criteria: MERGE
136-
queue_name: small

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ module.exports = {
177177
"no-unused-expressions": [2, { allowShortCircuit: true, allowTernary: true }],
178178
"no-unused-vars": 2,
179179
"max-depth": [2, 3],
180-
"max-len": [2, 120],
180+
"max-len": [2, { code: 120, ignoreUrls: true }],
181181
"max-params": [2, 5],
182182
"max-statements": [2, 25],
183183
quotes: [2, "single", { allowTemplateLiterals: true }],

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
# 7.13.1
4+
5+
### Fixes
6+
7+
- [#1600](https://github.com/okta/okta-auth-js/pull/1600) fix: removes `class` syntax from UMD bundle
8+
39
# 7.13.0
410

511
### Features

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"private": true,
33
"name": "@okta/okta-auth-js",
44
"description": "The Okta Auth SDK",
5-
"version": "7.13.0",
5+
"version": "7.13.1",
66
"homepage": "https://github.com/okta/okta-auth-js",
77
"license": "Apache-2.0",
88
"main": "build/cjs/exports/default.js",

scripts/semgrep.sh

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

webpack.common.config.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ if (process.env.NODE_ENV === 'development') {
3131
'@babel/plugin-transform-runtime'
3232
]);
3333
}
34-
var babelExclude = /node_modules\/(?!p-cancelable)/;
34+
35+
// oblivious-set is dependency of broadcast-channel and as of v1.4.0 uses es6 class syntax, which needs to be transpiled
36+
// https://github.com/pubkey/broadcast-channel/commit/190aeac0c6c20ad960131f66ba53c7a8af4535e9#diff-215536be822837c5fa02bf4c92ff56c279505685a6a1c5bc10807ee1acda37fcL1652
37+
var babelExclude = /node_modules\/(?!(p-cancelable|oblivious-set)\/)/;
3538

3639
module.exports = {
3740
module: {
@@ -47,7 +50,7 @@ module.exports = {
4750
resolve: {
4851
extensions: ['.js', '.ts'],
4952
alias: {
50-
'./node$': './browser', // use browser built-in objects and functions
53+
'./node$': './browser', // use browser built-in objects and functions,
5154
}
5255
},
5356
plugins: [

0 commit comments

Comments
 (0)