From e4c994af60bf5bfd59bdf311d4c8b682a95231e0 Mon Sep 17 00:00:00 2001 From: Simon Laux Date: Fri, 10 May 2024 01:04:54 +0200 Subject: [PATCH] prepare 0.10.0 --- CHANGELOG.md | 11 +++++++++++ Cargo.lock | 4 ++-- Cargo.toml | 2 +- message_parser_wasm/Cargo.toml | 2 +- spec.md | 2 +- 5 files changed, 16 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f5ce28..e8d2bd5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,11 +2,22 @@ ## Unreleased +## 0.10.0 - Specification compliant detection for internationalized links + ### Added - Add new methods for working with emojis (they are standalone helper functions and not part of message parsing): - `parser::is_emoji::emoji`(rust only) - nom parser that eats one emoji - `parser::is_emoji::get_first_emoji(text)` - get first emoji if text begins with an emoji - `parser::is_emoji::count_emojis_if_only_contains_emoji(text)` - counts emojis in texts that contain only emojis +- Parse IRI links (Links that contain non ASCII characters in location part) - link parsing is now RFC3987 and RFC3988 compliant. + +### Changed +- upgrade rust toolchain to 1.77.2 +- improved example page (added example text) + +### Fixed +- fix absolute unix paths being detected as bot commands suggestions +- fix parenthesis in target of labeled link ## 0.9.0 - Improve BotCommandSuggestion Parsing diff --git a/Cargo.lock b/Cargo.lock index aa30b58..0363e92 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -171,7 +171,7 @@ dependencies = [ [[package]] name = "deltachat_message_parser" -version = "0.9.0" +version = "0.10.0" dependencies = [ "criterion", "nom", @@ -266,7 +266,7 @@ checksum = "8452105ba047068f40ff7093dd1d9da90898e63dd61736462e9cdda6a90ad3c3" [[package]] name = "message_parser_wasm" -version = "0.9.0" +version = "0.10.0" dependencies = [ "console_error_panic_hook", "deltachat_message_parser", diff --git a/Cargo.toml b/Cargo.toml index 4058506..627c152 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html name = "deltachat_message_parser" -version = "0.9.0" +version = "0.10.0" edition = "2018" license = "MPL-2.0" description = "email, link, hashtag, md and more - parsing for deltachat messages" diff --git a/message_parser_wasm/Cargo.toml b/message_parser_wasm/Cargo.toml index b363798..e9ce1ee 100644 --- a/message_parser_wasm/Cargo.toml +++ b/message_parser_wasm/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "message_parser_wasm" -version = "0.9.0" +version = "0.10.0" edition = "2018" license = "MPL-2.0" description = "Parsing of Links, Email adresses, simple text formatting (markdown subset), user mentions, hashtags and more in DeltaChat messages." diff --git a/spec.md b/spec.md index 3d07967..0274a6c 100644 --- a/spec.md +++ b/spec.md @@ -73,7 +73,7 @@ On click, the command gets prefilled as the draft, so it can be easily send. Also if the draft is not empty it should ask before replacing it. ```regex -/(?<=^|\\s)/[a-zA-Z][a-zA-Z@\\d_/.-]{0,254}/ +/(?<=^|\\s)//[a-zA-Z][a-zA-Z@\\d_.-]{0,254}/ ```