From 9a0470b1c46fc7d71abd8a0d3b0b58e5d35783a5 Mon Sep 17 00:00:00 2001 From: Nick Fitzgerald Date: Thu, 26 Jul 2018 14:51:20 -0700 Subject: [PATCH] Bump to 0.2.15 --- CHANGELOG.md | 11 ++++++ Cargo.toml | 6 +-- crates/backend/Cargo.toml | 4 +- crates/cli-support/Cargo.toml | 4 +- crates/cli/Cargo.toml | 6 +-- crates/js-sys/Cargo.toml | 10 ++--- crates/macro/Cargo.toml | 6 +-- crates/shared/Cargo.toml | 2 +- crates/test-macro/Cargo.toml | 2 +- crates/test-project-builder/Cargo.toml | 4 +- crates/test/Cargo.toml | 8 ++-- crates/web-sys/Cargo.toml | 8 ++-- crates/webidl/Cargo.toml | 6 +-- guide/src/SUMMARY.md | 1 + guide/src/publishing.md | 51 ++++++++++++++++++++++++++ 15 files changed, 96 insertions(+), 33 deletions(-) create mode 100644 guide/src/publishing.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 3bbe7c21..7341a0c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,17 @@ -------------------------------------------------------------------------------- +## 0.2.15 + +Released 2018-07-26. + +### Fixed + +* Fixed `wasm-bindgen` CLI version mismatch checks that got broken in the last + point release. + +-------------------------------------------------------------------------------- + ## 0.2.14 Released 2018-07-25. diff --git a/Cargo.toml b/Cargo.toml index f70cd1d2..eeef0314 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wasm-bindgen" -version = "0.2.14" +version = "0.2.15" authors = ["The wasm-bindgen Developers"] license = "MIT/Apache-2.0" readme = "README.md" @@ -27,12 +27,12 @@ serde-serialize = ["serde", "serde_json", "std"] xxx_debug_only_print_generated_code = ["wasm-bindgen-macro/xxx_debug_only_print_generated_code"] [dependencies] -wasm-bindgen-macro = { path = "crates/macro", version = "=0.2.14" } +wasm-bindgen-macro = { path = "crates/macro", version = "=0.2.15" } serde = { version = "1.0", optional = true } serde_json = { version = "1.0", optional = true } [dev-dependencies] -wasm-bindgen-test-project-builder = { path = "crates/test-project-builder", version = '=0.2.14' } +wasm-bindgen-test-project-builder = { path = "crates/test-project-builder", version = '=0.2.15' } [workspace] members = [ diff --git a/crates/backend/Cargo.toml b/crates/backend/Cargo.toml index a58d2968..00999c8c 100644 --- a/crates/backend/Cargo.toml +++ b/crates/backend/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wasm-bindgen-backend" -version = "0.2.14" +version = "0.2.15" authors = ["The wasm-bindgen Developers"] license = "MIT/Apache-2.0" repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/backend" @@ -20,4 +20,4 @@ proc-macro2 = "0.4.8" quote = '0.6' serde_json = "1.0" syn = { version = '0.14', features = ['full', 'visit-mut'] } -wasm-bindgen-shared = { path = "../shared", version = "=0.2.14" } +wasm-bindgen-shared = { path = "../shared", version = "=0.2.15" } diff --git a/crates/cli-support/Cargo.toml b/crates/cli-support/Cargo.toml index b1991869..cd11082b 100644 --- a/crates/cli-support/Cargo.toml +++ b/crates/cli-support/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wasm-bindgen-cli-support" -version = "0.2.14" +version = "0.2.15" authors = ["The wasm-bindgen Developers"] license = "MIT/Apache-2.0" repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/cli-support" @@ -18,6 +18,6 @@ serde = "1.0" serde_derive = "1.0" serde_json = "1.0" tempfile = "3.0" -wasm-bindgen-shared = { path = "../shared", version = '=0.2.14' } +wasm-bindgen-shared = { path = "../shared", version = '=0.2.15' } wasm-gc-api = "0.1.9" wasmi = "0.3" diff --git a/crates/cli/Cargo.toml b/crates/cli/Cargo.toml index 102b2331..9603568a 100644 --- a/crates/cli/Cargo.toml +++ b/crates/cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wasm-bindgen-cli" -version = "0.2.14" +version = "0.2.15" authors = ["The wasm-bindgen Developers"] license = "MIT/Apache-2.0" repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/cli" @@ -17,6 +17,6 @@ docopt = "1.0" failure = "0.1" serde = "1.0" serde_derive = "1.0" -wasm-bindgen-cli-support = { path = "../cli-support", version = "=0.2.14" } -wasm-bindgen-shared = { path = "../shared", version = "=0.2.14" } +wasm-bindgen-cli-support = { path = "../cli-support", version = "=0.2.15" } +wasm-bindgen-shared = { path = "../shared", version = "=0.2.15" } parity-wasm = "0.31" diff --git a/crates/js-sys/Cargo.toml b/crates/js-sys/Cargo.toml index 8a66908d..e3ac1c95 100644 --- a/crates/js-sys/Cargo.toml +++ b/crates/js-sys/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "js-sys" -version = "0.2.14" -authors = ["Alex Crichton "] +version = "0.2.0" +authors = ["The wasm-bindgen Developers"] readme = "./README.md" categories = ["wasm"] repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/js-sys" @@ -17,10 +17,10 @@ test = false doctest = false [dependencies] -wasm-bindgen = { path = "../..", version = "0.2.14" } +wasm-bindgen = { path = "../..", version = "0.2.15" } [target.'cfg(target_arch = "wasm32")'.dev-dependencies] -wasm-bindgen-test = { path = '../test', version = '=0.2.14' } +wasm-bindgen-test = { path = '../test', version = '=0.2.15' } [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies] -wasm-bindgen-test-project-builder = { path = "../test-project-builder", version = '=0.2.14' } +wasm-bindgen-test-project-builder = { path = "../test-project-builder", version = '=0.2.15' } diff --git a/crates/macro/Cargo.toml b/crates/macro/Cargo.toml index c3bc928f..282e94a2 100644 --- a/crates/macro/Cargo.toml +++ b/crates/macro/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wasm-bindgen-macro" -version = "0.2.14" +version = "0.2.15" authors = ["The wasm-bindgen Developers"] license = "MIT/Apache-2.0" repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/macro" @@ -21,5 +21,5 @@ xxx_debug_only_print_generated_code = [] syn = { version = '0.14', features = ['full'] } quote = '0.6' proc-macro2 = "0.4.9" -wasm-bindgen-backend = { path = "../backend", version = "=0.2.14" } -wasm-bindgen-shared = { path = "../shared", version = "=0.2.14" } +wasm-bindgen-backend = { path = "../backend", version = "=0.2.15" } +wasm-bindgen-shared = { path = "../shared", version = "=0.2.15" } diff --git a/crates/shared/Cargo.toml b/crates/shared/Cargo.toml index f795caa4..6ad16d2f 100644 --- a/crates/shared/Cargo.toml +++ b/crates/shared/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wasm-bindgen-shared" -version = "0.2.14" +version = "0.2.15" authors = ["The wasm-bindgen Developers"] license = "MIT/Apache-2.0" repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/shared" diff --git a/crates/test-macro/Cargo.toml b/crates/test-macro/Cargo.toml index ba1eca8d..b4fdd1dc 100644 --- a/crates/test-macro/Cargo.toml +++ b/crates/test-macro/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wasm-bindgen-test-macro" -version = "0.2.14" +version = "0.2.15" authors = ["The wasm-bindgen Developers"] [dependencies] diff --git a/crates/test-project-builder/Cargo.toml b/crates/test-project-builder/Cargo.toml index 0d2a0f12..b20cc2c1 100644 --- a/crates/test-project-builder/Cargo.toml +++ b/crates/test-project-builder/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wasm-bindgen-test-project-builder" -version = "0.2.14" +version = "0.2.15" authors = ["The wasm-bindgen Developers"] license = "MIT/Apache-2.0" repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/test-project-builder" @@ -12,4 +12,4 @@ Internal test support for wasm-bindgen [dependencies] lazy_static = "1" -wasm-bindgen-cli-support = { path = "../cli-support", version = '=0.2.14' } +wasm-bindgen-cli-support = { path = "../cli-support", version = '=0.2.15' } diff --git a/crates/test/Cargo.toml b/crates/test/Cargo.toml index 3040a3c1..cd5635f2 100644 --- a/crates/test/Cargo.toml +++ b/crates/test/Cargo.toml @@ -1,12 +1,12 @@ [package] name = "wasm-bindgen-test" -version = "0.2.14" +version = "0.2.15" authors = ["The wasm-bindgen Developers"] [dependencies] -wasm-bindgen-test-macro = { path = '../test-macro', version = '=0.2.14' } -wasm-bindgen = { path = '../..', version = '0.2.14' } -js-sys = { path = '../js-sys', version = '0.2.14' } +wasm-bindgen-test-macro = { path = '../test-macro', version = '=0.2.15' } +wasm-bindgen = { path = '../..', version = '0.2.15' } +js-sys = { path = '../js-sys', version = '0.2.0' } console_error_panic_hook = '0.1' [lib] diff --git a/crates/web-sys/Cargo.toml b/crates/web-sys/Cargo.toml index 4ed497d9..acbb989d 100644 --- a/crates/web-sys/Cargo.toml +++ b/crates/web-sys/Cargo.toml @@ -1,17 +1,17 @@ [package] name = "web-sys" version = "0.1.0" -authors = ["Nick Fitzgerald "] +authors = ["The wasm-bindgen Developers"] readme = "./README.md" [build-dependencies] env_logger = "0.5.10" failure = "0.1" -wasm-bindgen-webidl = { path = "../webidl", version = "=0.2.14" } +wasm-bindgen-webidl = { path = "../webidl", version = "=0.2.15" } sourcefile = "0.1" [dependencies] -wasm-bindgen = { path = "../..", version = "=0.2.14" } +wasm-bindgen = { path = "../..", version = "=0.2.15" } [dev-dependencies] -wasm-bindgen-test-project-builder = { path = "../test-project-builder", version = '=0.2.14' } +wasm-bindgen-test-project-builder = { path = "../test-project-builder", version = '=0.2.15' } diff --git a/crates/webidl/Cargo.toml b/crates/webidl/Cargo.toml index 46e8445f..2407036f 100644 --- a/crates/webidl/Cargo.toml +++ b/crates/webidl/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wasm-bindgen-webidl" -version = "0.2.14" +version = "0.2.15" authors = ["The wasm-bindgen Developers"] license = "MIT/Apache-2.0" categories = ["wasm"] @@ -12,7 +12,7 @@ Support for parsing WebIDL specific to wasm-bindgen """ [dev-dependencies] -wasm-bindgen-test-project-builder = { path = "../test-project-builder", version = '=0.2.14' } +wasm-bindgen-test-project-builder = { path = "../test-project-builder", version = '=0.2.15' } [dependencies] failure = "0.1" @@ -22,5 +22,5 @@ log = "0.4.1" proc-macro2 = "0.4.8" quote = '0.6' syn = { version = '0.14', features = ['full'] } -wasm-bindgen-backend = { version = "=0.2.14", path = "../backend" } +wasm-bindgen-backend = { version = "=0.2.15", path = "../backend" } webidl = "0.7.0" diff --git a/guide/src/SUMMARY.md b/guide/src/SUMMARY.md index d5ca0907..fe383512 100644 --- a/guide/src/SUMMARY.md +++ b/guide/src/SUMMARY.md @@ -32,4 +32,5 @@ - [Testing](./web-sys/testing.md) - [Logging](./web-sys/logging.md) - [Supporting More Web APIs](./web-sys/supporting-more-web-apis.md) + - [Publishing](./publishing.md) - [Team](./team.md) diff --git a/guide/src/publishing.md b/guide/src/publishing.md new file mode 100644 index 00000000..641cd78f --- /dev/null +++ b/guide/src/publishing.md @@ -0,0 +1,51 @@ +# Publishing New `wasm-bindgen` Releases + +* [ ] Make sure that your git working copy is clean. + +* [ ] Make sure that you are on the latest `master`: + + ``` + git pull origin master + ``` + +* [ ] Update `Cargo.toml` versions and dependency versions: + + ``` + git ls-files | grep Cargo.toml | xargs sed -i '' -e 's/0\.X\.Y/0.X.Z/g' + ``` + + where "0.X.Y" is the old version and "0.X.Z" is the new version. + +* [ ] Write a "0.X.Z" entry in the CHANGELOG.md + +* [ ] Run all the tests for sanity + + ``` + cargo test + cargo test -p js-sys + cargo test -p js-sys --target wasm32-unknown-unknown + cargo test -p wasm-bindgen-webidl + cargo test -p web-sys + ``` + +* [ ] Commit the version bump: + + ``` + git commit -m "Bump to version 0.X.Z" + ``` + +* [ ] Comment out the `[patch]` section in the root `Cargo.toml` that only + exists to make sure that `console_error_panic_hook` in tests is using + *this* `wasm-bindgen` rather than one from crates.io. + +* [ ] Publish the crates in reverse dependency order: + + ``` + cd crates/shared && cargo publish && cd - + cd crates/backend && cargo publish && cd - + cd crates/macro && cargo publish && cd - + cd crates/cli-support && cargo publish && cd - + cd crates/test-project-builder && cargo publish && cd - + cd crates/cli && cargo publish && cd - + cargo publish + ```