jsonschema_rs 0.49.6-aarch64-linux → 0.49.8-aarch64-linux

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '07847ea4476c91eacdd6c87f05653aca1e501e8d41ecb218e88291c9cae6da87'
4
- data.tar.gz: e206925112e0edc658b1e5a206b7ee288c47e9afa3008df9f083e7bad83b98a2
3
+ metadata.gz: edd84574ac691b1ba6393d4632a1002a067d44c17cae9224997aff77d3592151
4
+ data.tar.gz: 054c8e6689430152a96e71a7c2d0981361a9fe2b6fecc16cdda7d1b23dc9c331
5
5
  SHA512:
6
- metadata.gz: 2bfb492998dd9ac84dc0ce46d8adb37c4e699d863fb815adc4edca2dbd1dee279799be9c79a0fbf8e70bc2d38795eb78ba618fed22ed34a4889b135f8b1b75d0
7
- data.tar.gz: 0174ad4ebbdb3aef1d1fbb21cd5901fa7479954ef223e959d52e370bed7fb6775522b28232d75636aac9111b85b2f85e6499d8ce6e28965884cb6dfda3aef1c0
6
+ metadata.gz: c6825835f5bad8eb45efa094087f9cb970a8ce01f7c90d25b0ab647acba3f5d21bab87714b479150c80f04dc5550c42e05c17cc8a9b571d57ca305f464a4bd39
7
+ data.tar.gz: 9dd748b3035a65c4f7d8a46c207aff48abbdd1227dbe3c41e7d782cd3646464a8a1cbe8fb02edafa3c9269e4c61a4a41d37593fd7ed71c850a04edb2f0434e09
data/CHANGELOG.md CHANGED
@@ -2,6 +2,52 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.49.8] - 2026-08-08
6
+
7
+ ### Performance
8
+
9
+ - Up to 380x faster canonicalization of a `oneOf` whose overlapping branches carry many properties, which no longer removes shared regions the exactly-one spelling discards.
10
+
11
+ ### Fixed
12
+
13
+ - Draft detection treating the version-less `http://json-schema.org/schema` meta-schema URI as a custom dialect, where it names the current draft.
14
+ - A `patternProperties` entry matching every key leaving `additionalProperties: false` spelled as a key constraint, where it forbids nothing.
15
+
16
+ ## [0.49.7] - 2026-08-08
17
+
18
+ ### Added
19
+
20
+ - `retriever`, `registry`, and `base_uri` keyword arguments to `JSONSchema.canonicalize`.
21
+ - Canonicalization of a `oneOf` whose branches name disjoint targets, which degrades to a union.
22
+ - Canonicalization of a vacuous `patternProperties` entry beside schema-valued `additionalProperties`, where matching keys escape its value constraint.
23
+ - Canonicalization of a Draft 4 closed pattern map with a reference nested under a property.
24
+ - Canonicalization of Draft 4 closed pattern maps that meet through an applicator.
25
+ - The complement of a reference back to a target already being negated, which stays symbolic instead of declining.
26
+ - `CanonicalSchema#definition` resolving `#` to the document the schema was read against.
27
+
28
+ ### Performance
29
+
30
+ - Up to 150x faster canonicalization of `not` over a union of many branches.
31
+ - 2% faster emission of canonical schemas, which no longer formats copied string values.
32
+ - 5% faster emission of canonical schemas, which no longer formats object keys while copying them.
33
+ - Up to 12% faster canonicalization of schemas that repeatedly intersect the same branches.
34
+ - 13% faster canonicalization of a non-dynamic OpenAPI document, which no longer scans every schema object for dynamic references.
35
+ - Faster canonicalization of schemas with local `$defs` references, which avoid decoding unescaped definition names.
36
+ - 23% faster canonicalization of an object whose keys a finite property-name set spells.
37
+ - 3% faster intersection of schemas where one side constrains nothing.
38
+ - Up to 31x faster canonicalization of a `oneOf` whose many branches overlap.
39
+ - Up to 14x faster canonicalization of a union whose object branches share no values.
40
+ - 7% faster canonicalization of schemas that reach the same pair of nodes repeatedly.
41
+ - 5% faster canonicalization of objects, whose property maps no longer reach the allocator.
42
+ - Up to 8% faster canonicalization of schemas that reach `true` and `false` subschemas repeatedly.
43
+ - 2% faster canonicalization of schemas that assert known string formats.
44
+
45
+ ### Fixed
46
+
47
+ - `CanonicalSchema#definition` and `CanonicalSchema#definitions` handing out a target that names the document root without that document, where `#` points at the target instead.
48
+ - An `items` tail beyond an array's length ceiling surviving canonicalization, where it governs no element.
49
+ - `CanonicalSchema#to_json_schema` leaving the document root out of a node emitted below it, where `#` points at that node instead.
50
+
5
51
  ## [0.49.6] - 2026-08-06
6
52
 
7
53
  ### Added
@@ -327,7 +373,9 @@
327
373
 
328
374
  - Initial public release
329
375
 
330
- [Unreleased]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.49.6...HEAD
376
+ [Unreleased]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.49.8...HEAD
377
+ [0.49.8]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.49.7...ruby-v0.49.8
378
+ [0.49.7]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.49.6...ruby-v0.49.7
331
379
  [0.49.6]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.49.5...ruby-v0.49.6
332
380
  [0.49.5]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.49.4...ruby-v0.49.5
333
381
  [0.49.4]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.49.3...ruby-v0.49.4
Binary file
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JSONSchema
4
- VERSION = "0.49.6"
4
+ VERSION = "0.49.8"
5
5
  end
data/sig/jsonschema.rbs CHANGED
@@ -202,7 +202,10 @@ module JSONSchema
202
202
  untyped schema,
203
203
  ?draft: draft?,
204
204
  ?validate_formats: bool?,
205
- ?pattern_options: (RegexOptions | FancyRegexOptions)?
205
+ ?pattern_options: (RegexOptions | FancyRegexOptions)?,
206
+ ?retriever: (^(String) -> untyped)?,
207
+ ?registry: Registry?,
208
+ ?base_uri: String?
206
209
  ) -> Canonical::CanonicalSchema
207
210
 
208
211
  # Create a validator with auto-detected draft version.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsonschema_rs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.49.6
4
+ version: 0.49.8
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - Dmitry Dygalo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-08-06 00:00:00.000000000 Z
11
+ date: 2026-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bigdecimal