Skip to content

DX | 03-03-2025 | Release #294

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Mar 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "contentstack",
"version": "3.24.2",
"version": "3.24.3",
"description": "Contentstack Javascript SDK",
"homepage": "https://www.contentstack.com/",
"author": {
Expand Down
8 changes: 8 additions & 0 deletions src/core/stack.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
}
}
}
Expand All @@ -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'];
}
}

Expand Down
Loading