auth0-deploy-cli 8.29.0 → 8.29.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [8.29.2] - 2026-03-17
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- Fix false-positive deprecation warning for `cross_origin_auth` when `cross_origin_authentication` is correctly used in config. [#1322]
|
|
15
|
+
|
|
16
|
+
## [8.29.1] - 2026-03-12
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- Fix bad request error when no `emailProvider` is configured. [#1321]
|
|
21
|
+
- Fix `enabled_clients` pagination for `connections`. [#1320]
|
|
22
|
+
|
|
10
23
|
## [8.29.0] - 2026-03-03
|
|
11
24
|
|
|
12
25
|
### Added
|
|
@@ -1669,7 +1682,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
1669
1682
|
[#1302]: https://github.com/auth0/auth0-deploy-cli/issues/1302
|
|
1670
1683
|
[#1310]: https://github.com/auth0/auth0-deploy-cli/issues/1310
|
|
1671
1684
|
[#1311]: https://github.com/auth0/auth0-deploy-cli/issues/1311
|
|
1672
|
-
[
|
|
1685
|
+
[#1320]: https://github.com/auth0/auth0-deploy-cli/issues/1320
|
|
1686
|
+
[#1321]: https://github.com/auth0/auth0-deploy-cli/issues/1321
|
|
1687
|
+
[#1322]: https://github.com/auth0/auth0-deploy-cli/issues/1322
|
|
1688
|
+
[Unreleased]: https://github.com/auth0/auth0-deploy-cli/compare/v8.29.2...HEAD
|
|
1689
|
+
[8.29.2]: https://github.com/auth0/auth0-deploy-cli/compare/v8.29.1...v8.29.2
|
|
1690
|
+
[8.29.1]: https://github.com/auth0/auth0-deploy-cli/compare/v8.29.0...v8.29.1
|
|
1673
1691
|
[8.29.0]: https://github.com/auth0/auth0-deploy-cli/compare/v8.28.0...v8.29.0
|
|
1674
1692
|
[8.28.0]: https://github.com/auth0/auth0-deploy-cli/compare/v8.27.0...v8.28.0
|
|
1675
1693
|
[8.27.0]: https://github.com/auth0/auth0-deploy-cli/compare/v8.26.0...v8.27.0
|
|
@@ -324,7 +324,7 @@ exports.schema = {
|
|
|
324
324
|
const createClientSanitizer = (clients) => {
|
|
325
325
|
let sanitized = clients;
|
|
326
326
|
return {
|
|
327
|
-
sanitizeCrossOriginAuth() {
|
|
327
|
+
sanitizeCrossOriginAuth(warn = true) {
|
|
328
328
|
const deprecatedClients = [];
|
|
329
329
|
sanitized = sanitized.map((client) => {
|
|
330
330
|
let updated = { ...client };
|
|
@@ -338,9 +338,8 @@ const createClientSanitizer = (clients) => {
|
|
|
338
338
|
}
|
|
339
339
|
return updated;
|
|
340
340
|
});
|
|
341
|
-
if (deprecatedClients.length > 0) {
|
|
342
|
-
logger_1.default.warn("The 'cross_origin_auth' parameter is deprecated
|
|
343
|
-
`Use 'cross_origin_authentication' going forward. Clients using the deprecated setting: [${deprecatedClients.join(', ')}]`);
|
|
341
|
+
if (warn && deprecatedClients.length > 0) {
|
|
342
|
+
logger_1.default.warn("The 'cross_origin_auth' parameter is deprecated. Use 'cross_origin_authentication' going forward.");
|
|
344
343
|
}
|
|
345
344
|
return this;
|
|
346
345
|
},
|
|
@@ -451,7 +450,7 @@ class ClientHandler extends default_1.default {
|
|
|
451
450
|
is_global: false,
|
|
452
451
|
...((0, utils_1.shouldExcludeThirdPartyClients)(this.config) && { is_first_party: true }),
|
|
453
452
|
});
|
|
454
|
-
this.existing = createClientSanitizer(clients).sanitizeCrossOriginAuth().get();
|
|
453
|
+
this.existing = createClientSanitizer(clients).sanitizeCrossOriginAuth(false).get();
|
|
455
454
|
return this.existing;
|
|
456
455
|
}
|
|
457
456
|
// convert names back to IDs for express configuration
|
|
@@ -166,24 +166,8 @@ const getConnectionEnabledClients = async (auth0Client, connectionId) => {
|
|
|
166
166
|
if (!connectionId)
|
|
167
167
|
return null;
|
|
168
168
|
try {
|
|
169
|
-
const
|
|
170
|
-
|
|
171
|
-
// Process first page
|
|
172
|
-
enabledClients.data?.forEach((client) => {
|
|
173
|
-
if (client?.client_id) {
|
|
174
|
-
enabledClientsFormatted.push(client.client_id);
|
|
175
|
-
}
|
|
176
|
-
});
|
|
177
|
-
// Fetch remaining pages
|
|
178
|
-
while (enabledClients.hasNextPage()) {
|
|
179
|
-
enabledClients = await enabledClients.getNextPage();
|
|
180
|
-
enabledClients.data?.forEach((client) => {
|
|
181
|
-
if (client?.client_id) {
|
|
182
|
-
enabledClientsFormatted.push(client.client_id);
|
|
183
|
-
}
|
|
184
|
-
});
|
|
185
|
-
}
|
|
186
|
-
return enabledClientsFormatted;
|
|
169
|
+
const enabledClients = await (0, client_1.paginate)((params) => auth0Client.connections.clients.get(connectionId, params), { checkpoint: true, take: 100 });
|
|
170
|
+
return enabledClients.filter((client) => !!client?.client_id).map((client) => client.client_id);
|
|
187
171
|
}
|
|
188
172
|
catch (error) {
|
|
189
173
|
return null;
|
|
@@ -77,6 +77,9 @@ class EmailProviderHandler extends default_1.default {
|
|
|
77
77
|
// HTTP DELETE on emails/provider is not supported, as this is not part of our vNext SDK.
|
|
78
78
|
if (Object.keys(emailProvider).length === 0) {
|
|
79
79
|
if (this.config('AUTH0_ALLOW_DELETE') === true) {
|
|
80
|
+
// If no existing provider, there is nothing to delete
|
|
81
|
+
if (!existing.name)
|
|
82
|
+
return;
|
|
80
83
|
// await this.client.emails.delete(); is not supported
|
|
81
84
|
if ((0, lodash_1.isEmpty)(existing.credentials)) {
|
|
82
85
|
delete existing.credentials;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "auth0-deploy-cli",
|
|
3
|
-
"version": "8.29.
|
|
3
|
+
"version": "8.29.2",
|
|
4
4
|
"description": "A command line tool for deploying updates to your Auth0 tenant",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"homepage": "https://github.com/auth0/auth0-deploy-cli#readme",
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"ajv": "^6.12.6",
|
|
36
|
-
"auth0": "^5.
|
|
36
|
+
"auth0": "^5.4.0",
|
|
37
37
|
"dot-prop": "^5.3.0",
|
|
38
38
|
"fs-extra": "^10.1.0",
|
|
39
39
|
"js-yaml": "^4.1.1",
|
|
@@ -42,18 +42,18 @@
|
|
|
42
42
|
"nconf": "^0.13.0",
|
|
43
43
|
"promise-pool-executor": "^1.1.1",
|
|
44
44
|
"sanitize-filename": "^1.6.3",
|
|
45
|
-
"undici": "^7.
|
|
45
|
+
"undici": "^7.24.3",
|
|
46
46
|
"winston": "^3.19.0",
|
|
47
47
|
"yargs": "^15.4.1"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@eslint/js": "^9.39.2",
|
|
51
51
|
"@types/fs-extra": "^9.0.13",
|
|
52
|
-
"@types/lodash": "^4.17.
|
|
52
|
+
"@types/lodash": "^4.17.24",
|
|
53
53
|
"@types/mocha": "^10.0.10",
|
|
54
54
|
"@types/nconf": "^0.10.7",
|
|
55
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
56
|
-
"@typescript-eslint/parser": "^8.
|
|
55
|
+
"@typescript-eslint/eslint-plugin": "^8.57.0",
|
|
56
|
+
"@typescript-eslint/parser": "^8.57.0",
|
|
57
57
|
"chai": "^4.5.0",
|
|
58
58
|
"chai-as-promised": "^7.1.2",
|
|
59
59
|
"eslint": "^9.39.2",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"sinon": "^13.0.2",
|
|
74
74
|
"sinon-chai": "^3.7.0",
|
|
75
75
|
"ts-mocha": "^11.1.0",
|
|
76
|
-
"typescript": "
|
|
76
|
+
"typescript": "~5.9.3"
|
|
77
77
|
},
|
|
78
78
|
"engines": {
|
|
79
79
|
"node": ">=20.19.0"
|