From c2215c640c5b852f52772dbf51ead0454b3e499e Mon Sep 17 00:00:00 2001 From: Kartik Date: Thu, 9 Jan 2025 14:47:03 +0530 Subject: [PATCH 1/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0e7ef966..a17ed013 100755 --- a/README.md +++ b/README.md @@ -282,7 +282,7 @@ data.then(function(sync_data, err) { ##### Advanced sync queries You can use advanced sync queries to fetch custom results while performing initial sync. -[Read advanced sync queries documentation](https://www.contentstack.com/docs/guide/synchronization/using-the-sync-api-with-javascript-sdk#advanced-sync-queries) +[Read advanced sync queries documentation](https://www.contentstack.com/docs/developers/use-the-sync-apis-with-sdk/use-sync-api-with-javascript-sdk#advanced-sync-queries) ### Helpful Links From 3d293483cd64a1e988ef03dfe2e5047e1d1999ad Mon Sep 17 00:00:00 2001 From: Vikram Kalta Date: Wed, 22 Jan 2025 22:41:19 +0000 Subject: [PATCH 2/6] fix: added npm token to github release pipeline --- .github/workflows/npm-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 88017fe3..bd037be8 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -31,4 +31,4 @@ jobs: - run: npm ci - run: npm publish env: - NODE_AUTH_TOKEN: ${{ secrets.PAT_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} From 32adf6ba91f3149efb637d724de7907d8a71558d Mon Sep 17 00:00:00 2001 From: Vikram Kalta Date: Wed, 5 Feb 2025 19:45:59 +0000 Subject: [PATCH 3/6] fix: update registry url --- .github/workflows/npm-publish.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index bd037be8..d2c38198 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -28,7 +28,8 @@ jobs: node-version: '20.x' registry-url: 'https://npm.pkg.github.com' scope: '@contentstack' - - run: npm ci - - run: npm publish env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.PAT_TOKEN }} + - run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.PAT_TOKEN }}" > ~/.npmrc + - run: npm ci --registry=https://npm.pkg.github.com + - run: npm publish --registry=https://npm.pkg.github.com From 4497a66eb6a5cccbd04aa93780ce3a3accaa4769 Mon Sep 17 00:00:00 2001 From: Nadeem Patwekar Date: Wed, 26 Feb 2025 14:07:50 +0530 Subject: [PATCH 4/6] fix: reset timeline preview variables when not found --- CHANGELOG.md | 5 +++++ package.json | 2 +- src/core/stack.js | 8 ++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ec7c704c..66cdf0ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,9 @@ ## Change log +### Version: 3.24.2 +#### Date: March-03-2025 +##### Fix: + - Reset Timeline Preview variables + ### Version: 3.24.1 #### Date: February-03-2025 ##### Fix: diff --git a/package.json b/package.json index 91d37598..cecc8176 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "contentstack", - "version": "3.24.2", + "version": "3.24.3", "description": "Contentstack Javascript SDK", "homepage": "https://www.contentstack.com/", "author": { diff --git a/src/core/stack.js b/src/core/stack.js index 4b6036fd..599e1ff3 100755 --- a/src/core/stack.js +++ b/src/core/stack.js @@ -258,9 +258,13 @@ export default class Stack { } if (params.has('release_id')) { this.headers['release_id'] = params.get('release_id'); + } else { + delete this.headers['release_id']; } if (params.has('preview_timestamp')) { this.headers['preview_timestamp'] = params.get('preview_timestamp'); + } else { + delete this.headers['preview_timestamp']; } } } @@ -274,9 +278,13 @@ export default class Stack { if (query.hasOwnProperty('release_id')) { this.headers['release_id'] = query.release_id; + } else { + delete this.headers['release_id']; } if (query.hasOwnProperty('preview_timestamp')) { this.headers['preview_timestamp'] = query.preview_timestamp; + } else { + delete this.headers['preview_timestamp']; } } From 8286cd8932a8f506e1617bd9302696dbe47297b3 Mon Sep 17 00:00:00 2001 From: Nadeem Patwekar Date: Wed, 26 Feb 2025 16:12:52 +0530 Subject: [PATCH 5/6] chore: update changelog --- CHANGELOG.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 66cdf0ea..683b6cfa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ ## Change log -### Version: 3.24.2 +### Version: 3.24.3 #### Date: March-03-2025 +##### Fix: + - Using Node v22 + - Fixed license and Semgrep issues + +### Version: 3.24.2 +#### Date: Feb-25-2025 ##### Fix: - Reset Timeline Preview variables From 28d341fc0a49e7a574ab2d07811d3f6a088644e5 Mon Sep 17 00:00:00 2001 From: "harshitha.d" Date: Wed, 26 Feb 2025 17:25:53 +0530 Subject: [PATCH 6/6] chore: update version to 3.24.3 in package-lock.json --- package-lock.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8ac36496..2357221b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "contentstack", - "version": "3.24.2", + "version": "3.24.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "contentstack", - "version": "3.24.2", + "version": "3.24.3", "license": "MIT", "dependencies": { "@contentstack/utils": "^1.3.15",