Skip to content

Staging | DX-2225 #292

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 4 commits into from
Feb 26, 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
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
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