Skip to content

Commit 111e81e

Browse files
committed
Merge branch 'master' into embedded_objects
2 parents ad6256e + 56bf7d0 commit 111e81e

File tree

6 files changed

+46
-12242
lines changed

6 files changed

+46
-12242
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ test/config.js/*
99
test/sync_config.js/*
1010
test/report.json/*
1111
tap-html.html
12-
*html-report
12+
*html-report
13+
coverage

.npmignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ mocktest.json
1111
webpack
1212
typescript-html-report
1313
webpack
14-
jest.config.js
14+
jest.config.js
15+
coverage

CHANGELOG.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,33 @@
1-
### Version: 3.12.0
1+
2+
### Version: 3.13.0
23
#### Date:
34

45
##### Update API:
56
- includeEmbeddedObjects method added in Entry and Query to include embedded objects
67

8+
### Version: 3.12.2
9+
#### Date: Feb-19-2021
10+
11+
##### API timeout:
12+
- updated timeout to min 30 sec
13+
##### Enhancement Typescript:
14+
- boolean value support added:
15+
- [Query] - where, equalTo, notEqualTo
16+
17+
### Version: 3.12.1
18+
#### Date: Jan-22-2021
19+
20+
##### Bug fix:
21+
- Fixed Unhandled promise rejection on HTML response body.
22+
### Version: 3.12.0
23+
#### Date: Dec-05-2020
24+
25+
##### New Features:
26+
- [Entry] - Publish fallback method added
27+
- [Query] - Publish fallback method added
28+
- [Asset] - Publish fallback method added
29+
- [Assets] - Publish fallback method added
30+
731
### Version: 3.11.0
832
#### Date: Sept-25-2020
933

index.d.ts

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Type definitions for contentstack 3.12.0
1+
// Type definitions for contentstack 3.12.2
22
// Project: https://www.contentstack.com/
33
// Definitions by: Contentstack <https://github.com/contentstack>
44
import { EntryEmbedable, Option, RenderOption } from '@contentstack/utils'
@@ -114,9 +114,11 @@ export class Asset {
114114
constructor();
115115

116116
asset_uid: string
117-
118-
toJSON(): Assets;
119-
addParam(key: string, value: any): Assets;
117+
_query: object;
118+
119+
toJSON(): Asset;
120+
addParam(key: string, value: any): Asset;
121+
includeFallback(): Asset;
120122
fetch(fetchOptions?: object): Promise<any>;
121123
}
122124

@@ -147,6 +149,7 @@ export class Entry {
147149
language(language_code: string): this;
148150
addQuery(key: string, value: string): this;
149151
includeEmbeddedItems(): this;
152+
includeFallback(): this;
150153
/**
151154
* @deprecated since verion 3.3.0
152155
*/
@@ -174,9 +177,9 @@ export class Query extends Entry {
174177

175178
tags(value: string[]): Query;
176179

177-
where(key: string, value: (string | number)): Query;
178-
equalTo(key: string, value: (string | number)): Query;
179-
notEqualTo(key: string, value: (string | number)): Query;
180+
where(key: string, value: (string | number | boolean)): Query;
181+
equalTo(key: string, value: (string | number | boolean)): Query;
182+
notEqualTo(key: string, value: (string | number | boolean)): Query;
180183

181184
lessThan(key: string, value: (string | number)): Query;
182185
lessThanOrEqualTo(key: string, value: (string | number)): Query;

0 commit comments

Comments
 (0)