Skip to content

Commit 67c1234

Browse files
authored
Merge pull request #201 from contentstack/development
DX | 03-08-2026 | Release
2 parents 180329f + dc310e0 commit 67c1234

11 files changed

Lines changed: 2252 additions & 215 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,24 @@
1-
### Version: 3.1.1
2-
#### Date: Aug-03-2026
1+
### Version: 3.2.0
2+
#### Date: Aug-3-2026
3+
4+
##### Feat:
5+
- Taxonomy Publishing CDA support
6+
- `Taxonomies(uid)` scopes to a specific taxonomy: `.Fetch<T>()`, `.Term(termUid)`, `.Terms()`
7+
- `Taxonomies().Find<T>()` — list all published taxonomies (`GET /taxonomies`)
8+
- New `Term` class: `.Fetch<T>()`, `.Locales<T>()`, `.Ancestors<T>()`, `.Descendants<T>()`
9+
- New `TermQuery` class: `.Find<T>()` for listing terms within a taxonomy
10+
- `Depth(int)` and `IncludeBranch()` on `Term`/`TermQuery` for hierarchy traversal control
11+
- `Skip(int)`, `Limit(int)`, `IncludeCount()` on `TermQuery` for paginated term listing
12+
- Added `Internals/TaxonomyRequestHelper` — shared request-building, header-merging, and error-parsing for `Taxonomy`/`Term`/`TermQuery`
13+
14+
- Taxonomy / Term / TermQuery — localization support
15+
- `SetLocale(string)` filters the taxonomy/term response to a specific locale (e.g. `"fr-fr"`)
16+
- `IncludeFallback()` returns the master-locale (`en-us`) version when a term/taxonomy isn't translated into the requested locale, instead of omitting it
17+
- Both compose correctly with hierarchy traversal — `Term(uid).SetLocale("fr-fr").IncludeFallback().Depth(2).Descendants<T>()` returns a full localized subtree, with untranslated nodes individually falling back to master locale in the same response
18+
- Fallback is per-node, not all-or-nothing: a single hierarchy fetch can return some terms translated and others fallen-back simultaneously — safe to use on partially-translated taxonomies
319

420
##### Fix:
521
- Bumped vulnerable/outdated dependencies (Snyk remediation)
6-
722
---
823

924
### Version: 3.1.0

‎Contentstack.Core.Tests/Helpers/TestDataHelper.cs‎

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,21 @@ static TestDataHelper()
127127
/// <summary>
128128
/// Gets the taxonomy term for India state (e.g., "maharashtra")
129129
/// </summary>
130-
public static string TaxIndiaState =>
130+
public static string TaxIndiaState =>
131131
GetRequiredConfig("TAX_INDIA_STATE");
132-
132+
133+
/// <summary>
134+
/// UID of the published taxonomy to use in localization tests (e.g. "gadgets").
135+
/// </summary>
136+
public static string TaxPublishTaxonomyUid =>
137+
GetRequiredConfig("TAX_PUBLISH_TAXONOMY_UID");
138+
139+
/// <summary>
140+
/// Locale code used for localized taxonomy/term delivery tests (e.g. "fr-fr").
141+
/// </summary>
142+
public static string TaxPublishLocale =>
143+
GetRequiredConfig("TAX_PUBLISH_LOCALE");
144+
133145
#endregion
134146

135147
#region Live Preview

0 commit comments

Comments
 (0)