upgraded all dependencies

This commit is contained in:
2025-11-18 16:08:43 -05:00
parent 469dd0519b
commit 8a1b13b139
7 changed files with 330 additions and 378 deletions

View File

@ -1,7 +1,7 @@
[package]
name = "boon"
version = "0.6.1"
edition = "2021"
edition = "2024"
description = "JSONSchema (draft 2020-12, draft 2019-09, draft-7, draft-6, draft-4) Validation"
readme = "README.md"
repository = "https://github.com/santhosh-tekuri/boon"
@ -12,27 +12,27 @@ categories = ["web-programming"]
exclude = [ "tests", ".github", ".gitmodules" ]
[dependencies]
pgrx = "0.15.0"
pgrx = "0.16.1"
serde = "1"
serde_json = "1"
regex = "1.10.3"
regex-syntax = "0.8.2"
regex = "1.12.2"
regex-syntax = "0.8.8"
url = "2"
fluent-uri = "0.3.2"
idna = "1.0"
fluent-uri = "0.4.1"
idna = "1.1"
percent-encoding = "2"
once_cell = "1"
base64 = "0.22"
ahash = "0.8.3"
ahash = "0.8.12"
appendlist = "1.4"
[dev-dependencies]
pgrx-tests = "0.15.0"
pgrx-tests = "0.16.1"
serde = { version = "1.0", features = ["derive"] }
serde_yaml = "0.9"
ureq = "2.12"
ureq = "3.1"
rustls = "0.23"
criterion = "0.5"
criterion = "0.7"
[[bench]]
name = "bench"

View File

@ -137,7 +137,7 @@ impl Visitor for Translator<'_> {
Ast::ClassPerl(perl) => {
self.replace_class_class(perl);
}
Ast::Literal(ref literal) => {
Ast::Literal(literal) => {
if let Literal {
kind: LiteralKind::Special(SpecialLiteralKind::Bell),
..

View File

@ -444,8 +444,8 @@ impl Hash for HashedValue<'_> {
fn hash<H: Hasher>(&self, state: &mut H) {
match self.0 {
Value::Null => state.write_u32(3_221_225_473), // chosen randomly
Value::Bool(ref b) => b.hash(state),
Value::Number(ref num) => {
Value::Bool(b) => b.hash(state),
Value::Number(num) => {
if let Some(num) = num.as_f64() {
num.to_bits().hash(state);
} else if let Some(num) = num.as_u64() {
@ -454,13 +454,13 @@ impl Hash for HashedValue<'_> {
num.hash(state);
}
}
Value::String(ref str) => str.hash(state),
Value::Array(ref arr) => {
Value::String(str) => str.hash(state),
Value::Array(arr) => {
for item in arr {
HashedValue(item).hash(state);
}
}
Value::Object(ref obj) => {
Value::Object(obj) => {
let mut hash = 0;
for (pname, pvalue) in obj {
// We have no way of building a new hasher of type `H`, so we