Skip to content

Commit 7432dfc

Browse files
authored
Merge pull request #1642 from contentstack/staging
DX | 28-10-2024 | Release
2 parents f932a1f + 68e9e1a commit 7432dfc

File tree

18 files changed

+2694
-1656
lines changed

18 files changed

+2694
-1656
lines changed

package-lock.json

Lines changed: 1996 additions & 1017 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/contentstack-audit/package.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -21,35 +21,35 @@
2121
"@contentstack/cli-command": "~1.3.2",
2222
"@contentstack/cli-utilities": "~1.8.0",
2323
"@oclif/plugin-help": "^5",
24-
"@oclif/plugin-plugins": "^5.0.0",
24+
"@oclif/plugin-plugins": "^5.4.15",
2525
"chalk": "^4.1.2",
2626
"fast-csv": "^4.3.6",
27-
"fs-extra": "^11.1.1",
27+
"fs-extra": "^11.2.0",
2828
"lodash": "^4.17.21",
2929
"uuid": "^9.0.1",
30-
"winston": "^3.10.0"
30+
"winston": "^3.15.0"
3131
},
3232
"devDependencies": {
3333
"@contentstack/cli-dev-dependencies": "^1.2.4",
3434
"@oclif/test": "^2.5.6",
35-
"@types/chai": "^4.3.5",
36-
"@types/fs-extra": "^11.0.2",
37-
"@types/mocha": "^10.0.6",
38-
"@types/node": "^20.3.1",
39-
"@types/uuid": "^9.0.4",
40-
"chai": "^4.3.7",
41-
"eslint": "^8.43.0",
35+
"@types/chai": "^4.3.20",
36+
"@types/fs-extra": "^11.0.4",
37+
"@types/mocha": "^10.0.9",
38+
"@types/node": "^20.16.14",
39+
"@types/uuid": "^9.0.8",
40+
"chai": "^4.5.0",
41+
"eslint": "^8.57.1",
4242
"eslint-config-oclif": "^4.0.0",
43-
"eslint-config-oclif-typescript": "^3.0.8",
44-
"mocha": "^10.2.0",
43+
"eslint-config-oclif-typescript": "^3.1.12",
44+
"mocha": "^10.7.3",
4545
"nyc": "^15.1.0",
4646
"oclif": "^3",
4747
"shx": "^0.3.4",
48-
"sinon": "^19.0.0",
49-
"ts-jest": "^29.1.1",
50-
"ts-node": "^10.9.1",
51-
"tslib": "^2.5.3",
52-
"typescript": "^5.1.3"
48+
"sinon": "^19.0.2",
49+
"ts-jest": "^29.2.5",
50+
"ts-node": "^10.9.2",
51+
"tslib": "^2.8.0",
52+
"typescript": "^5.6.3"
5353
},
5454
"oclif": {
5555
"bin": "csdx",

packages/contentstack-auth/package.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -24,35 +24,35 @@
2424
"dependencies": {
2525
"@contentstack/cli-command": "~1.3.2",
2626
"@contentstack/cli-utilities": "~1.8.0",
27-
"chalk": "^4.0.0",
27+
"chalk": "^4.1.2",
2828
"debug": "^4.1.1",
29-
"inquirer": "8.2.4",
30-
"winston": "^3.7.2"
29+
"inquirer": "8.2.6",
30+
"winston": "^3.15.0"
3131
},
3232
"devDependencies": {
3333
"@fancy-test/nock": "^0.1.1",
34-
"@oclif/plugin-help": "^5.1.19",
34+
"@oclif/plugin-help": "^5.2.20",
3535
"@oclif/test": "^2.5.6",
36-
"@types/chai": "^4.2.18",
37-
"@types/inquirer": "^9.0.3",
38-
"@types/mkdirp": "^1.0.1",
39-
"@types/mocha": "^8.2.2",
40-
"@types/node": "^14.14.32",
41-
"@types/sinon": "^10.0.2",
42-
"chai": "^4.3.4",
43-
"dotenv": "^16.0.3",
44-
"eslint": "^8.18.0",
36+
"@types/chai": "^4.3.20",
37+
"@types/inquirer": "^9.0.7",
38+
"@types/mkdirp": "^1.0.2",
39+
"@types/mocha": "^8.2.3",
40+
"@types/node": "^14.18.63",
41+
"@types/sinon": "^10.0.20",
42+
"chai": "^4.5.0",
43+
"dotenv": "^16.4.5",
44+
"eslint": "^8.57.1",
4545
"eslint-config-oclif": "^4.0.0",
46-
"eslint-config-oclif-typescript": "^3.0.8",
46+
"eslint-config-oclif-typescript": "^3.1.12",
4747
"globby": "^10.0.2",
48-
"mocha": "10.1.0",
48+
"mocha": "10.7.3",
4949
"nyc": "^15.1.0",
50-
"oclif": "^3.8.1",
50+
"oclif": "^3.17.2",
5151
"rimraf": "^2.7.1",
52-
"sinon": "^19.0.0",
52+
"sinon": "^19.0.2",
5353
"tmp": "^0.2.2",
54-
"ts-node": "^10.9.1",
55-
"typescript": "^4.9.3"
54+
"ts-node": "^10.9.2",
55+
"typescript": "^4.9.5"
5656
},
5757
"engines": {
5858
"node": ">=14.0.0"

packages/contentstack-bootstrap/package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,28 +20,28 @@
2020
"@contentstack/cli-cm-seed": "~1.10.0",
2121
"@contentstack/cli-command": "~1.3.2",
2222
"@contentstack/cli-utilities": "~1.8.0",
23-
"inquirer": "8.2.4",
23+
"inquirer": "8.2.6",
2424
"mkdirp": "^1.0.4",
2525
"tar": "^6.2.1 "
2626
},
2727
"devDependencies": {
2828
"@oclif/test": "^2.5.6",
29-
"@types/inquirer": "^9.0.3",
30-
"@types/mkdirp": "^1.0.1",
31-
"@types/node": "^14.14.32",
32-
"@types/tar": "^6.1.3",
33-
"chai": "^4.3.4",
34-
"eslint": "^8.18.0",
29+
"@types/inquirer": "^9.0.7",
30+
"@types/mkdirp": "^1.0.2",
31+
"@types/node": "^14.18.63",
32+
"@types/tar": "^6.1.13",
33+
"chai": "^4.5.0",
34+
"eslint": "^8.57.1",
3535
"eslint-config-oclif": "^4.0.0",
36-
"eslint-config-oclif-typescript": "^3.0.8",
36+
"eslint-config-oclif-typescript": "^3.1.12",
3737
"globby": "^10.0.2",
38-
"mocha": "10.1.0",
38+
"mocha": "10.7.3",
3939
"nyc": "^15.1.0",
40-
"oclif": "^3.8.1",
40+
"oclif": "^3.17.2",
4141
"rimraf": "^2.7.1",
42-
"tmp": "^0.2.2",
42+
"tmp": "^0.2.3",
4343
"ts-node": "^8.10.2",
44-
"typescript": "^4.9.3"
44+
"typescript": "^4.9.5"
4545
},
4646
"engines": {
4747
"node": ">=14.0.0"

packages/contentstack-branches/package.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,42 +8,42 @@
88
"@contentstack/cli-command": "~1.3.2",
99
"@contentstack/cli-utilities": "~1.8.0",
1010
"@oclif/core": "^3.26.5",
11-
"async": "^3.2.4",
11+
"async": "^3.2.6",
1212
"big-json": "^3.2.0",
1313
"bluebird": "^3.7.2",
1414
"chalk": "^4.1.2",
1515
"is-valid-path": "^0.1.1",
1616
"just-diff": "^6.0.2",
17-
"lodash": "^4.17.20",
17+
"lodash": "^4.17.21",
1818
"merge": "^2.1.1",
1919
"mkdirp": "^1.0.4",
2020
"path": "^0.12.7",
2121
"progress-stream": "^2.0.0",
2222
"promise-limit": "^2.7.0",
2323
"proxyquire": "^2.1.3",
24-
"tslib": "^2.4.1",
25-
"winston": "^3.7.2"
24+
"tslib": "^2.8.0",
25+
"winston": "^3.15.0"
2626
},
2727
"devDependencies": {
2828
"@contentstack/cli-auth": "~1.3.22",
2929
"@contentstack/cli-config": "~1.8.0",
3030
"@contentstack/cli-dev-dependencies": "~1.2.4",
31-
"@oclif/plugin-help": "^5.1.19",
31+
"@oclif/plugin-help": "^5.2.20",
3232
"@oclif/test": "^2.5.6",
33-
"@types/flat": "^5.0.2",
34-
"assert": "^2.0.0",
35-
"chai": "^4.2.0",
36-
"dotenv": "^16.0.1",
33+
"@types/flat": "^5.0.5",
34+
"assert": "^2.1.0",
35+
"chai": "^4.5.0",
36+
"dotenv": "^16.4.5",
3737
"dotenv-expand": "^9.0.0",
38-
"eslint": "^8.18.0",
38+
"eslint": "^8.57.1",
3939
"eslint-config-oclif": "^4.0.0",
4040
"globby": "^10.0.2",
41-
"mocha": "10.1.0",
41+
"mocha": "10.7.3",
4242
"nyc": "^15.1.0",
43-
"oclif": "^3.1.2",
44-
"sinon": "^19.0.0",
45-
"ts-node": "^10.9.1",
46-
"typescript": "^4.9.3"
43+
"oclif": "^3.17.2",
44+
"sinon": "^19.0.2",
45+
"ts-node": "^10.9.2",
46+
"typescript": "^4.9.5"
4747
},
4848
"scripts": {
4949
"build": "npm run clean && npm run compile",

packages/contentstack-bulk-publish/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli-cm-bulk-publish
1818
$ csdx COMMAND
1919
running command...
2020
$ csdx (--version)
21-
@contentstack/cli-cm-bulk-publish/1.5.0 darwin-arm64 node-v22.2.0
21+
@contentstack/cli-cm-bulk-publish/1.6.0 darwin-arm64 node-v22.2.0
2222
$ csdx --help [COMMAND]
2323
USAGE
2424
$ csdx COMMAND

packages/contentstack-bulk-publish/package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
{
22
"name": "@contentstack/cli-cm-bulk-publish",
33
"description": "Contentstack CLI plugin for bulk publish actions",
4-
"version": "1.5.0",
4+
"version": "1.6.0",
55
"author": "Contentstack",
66
"bugs": "https://github.com/contentstack/cli/issues",
77
"dependencies": {
88
"@contentstack/cli-command": "~1.3.2",
99
"@contentstack/cli-utilities": "~1.8.0",
1010
"bluebird": "^3.7.2",
1111
"chalk": "^4.1.2",
12-
"dotenv": "^16.1.4",
13-
"inquirer": "8.2.4",
14-
"lodash": "^4.17.15",
12+
"dotenv": "^16.4.5",
13+
"inquirer": "8.2.6",
14+
"lodash": "^4.17.21",
1515
"mkdirp": "^1.0.4",
16-
"nock": "^13.0.2",
17-
"winston": "^3.7.2"
16+
"nock": "^13.5.5",
17+
"winston": "^3.15.0"
1818
},
1919
"devDependencies": {
2020
"@oclif/test": "^2.5.6",
21-
"chai": "^4.2.0",
22-
"eslint": "^8.18.0",
21+
"chai": "^4.5.0",
22+
"eslint": "^8.57.1",
2323
"eslint-config-oclif": "^4.0.0",
2424
"globby": "^10.0.2",
25-
"mocha": "^10.0.0",
25+
"mocha": "^10.7.3",
2626
"nyc": "^15.1.0",
27-
"oclif": "^3.8.1",
28-
"tslib": "^1.13.0"
27+
"oclif": "^3.17.2",
28+
"tslib": "^1.14.1"
2929
},
3030
"engines": {
3131
"node": ">=14.0.0"

packages/contentstack-bulk-publish/src/producer/add-fields.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const { performBulkPublish, publishEntry, initializeLogger } = require('../consu
1010
const retryFailedLogs = require('../util/retryfailed');
1111
const { validateFile } = require('../util/fs');
1212
const { isEmpty } = require('../util');
13+
const { fetchBulkPublishLimit } = require('../util/common-utility');
1314

1415
const queue = getQueue();
1516
queue.consumer = performBulkPublish;
@@ -200,6 +201,7 @@ async function getEntries(
200201
environments,
201202
forceUpdate,
202203
apiVersion,
204+
bulkPublishLimit,
203205
skip = 0,
204206
) {
205207
let queryParams = {
@@ -223,15 +225,15 @@ async function getEntries(
223225
const flag = await updateEntry(updatedEntry, locale);
224226
if (flag) {
225227
if (bulkPublish) {
226-
if (bulkPublishSet.length < 10) {
228+
if (bulkPublishSet.length < bulkPublishLimit) {
227229
bulkPublishSet.push({
228230
uid: entries[index].uid,
229231
content_type: contentType,
230232
locale,
231233
publish_details: entries[index].publish_details,
232234
});
233235
}
234-
if (bulkPublishSet.length === 10) {
236+
if (bulkPublishSet.length === bulkPublishLimit) {
235237
await queue.Enqueue({
236238
entries: bulkPublishSet,
237239
locale,
@@ -260,7 +262,7 @@ async function getEntries(
260262
console.log(`No change Observed for contentType ${contentType} with entry ${entries[index].uid}`);
261263
}
262264

263-
if (index === entriesResponse.items.length - 1 && bulkPublishSet.length > 0 && bulkPublishSet.length < 10) {
265+
if (index === entriesResponse.items.length - 1 && bulkPublishSet.length > 0 && bulkPublishSet.length < bulkPublishLimit) {
264266
await queue.Enqueue({
265267
entries: bulkPublishSet,
266268
locale,
@@ -277,7 +279,7 @@ async function getEntries(
277279
}
278280
return setTimeout(
279281
async () =>
280-
getEntries(stack, config, schema, contentType, locale, bulkPublish, environments, forceUpdate, apiVersion, skip),
282+
getEntries(stack, config, schema, contentType, locale, bulkPublish, environments, forceUpdate, apiVersion, bulkPublishLimit, skip),
281283
2000,
282284
);
283285
})
@@ -321,6 +323,7 @@ async function start(
321323
}
322324
} else {
323325
setConfig(config, bulkPublish);
326+
const bulkPublishLimit = fetchBulkPublishLimit(stack?.org_uid);
324327
for (let i = 0; i < contentTypes.length; i += 1) {
325328
getContentTypeSchema(stack, contentTypes[i])
326329
.then(async (schema) => {
@@ -335,7 +338,8 @@ async function start(
335338
bulkPublish,
336339
environments,
337340
forceUpdate,
338-
apiVersion
341+
apiVersion,
342+
bulkPublishLimit
339343
);
340344
} catch (err) {
341345
console.log(`Failed to get Entries with contentType ${contentTypes[i]} and locale ${locales[j]}`);

0 commit comments

Comments
 (0)