Skip to content

Commit 2daa0f0

Browse files
authored
Merge pull request contentstack#345 from contentstack/feat/taxonomy-publishing
Feat/taxonomy publishing
2 parents 6808f70 + 388219f commit 2daa0f0

21 files changed

Lines changed: 1510 additions & 90 deletions

‎.talismanrc‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,6 @@ fileignoreconfig:
6464
checksum: 9185df498914e2966d78d9d216acaaa910d43cd7ac9a5e9a26e7241ac9edc9b5
6565
- filename: test/reporting/generate-unified-report.js
6666
checksum: 9e7a4696561b790cb93f3be8406a70ec6fdc90a3f8bbb9739504495690158fe3
67+
- filename: src/query/term-query.ts
68+
checksum: 1f5b23177460d562076d93cf28b375106b19123a5ab135ffef75f4b2bb332d35
6769
version: "1.0"

‎CHANGELOG.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### Version: 5.3.0
2+
#### Date: Jul-15-2026
3+
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.
4+
15
### Version: 5.2.2
26
#### Date: June-29-2026
37
Fix: Upgrade dependencies

‎package-lock.json‎

Lines changed: 71 additions & 67 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@contentstack/delivery-sdk",
3-
"version": "5.2.2",
3+
"version": "5.3.0",
44
"type": "module",
55
"license": "MIT",
66
"engines": {

‎src/common/types.ts‎

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,25 @@ export type queryParams = {
2121

2222
/**
2323
* Interface for creating Contentstack plugins
24-
*
24+
*
2525
* @example
2626
* ```typescript
2727
* import { ContentstackPlugin } from '@contentstack/delivery-sdk';
28-
*
28+
*
2929
* class MyPlugin implements ContentstackPlugin {
3030
* onRequest(config: any): any {
3131
* // Modify request configuration
3232
* console.log('Processing request:', config.url);
3333
* return { ...config, headers: { ...config.headers, 'X-Custom-Header': 'value' } };
3434
* }
35-
*
35+
*
3636
* onResponse(request: any, response: any, data: any): any {
3737
* // Process response data
3838
* console.log('Processing response:', response.status);
3939
* return { ...response, data: { ...data, processed: true } };
4040
* }
4141
* }
42-
*
42+
*
4343
* const stack = contentstack.stack({
4444
* apiKey: 'your-api-key',
4545
* deliveryToken: 'your-delivery-token',
@@ -344,6 +344,8 @@ export interface FindResponse<T, TContentType = unknown> {
344344
assets?: T[];
345345
global_fields?: T[];
346346
count?: number;
347+
taxonomies?: T[];
348+
terms?: T[];
347349
}
348350

349351
export interface LivePreviewQuery {
@@ -367,3 +369,31 @@ export type LivePreview = {
367369
management_token?: string;
368370
preview_token?: string;
369371
};
372+
373+
export interface BaseTaxonomy {
374+
uid: string;
375+
name: string;
376+
description?: string;
377+
terms_count?: number;
378+
created_at: string;
379+
updated_at: string;
380+
created_by: string;
381+
updated_by: string;
382+
type: string;
383+
ACL: ACL;
384+
publish_details?: PublishDetails;
385+
}
386+
387+
export interface BaseTerm {
388+
taxonomy_uid: string;
389+
uid: string;
390+
name: string;
391+
created_by: string;
392+
created_at: string;
393+
updated_by: string;
394+
updated_at: string;
395+
children_count?: number;
396+
depth?: number;
397+
ACL: ACL;
398+
publish_details?: PublishDetails;
399+
}

0 commit comments

Comments
 (0)