Compare commits

..

2 commits

Author SHA1 Message Date
f6c341e67f fix cargo-release replacements 2023-02-05 23:30:45 +01:00
bc638cb114 add documentation for patch-dateparser feature
[skip ci]
2023-02-05 23:00:18 +01:00
2 changed files with 7 additions and 4 deletions

View file

@ -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
@ -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

View file

@ -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-"