From 1d3b938f9bc47f5bcb1e1db184327e5a69d313b4 Mon Sep 17 00:00:00 2001 From: shafeeqd959 Date: Mon, 19 Feb 2024 10:26:09 +0530 Subject: [PATCH 1/2] readme update --- packages/contentstack-bootstrap/README.md | 2 +- packages/contentstack-config/README.md | 2 ++ packages/contentstack/README.md | 4 +++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/contentstack-bootstrap/README.md b/packages/contentstack-bootstrap/README.md index e4995d2897..ee0fb9b800 100644 --- a/packages/contentstack-bootstrap/README.md +++ b/packages/contentstack-bootstrap/README.md @@ -15,7 +15,7 @@ $ npm install -g @contentstack/cli-cm-bootstrap $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-cm-bootstrap/1.7.1 darwin-arm64 node-v20.8.0 +@contentstack/cli-cm-bootstrap/1.8.0 darwin-arm64 node-v20.8.0 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-config/README.md b/packages/contentstack-config/README.md index 8f354746ed..2f4584481f 100644 --- a/packages/contentstack-config/README.md +++ b/packages/contentstack-config/README.md @@ -292,6 +292,8 @@ EXAMPLES $ csdx config:set:region AZURE-EU + $ csdx config:set:region GCP-NA + $ csdx config:set:region --cma --cda --ui-host --name "India" ``` diff --git a/packages/contentstack/README.md b/packages/contentstack/README.md index 092ad93fcf..36dc43bde4 100644 --- a/packages/contentstack/README.md +++ b/packages/contentstack/README.md @@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli $ csdx COMMAND running command... $ csdx (--version|-v) -@contentstack/cli/1.13.3 darwin-arm64 node-v20.8.0 +@contentstack/cli/1.14.0 darwin-arm64 node-v20.8.0 $ csdx --help [COMMAND] USAGE $ csdx COMMAND @@ -3196,6 +3196,8 @@ EXAMPLES $ csdx config:set:region AZURE-EU + $ csdx config:set:region GCP-NA + $ csdx config:set:region --cma --cda --ui-host --name "India" ``` From f4eb20d34bcc8d8a61bde8a30f905d68cacb0dc1 Mon Sep 17 00:00:00 2001 From: shafeeqd959 Date: Mon, 19 Feb 2024 10:30:53 +0530 Subject: [PATCH 2/2] fixed cross env publish with version --- packages/contentstack-bulk-publish/package.json | 2 +- packages/contentstack-bulk-publish/src/consumer/publish.js | 1 + .../contentstack-bulk-publish/src/producer/cross-publish.js | 2 ++ packages/contentstack/package.json | 4 ++-- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/contentstack-bulk-publish/package.json b/packages/contentstack-bulk-publish/package.json index cf241ebbe6..f45b7e18fd 100644 --- a/packages/contentstack-bulk-publish/package.json +++ b/packages/contentstack-bulk-publish/package.json @@ -1,7 +1,7 @@ { "name": "@contentstack/cli-cm-bulk-publish", "description": "Contentstack CLI plugin for bulk publish actions", - "version": "1.4.0", + "version": "1.4.1", "author": "Contentstack", "bugs": "https://github.com/contentstack/cli/issues", "dependencies": { diff --git a/packages/contentstack-bulk-publish/src/consumer/publish.js b/packages/contentstack-bulk-publish/src/consumer/publish.js index 98c5d7b34d..92d7c21c75 100644 --- a/packages/contentstack-bulk-publish/src/consumer/publish.js +++ b/packages/contentstack-bulk-publish/src/consumer/publish.js @@ -43,6 +43,7 @@ async function publishEntry(data, _config, queue) { .publish({ publishDetails: { environments: entryObj.environments, locales: lang }, locale: entryObj.locale || 'en-us', + version: entryObj.version }) .then((publishEntryResponse) => { if (!publishEntryResponse.error_message) { diff --git a/packages/contentstack-bulk-publish/src/producer/cross-publish.js b/packages/contentstack-bulk-publish/src/producer/cross-publish.js index c9127bc4aa..f5b226e34a 100644 --- a/packages/contentstack-bulk-publish/src/producer/cross-publish.js +++ b/packages/contentstack-bulk-publish/src/producer/cross-publish.js @@ -44,6 +44,7 @@ async function bulkAction(stack, items, bulkPublish, filter, destEnv, apiVersion uid: items[index].data.uid, content_type: items[index].content_type_uid, locale: items[index].data.locale || 'en-us', + version: items[index].data._version, publish_details: [items[index].data.publish_details] || [], }); } @@ -111,6 +112,7 @@ async function bulkAction(stack, items, bulkPublish, filter, destEnv, apiVersion environments: destEnv, entryUid: items[index].data.uid, locale: items[index].data.locale || 'en-us', + version: items[index].data._version, Type: 'entry', stack: stack, }); diff --git a/packages/contentstack/package.json b/packages/contentstack/package.json index 7fd21fa112..17dfb4a4e1 100755 --- a/packages/contentstack/package.json +++ b/packages/contentstack/package.json @@ -1,7 +1,7 @@ { "name": "@contentstack/cli", "description": "Command-line tool (CLI) to interact with Contentstack", - "version": "1.14.0", + "version": "1.14.1", "author": "Contentstack", "bin": { "csdx": "./bin/run" @@ -26,7 +26,7 @@ "@contentstack/cli-auth": "~1.3.17", "@contentstack/cli-cm-bootstrap": "~1.8.0", "@contentstack/cli-cm-branches": "~1.0.22", - "@contentstack/cli-cm-bulk-publish": "~1.4.0", + "@contentstack/cli-cm-bulk-publish": "~1.4.1", "@contentstack/cli-cm-export": "~1.10.5", "@contentstack/cli-cm-clone": "~1.10.0", "@contentstack/cli-cm-export-to-csv": "~1.6.2",