From 99943e906206cf0f71e674b2917a002c7f9930b1 Mon Sep 17 00:00:00 2001 From: sunil-lakshman <104969541+sunil-lakshman@users.noreply.github.com> Date: Mon, 8 Jan 2024 12:33:57 +0530 Subject: [PATCH 1/2] Updated X-User-Agent header --- CHANGELOG.md | 6 ++++++ LICENSE.txt | 2 +- README.md | 2 +- src/core/lib/request.js | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f2287d4b..783f2d54 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ ## Change log +### Version: 3.18.0 +#### Date: January-15-2024 +##### New Features: + - added taxonomy support + - X-User-Agent updated + - added region gcp_na ### Version: 3.17.2 #### Date: November-15-2023 ##### Bug fix: diff --git a/LICENSE.txt b/LICENSE.txt index adddc83c..eebdf5a6 100755 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,7 +1,7 @@ The MIT License (MIT) -Copyright (c) 2016-2023 Contentstack +Copyright (c) 2016-2024 Contentstack Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 40d5ab0a..1defa8cb 100755 --- a/README.md +++ b/README.md @@ -291,7 +291,7 @@ You can use advanced sync queries to fetch custom results while performing initi ### The MIT License (MIT) -Copyright © 2012-2021 [Contentstack](https://www.contentstack.com). All Rights Reserved +Copyright © 2012-2024 [Contentstack](https://www.contentstack.com). All Rights Reserved Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: diff --git a/src/core/lib/request.js b/src/core/lib/request.js index 8f2937b9..d486ec2d 100755 --- a/src/core/lib/request.js +++ b/src/core/lib/request.js @@ -33,7 +33,7 @@ export default function Request(stack, fetchOptions) { // setting headers requestParams.headers['Content-Type'] = 'application/json; charset=UTF-8'; - requestParams.headers['X-User-Agent'] = 'contentstack-delivery-{{PLATFORM}}/' + version; + requestParams.headers['X-User-Agent'] = 'contentstack-delivery-js-{{PLATFORM}}/' + version; if (requestParams.body && typeof requestParams.body === 'object') { delete requestParams.body._method; From e106190874d5348914f83ee4d9a6dc36d8d63d5c Mon Sep 17 00:00:00 2001 From: sunil-lakshman <104969541+sunil-lakshman@users.noreply.github.com> Date: Mon, 8 Jan 2024 13:30:02 +0530 Subject: [PATCH 2/2] Updated the X-User-Agent --- src/core/lib/request.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/lib/request.js b/src/core/lib/request.js index d486ec2d..ac77555d 100755 --- a/src/core/lib/request.js +++ b/src/core/lib/request.js @@ -33,7 +33,7 @@ export default function Request(stack, fetchOptions) { // setting headers requestParams.headers['Content-Type'] = 'application/json; charset=UTF-8'; - requestParams.headers['X-User-Agent'] = 'contentstack-delivery-js-{{PLATFORM}}/' + version; + requestParams.headers['X-User-Agent'] = 'contentstack-delivery-javascript-{{PLATFORM}}/' + version; if (requestParams.body && typeof requestParams.body === 'object') { delete requestParams.body._method;