@nftx/query
Advanced tools
Comparing version 3.7.6 to 4.0.0
@@ -6,2 +6,18 @@ # Change Log | ||
# [4.0.0](https://github.com/NFTX-project/nftxjs/compare/v3.7.6...v4.0.0) (2024-09-23) | ||
### Bug Fixes | ||
* add missing operators and remove isNot ([b7ba416](https://github.com/NFTX-project/nftxjs/commit/b7ba416cfdf3fa1470f1988f33713d19819c5ce2)) | ||
### BREAKING CHANGES | ||
* isNot operator has been renamed to ne | ||
## [3.7.6](https://github.com/NFTX-project/nftxjs/compare/v3.7.5...v3.7.6) (2024-09-02) | ||
@@ -8,0 +24,0 @@ |
@@ -261,3 +261,4 @@ 'use strict'; | ||
whereField.is = whereField; | ||
whereField.isNot = createOperator('isNot'); | ||
whereField.ne = createOperator('ne'); | ||
whereField.not = createOperator('not'); | ||
whereField.gt = createOperator('gt'); | ||
@@ -268,2 +269,4 @@ whereField.gte = createOperator('gte'); | ||
whereField.in = createOperator('in'); | ||
whereField.nin = createOperator('nin'); | ||
whereField.notIn = createOperator('notIn'); | ||
whereField.contains = createOperator('contains'); | ||
@@ -407,6 +410,12 @@ return whereField; | ||
return `${field}`; | ||
case 'isNot': | ||
case 'ne': | ||
return `${field}_ne`; | ||
case 'not': | ||
return `${field}_not`; | ||
case 'in': | ||
return `${field}_in`; | ||
case 'nin': | ||
return `${field}_nin`; | ||
case 'notIn': | ||
return `${field}_not_in`; | ||
case 'conj': | ||
@@ -413,0 +422,0 @@ return `${field}`; |
@@ -257,3 +257,4 @@ /** Processes a graphql string | ||
whereField.is = whereField; | ||
whereField.isNot = createOperator('isNot'); | ||
whereField.ne = createOperator('ne'); | ||
whereField.not = createOperator('not'); | ||
whereField.gt = createOperator('gt'); | ||
@@ -264,2 +265,4 @@ whereField.gte = createOperator('gte'); | ||
whereField.in = createOperator('in'); | ||
whereField.nin = createOperator('nin'); | ||
whereField.notIn = createOperator('notIn'); | ||
whereField.contains = createOperator('contains'); | ||
@@ -403,6 +406,12 @@ return whereField; | ||
return `${field}`; | ||
case 'isNot': | ||
case 'ne': | ||
return `${field}_ne`; | ||
case 'not': | ||
return `${field}_not`; | ||
case 'in': | ||
return `${field}_in`; | ||
case 'nin': | ||
return `${field}_nin`; | ||
case 'notIn': | ||
return `${field}_not_in`; | ||
case 'conj': | ||
@@ -409,0 +418,0 @@ return `${field}`; |
@@ -7,3 +7,4 @@ import type { Defined } from './commonTypes'; | ||
is: WhereOperator<Field>; | ||
isNot: WhereOperator<Field>; | ||
ne: WhereOperator<Field>; | ||
not: WhereOperator<Field>; | ||
gt: WhereOperator<Field>; | ||
@@ -14,2 +15,4 @@ gte: WhereOperator<Field>; | ||
in: WhereOperator<Field[]>; | ||
nin: WhereOperator<Field[]>; | ||
notIn: WhereOperator<Field[]>; | ||
contains: WhereOperator<Field[]>; | ||
@@ -16,0 +19,0 @@ } & WhereOperator<Field>; |
{ | ||
"name": "@nftx/query", | ||
"version": "3.7.6", | ||
"version": "4.0.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/NFTX-project/nftxjs", |
@@ -14,3 +14,4 @@ import type { Where, WhereStatements, WhereStatement } from './whereTypes'; | ||
whereField.is = whereField; | ||
whereField.isNot = createOperator('isNot'); | ||
whereField.ne = createOperator('ne'); | ||
whereField.not = createOperator('not'); | ||
whereField.gt = createOperator('gt'); | ||
@@ -21,2 +22,4 @@ whereField.gte = createOperator('gte'); | ||
whereField.in = createOperator('in'); | ||
whereField.nin = createOperator('nin'); | ||
whereField.notIn = createOperator('notIn'); | ||
whereField.contains = createOperator('contains'); | ||
@@ -23,0 +26,0 @@ |
@@ -32,6 +32,12 @@ import { normalizeIfAddress } from '../utils'; | ||
return `${field}`; | ||
case 'isNot': | ||
case 'ne': | ||
return `${field}_ne`; | ||
case 'not': | ||
return `${field}_not`; | ||
case 'in': | ||
return `${field}_in`; | ||
case 'nin': | ||
return `${field}_nin`; | ||
case 'notIn': | ||
return `${field}_not_in`; | ||
case 'conj': | ||
@@ -38,0 +44,0 @@ return `${field}`; |
@@ -10,3 +10,4 @@ import type { Defined } from './commonTypes'; | ||
is: WhereOperator<Field>; | ||
isNot: WhereOperator<Field>; | ||
ne: WhereOperator<Field>; | ||
not: WhereOperator<Field>; | ||
gt: WhereOperator<Field>; | ||
@@ -17,2 +18,4 @@ gte: WhereOperator<Field>; | ||
in: WhereOperator<Field[]>; | ||
nin: WhereOperator<Field[]>; | ||
notIn: WhereOperator<Field[]>; | ||
contains: WhereOperator<Field[]>; | ||
@@ -19,0 +22,0 @@ } & WhereOperator<Field>; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
87535
2878