diff --git a/CHANGELOG.md b/CHANGELOG.md index 754e9b42..72d14740 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ ## Change log +### Version: 3.17.1 +#### Date: April-18-2023 +##### Bug fix: + - Access token for header issue resolved + +### Version: 3.17.0 +#### Date: March-30-2023 +##### Bug fix: + - Cache set issue resolved + - Type-definition for SyncResult updated + +### Version: 3.16.1 +#### Date: February-28-2023 + - Package dependency updated ### Version: 3.16.0 #### Date: February-10-2023 ##### New Features: diff --git a/docs-config.json b/docs-config.json index dad0bb52..12f4bdf9 100755 --- a/docs-config.json +++ b/docs-config.json @@ -18,16 +18,6 @@ "src/core/cache.js" ] }, - "templates": - { - "default": - { - "staticFiles": - { - "include": [ "./contentstack-templates/favicon.ico"] - } - } - }, "tags": { "dictionaries": ["jsdoc", "closure"], "allowUnknownTags": true diff --git a/package-lock.json b/package-lock.json index 0000074c..c93e6a11 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "contentstack", - "version": "3.17.0", + "version": "3.17.1", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -9142,6 +9142,12 @@ "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", "dev": true }, + "taffydb": { + "version": "2.7.3", + "resolved": "https://registry.npmjs.org/taffydb/-/taffydb-2.7.3.tgz", + "integrity": "sha512-GQ3gtYFSOAxSMN/apGtDKKkbJf+8izz5YfbGqIsUc7AMiQOapARZ76dhilRY2h39cynYxBFdafQo5HUL5vgkrg==", + "dev": true + }, "tap": { "version": "16.3.4", "resolved": "https://registry.npmjs.org/tap/-/tap-16.3.4.tgz", diff --git a/package.json b/package.json index c38dd1fa..aa892e05 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "contentstack", - "version": "3.17.0", + "version": "3.17.1", "description": "Contentstack Javascript SDK", "homepage": "https://www.contentstack.com/", "author": { @@ -89,6 +89,7 @@ "nodemailer": "^6.9.1", "request": "^2.88.2", "string-replace-loader": "1.3.0", + "taffydb": "^2.7.3", "tap": "^16.3.4", "tap-html": "^1.1.0", "tap-json": "1.0.0", diff --git a/src/core/modules/assets.js b/src/core/modules/assets.js index 399f2017..91d8da61 100755 --- a/src/core/modules/assets.js +++ b/src/core/modules/assets.js @@ -120,7 +120,7 @@ export default class Assets { if (this.asset_uid) { this.requestParams = { method: 'POST', - headers: this.headers, + headers: Utils.mergeDeep({}, this.headers), url: this.config.protocol + "://" + this.config.host + ':' + this.config.port + '/' + this.config.version + this.config.urls.assets + this.asset_uid, body: { _method: 'GET', diff --git a/src/core/modules/entry.js b/src/core/modules/entry.js index c0015dce..bbd1cbe1 100755 --- a/src/core/modules/entry.js +++ b/src/core/modules/entry.js @@ -355,7 +355,7 @@ export default class Entry { if (this.entry_uid) { this.requestParams = { method: 'POST', - headers: this.headers, + headers: Utils.mergeDeep({}, this.headers), url: this.config.protocol + "://" + host + '/' + this.config.version + this.config.urls.content_types + this.content_type_uid + this.config.urls.entries + this.entry_uid, body: { _method: 'GET', diff --git a/src/core/modules/query.js b/src/core/modules/query.js index a64e308f..918cf646 100755 --- a/src/core/modules/query.js +++ b/src/core/modules/query.js @@ -445,7 +445,7 @@ export default class Query extends Entry { this._query['count'] = true; this.requestParams = { method: 'POST', - headers: this.headers, + headers: Utils.mergeDeep({}, this.headers), url: url, body: { _method: 'GET', @@ -754,7 +754,7 @@ export default class Query extends Entry { url = (this.type && this.type === 'asset') ? baseURL + this.config.urls.assets : baseURL + this.config.urls.content_types + this.content_type_uid + this.config.urls.entries; this.requestParams = { method: 'POST', - headers: this.headers, + headers: Utils.mergeDeep({}, this.headers), url: url, body: { _method: 'GET', @@ -791,7 +791,7 @@ export default class Query extends Entry { this._query.limit = 1; this.requestParams = { method: 'POST', - headers: this.headers, + headers: Utils.mergeDeep({}, this.headers), url: url, body: { _method: 'GET', diff --git a/src/core/stack.js b/src/core/stack.js index 6ecdb058..052d81e5 100755 --- a/src/core/stack.js +++ b/src/core/stack.js @@ -382,7 +382,7 @@ export default class Stack { fetch(fetchOptions) { this.requestParams = { method: 'POST', - headers: this.headers, + headers: Utils.mergeDeep({}, this.headers), plugins: this.plugins, url: this.config.protocol + "://" + this.config.host + ':' + this.config.port + '/' + this.config.version + this.config.urls.content_types + this.content_type_uid, body: { @@ -464,7 +464,7 @@ export default class Stack { getLastActivities() { this.requestParams = { method: 'POST', - headers: this.headers, + headers: Utils.mergeDeep({}, this.headers), url: this.config.protocol + "://" + this.config.host + ':' + this.config.port + '/' + this.config.version + this.config.urls.content_types, body: { _method: 'GET', @@ -494,7 +494,7 @@ export default class Stack { getContentTypes(param = {}) { this.requestParams = { method: 'POST', - headers: this.headers, + headers: Utils.mergeDeep({}, this.headers), url: this.config.protocol + "://" + this.config.host + ':' + this.config.port + '/' + this.config.version + this.config.urls.content_types, body: { _method: 'GET', @@ -537,7 +537,7 @@ export default class Stack { this._query = Utils.mergeDeep(this._query, params); this.requestParams = { method: 'POST', - headers: this.headers, + headers: Utils.mergeDeep({}, this.headers), url: this.config.protocol + "://" + this.config.host + ':' + this.config.port + '/' + this.config.version + this.config.urls.sync, body: { _method: 'GET',