Skip to content

Commit 4327823

Browse files
Merge pull request #385 from contentstack/fix/dx-3231
Fixed branch header conflits issue
2 parents 8259836 + 2745dbe commit 4327823

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,5 @@ tsconfig.json
6767
.next
6868
.dccache
6969
dist
70-
jsdocs
70+
jsdocs
71+
.early.coverage

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# Changelog
2+
## [v1.21.8](https://github.com/contentstack/contentstack-management-javascript/tree/v1.21.8) (2025-07-07)
3+
- Fix
4+
- Fixed branch header conflits
25
## [v1.21.7](https://github.com/contentstack/contentstack-management-javascript/tree/v1.21.7) (2025-06-30)
36
- Fix
47
- Fixed Request-URI Too Large error

lib/stack/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ export function Stack (http, data) {
168168
this.globalField = (uidOrOptions = null, option = {}) => {
169169
let globalFieldUid = null
170170
let apiVersion = '3.0'
171-
let branch = 'main'
172171
const stackHeaders = { ...this.stackHeaders }
172+
let branch = stackHeaders.branch || http.defaults.headers.branch || 'main'
173173
if (typeof uidOrOptions === 'object' && uidOrOptions !== null) {
174174
option = uidOrOptions
175175
} else {

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@contentstack/management",
3-
"version": "1.21.7",
3+
"version": "1.21.8",
44
"description": "The Content Management API is used to manage the content of your Contentstack account",
55
"main": "./dist/node/contentstack-management.js",
66
"browser": "./dist/web/contentstack-management.js",

0 commit comments

Comments
 (0)