From b02a5cdb2d2dd3954d21d4f6ab3a7b0b227a25b5 Mon Sep 17 00:00:00 2001 From: David Herman Date: Fri, 23 May 2025 09:35:01 -0700 Subject: [PATCH 1/2] v1.1.0 --- RELEASES.md | 31 +++++++++++++++++++++++-------- crates/neon-macros/Cargo.toml | 2 +- crates/neon/Cargo.toml | 4 ++-- 3 files changed, 26 insertions(+), 11 deletions(-) diff --git a/RELEASES.md b/RELEASES.md index 2be2465dd..2134d0ca7 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -2,7 +2,7 @@ `0.1.9` supports a [breaking change in `cargo`](https://github.com/rust-lang/cargo/issues/13867) that converts artifact names from `kebab-case` to `snake_case`. -# Version 1.1.0 (Alpha) +# Version 1.1.0 ## Continued Commitment to Compatibility @@ -10,14 +10,29 @@ Our strong commitment to compatibility since the 1.0 release remains unchanged. that has not yet stabilized is published under feature flags, so the only breaking changes that we expect to publish are those that affect the unstable features, or, as always, safety bugfixes. +## Version 1.1.0 + +### New Features + +* Extractors API (https://docs.rs/neon/1.1.0/neon/types/extract/index.html) +* `#[export]` macro (https://docs.rs/neon/1.1.0/neon/attr.export.html) +* `npm init neon -- --lib` (https://www.npmjs.com/package/create-neon) +* `JsBox::deref()` (https://docs.rs/neon/1.1.0/neon/types/struct.JsBox.html#method.deref) +* `Handle<'_, JsBox>::as_inner()` (https://docs.rs/neon/1.1.0/neon/handle/struct.Handle.html#method.as_inner) + +### Bugfixes + +* Fix panic when borrowing empty buffer or typed array (https://github.com/neon-bindings/neon/pull/1058) +* Fix build script behavior based on cargo diagnostics format change (https://github.com/neon-bindings/neon/pull/1039) + ## Version 1.1.0-alpha.2 -## Breaking Changes (unstable features only) +### Breaking Changes (unstable features only) * Convert snake_case to camelCase when exporting functions (https://github.com/neon-bindings/neon/pull/1084) * Remove `FromArgs` impl on `T: TryFromJs` and add `cx.{arg, arg_opt}` (https://github.com/neon-bindings/neon/pull/1096) -## Other +### Other * Relax lifetime constraints on `With` (https://github.com/neon-bindings/neon/pull/1086) * Add `JsBox::{deref, as_inner}` to get long-lived reference to JsBox contents (https://github.com/neon-bindings/neon/pull/1087) @@ -26,15 +41,15 @@ expect to publish are those that affect the unstable features, or, as always, sa ## Version 1.1.0-alpha.1 -## Breaking Changes (unstable features only) +### Breaking Changes (unstable features only) * `TryIntoJs` and `TryFromJs` take `Cx` instead of generic `Context` (https://github.com/neon-bindings/neon/pull/1062) -## Bugfixes +### Bugfixes * Fix panic when borrowing empty buffer or typed array (https://github.com/neon-bindings/neon/pull/1058) -## Other +### Other * More reliable checking for `Result` types in `#[export]` (https://github.com/neon-bindings/neon/pull/1057) * Allow users to take `Cx` instead of generic `Context` (https://github.com/neon-bindings/neon/pull/1048) @@ -45,11 +60,11 @@ expect to publish are those that affect the unstable features, or, as always, sa ## Version 1.1.0-alpha.0 -## Bugfixes +### Bugfixes * Fix build script behavior based on cargo diagnostics format change (https://github.com/neon-bindings/neon/pull/1039) -## Other +### Other * Added Extractors API (https://github.com/neon-bindings/neon/pull/1024) * Added `#[export]` macro (https://github.com/neon-bindings/neon/pull/1025) diff --git a/crates/neon-macros/Cargo.toml b/crates/neon-macros/Cargo.toml index 5b1423c30..76ce03618 100644 --- a/crates/neon-macros/Cargo.toml +++ b/crates/neon-macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "neon-macros" -version = "1.1.0-alpha.2" +version = "1.1.0" authors = ["Dave Herman "] description = "Procedural macros supporting Neon" repository = "https://github.com/neon-bindings/neon" diff --git a/crates/neon/Cargo.toml b/crates/neon/Cargo.toml index f778847c4..258ba3110 100644 --- a/crates/neon/Cargo.toml +++ b/crates/neon/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "neon" -version = "1.1.0-alpha.2" +version = "1.1.0" authors = ["Dave Herman "] description = "A safe abstraction layer for Node.js." readme = "../../README.md" @@ -31,7 +31,7 @@ linkme = "0.3.33" semver = "1.0.20" smallvec = "1.11.2" once_cell = "1.18.0" -neon-macros = { version = "=1.1.0-alpha.2", path = "../neon-macros" } +neon-macros = { version = "=1.1.0", path = "../neon-macros" } aquamarine = { version = "0.3.2", optional = true } easy-cast = { version = "0.5.2", optional = true } doc-comment = { version = "0.3.3", optional = true } From 5e30bd3f3b417b7a56c9b59cfd21df5fe83d1133 Mon Sep 17 00:00:00 2001 From: David Herman Date: Fri, 23 May 2025 09:44:04 -0700 Subject: [PATCH 2/2] nicer links --- RELEASES.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/RELEASES.md b/RELEASES.md index 2134d0ca7..28805c69b 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -14,11 +14,11 @@ expect to publish are those that affect the unstable features, or, as always, sa ### New Features -* Extractors API (https://docs.rs/neon/1.1.0/neon/types/extract/index.html) -* `#[export]` macro (https://docs.rs/neon/1.1.0/neon/attr.export.html) -* `npm init neon -- --lib` (https://www.npmjs.com/package/create-neon) -* `JsBox::deref()` (https://docs.rs/neon/1.1.0/neon/types/struct.JsBox.html#method.deref) -* `Handle<'_, JsBox>::as_inner()` (https://docs.rs/neon/1.1.0/neon/handle/struct.Handle.html#method.as_inner) +* [Extractors API](https://docs.rs/neon/1/neon/types/extract/index.html) +* [`#[export]` macro](https://docs.rs/neon/1/neon/attr.export.html) +* [`npm init neon -- --lib`](https://www.npmjs.com/package/create-neon) +* [`JsBox::deref()`](https://docs.rs/neon/1/neon/types/struct.JsBox.html#method.deref) +* [`Handle<'_, JsBox>::as_inner()`](https://docs.rs/neon/1/neon/handle/struct.Handle.html#method.as_inner) ### Bugfixes