Skip to content

Fixed branch header conflits issue #385

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 1 commit into from
Jul 2, 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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,5 @@ tsconfig.json
.next
.dccache
dist
jsdocs
jsdocs
.early.coverage
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Changelog
## [v1.21.8](https://github.com/contentstack/contentstack-management-javascript/tree/v1.21.8) (2025-07-07)
- Fix
- Fixed branch header conflits
## [v1.21.7](https://github.com/contentstack/contentstack-management-javascript/tree/v1.21.7) (2025-06-30)
- Fix
- Fixed Request-URI Too Large error
Expand Down
2 changes: 1 addition & 1 deletion lib/stack/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ export function Stack (http, data) {
this.globalField = (uidOrOptions = null, option = {}) => {
let globalFieldUid = null
let apiVersion = '3.0'
let branch = 'main'
const stackHeaders = { ...this.stackHeaders }
let branch = stackHeaders.branch || http.defaults.headers.branch || 'main'
if (typeof uidOrOptions === 'object' && uidOrOptions !== null) {
option = uidOrOptions
} else {
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/management",
"version": "1.21.7",
"version": "1.21.8",
"description": "The Content Management API is used to manage the content of your Contentstack account",
"main": "./dist/node/contentstack-management.js",
"browser": "./dist/web/contentstack-management.js",
Expand Down
Loading