@es-joy/jsoe 0.19.0 → 0.19.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGES TO `@es-joy/jsoe`
2
2
 
3
+ ## 0.19.1
4
+
5
+ - fix: ensure `originalShape` passed to `dezerialize()` (`$ref`'s require)
6
+
3
7
  ## 0.19.0
4
8
 
5
9
  - feat: change API for `$setFormat` to accept `schema` and change API to object with
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/formats/schema.js"],"names":[],"mappings":";0BA2Da,OAAO,OAAO,EAAE,MAAM;2BAGtB,OAAO,qBAAqB,EAAE,YAAY;;;;oBAnD1C,CAAC,IADD,CAAC,CAAC,MAAM,CAAC,CAAC;iCAMV,OAAO,CAChB,IAAI,CAAC,OAAO,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,CACrC;AAsiBH,6CAA6C;AAC7C,sBADW,OAAO,eAAe,EAAE,MAAM,CAyMvC"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/formats/schema.js"],"names":[],"mappings":";0BA2Da,OAAO,OAAO,EAAE,MAAM;2BAGtB,OAAO,qBAAqB,EAAE,YAAY;;;;oBAnD1C,CAAC,IADD,CAAC,CAAC,MAAM,CAAC,CAAC;iCAMV,OAAO,CAChB,IAAI,CAAC,OAAO,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,CACrC;AAsiBH,6CAA6C;AAC7C,sBADW,OAAO,eAAe,EAAE,MAAM,CA2MvC"}
package/dist/index.js CHANGED
@@ -9151,7 +9151,9 @@ const schema = {
9151
9151
  // however, if the tested object has extra non-standard properties
9152
9152
  schema.unknownKeys = 'strict';
9153
9153
  }
9154
- const dezSchema = dezerialize(schema);
9154
+ const dezSchema = dezerialize(schema, {
9155
+ originalShape: stateObj.schemaContent
9156
+ });
9155
9157
  const parsed = dezSchema.safeParse(v);
9156
9158
 
9157
9159
  if (schema.type === 'object') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@es-joy/jsoe",
3
- "version": "0.19.0",
3
+ "version": "0.19.1",
4
4
  "type": "module",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./src/index.js",
@@ -667,7 +667,9 @@ const schema = {
667
667
  // however, if the tested object has extra non-standard properties
668
668
  schema.unknownKeys = 'strict';
669
669
  }
670
- const dezSchema = dezerialize(schema);
670
+ const dezSchema = dezerialize(schema, {
671
+ originalShape: stateObj.schemaContent
672
+ });
671
673
  const parsed = dezSchema.safeParse(v);
672
674
 
673
675
  if (schema.type === 'object') {