jsonschema_rs 0.60.2-x86_64-linux → 0.61.1-x86_64-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: 4b6e40a74bf95d8580d0f6e2bb96b6fd0921f56928a1981f5f2f787e236f7666
4
- data.tar.gz: 00e48ee6e8b32943f28618b3ca26d9b48acbbdb65f96686a05531a8ae18ffc28
3
+ metadata.gz: dc4571eeed7a2d60ea99754336fa5bd64d51e6e218990d9726699621bf2a6ec3
4
+ data.tar.gz: d77b9867ded8cb79ad33a57d072bcaf157485d3e271dcaeb47ccc7fe7a383642
5
5
  SHA512:
6
- metadata.gz: 2469eff0fabf20c23d0012b750130077e37b3dbf88501d1913da35393c9a6a3cddd394250c7263e7fd135c0649c8672d76a39a128dc392b97368d59f634c4864
7
- data.tar.gz: dc0644759c12cf04791429bfeb2c788d131d883c0defe7ffcba7d242de0f9c978e9e0e8731d28e4ebf410aa1f75ec3bfadd9f3edf027fe0b2b451b0320618b5f
6
+ metadata.gz: 441162ffa4cb8bd7d71399effaad94edc26ed9001fb1933932df8f89cefa6e74c8fc8067d30eeea3e289d029a84127da4bcad796614afefc97701061a9b2f18c
7
+ data.tar.gz: bff0d1fb2a624a8b180c8bebfa056e7badc8639520a6991c9df99013480faf653e66557a346dd03a9c2dec0724da530c96b9d064e1b3a891d52a3f9dcadefe3c
data/CHANGELOG.md CHANGED
@@ -2,6 +2,56 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.61.1] - 2026-11-10
6
+
7
+ ### Fixed
8
+
9
+ - `dereference` following `$ref` in keywords that hold data, such as `const` and `examples`. [#1858](https://github.com/Stranger6667/jsonschema/issues/1858)
10
+ - `pattern` over one character class under a large bounded count, such as `^.{0,404600}$`, failing with a regex engine error on the empty string when the size limit was raised to compile it.
11
+
12
+ ### Performance
13
+
14
+ - `pattern` and `patternProperties` with a large bounded count over one character class, such as `^.{0,262144}$` or `[^\p{C}]{1,2048}`, build without unrolling the count and fit the default size limit.
15
+ - `pattern` and `patternProperties` match anchored character-class patterns such as `^[a-z0-9-]+$` without a regex engine.
16
+
17
+ ## [0.61.0] - 2026-11-08
18
+
19
+ ### Fixed
20
+
21
+ - `.` in `pattern` and `patternProperties` matched `\r`, U+2028 and U+2029 (it should reject every line terminator).
22
+ - `evaluate()` reported a missing single `required` name beside `additionalProperties: false` at `/additionalProperties` (it should be `/required`).
23
+ - Numeric keywords misjudging whole floats past 2^53. [#1825](https://github.com/Stranger6667/jsonschema/issues/1825)
24
+ - Building a validator with an explicit draft retrieving the schema's `$schema` URI.
25
+ - `format: "date-time"`, `"date"` and `"time"` accepting `+`, `,`, `-`, `.` or `/` where RFC 3339 requires a digit. [#1829](https://github.com/Stranger6667/jsonschema/issues/1829)
26
+ - Numeric keywords misjudging instances against whole floats past 2^53 in the schema. [#1825](https://github.com/Stranger6667/jsonschema/issues/1825)
27
+ - `$ref` pointers through a numeric object key (`#/responses/200`) skipping the references under their target.
28
+ - `oneOf` / `anyOf` rejecting valid instances when a `$ref` inside a branch sits under an `$id`.
29
+ - `unevaluatedItems` treated every element as evaluated beside a non-schema `items` value (it should evaluate none).
30
+ - `validate!` raising `ValidationError` with an emptied `instance` for a value JSON cannot hold, where `each_error` and `evaluate` raise `EncodingError` or `TypeError`.
31
+
32
+ ### Performance
33
+
34
+ - Gems built from source up to 12% faster, from compiling the extension with link-time optimization.
35
+ - Building validators up to 15% faster on schemas that repeat the same `$ref`, from resolving each reference once.
36
+ - `Evaluation#list` up to 1.8x and `Evaluation#hierarchical` up to 3x faster, from building output units directly as Ruby objects.
37
+ - Building registries up to 30% faster and validators up to 3% faster, from a cheaper walk over schema documents.
38
+ - Building validators up to 25% faster on schemas that declare a base URI, from building absolute keyword locations on first use.
39
+ - Building validators up to 3% faster, from cheaper compilation cache keys.
40
+ - Validation errors on large values up to 40% faster, from returning the validated object as `ValidationError#instance` instead of a copy.
41
+ - `oneOf` / `anyOf` up to 7x faster when branches fix a property with `const` or `enum`.
42
+ - `oneOf` / `anyOf` skip branches that exclude the instance's value with `not` over `enum` or `const`.
43
+ - `properties` up to 40% faster on objects with a few more keys than it declares.
44
+ - `minLength` / `maxLength` skip counting code points when the byte length decides.
45
+ - `pattern` starting with lookaheads (`^(?=...)(?=...)...`) up to 2x faster.
46
+ - `properties` and `additionalProperties` up to 13% faster on schemas declaring 15 or more properties.
47
+ - `properties` up to 12% faster on objects with keys it does not declare.
48
+ - `unevaluatedProperties` up to 10% faster on schemas that combine it with `patternProperties` or applicators.
49
+ - `required` up to 40% faster when it lists every property of an object closed by `additionalProperties: false`.
50
+ - `properties`, `anyOf` and other applicators faster on subschemas that only check a non-numeric `type`, directly or through `$ref`.
51
+ - `evaluate()` up to 20% faster on instances with many errors, from fewer allocations per error.
52
+ - `evaluate()` up to 20% faster, from rendering instance locations only when the output reads them.
53
+ - `is_valid()` and `validate()` up to 14% faster on small instances, from a cheaper per-call validation context.
54
+
5
55
  ## [0.60.2] - 2026-10-27
6
56
 
7
57
  ### Fixed
@@ -697,7 +747,9 @@
697
747
 
698
748
  - Initial public release
699
749
 
700
- [Unreleased]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.60.2...HEAD
750
+ [Unreleased]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.61.1...HEAD
751
+ [0.61.1]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.61.0...ruby-v0.61.1
752
+ [0.61.0]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.60.2...ruby-v0.61.0
701
753
  [0.60.2]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.60.1...ruby-v0.60.2
702
754
  [0.60.1]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.60.0...ruby-v0.60.1
703
755
  [0.60.0]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.59.0...ruby-v0.60.0
data/README.md CHANGED
@@ -726,9 +726,9 @@ Valid draft symbols: `:draft4`, `:draft6`, `:draft7`, `:draft201909`, `:draft202
726
726
 
727
727
  Compared with other Ruby validators:
728
728
 
729
- - **28-148x** faster than `json_schemer` for complex schemas and large instances
730
- - **200-567x** faster than `json-schema` where supported
731
- - **7-130x** faster than `rj_schema` (RapidJSON/C++)
729
+ - **95-1,241x** faster than `json_schemer` for complex schemas and large instances
730
+ - **960-1,033x** faster than `json-schema` where supported
731
+ - **24-179x** faster than `rj_schema` (RapidJSON/C++)
732
732
 
733
733
  Full results and methodology are in [BENCHMARKS.md](https://github.com/Stranger6667/jsonschema/blob/master/crates/jsonschema-rb/BENCHMARKS.md).
734
734
 
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.60.2"
4
+ VERSION = "0.61.1"
5
5
  end
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.60.2
4
+ version: 0.61.1
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - Dmitry Dygalo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-10-27 00:00:00.000000000 Z
11
+ date: 2026-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bigdecimal
@@ -56,7 +56,7 @@ metadata:
56
56
  homepage_uri: https://github.com/Stranger6667/jsonschema/tree/master/crates/jsonschema-rb
57
57
  source_code_uri: https://github.com/Stranger6667/jsonschema
58
58
  changelog_uri: https://github.com/Stranger6667/jsonschema/blob/master/crates/jsonschema-rb/CHANGELOG.md
59
- documentation_uri: https://github.com/Stranger6667/jsonschema/blob/ruby-v0.60.2/crates/jsonschema-rb/README.md
59
+ documentation_uri: https://github.com/Stranger6667/jsonschema/blob/ruby-v0.61.1/crates/jsonschema-rb/README.md
60
60
  bug_tracker_uri: https://github.com/Stranger6667/jsonschema/issues
61
61
  funding_uri: https://github.com/sponsors/Stranger6667
62
62
  rubygems_mfa_required: 'true'