Skip to content

Commit 2bd2a47

Browse files
authored
Merge pull request #48 from contentstack/embedded_objects
Embedded Items Feature support added
2 parents 5c1bb8f + 2bdfb3b commit 2bd2a47

File tree

5 files changed

+1966
-2281
lines changed

5 files changed

+1966
-2281
lines changed

.npmignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ examples/
1010
mocktest.json
1111
webpack
1212
typescript-html-report
13-
coverage
13+
webpack
14+
jest.config.js
15+
coverage

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11

2+
### Version: 3.13.0
3+
#### Date:
4+
5+
##### Update API:
6+
- [Query]: Added support for method includeEmbeddedItems
7+
- [Entry]: Added support for method includeEmbeddedItems
8+
29
### Version: 3.12.2
310
#### Date: Feb-19-2021
411

index.d.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
// Type definitions for contentstack 3.12.2
22
// Project: https://www.contentstack.com/
33
// Definitions by: Contentstack <https://github.com/contentstack>
4+
import { EntryEmbedable, Option, RenderOption } from '@contentstack/utils'
5+
6+
// Utils
7+
export class Utils {
8+
static render(option: {
9+
entry: EntryEmbedable| EntryEmbedable[],
10+
renderOption?: RenderOption,
11+
paths?: string[]
12+
}): void;
13+
static renderContent(content: (string | string[]), option: Option): (string| string[]);
14+
}
415

516
//Enum for Contentstack Region
617
export enum Region {
@@ -137,8 +148,8 @@ export class Entry {
137148
includeReference(...val: string[]): this;
138149
language(language_code: string): this;
139150
addQuery(key: string, value: string): this;
151+
includeEmbeddedItems(): this;
140152
includeFallback(): this;
141-
142153
/**
143154
* @deprecated since verion 3.3.0
144155
*/

0 commit comments

Comments
 (0)