@fastify/fast-json-stringify-compiler
Advanced tools
Comparing version 3.0.1 to 4.0.0
@@ -13,2 +13,6 @@ 'use strict' | ||
function responseSchemaCompiler (fjsOpts, { schema /* method, url, httpStatus */ }) { | ||
if (fjsOpts.schema && schema.$id && fjsOpts.schema[schema.$id]) { | ||
fjsOpts.schema = { ...fjsOpts.schema } | ||
delete fjsOpts.schema[schema.$id] | ||
} | ||
return fastJsonStringify(schema, fjsOpts) | ||
@@ -15,0 +19,0 @@ } |
{ | ||
"name": "@fastify/fast-json-stringify-compiler", | ||
"description": "Build and manage the fast-json-stringify instances for the fastify framework", | ||
"version": "3.0.1", | ||
"version": "4.0.0", | ||
"main": "index.js", | ||
@@ -28,6 +28,6 @@ "types": "index.d.ts", | ||
"tap": "^16.0.0", | ||
"tsd": "^0.20.0" | ||
"tsd": "^0.21.0" | ||
}, | ||
"dependencies": { | ||
"fast-json-stringify": "^4.2.0" | ||
"fast-json-stringify": "^5.0.0" | ||
}, | ||
@@ -34,0 +34,0 @@ "tsd": { |
@@ -16,2 +16,3 @@ # @fastify/fast-json-stringify-compiler | ||
| v3.x | v4.x | ^4.x | | ||
| v3.x | v5.x | ^4.x | | ||
@@ -18,0 +19,0 @@ ### fast-json-stringify Configuration |
7975
11
115
36
+ Added@fastify/merge-json-schemas@0.1.1(transitive)
+ Addedajv-formats@3.0.1(transitive)
+ Addedfast-json-stringify@5.16.0(transitive)
+ Addedjson-schema-ref-resolver@1.0.1(transitive)
- Removedajv-formats@2.1.1(transitive)
- Removeddeepmerge@4.3.1(transitive)
- Removedfast-json-stringify@4.2.0(transitive)
- Removedstring-similarity@4.0.4(transitive)
Updatedfast-json-stringify@^5.0.0