Skip to content

Commit

Permalink
Support for TS: Query function where, equal and notEqual to include b…
Browse files Browse the repository at this point in the history
…oolean
  • Loading branch information
uttamukkoji committed Feb 17, 2021
1 parent 887ddda commit 75205b3
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@

### Version: 3.12.2
#### Date: Feb-19-2021

##### API timeout:
- updated timeout to min 30 sec
##### Enhancement Typescript:
- boolean value support added:
- [Query] - where, equalTo, notEqualTo

### Version: 3.12.1
#### Date: Jan-22-2021

Expand Down
8 changes: 4 additions & 4 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Type definitions for contentstack 3.12.0
// Type definitions for contentstack 3.12.2
// Project: https://www.contentstack.com/
// Definitions by: Contentstack <https://github.com/contentstack>

Expand Down Expand Up @@ -166,9 +166,9 @@ export class Query extends Entry {

tags(value: string[]): Query;

where(key: string, value: (string | number)): Query;
equalTo(key: string, value: (string | number)): Query;
notEqualTo(key: string, value: (string | number)): Query;
where(key: string, value: (string | number | boolean)): Query;
equalTo(key: string, value: (string | number | boolean)): Query;
notEqualTo(key: string, value: (string | number | boolean)): Query;

lessThan(key: string, value: (string | number)): Query;
lessThanOrEqualTo(key: string, value: (string | number)): Query;
Expand Down
2 changes: 1 addition & 1 deletion 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",
"version": "3.12.1",
"version": "3.12.2",
"description": "Contentstack Javascript SDK",
"homepage": "https://www.contentstack.com/",
"author": {
Expand Down

0 comments on commit 75205b3

Please sign in to comment.