diff --git a/CHANGELOG.md b/CHANGELOG.md index fe54cac..3c91a65 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,5 @@ -## [Unreleased] + +## [v0.7.0](https://github.com/rust-sailfish/sailfish/compare/v0.6.1...v0.7.0) (2023-06-22) ### Breaking Change @@ -12,50 +13,50 @@ ## [v0.4.0](https://github.com/rust-sailfish/sailfish/compare/v0.3.4...v0.4.0) (2022-03-10) -## Fix +### Fix * Fix some issues pointing to the wrong documentation links -##Breaking Change +### Breaking Change * Changed format to .TOML instead of .yaml to better match what Rust uses. ## [v0.3.4](https://github.com/rust-sailfish/sailfish/compare/v0.3.3...v0.3.4) (2021-02-13) -## Fix +### Fix * Update some dependencies ## [v0.3.3](https://github.com/rust-sailfish/sailfish/compare/v0.3.2...v0.3.3) (2021-04-06) -## Fix +### Fix * Improve error message for missing semicolon in code blocks ## [v0.3.2](https://github.com/rust-sailfish/sailfish/compare/v0.3.1...v0.3.2) (2021-03-29) -## Fix +### Fix * Avoid sable/nightly mismatch error caused by proc-macro2 crate ## [v0.3.1](https://github.com/rust-sailfish/sailfish/compare/v0.3.0...v0.3.1) (2021-01-23) -## New Features +### New Features * Allow unsized types for filters -## Fix +### Fix * Workaround for incorrect cargo fingerprints ## [v0.3.0](https://github.com/rust-sailfish/sailfish/compare/v0.2.2...v0.3.0) (2020-12-20) -## Breaking changes +### Breaking changes * No longer requires `extern crate sailfish_macros` (which raise compilation warnings with v0.3.0) * Remove `TemplaceOnce::render_to_string` method (already deprecated in v0.2.1) @@ -63,12 +64,12 @@ * Change `RenderError` into enum * Update error format in `sailfish-compiler` -## New features +### New features * New filters: `json`, `truncate` * Impl `Send`/`Sync` for `Buffer` -## Fix +### Fix * Fix rendering issue on continue/break statements * Do not panic when buffer size decreased @@ -78,14 +79,14 @@ ## [v0.2.3](https://github.com/rust-sailfish/sailfish/compare/v0.2.2...v0.2.3) (2020-11-29) -## Fix +### Fix * Use `std::result::Result` in derive macro to allow custom Result types (#34) ## [v0.2.2](https://github.com/rust-sailfish/sailfish/compare/v0.2.1...v0.2.2) (2020-11-11) -## Fix +### Fix * Update proc-macro2 version (#32) diff --git a/Cargo.lock b/Cargo.lock index 6eebba5..81b4764 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -90,7 +90,7 @@ dependencies = [ [[package]] name = "integration-tests" -version = "0.6.1" +version = "0.7.0" dependencies = [ "pretty_assertions", "sailfish", @@ -186,7 +186,7 @@ checksum = "f91339c0467de62360649f8d3e185ca8de4224ff281f66000de5eb2a77a79041" [[package]] name = "sailfish" -version = "0.6.1" +version = "0.7.0" dependencies = [ "itoap", "ryu", @@ -198,7 +198,7 @@ dependencies = [ [[package]] name = "sailfish-compiler" -version = "0.6.1" +version = "0.7.0" dependencies = [ "filetime", "home", @@ -213,7 +213,7 @@ dependencies = [ [[package]] name = "sailfish-macros" -version = "0.6.1" +version = "0.7.0" dependencies = [ "proc-macro2", "sailfish-compiler", diff --git a/README.md b/README.md index 6e1cc1a..b043ef2 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ Dependencies: ```toml [dependencies] -sailfish = "0.6.1" +sailfish = "0.7.0" ``` Template file (templates/hello.stpl): diff --git a/docs/en/docs/installation.md b/docs/en/docs/installation.md index 6846b8b..47ded6f 100644 --- a/docs/en/docs/installation.md +++ b/docs/en/docs/installation.md @@ -4,7 +4,7 @@ In order to use sailfish templates, you have add two dependencies in your `Cargo ``` toml [dependencies] -sailfish = "0.6.1" +sailfish = "0.7.0" ``` ## Feature Flags diff --git a/examples/Cargo.toml b/examples/Cargo.toml index ee92751..16a654c 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sailfish-examples" -version = "0.6.1" +version = "0.7.0" authors = ["Ryohei Machida "] edition = "2018" publish = false diff --git a/sailfish-compiler/Cargo.toml b/sailfish-compiler/Cargo.toml index 54469b2..07baeeb 100644 --- a/sailfish-compiler/Cargo.toml +++ b/sailfish-compiler/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sailfish-compiler" -version = "0.6.1" +version = "0.7.0" authors = ["Ryohei Machida "] description = "Simple, small, and extremely fast template engine for Rust" homepage = "https://github.com/rust-sailfish/sailfish" diff --git a/sailfish-macros/Cargo.toml b/sailfish-macros/Cargo.toml index 25b0c29..48ec66c 100644 --- a/sailfish-macros/Cargo.toml +++ b/sailfish-macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sailfish-macros" -version = "0.6.1" +version = "0.7.0" authors = ["Ryohei Machida "] description = "Simple, small, and extremely fast template engine for Rust" homepage = "https://github.com/rust-sailfish/sailfish" @@ -30,6 +30,6 @@ proc-macro2 = "1.0.56" [dependencies.sailfish-compiler] path = "../sailfish-compiler" -version = "0.6.1" +version = "0.7.0" default-features = false features = ["procmacro"] diff --git a/sailfish-tests/fuzzing-tests/Cargo.toml b/sailfish-tests/fuzzing-tests/Cargo.toml index 7b6e9d7..c2fd7ef 100644 --- a/sailfish-tests/fuzzing-tests/Cargo.toml +++ b/sailfish-tests/fuzzing-tests/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fuzzing-tests" -version = "0.6.1" +version = "0.7.0" authors = ["Ryohei Machida "] edition = "2018" publish = false diff --git a/sailfish-tests/integration-tests/Cargo.toml b/sailfish-tests/integration-tests/Cargo.toml index 5851e13..3df1392 100644 --- a/sailfish-tests/integration-tests/Cargo.toml +++ b/sailfish-tests/integration-tests/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "integration-tests" -version = "0.6.1" +version = "0.7.0" authors = ["Ryohei Machida "] edition = "2018" publish = false diff --git a/sailfish/Cargo.toml b/sailfish/Cargo.toml index 84e56a8..1092021 100644 --- a/sailfish/Cargo.toml +++ b/sailfish/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sailfish" -version = "0.6.1" +version = "0.7.0" authors = ["Ryohei Machida "] description = "Simple, small, and extremely fast template engine for Rust" homepage = "https://github.com/rust-sailfish/sailfish" @@ -31,7 +31,7 @@ serde_json = { version = "1.0.95", optional = true } [dependencies.sailfish-macros] path = "../sailfish-macros" -version = "0.6.1" +version = "0.7.0" default-features = false optional = true diff --git a/scripts/bump-version.sh b/scripts/bump-version.sh index ba53790..77056dd 100755 --- a/scripts/bump-version.sh +++ b/scripts/bump-version.sh @@ -6,8 +6,16 @@ if [ $# != 1 ]; then exit 1 fi -SCRIPT_DIR="$( pwd )" -cd $SCRIPT_DIR/.. +CURRENT_DIR="$( pwd )" + +if [ -z "${CURRENT_DIR##*scripts}" ] ; then +# Go up now, because we are in the scripts directory + cd .. +else + echo "Please enter the scripts directory, and then execute this script."; + exit 1 +fi; + OLD_VERSION="$(cat README.md |grep '^sailfish\s*=' |cut -d '"' -f2)" NEW_VERSION="${1}"