diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 0e6d0d57..5bdea649 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -28,7 +28,8 @@ jobs: node-version: '22.x' registry-url: 'https://npm.pkg.github.com' scope: '@contentstack' - - run: npm ci - - run: npm publish env: 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 diff --git a/CHANGELOG.md b/CHANGELOG.md index ec7c704c..683b6cfa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,15 @@ ## Change log +### 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 + ### Version: 3.24.1 #### Date: February-03-2025 ##### Fix: diff --git a/README.md b/README.md index 2953f303..5dffec71 100755 --- a/README.md +++ b/README.md @@ -281,6 +281,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/developers/use-the-sync-apis-with-sdk/use-sync-api-with-javascript-sdk#advanced-sync-queries) ### Helpful Links 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", 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']; } }