jsonschema_rs 0.46.2 → 0.46.4

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: cc405751af38d68f06aa09c6ba9fd9a13705536b2d764b45e7e72b921accf089
4
- data.tar.gz: b515f205604318ad120e7615dda086a42b1a643466014564eafb8b18214f5a0f
3
+ metadata.gz: 3bbcaf3dd0fa2f36728730d66ca9794e3b31a917566f29a53ec3d86eb861573f
4
+ data.tar.gz: b91c8868f65ce967ef58844b0bf97d00ee6b4506819b4d5890e508e10df0edd0
5
5
  SHA512:
6
- metadata.gz: 35a16978e8c33312c660490a6fbfad831d5623bcb15f177d8d1700bea52f4371391c796e0014d7abbc357bf34b6ff4bcc462d428115f112d556f1722fc2a888d
7
- data.tar.gz: d761ff812a35a65fe73c68ca8b0db554f68824b376c2a1356692ffc4da1300730120b86ebb9c08555e0100cd4ecc2d37c63364552d2a52cbeb03fb187086845e
6
+ metadata.gz: 76fe93bc7d2eb784544ca43e8f7a6227cb110a9ff87c7b5dc69e67cdc0d8d8aa0e5068a83c76d37ba3c459a2b8aa88fd8c7372cdc17a11a34a921b355c224f9a
7
+ data.tar.gz: 95a4614747aabdd4602058ef7565f754157fd3671c56618e8120cf9a5c0d9c0058f2d911e4b1167617c80dfbd8193cac33dd52d93c091fc9adae1b5892f213c4
data/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.46.4] - 2026-05-02
6
+
7
+ ### Fixed
8
+
9
+ - Panic in the regex engine when matching against patterns with very large `{0,N}` quantifiers.
10
+
11
+ ## [0.46.3] - 2026-04-28
12
+
13
+ ### Fixed
14
+
15
+ - Memory not reclaimed when a validator for a schema with recursive `$ref` or `$dynamicRef` is dropped. [#1125](https://github.com/Stranger6667/jsonschema/issues/1125)
16
+
5
17
  ## [0.46.2] - 2026-04-20
6
18
 
7
19
  ### Fixed
@@ -98,7 +110,9 @@
98
110
 
99
111
  - Initial public release
100
112
 
101
- [Unreleased]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.46.2...HEAD
113
+ [Unreleased]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.46.4...HEAD
114
+ [0.46.4]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.46.3...ruby-v0.46.4
115
+ [0.46.3]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.46.2...ruby-v0.46.3
102
116
  [0.46.2]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.46.1...ruby-v0.46.2
103
117
  [0.46.1]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.46.0...ruby-v0.46.1
104
118
  [0.46.0]: https://github.com/Stranger6667/jsonschema/compare/ruby-v0.45.1...ruby-v0.46.0
data/Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "jsonschema-rb"
3
- version = "0.46.2"
3
+ version = "0.46.4"
4
4
  edition = "2021"
5
5
  authors = ["Dmitry Dygalo <dmitry@dygalo.dev>"]
6
6
  license = "MIT"
@@ -13,7 +13,7 @@ publish = false
13
13
  crate-type = ["cdylib"]
14
14
 
15
15
  [dependencies]
16
- jsonschema = { version = "0.46.2", default-features = false, features = ["arbitrary-precision", "resolve-http", "resolve-file", "tls-ring"] }
16
+ jsonschema = { version = "0.46.4", default-features = false, features = ["arbitrary-precision", "resolve-http", "resolve-file", "tls-ring"] }
17
17
  magnus = { version = "0.8", features = ["rb-sys"] }
18
18
  rb-sys = "0.9"
19
19
  serde = { workspace = true }
@@ -220,9 +220,9 @@ checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
220
220
 
221
221
  [[package]]
222
222
  name = "fancy-regex"
223
- version = "0.17.0"
223
+ version = "0.18.0"
224
224
  source = "registry+https://github.com/rust-lang/crates.io-index"
225
- checksum = "72cf461f865c862bb7dc573f643dd6a2b6842f7c30b07882b56bd148cc2761b8"
225
+ checksum = "e1e1dacd0d2082dfcf1351c4bdd566bbe89a2b263235a2b50058f1e130a47277"
226
226
  dependencies = [
227
227
  "bit-set",
228
228
  "regex-automata",
@@ -693,9 +693,9 @@ dependencies = [
693
693
 
694
694
  [[package]]
695
695
  name = "jsonschema"
696
- version = "0.46.2"
696
+ version = "0.46.4"
697
697
  source = "registry+https://github.com/rust-lang/crates.io-index"
698
- checksum = "50180452e7808015fe083eae3efcf1ec98b89b45dd8cc204f7b4a6b7b81ea675"
698
+ checksum = "fc59d2432e047d6090ba1d83c782d0128bd6203857978218f5614dbd3287281f"
699
699
  dependencies = [
700
700
  "ahash",
701
701
  "bytecount",
@@ -723,7 +723,7 @@ dependencies = [
723
723
 
724
724
  [[package]]
725
725
  name = "jsonschema-rb-ext"
726
- version = "0.46.2"
726
+ version = "0.46.4"
727
727
  dependencies = [
728
728
  "jsonschema",
729
729
  "magnus",
@@ -1064,9 +1064,9 @@ dependencies = [
1064
1064
 
1065
1065
  [[package]]
1066
1066
  name = "referencing"
1067
- version = "0.46.2"
1067
+ version = "0.46.4"
1068
1068
  source = "registry+https://github.com/rust-lang/crates.io-index"
1069
- checksum = "acb0c66c7b78c1da928bee668b5cc638c678642ff587faff6e6222f797be9d4c"
1069
+ checksum = "cb674900ca31acd75c4aaf63f48e43e719631c0539ea5a9e64163d1296bcb730"
1070
1070
  dependencies = [
1071
1071
  "ahash",
1072
1072
  "fluent-uri",
@@ -1231,9 +1231,9 @@ checksum = "f87165f0995f63a9fbeea62b64d10b4d9d8e78ec6d7d51fb2125fda7bb36788f"
1231
1231
 
1232
1232
  [[package]]
1233
1233
  name = "rustls-webpki"
1234
- version = "0.103.12"
1234
+ version = "0.103.13"
1235
1235
  source = "registry+https://github.com/rust-lang/crates.io-index"
1236
- checksum = "8279bb85272c9f10811ae6a6c547ff594d6a7f3c6c6b02ee9726d1d0dcfcdd06"
1236
+ checksum = "61c429a8649f110dddef65e2a5ad240f747e85f7758a6bccc7e5777bd33f756e"
1237
1237
  dependencies = [
1238
1238
  "ring",
1239
1239
  "rustls-pki-types",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "jsonschema-rb-ext"
3
- version = "0.46.2"
3
+ version = "0.46.4"
4
4
  edition = "2021"
5
5
  publish = false
6
6
 
@@ -10,10 +10,10 @@ name = "jsonschema_rb"
10
10
  path = "../../src/lib.rs"
11
11
 
12
12
  [dependencies]
13
- jsonschema = { version = "0.46.2", default-features = false, features = ["arbitrary-precision", "resolve-http", "resolve-file", "tls-ring"] }
13
+ jsonschema = { version = "0.46.4", default-features = false, features = ["arbitrary-precision", "resolve-http", "resolve-file", "tls-ring"] }
14
14
  magnus = { version = "0.8", features = ["rb-sys"] }
15
15
  rb-sys = "0.9"
16
- referencing = "0.46.2"
16
+ referencing = "0.46.4"
17
17
  serde = { version = "1", features = ["derive"] }
18
18
  serde_json = { version = "1", features = ["arbitrary_precision"] }
19
19
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JSONSchema
4
- VERSION = "0.46.2"
4
+ VERSION = "0.46.4"
5
5
  end
data/src/error_kind.rs CHANGED
@@ -164,7 +164,7 @@ impl ValidationErrorKind {
164
164
  ID_CONTENT_MEDIA_TYPE.to_symbol(),
165
165
  ruby.into_value(content_media_type.as_str()),
166
166
  )?,
167
- K::Custom { message, .. } => rb_hash1(
167
+ K::Custom { message, .. } | K::RegexEngineFailure { message } => rb_hash1(
168
168
  ruby,
169
169
  ID_MESSAGE.to_symbol(),
170
170
  ruby.into_value(message.as_str()),
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsonschema_rs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.46.2
4
+ version: 0.46.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Dygalo