From 0c172f25792e2c281937cbbcda714050d3afe6f5 Mon Sep 17 00:00:00 2001 From: Henry Schimke Date: Wed, 24 Jul 2024 15:24:55 -0500 Subject: [PATCH] release: update to v0.2.9 this release tracks rxing v0.5.20 --- Cargo.toml | 4 ++-- examples/webpack+js/index.html | 2 +- examples/webpack+js/package.json | 2 +- src/lib.rs | 4 ++++ 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index ff647e9..17fdb17 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rxing-wasm" -version = "0.2.8" +version = "0.2.9" edition = "2021" description = "wasm bindings for rxing to provide commong barcode operations (decode/encode)" repository = "https://github.com/rxing-core/rxing-wasm" @@ -25,7 +25,7 @@ js-sys = "0.3.69" # code size when deploying. console_error_panic_hook = { version = "0.1.6", optional = true } -rxing = {version = "~0.5.10", default-features = false, features = ["wasm_support"]} +rxing = {version = "~0.5.20", default-features = false, features = ["wasm_support"]} #rxing = {path="../rxing", version = "~0.2.23", default-features = false, features = ["wasm_support"]} [dev-dependencies] diff --git a/examples/webpack+js/index.html b/examples/webpack+js/index.html index b1a0c6f..d77a8d8 100644 --- a/examples/webpack+js/index.html +++ b/examples/webpack+js/index.html @@ -69,4 +69,4 @@

RXing - Decode Barcodes

- \ No newline at end of file + \ No newline at end of file diff --git a/examples/webpack+js/package.json b/examples/webpack+js/package.json index 9637fa1..65ddb73 100644 --- a/examples/webpack+js/package.json +++ b/examples/webpack+js/package.json @@ -20,6 +20,6 @@ "webpack-dev-server": "^4.11.1" }, "dependencies": { - "rxing-wasm": "0.2.8" + "rxing-wasm": "0.2.9" } } diff --git a/src/lib.rs b/src/lib.rs index a853a6d..c92fca6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -199,6 +199,8 @@ fn get_result_metadata_name(mdtn: &rxing::RXingResultMetadataType) -> String { rxing::RXingResultMetadataType::IS_MIRRORED => "Is_Mirrored", rxing::RXingResultMetadataType::CONTENT_TYPE => "Content_Type", rxing::RXingResultMetadataType::IS_INVERTED => "Is_Inverted", + rxing::RXingResultMetadataType::FILTERED_CLOSED => "Filtered_Is_Closed", + rxing::RXingResultMetadataType::FILTERED_RESOLUTION => "Filtered_Found_Resolution", } .to_owned() } @@ -224,6 +226,8 @@ fn get_result_metadata_value(res_mdt_val: &rxing::RXingResultMetadataValue) -> S rxing::RXingResultMetadataValue::IsMirrored(v) => v.to_string(), rxing::RXingResultMetadataValue::IsInverted(v) => v.to_string(), + rxing::RXingResultMetadataValue::FilteredClosed(v) => v.to_string(), + rxing::RXingResultMetadataValue::FilteredResolution(v) => format!("{v:?}"), } }