@feathersjs/schema
Advanced tools
Comparing version 5.0.11 to 5.0.12
@@ -6,2 +6,9 @@ # Change Log | ||
## [5.0.12](https://github.com/feathersjs/feathers/compare/v5.0.11...v5.0.12) (2023-11-28) | ||
### Bug Fixes | ||
- **schema:** Allow $in and $nin queries to work for arrays ([#3352](https://github.com/feathersjs/feathers/issues/3352)) ([677c214](https://github.com/feathersjs/feathers/commit/677c214a353a7f9a1f90649b9bbec4d0d6517a6f)) | ||
- **schema:** Remove undefined $select when using resolveResult hook ([#3354](https://github.com/feathersjs/feathers/issues/3354)) ([c43e009](https://github.com/feathersjs/feathers/commit/c43e009188eb84f98e3f5f29ac4444e6967afc1f)) | ||
## [5.0.11](https://github.com/feathersjs/feathers/compare/v5.0.10...v5.0.11) (2023-10-11) | ||
@@ -8,0 +15,0 @@ |
@@ -69,3 +69,3 @@ "use strict"; | ||
...query, | ||
...(!hasVirtualSelects ? { $select } : {}) | ||
...(!!$select && !hasVirtualSelects ? { $select } : {}) | ||
} | ||
@@ -72,0 +72,0 @@ }; |
@@ -75,10 +75,4 @@ import { JSONSchema } from 'json-schema-to-ts'; | ||
readonly $ne: any; | ||
readonly $in: { | ||
readonly type: "array"; | ||
readonly items: any; | ||
}; | ||
readonly $nin: { | ||
readonly type: "array"; | ||
readonly items: any; | ||
}; | ||
readonly $in: any; | ||
readonly $nin: any; | ||
} & X; | ||
@@ -85,0 +79,0 @@ }]; |
@@ -64,10 +64,14 @@ "use strict"; | ||
$ne: definition, | ||
$in: { | ||
type: 'array', | ||
items: definition | ||
}, | ||
$nin: { | ||
type: 'array', | ||
items: definition | ||
}, | ||
$in: definition.type === 'array' | ||
? definition | ||
: { | ||
type: 'array', | ||
items: definition | ||
}, | ||
$nin: definition.type === 'array' | ||
? definition | ||
: { | ||
type: 'array', | ||
items: definition | ||
}, | ||
...extensions | ||
@@ -74,0 +78,0 @@ } |
{ | ||
"name": "@feathersjs/schema", | ||
"description": "A common data schema definition format", | ||
"version": "5.0.11", | ||
"version": "5.0.12", | ||
"homepage": "https://feathersjs.com", | ||
@@ -57,8 +57,8 @@ "main": "lib/", | ||
"dependencies": { | ||
"@feathersjs/adapter-commons": "^5.0.11", | ||
"@feathersjs/commons": "^5.0.11", | ||
"@feathersjs/errors": "^5.0.11", | ||
"@feathersjs/feathers": "^5.0.11", | ||
"@feathersjs/adapter-commons": "^5.0.12", | ||
"@feathersjs/commons": "^5.0.12", | ||
"@feathersjs/errors": "^5.0.12", | ||
"@feathersjs/feathers": "^5.0.12", | ||
"@feathersjs/hooks": "^0.8.1", | ||
"@types/json-schema": "^7.0.13", | ||
"@types/json-schema": "^7.0.15", | ||
"ajv": "^8.12.0", | ||
@@ -69,5 +69,5 @@ "ajv-formats": "^2.1.1", | ||
"devDependencies": { | ||
"@feathersjs/memory": "^5.0.11", | ||
"@types/mocha": "^10.0.2", | ||
"@types/node": "^20.8.4", | ||
"@feathersjs/memory": "^5.0.12", | ||
"@types/mocha": "^10.0.6", | ||
"@types/node": "^20.10.0", | ||
"ajv-formats": "^2.1.1", | ||
@@ -79,5 +79,5 @@ "mocha": "^10.2.0", | ||
"peerDependencies": { | ||
"typescript": ">=5.2" | ||
"typescript": ">=5.3" | ||
}, | ||
"gitHead": "91294817845178ff0e9d4709127cb3e46d3562be" | ||
"gitHead": "9e0aadcee4f6ad45d4b364b7fa6f6caf6c7ed419" | ||
} |
@@ -93,3 +93,3 @@ import { HookContext, NextFunction } from '@feathersjs/feathers' | ||
...query, | ||
...(!hasVirtualSelects ? { $select } : {}) | ||
...(!!$select && !hasVirtualSelects ? { $select } : {}) | ||
} | ||
@@ -96,0 +96,0 @@ } |
@@ -115,10 +115,16 @@ import { _ } from '@feathersjs/commons' | ||
$ne: definition, | ||
$in: { | ||
type: 'array', | ||
items: definition | ||
}, | ||
$nin: { | ||
type: 'array', | ||
items: definition | ||
}, | ||
$in: | ||
definition.type === 'array' | ||
? definition | ||
: { | ||
type: 'array', | ||
items: definition | ||
}, | ||
$nin: | ||
definition.type === 'array' | ||
? definition | ||
: { | ||
type: 'array', | ||
items: definition | ||
}, | ||
...extensions | ||
@@ -125,0 +131,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
145951
2775