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
7 changes: 7 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## v1.7.0

### Jul 07, 2025

- Nested Global Field Support added
- Snyk fixes

## v1.6.1

### Jun 23, 2025
Expand Down
10 changes: 5 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<artifactId>cms</artifactId>
<packaging>jar</packaging>
<name>contentstack-management-java</name>
<version>1.6.1</version>
<version>1.7.0</version>
<description>Contentstack Java Management SDK for Content Management API, Contentstack is a headless CMS with an
API-first approach
</description>
Expand Down Expand Up @@ -89,14 +89,14 @@
<maven-javadoc-plugin.version>3.0.0</maven-javadoc-plugin.version>
<dotenv-source.version>5.2.2</dotenv-source.version>
<rxjava-source.version>3.1.10</rxjava-source.version>
<retrofit-source.version>2.11.0</retrofit-source.version>
<converter-gson-version>2.11.0</converter-gson-version>
<retrofit-source.version>2.12.0</retrofit-source.version>
<converter-gson-version>2.12.0</converter-gson-version>
<okhttp.version>4.12.0</okhttp.version>
<jococo-plugin.version>0.8.7</jococo-plugin.version>
<lombok-source.version>1.18.38</lombok-source.version>
<junit-jupiter.version>5.11.4</junit-jupiter.version>
<junit-jupiter-engine.version>5.10.1</junit-jupiter-engine.version>
<gson.version>2.13.0</gson.version>
<gson.version>2.13.1</gson.version>
<maven-site-plugin.version>3.3</maven-site-plugin.version>
<maven-gpg-plugin.version>1.5</maven-gpg-plugin.version>
<maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
Expand Down Expand Up @@ -213,7 +213,7 @@
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib</artifactId>
<version>2.1.20</version>
<version>2.1.21</version>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -453,18 +453,15 @@ void testApiVersionHeaderIsolation() throws IOException {
ContentType ct = stack.contentType("author");
Request rq2 = ct.fetch().request();
JSONObject requestBody = Utils.readJson("mockcontenttype/create.json");
Response<ResponseBody> resp1 = stack.contentType().create(requestBody).execute();
if (resp1.isSuccessful()) {
System.out.println(resp1.body().string());
} else {
System.out.println(resp1.errorBody().string());
}
Request rq3 = ct.create(requestBody).request();
// Again, shared headers should not have api_version
Assertions.assertFalse(stack.headers.containsKey("api_version"),
"api_version should not be present in shared headers after ContentType request");
// Also, ContentType's request should not have api_version header
Assertions.assertNull(rq2.header("api_version"),
"api_version should not be present in ContentType request headers");
Assertions.assertNull(rq3.header("api_version"),
"api_version should not be present in ContentType request headers");
}
}

Expand Down