Skip to content

Commit a9fd053

Browse files
Release v9.26.0 (#1432)
1 parent e4c0e95 commit a9fd053

27 files changed

+800
-215
lines changed

.version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v9.25.0
1+
v9.26.0

CHANGELOG.md

+34
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,110 @@
11
# Change Log
22

3+
## [v9.26.0](https://github.com/auth0/auth0.js/tree/v9.26.0) (2024-04-30)
4+
5+
[Full Changelog](https://github.com/auth0/auth0.js/compare/v9.25.0...v9.26.0)
6+
7+
**Changed**
8+
9+
- Update endpoint and add API to get password reset challenge [\#1431](https://github.com/auth0/auth0.js/pull/1431) ([srijonsaha](https://github.com/srijonsaha))
10+
11+
**Note:** PR #1431 is a breaking change for a newly-added, WIP, undocumented feature.
12+
313
## [v9.25.0](https://github.com/auth0/auth0.js/tree/v9.25.0) (2024-04-25)
14+
415
[Full Changelog](https://github.com/auth0/auth0.js/compare/v9.24.1...v9.25.0)
516

617
**Added**
18+
719
- Add APIs to get captcha challenge for reset password [\#1426](https://github.com/auth0/auth0.js/pull/1426) ([srijonsaha](https://github.com/srijonsaha))
820

921
## [v9.24.1](https://github.com/auth0/auth0.js/tree/v9.24.1) (2024-01-04)
22+
1023
[Full Changelog](https://github.com/auth0/auth0.js/compare/v9.24.0...v9.24.1)
1124

1225
**Changed**
26+
1327
- [IAMRISK-3011] Auth0 V2 Captcha failOpen support [\#1382](https://github.com/auth0/auth0.js/pull/1382) ([alexkoumarianos-okta](https://github.com/alexkoumarianos-okta))
1428

1529
## [v9.24.0](https://github.com/auth0/auth0.js/tree/v9.24.0) (2023-12-13)
30+
1631
[Full Changelog](https://github.com/auth0/auth0.js/compare/v9.23.3...v9.24.0)
1732

1833
**Added**
34+
1935
- [IAMRISK-2915] Added support for Auth0 v2 captcha provider [\#1368](https://github.com/auth0/auth0.js/pull/1368) ([alexkoumarianos-okta](https://github.com/alexkoumarianos-okta))
2036

2137
## [v9.23.3](https://github.com/auth0/auth0.js/tree/v9.23.3) (2023-11-13)
38+
2239
[Full Changelog](https://github.com/auth0/auth0.js/compare/v9.23.2...v9.23.3)
2340

2441
**Security**
42+
2543
- Bump idtoken-verifier from 2.2.2 to 2.2.4 [\#1362](https://github.com/auth0/auth0.js/pull/1362) ([cgetzen](https://github.com/cgetzen))
2644

2745
## [v9.23.2](https://github.com/auth0/auth0.js/tree/v9.23.2) (2023-10-27)
46+
2847
[Full Changelog](https://github.com/auth0/auth0.js/compare/v9.23.1...v9.23.2)
2948

3049
**Security**
50+
3151
- Bump crypto-js from 4.1.1 to 4.2.0 [\#1354](https://github.com/auth0/auth0.js/pull/1354) ([dependabot[bot]](https://github.com/apps/dependabot))
3252

3353
## [v9.23.1](https://github.com/auth0/auth0.js/tree/v9.23.1) (2023-10-19)
54+
3455
[Full Changelog](https://github.com/auth0/auth0.js/compare/v9.23.0...v9.23.1)
3556

3657
**Changed**
58+
3759
- [IAMRISK-2817] Update API for Arkose to use a callback based API [\#1349](https://github.com/auth0/auth0.js/pull/1349) ([srijonsaha](https://github.com/srijonsaha))
3860

3961
## [v9.23.0](https://github.com/auth0/auth0.js/tree/v9.23.0) (2023-10-06)
62+
4063
[Full Changelog](https://github.com/auth0/auth0.js/compare/v9.22.1...v9.23.0)
4164

4265
**Added**
66+
4367
- [IAMRISK-2602] Add support for Arkose [\#1341](https://github.com/auth0/auth0.js/pull/1341) ([srijonsaha](https://github.com/srijonsaha))
4468

4569
## [v9.22.1](https://github.com/auth0/auth0.js/tree/v9.22.1) (2023-07-18)
70+
4671
[Full Changelog](https://github.com/auth0/auth0.js/compare/v9.22.0...v9.22.1)
4772

4873
**Changed**
74+
4975
- Do not lowercase org_name claim [\#1315](https://github.com/auth0/auth0.js/pull/1315) ([frederikprijck](https://github.com/frederikprijck))
5076

5177
## [v9.22.0](https://github.com/auth0/auth0.js/tree/v9.22.0) (2023-07-13)
78+
5279
[Full Changelog](https://github.com/auth0/auth0.js/compare/v9.21.0...v9.22.0)
5380

5481
**Added**
82+
5583
- Added support for hCaptcha and Friendly Captcha [\#1312](https://github.com/auth0/auth0.js/pull/1312) ([DominickBattistini](https://github.com/DominickBattistini))
5684
- Support Organization Name [\#1313](https://github.com/auth0/auth0.js/pull/1313) ([frederikprijck](https://github.com/frederikprijck))
5785

5886
**Security**
87+
5988
- Security: Update Dependencies [\#1310](https://github.com/auth0/auth0.js/pull/1310) ([evansims](https://github.com/evansims))
6089

6190
## [v9.21.0](https://github.com/auth0/auth0.js/tree/v9.21.0) (2023-05-24)
91+
6292
[Full Changelog](https://github.com/auth0/auth0.js/compare/v9.20.2...v9.21.0)
6393

6494
**Added**
95+
6596
- Add cookieDomain option [\#1304](https://github.com/auth0/auth0.js/pull/1304) ([telmaantunes](https://github.com/telmaantunes))
6697

6798
## [v9.20.2](https://github.com/auth0/auth0.js/tree/v9.20.2) (2023-02-28)
99+
68100
[Full Changelog](https://github.com/auth0/auth0.js/compare/v9.20.1...v9.20.2)
69101

70102
**Fixed**
103+
71104
- fix(docs): document `error()` option for `renderCaptcha()` [\#1290](https://github.com/auth0/auth0.js/pull/1290) ([pmalouin](https://github.com/pmalouin))
72105

73106
**Security**
107+
74108
- chore: update superagent to 7.1.5 [\#1296](https://github.com/auth0/auth0.js/pull/1296) ([stevehobbsdev](https://github.com/stevehobbsdev))
75109

76110
## [v9.20.1](https://github.com/auth0/auth0.js/tree/v9.20.1) (2023-01-12)

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ From CDN:
2323

2424
```html
2525
<!-- Latest patch release -->
26-
<script src="https://cdn.auth0.com/js/auth0/9.25.0/auth0.min.js"></script>
26+
<script src="https://cdn.auth0.com/js/auth0/9.26.0/auth0.min.js"></script>
2727
```
2828

2929
From [npm](https://npmjs.org):

dist/auth0.js

+44-88
Large diffs are not rendered by default.

dist/auth0.min.esm.js

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/auth0.min.esm.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/auth0.min.js

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/auth0.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cordova-auth0-plugin.js

+40-84
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
2-
* auth0-js v9.25.0
2+
* auth0-js v9.26.0
33
* Author: Auth0
4-
* Date: 2024-04-29
4+
* Date: 2024-04-30
55
* License: MIT
66
*/
77

@@ -11,7 +11,7 @@
1111
(global = global || self, global.CordovaAuth0Plugin = factory());
1212
}(this, (function () { 'use strict';
1313

14-
var version = { raw: '9.25.0' };
14+
var version = { raw: '9.26.0' };
1515

1616
var toString = Object.prototype.toString;
1717

@@ -504,88 +504,46 @@
504504
return shams();
505505
};
506506

507-
var test = {
508-
foo: {}
509-
};
510-
511-
var $Object = Object;
512-
513-
var hasProto = function hasProto() {
514-
return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object);
515-
};
516-
517507
/* eslint no-invalid-this: 1 */
518508

519509
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
510+
var slice = Array.prototype.slice;
520511
var toStr = Object.prototype.toString;
521-
var max = Math.max;
522512
var funcType = '[object Function]';
523513

524-
var concatty = function concatty(a, b) {
525-
var arr = [];
526-
527-
for (var i = 0; i < a.length; i += 1) {
528-
arr[i] = a[i];
529-
}
530-
for (var j = 0; j < b.length; j += 1) {
531-
arr[j + a.length] = b[j];
532-
}
533-
534-
return arr;
535-
};
536-
537-
var slicy = function slicy(arrLike, offset) {
538-
var arr = [];
539-
for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
540-
arr[j] = arrLike[i];
541-
}
542-
return arr;
543-
};
544-
545-
var joiny = function (arr, joiner) {
546-
var str = '';
547-
for (var i = 0; i < arr.length; i += 1) {
548-
str += arr[i];
549-
if (i + 1 < arr.length) {
550-
str += joiner;
551-
}
552-
}
553-
return str;
554-
};
555-
556514
var implementation = function bind(that) {
557515
var target = this;
558-
if (typeof target !== 'function' || toStr.apply(target) !== funcType) {
516+
if (typeof target !== 'function' || toStr.call(target) !== funcType) {
559517
throw new TypeError(ERROR_MESSAGE + target);
560518
}
561-
var args = slicy(arguments, 1);
519+
var args = slice.call(arguments, 1);
562520

563521
var bound;
564522
var binder = function () {
565523
if (this instanceof bound) {
566524
var result = target.apply(
567525
this,
568-
concatty(args, arguments)
526+
args.concat(slice.call(arguments))
569527
);
570528
if (Object(result) === result) {
571529
return result;
572530
}
573531
return this;
532+
} else {
533+
return target.apply(
534+
that,
535+
args.concat(slice.call(arguments))
536+
);
574537
}
575-
return target.apply(
576-
that,
577-
concatty(args, arguments)
578-
);
579-
580538
};
581539

582-
var boundLength = max(0, target.length - args.length);
540+
var boundLength = Math.max(0, target.length - args.length);
583541
var boundArgs = [];
584542
for (var i = 0; i < boundLength; i++) {
585-
boundArgs[i] = '$' + i;
543+
boundArgs.push('$' + i);
586544
}
587545

588-
bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);
546+
bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
589547

590548
if (target.prototype) {
591549
var Empty = function Empty() {};
@@ -644,23 +602,18 @@
644602
: throwTypeError;
645603

646604
var hasSymbols$1 = hasSymbols();
647-
var hasProto$1 = hasProto();
648605

649-
var getProto = Object.getPrototypeOf || (
650-
hasProto$1
651-
? function (x) { return x.__proto__; } // eslint-disable-line no-proto
652-
: null
653-
);
606+
var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
654607

655608
var needsEval = {};
656609

657-
var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined$1 : getProto(Uint8Array);
610+
var TypedArray = typeof Uint8Array === 'undefined' ? undefined$1 : getProto(Uint8Array);
658611

659612
var INTRINSICS = {
660613
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
661614
'%Array%': Array,
662615
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
663-
'%ArrayIteratorPrototype%': hasSymbols$1 && getProto ? getProto([][Symbol.iterator]()) : undefined$1,
616+
'%ArrayIteratorPrototype%': hasSymbols$1 ? getProto([][Symbol.iterator]()) : undefined$1,
664617
'%AsyncFromSyncIteratorPrototype%': undefined$1,
665618
'%AsyncFunction%': needsEval,
666619
'%AsyncGenerator%': needsEval,
@@ -690,10 +643,10 @@
690643
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
691644
'%isFinite%': isFinite,
692645
'%isNaN%': isNaN,
693-
'%IteratorPrototype%': hasSymbols$1 && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
646+
'%IteratorPrototype%': hasSymbols$1 ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
694647
'%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
695648
'%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
696-
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$1 || !getProto ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
649+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$1 ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
697650
'%Math%': Math,
698651
'%Number%': Number,
699652
'%Object%': Object,
@@ -706,10 +659,10 @@
706659
'%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
707660
'%RegExp%': RegExp,
708661
'%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
709-
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$1 || !getProto ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
662+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$1 ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
710663
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
711664
'%String%': String,
712-
'%StringIteratorPrototype%': hasSymbols$1 && getProto ? getProto(''[Symbol.iterator]()) : undefined$1,
665+
'%StringIteratorPrototype%': hasSymbols$1 ? getProto(''[Symbol.iterator]()) : undefined$1,
713666
'%Symbol%': hasSymbols$1 ? Symbol : undefined$1,
714667
'%SyntaxError%': $SyntaxError,
715668
'%ThrowTypeError%': ThrowTypeError,
@@ -725,14 +678,12 @@
725678
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
726679
};
727680

728-
if (getProto) {
729-
try {
730-
null.error; // eslint-disable-line no-unused-expressions
731-
} catch (e) {
732-
// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
733-
var errorProto = getProto(getProto(e));
734-
INTRINSICS['%Error.prototype%'] = errorProto;
735-
}
681+
try {
682+
null.error; // eslint-disable-line no-unused-expressions
683+
} catch (e) {
684+
// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
685+
var errorProto = getProto(getProto(e));
686+
INTRINSICS['%Error.prototype%'] = errorProto;
736687
}
737688

738689
var doEval = function doEval(name) {
@@ -750,7 +701,7 @@
750701
}
751702
} else if (name === '%AsyncIteratorPrototype%') {
752703
var gen = doEval('%AsyncGenerator%');
753-
if (gen && getProto) {
704+
if (gen) {
754705
value = getProto(gen.prototype);
755706
}
756707
}
@@ -1943,6 +1894,7 @@
19431894
};
19441895

19451896
var isArray$3 = Array.isArray;
1897+
var split = String.prototype.split;
19461898
var push = Array.prototype.push;
19471899
var pushToArray = function (arr, valueOrArray) {
19481900
push.apply(arr, isArray$3(valueOrArray) ? valueOrArray : [valueOrArray]);
@@ -2044,6 +1996,14 @@
20441996
if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
20451997
if (encoder) {
20461998
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);
1999+
if (generateArrayPrefix === 'comma' && encodeValuesOnly) {
2000+
var valuesArray = split.call(String(obj), ',');
2001+
var valuesJoined = '';
2002+
for (var i = 0; i < valuesArray.length; ++i) {
2003+
valuesJoined += (i === 0 ? '' : ',') + formatter(encoder(valuesArray[i], defaults.encoder, charset, 'value', format));
2004+
}
2005+
return [formatter(keyValue) + (commaRoundTrip && isArray$3(obj) && valuesArray.length === 1 ? '[]' : '') + '=' + valuesJoined];
2006+
}
20472007
return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
20482008
}
20492009
return [formatter(prefix) + '=' + formatter(String(obj))];
@@ -2058,9 +2018,6 @@
20582018
var objKeys;
20592019
if (generateArrayPrefix === 'comma' && isArray$3(obj)) {
20602020
// we need to join elements in
2061-
if (encodeValuesOnly && encoder) {
2062-
obj = utils.maybeMap(obj, encoder);
2063-
}
20642021
objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
20652022
} else if (isArray$3(filter)) {
20662023
objKeys = filter;
@@ -2093,7 +2050,7 @@
20932050
commaRoundTrip,
20942051
strictNullHandling,
20952052
skipNulls,
2096-
generateArrayPrefix === 'comma' && encodeValuesOnly && isArray$3(obj) ? null : encoder,
2053+
encoder,
20972054
filter,
20982055
sort,
20992056
allowDots,
@@ -2290,8 +2247,7 @@
22902247
var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
22912248

22922249
var parseValues = function parseQueryStringValues(str, options) {
2293-
var obj = { __proto__: null };
2294-
2250+
var obj = {};
22952251
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
22962252
var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
22972253
var parts = cleanStr.split(options.delimiter, limit);

dist/cordova-auth0-plugin.min.js

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cordova-auth0-plugin.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/Authentication.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4202,7 +4202,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Authentic
42024202
<br class="clear">
42034203

42044204
<footer>
4205-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Thu Apr 25 2024 11:57:15 GMT+0100 (British Summer Time)
4205+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Tue Apr 30 2024 13:51:03 GMT+0100 (British Summer Time)
42064206
</footer>
42074207

42084208
<script> prettyPrint(); </script>

docs/Management.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1205,7 +1205,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Authentic
12051205
<br class="clear">
12061206

12071207
<footer>
1208-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Thu Apr 25 2024 11:57:15 GMT+0100 (British Summer Time)
1208+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Tue Apr 30 2024 13:51:03 GMT+0100 (British Summer Time)
12091209
</footer>
12101210

12111211
<script> prettyPrint(); </script>

0 commit comments

Comments
 (0)