Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
240d7f5
feat: Implement Taxonomy class and update TaxonomyQuery for enhanced …
harshitha-cstk Oct 13, 2025
77caa3b
Merge pull request #240 from contentstack/feat/dx-3628-get-all-taxonomy
harshithad0703 Oct 14, 2025
df96f25
get a single taxonomy
harshitha-cstk Oct 17, 2025
056fc6d
Merge pull request #242 from contentstack/feat/dx-3629-single-taxonomy
harshithad0703 Oct 17, 2025
c213dd8
feat: Add Term and TermQuery classes for enhanced taxonomy term manag…
harshitha-cstk Oct 23, 2025
b7e629a
refactor: Rename TermQueryFindResponseDataMock to termQueryFindRespon…
harshitha-cstk Oct 23, 2025
6ed4fdb
Merge pull request #243 from contentstack/feat/dx-3630-get-terms
harshithad0703 Oct 23, 2025
908f206
feat: Add locales method to Term class and corresponding tests
harshitha-cstk Oct 28, 2025
92d633d
refactor: Update locales method in Term class to return data directly…
harshitha-cstk Oct 28, 2025
33bca3b
Merge pull request #247 from contentstack/feat/dx-3632-terms-loacales
harshithad0703 Oct 28, 2025
c4695d8
feat: Add ancestors method to Term class and update related tests
harshitha-cstk Oct 28, 2025
7a8b8a4
Merge pull request #248 from contentstack/feat/dx-3634-ancestors
harshithad0703 Oct 28, 2025
4e97212
feat: Add descendants method to Term class and update related tests
harshitha-cstk Oct 28, 2025
519c7a3
feat: Enhance Taxonomy and TermQuery classes with detailed documentat…
harshitha-cstk Oct 28, 2025
62e3994
docs: Update descriptions in Taxonomy and Term classes to clarify pub…
harshitha-cstk Oct 28, 2025
6a8122f
feat: type definitions for taxonomy management
harshitha-cstk Oct 28, 2025
75c7d9a
Merge pull request #249 from contentstack/feat/dx-3633-descendants
harshithad0703 Oct 29, 2025
19aa8d5
Merge branch 'main' into feat/dx-3797-update-taxonomy-api
harshitha-cstk Dec 15, 2025
13fa7d9
refactor: update API endpoints from /taxonomy-manager to /taxonomies
harshitha-cstk Dec 15, 2025
251a61c
Merge branch 'main' into feat/taxonomy-publishing
harshitha-cstk Dec 15, 2025
d88c4fc
Merge branch 'feat/taxonomy-publishing' into feat/dx-3797-update-taxo…
harshitha-cstk Dec 15, 2025
a85d2a2
Merge pull request #284 from contentstack/feat/dx-3797-update-taxonom…
harshithad0703 Dec 15, 2025
63b49fd
Merge branch 'main' into feat/taxonomy-publishing
harshitha-cstk Jan 13, 2026
38e9def
Merge branch 'main' into feat/taxonomy-publishing
harshitha-cstk Jan 13, 2026
43bc2aa
test: update locales test case to include assertions
harshitha-cstk Jan 19, 2026
071aef5
Merge branch 'development' into feat/taxonomy-publishing
harshitha-cstk Mar 12, 2026
ed590e2
refactor: reorganize taxonomy imports and add Taxonomy and Term classes
harshitha-cstk Mar 12, 2026
5587efd
chore: remove unused Taxonomy import from stack.ts
harshitha-cstk Mar 12, 2026
7ed8c16
refactor: update import paths for Taxonomy and Term classes to reflec…
harshitha-cstk Mar 12, 2026
09268cc
update package-lock
harshitha-cstk Mar 12, 2026
f14f4e9
Merge branch 'main' into feat/taxonomy-publishing
harshitha-cstk Mar 12, 2026
2e0be5a
Merge branch 'main' into feat/taxonomy-publishing
harshitha-cstk Mar 12, 2026
cf621e8
Merge branch 'development' into feat/taxonomy-publishing
harshitha-cstk Jul 15, 2026
3c987b6
feat: add locale and includeFallback support to taxonomy CDA delivery
cs-raj Jul 15, 2026
dae3f07
Merge pull request #374 from contentstack/enhc/taxonomy-localisation-2
harshitha-cstk Jul 15, 2026
dcf6048
feat(taxonomy): add query-parameter support to Taxonomy, Term, and Te…
harshitha-cstk Jul 15, 2026
cdd2fee
version bump
harshitha-cstk Jul 15, 2026
8121f6a
add taxonomy localization test cases
harshitha-cstk Jul 15, 2026
82fc012
test: add locale/includeFallback coverage for taxonomy, term, and ter…
cs-raj Jul 15, 2026
5a7b189
fix: tests
cs-raj Jul 15, 2026
5801073
chore: fix test cases
cs-raj Jul 15, 2026
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
2 changes: 2 additions & 0 deletions .talismanrc
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,6 @@ fileignoreconfig:
checksum: 9185df498914e2966d78d9d216acaaa910d43cd7ac9a5e9a26e7241ac9edc9b5
- filename: test/reporting/generate-unified-report.js
checksum: 9e7a4696561b790cb93f3be8406a70ec6fdc90a3f8bbb9739504495690158fe3
- filename: src/query/term-query.ts
checksum: 1f5b23177460d562076d93cf28b375106b19123a5ab135ffef75f4b2bb332d35
version: "1.0"
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### Version: 5.3.0
#### Date: Jul-15-2026
Feature: Added Taxonomy Content Delivery API support via `stack.taxonomy()` — fetch published taxonomies and terms, term ancestors/descendants, and term locales, with `locale`, fallback, branch, `depth`, and pagination query helpers. Requires the `taxonomy_publish` feature flag.

### Version: 5.2.2
#### Date: June-29-2026
Fix: Upgrade dependencies
Expand Down
138 changes: 71 additions & 67 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@contentstack/delivery-sdk",
"version": "5.2.2",
"version": "5.3.0",
"type": "module",
"license": "MIT",
"engines": {
Expand Down
38 changes: 34 additions & 4 deletions src/common/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,25 @@ export type queryParams = {

/**
* Interface for creating Contentstack plugins
*
*
* @example
* ```typescript
* import { ContentstackPlugin } from '@contentstack/delivery-sdk';
*
*
* class MyPlugin implements ContentstackPlugin {
* onRequest(config: any): any {
* // Modify request configuration
* console.log('Processing request:', config.url);
* return { ...config, headers: { ...config.headers, 'X-Custom-Header': 'value' } };
* }
*
*
* onResponse(request: any, response: any, data: any): any {
* // Process response data
* console.log('Processing response:', response.status);
* return { ...response, data: { ...data, processed: true } };
* }
* }
*
*
* const stack = contentstack.stack({
* apiKey: 'your-api-key',
* deliveryToken: 'your-delivery-token',
Expand Down Expand Up @@ -344,6 +344,8 @@ export interface FindResponse<T, TContentType = unknown> {
assets?: T[];
global_fields?: T[];
count?: number;
taxonomies?: T[];
terms?: T[];
}

export interface LivePreviewQuery {
Expand All @@ -367,3 +369,31 @@ export type LivePreview = {
management_token?: string;
preview_token?: string;
};

export interface BaseTaxonomy {
uid: string;
name: string;
description?: string;
terms_count?: number;
created_at: string;
updated_at: string;
created_by: string;
updated_by: string;
type: string;
ACL: ACL;
publish_details?: PublishDetails;
}

export interface BaseTerm {
taxonomy_uid: string;
uid: string;
name: string;
created_by: string;
created_at: string;
updated_by: string;
updated_at: string;
children_count?: number;
depth?: number;
ACL: ACL;
publish_details?: PublishDetails;
}
Loading
Loading