Skip to content
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: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Changelog
## [v1.21.7](https://github.com/contentstack/contentstack-management-javascript/tree/v1.21.7) (2025-06-30)
- Fix
- Fixed Request-URI Too Large error

## [v1.21.6](https://github.com/contentstack/contentstack-management-javascript/tree/v1.21.6) (2025-06-11)
- Fix
Expand Down
5 changes: 0 additions & 5 deletions lib/entity.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,6 @@ export const update = (http, type, params = {}) => {
delete json.updated_at
delete json.updated_by

// If param has data for this entity type, merge it with the json object
if (param && param[type]) {
Object.assign(json, param[type])
}

if (type) {
updateData[type] = json
if (type === 'entry') updateData[type] = cleanAssets(updateData[type])
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.6",
"version": "1.21.7",
"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
4 changes: 2 additions & 2 deletions test/sanity-check/api/locale-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ describe('Locale api Test', () => {
makeLocale('hi-in')
.fetch()
.then((locale) => {
// locale.fallback_locale = 'en-at'
return locale.update({ locale: { fallback_locale: 'en-at' } })
locale.fallback_locale = 'en-at'
return locale.update()
})
.then((locale) => {
expect(locale.code).to.be.equal('hi-in')
Expand Down
Loading