@feathersjs/schema
Advanced tools
Comparing version 5.0.0-pre.23 to 5.0.0-pre.24
@@ -6,2 +6,18 @@ # Change Log | ||
# [5.0.0-pre.24](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.23...v5.0.0-pre.24) (2022-06-21) | ||
### Bug Fixes | ||
* **schema:** Fix dispatch resovler hook to convert actually resolved data ([#2663](https://github.com/feathersjs/feathers/issues/2663)) ([f7e87db](https://github.com/feathersjs/feathers/commit/f7e87dbb9a0bc8d89aee47318dddbaa4d6ba5b91)) | ||
### Features | ||
* **cli:** Add typed client to a generated app ([#2669](https://github.com/feathersjs/feathers/issues/2669)) ([5b801b5](https://github.com/feathersjs/feathers/commit/5b801b5017ddc3eaa95622b539f51d605916bc86)) | ||
# [5.0.0-pre.23](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.22...v5.0.0-pre.23) (2022-06-06) | ||
@@ -8,0 +24,0 @@ |
@@ -106,3 +106,3 @@ "use strict"; | ||
return Object.keys(resolved).reduce((res, key) => { | ||
res[key] = (0, exports.getDispatch)(current[key]); | ||
res[key] = (0, exports.getDispatch)(resolved[key]); | ||
return res; | ||
@@ -109,0 +109,0 @@ }, {}); |
@@ -51,3 +51,3 @@ import { JSONSchema } from 'json-schema-to-ts'; | ||
export declare const querySyntax: <T extends { | ||
[key: string]: import("json-schema-to-ts").JSONSchema7; | ||
[key: string]: any; | ||
}>(definition: T) => { | ||
@@ -54,0 +54,0 @@ readonly $limit: { |
{ | ||
"name": "@feathersjs/schema", | ||
"description": "A common data schema definition format", | ||
"version": "5.0.0-pre.23", | ||
"version": "5.0.0-pre.24", | ||
"homepage": "https://feathersjs.com", | ||
@@ -56,5 +56,5 @@ "main": "lib/", | ||
"dependencies": { | ||
"@feathersjs/commons": "^5.0.0-pre.23", | ||
"@feathersjs/errors": "^5.0.0-pre.23", | ||
"@feathersjs/feathers": "^5.0.0-pre.23", | ||
"@feathersjs/commons": "^5.0.0-pre.24", | ||
"@feathersjs/errors": "^5.0.0-pre.24", | ||
"@feathersjs/feathers": "^5.0.0-pre.24", | ||
"@feathersjs/hooks": "^0.7.5", | ||
@@ -67,3 +67,3 @@ "@types/json-schema": "^7.0.11", | ||
"devDependencies": { | ||
"@feathersjs/memory": "^5.0.0-pre.23", | ||
"@feathersjs/memory": "^5.0.0-pre.24", | ||
"@types/mocha": "^9.1.1", | ||
@@ -76,3 +76,3 @@ "@types/node": "^17.0.40", | ||
}, | ||
"gitHead": "a60910bd730b88053ca6648337095f1ca1e3b39f" | ||
"gitHead": "72779fa2938f43d7b345b6861ff0035481a07de3" | ||
} |
@@ -146,6 +146,6 @@ import { HookContext, NextFunction } from '@feathersjs/feathers' | ||
const resolveAndGetDispatch = async (current: any) => { | ||
const resolved = await runResolvers(resolvers, current, ctx, status) | ||
const resolved: any = await runResolvers(resolvers, current, ctx, status) | ||
return Object.keys(resolved).reduce((res, key) => { | ||
res[key] = getDispatch(current[key]) | ||
res[key] = getDispatch(resolved[key]) | ||
@@ -152,0 +152,0 @@ return res |
@@ -66,3 +66,3 @@ import { _ } from '@feathersjs/commons' | ||
export const querySyntax = <T extends { [key: string]: JSONSchema }>(definition: T) => | ||
export const querySyntax = <T extends { [key: string]: any }>(definition: T) => | ||
({ | ||
@@ -69,0 +69,0 @@ $limit: { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
61232