From bc638cb114f00be07b74baea60c3e4c907b1421a Mon Sep 17 00:00:00 2001 From: ThetaDev Date: Sun, 5 Feb 2023 23:00:18 +0100 Subject: [PATCH 1/2] add documentation for `patch-dateparser` feature [skip ci] --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c591405..5afcbc1 100644 --- a/README.md +++ b/README.md @@ -55,10 +55,13 @@ The crate supports the following features: * `log`: allows forwarding `console.log` messages to the `log` crate. Note: must be enabled with `ContextBuilder::console(quick_js::console::LogConsole);` -* `patched` +* `patch-bigint` Enabled automatically for some other features, like `bigint`. You should not need to enable this manually. - Applies QuickJS patches that can be found in `libquickjs-sys/embed/patches` directory. + +* `patch-dateparser` + Enables the improved JS date parser that supports additional date formats like + `Sat, 01-Jan-2000 00:00:00 PST` ## Installation From f6c341e67f3aaca6c43db29a0c5bb43003f43cee Mon Sep 17 00:00:00 2001 From: ThetaDev Date: Sun, 5 Feb 2023 23:05:16 +0100 Subject: [PATCH 2/2] fix cargo-release replacements --- README.md | 2 +- release.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5afcbc1..6d088f4 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ crate which includes a fully featured date parser, capable of parsing dates like ```toml [dependencies] -quick-js = "0.4.1" +quick-js-dtp = "0.4.1" ``` ```rust diff --git a/release.toml b/release.toml index 95b720b..86d7edd 100644 --- a/release.toml +++ b/release.toml @@ -1,7 +1,7 @@ # Configuration for the [cargo-release](https://github.com/sunng87/cargo-release) tool. pre-release-replacements = [ - {file="README.md", search="quick-js = .*", replace="{{crate_name}} = \"{{version}}\""}, + {file="README.md", search="quick-js-dtp = .*", replace="{{crate_name}} = \"{{version}}\""}, ] tag-prefix = "quick-js-dtp-"