diff --git a/changelog.md b/changelog.md index 10ad0ed..0207b74 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,12 @@ # Changelog +## v1.7.0 + +### Jul 07, 2025 + +- Nested Global Field Support added +- Snyk fixes + ## v1.6.1 ### Jun 23, 2025 diff --git a/pom.xml b/pom.xml index b373b2a..d3e28f2 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ cms jar contentstack-management-java - 1.6.1 + 1.7.0 Contentstack Java Management SDK for Content Management API, Contentstack is a headless CMS with an API-first approach @@ -89,14 +89,14 @@ 3.0.0 5.2.2 3.1.10 - 2.11.0 - 2.11.0 + 2.12.0 + 2.12.0 4.12.0 0.8.7 1.18.38 5.11.4 5.10.1 - 2.13.0 + 2.13.1 3.3 1.5 3.8.0 @@ -213,7 +213,7 @@ org.jetbrains.kotlin kotlin-stdlib - 2.1.20 + 2.1.21 diff --git a/src/test/java/com/contentstack/cms/stack/GlobalFieldAPITest.java b/src/test/java/com/contentstack/cms/stack/GlobalFieldAPITest.java index 04d089c..3ad3001 100644 --- a/src/test/java/com/contentstack/cms/stack/GlobalFieldAPITest.java +++ b/src/test/java/com/contentstack/cms/stack/GlobalFieldAPITest.java @@ -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 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"); } }