From 29d8f214351919a2c2ac7a607b9a04a8e20e1728 Mon Sep 17 00:00:00 2001 From: "K.J. Valencik" Date: Mon, 7 Mar 2022 11:46:13 -0500 Subject: [PATCH] neon 0.10 and create-neon 0.2 --- AUTHORS.md | 6 +++++ Cargo.toml | 8 +++---- RELEASES.md | 41 ++++++++++++++++++++++++++++++++++ cli/package.json | 2 +- crates/neon-build/Cargo.toml | 4 ++-- crates/neon-macros/Cargo.toml | 2 +- crates/neon-runtime/Cargo.toml | 4 ++-- crates/neon-sys/Cargo.toml | 4 ++-- create-neon/data/versions.json | 2 +- create-neon/package.json | 2 +- package-lock.json | 4 ++-- 11 files changed, 63 insertions(+), 16 deletions(-) diff --git a/AUTHORS.md b/AUTHORS.md index 7765d770c..8cea77b3d 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -7,6 +7,7 @@ Neon owes its existence to the contributions of these fine people. * [Nerijus Arlauskas](https://github.com/Nercury) * [Igor Artamonov](https://github.com/splix) * [Peter Atashian](https://github.com/retep998) +* [Alexander Azarov](https://github.com/alaz) * [David Baker](https://github.com/dbkr) * [Sean Billig](https://github.com/sbillig) * [Tim Blair](https://github.com/tblair) @@ -15,6 +16,7 @@ Neon owes its existence to the contributions of these fine people. * [Eduard-Mihai Burtescu](https://github.com/eddyb) * [Gabriel Castro](https://github.com/GabrielCastro) * [Lin Clark](https://github.com/linclark) +* [ComplexSpaces](https://github.com/complexspaces) * [Nathaniel Daniel](https://github.com/adumbidiot) * [Joey Ezechiëls](https://github.com/jjpe) * [Cory Forsyth](https://github.com/bantic) @@ -35,10 +37,13 @@ Neon owes its existence to the contributions of these fine people. * [Simon Liang](https://github.com/lhr0909) * [Terence Lee](https://github.com/hone) * [Milan Loveless](https://github.com/MilanLoveless) +* [Mikuroさいな](https://github.com/MikuroXina) +* [MikaelUrankar](https://github.com/MikaelUrankar) * [Darin Morrison](https://github.com/freebroccolo) * [Martin Muñoz](https://github.com/mmun) * [Kayo Phoenix](https://github.com/katyo) * [Mike Piccolo](https://github.com/mfpiccolo) +* [Jan Piotrowski](https://github.com/janpio) * [Robbie Pitts](https://github.com/robbiepitts) * [Thiago Pontes](https://github.com/thiagopnts) * [Sean Prashad](https://github.com/SeanPrashad) @@ -52,6 +57,7 @@ Neon owes its existence to the contributions of these fine people. * [Andrew Stucki](https://github.com/andrewstucki) * [Martin Svanberg](https://github.com/msvbg) * [A2ZH (theJian)](https://github.com/theJian) +* [Alex Touchet](https://github.com/atouchet) * [Corbin Uselton](https://github.com/corbinu) * [K.J. Valencik](https://github.com/kjvalencik) * [Velithris](https://github.com/Zireael-N) diff --git a/Cargo.toml b/Cargo.toml index 67b57603b..7c17e3caa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "neon" -version = "0.9.1" +version = "0.10.0" authors = ["Dave Herman "] description = "A safe abstraction layer for Node.js." readme = "README.md" @@ -12,7 +12,7 @@ build = "build.rs" edition = "2018" [build-dependencies] -neon-build = { version = "=0.9.1", path = "crates/neon-build" } +neon-build = { version = "=0.10.0", path = "crates/neon-build" } [dev-dependencies] lazy_static = "1.4.0" @@ -24,8 +24,8 @@ failure = "0.1.5" # used for a doc example [dependencies] semver = "0.9.0" smallvec = "1.4.2" -neon-runtime = { version = "=0.9.1", path = "crates/neon-runtime" } -neon-macros = { version = "=0.9.1", path = "crates/neon-macros", optional = true } +neon-runtime = { version = "=0.10.0", path = "crates/neon-runtime" } +neon-macros = { version = "=0.10.0", path = "crates/neon-macros", optional = true } [features] default = ["legacy-runtime"] diff --git a/RELEASES.md b/RELEASES.md index a17020948..1e7b78439 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1,3 +1,44 @@ +# Version 0.10 + +See the [Neon 0.10 Migration Guide](MIGRATION_GUIDE_0.10.md) for more details about new features and breaking changes. + +## Features + +* New [buffer borrowing API](https://github.com/neon-bindings/neon/pull/780) +* Added [JoinHandle](https://github.com/neon-bindings/neon/pull/787) for `Channel::send` +* [`JsPromise` and `TaskBuilder`](https://github.com/neon-bindings/neon/pull/789) +* Handle [panics and exceptions](https://github.com/neon-bindings/neon/pull/808) in Channels and Tasks +* [Function call / construct builders](https://github.com/neon-bindings/neon/pull/829) + and [simplify low level call](https://github.com/neon-bindings/neon/pull/825) +* Create [functions from closures](https://github.com/neon-bindings/neon/pull/811) + +## Minor Improvements + +* [Performance improvements](https://github.com/neon-bindings/neon/pull/815) +* [Rename N-API to Node-API](https://github.com/neon-bindings/neon/pull/753) in docs to match Node changes +* Remove unused [cslice dependency](https://github.com/neon-bindings/neon/pull/794) +* Switch to [`syn-mid`](https://github.com/neon-bindings/neon/pull/814) for faster compile times +* Downcast in [`Object::get`](https://github.com/neon-bindings/neon/pull/839) +* Added [migration guide](https://github.com/neon-bindings/neon/pull/859) +* Added [`Object::get_opt` and `Object::get_value`](https://github.com/neon-bindings/neon/pull/867) + +## Fixes + +* [Safety] Make it harder to store and forge [Throw](https://github.com/neon-bindings/neon/pull/797) +* [Soundness] [Make `JsValue` types `!Copy`](https://github.com/neon-bindings/neon/pull/832) +* [Soundness] [Tag `Root`](https://github.com/neon-bindings/neon/pull/847) with instance id +* `create-neon` no longer [leaves partial project on disk](https://github.com/neon-bindings/neon/pull/840) +* Fix legacy backend on [Electron and Windows](https://github.com/neon-bindings/neon/pull/785) +* [FreeBSD support](https://github.com/neon-bindings/neon/pull/856) on legacy backend + +## Internal Improvements + +* Replace Electron tests [with Playwright](https://github.com/neon-bindings/neon/pull/835) +* Re-organize Neon into an [npm workspace](https://github.com/neon-bindings/neon/pull/852) +* [Fix crates.io badge](https://github.com/neon-bindings/neon/pull/781) +* [Doc test fixes](https://github.com/neon-bindings/neon/pull/800) +* Fix [broken link](https://github.com/neon-bindings/neon/pull/804) in the README + # Version 0.9.1 * Expose the `Finalize` trait as `neon::types::Finalize` so that docs are visible diff --git a/cli/package.json b/cli/package.json index a9e1e9952..934b9facc 100644 --- a/cli/package.json +++ b/cli/package.json @@ -1,6 +1,6 @@ { "name": "neon-cli", - "version": "0.9.1", + "version": "0.10.0", "description": "Build and load native Rust/Neon modules.", "author": "Dave Herman ", "repository": { diff --git a/crates/neon-build/Cargo.toml b/crates/neon-build/Cargo.toml index eac607877..aaac20ee3 100644 --- a/crates/neon-build/Cargo.toml +++ b/crates/neon-build/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "neon-build" -version = "0.9.1" +version = "0.10.0" authors = ["Dave Herman "] description = "Build logic required for Neon projects." repository = "https://github.com/neon-bindings/neon" @@ -9,4 +9,4 @@ edition = "2018" build = "build.rs" [dependencies] -neon-sys = { version = "=0.9.1", path = "../neon-sys", optional = true } +neon-sys = { version = "=0.10.0", path = "../neon-sys", optional = true } diff --git a/crates/neon-macros/Cargo.toml b/crates/neon-macros/Cargo.toml index 2c52a583e..0f5880f35 100644 --- a/crates/neon-macros/Cargo.toml +++ b/crates/neon-macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "neon-macros" -version = "0.9.1" +version = "0.10.0" authors = ["Dave Herman "] description = "Procedural macros supporting Neon" repository = "https://github.com/neon-bindings/neon" diff --git a/crates/neon-runtime/Cargo.toml b/crates/neon-runtime/Cargo.toml index add6224bc..65745a685 100644 --- a/crates/neon-runtime/Cargo.toml +++ b/crates/neon-runtime/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "neon-runtime" -version = "0.9.1" +version = "0.10.0" authors = ["Dave Herman "] description = "Bindings to the Node.js native addon API, used by the Neon implementation." repository = "https://github.com/neon-bindings/neon" @@ -10,7 +10,7 @@ edition = "2018" [dependencies] cfg-if = "1.0.0" libloading = { version = "0.6.5", optional = true } -neon-sys = { version = "=0.9.1", path = "../neon-sys", optional = true } +neon-sys = { version = "=0.10.0", path = "../neon-sys", optional = true } smallvec = "1.4.2" [dev-dependencies] diff --git a/crates/neon-sys/Cargo.toml b/crates/neon-sys/Cargo.toml index 8496ec0ea..a404e423b 100644 --- a/crates/neon-sys/Cargo.toml +++ b/crates/neon-sys/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "neon-sys" -version = "0.9.1" +version = "0.10.0" authors = ["David Herman "] -description = "Exposes the low-level V8/NAN C/C++ APIs. Will be superseded by N-API." +description = "Exposes the low-level V8/NAN C/C++ APIs. Will be superseded by N-API." edition = "2018" license = "MIT/Apache-2.0" links = "neon" # libneon.{a,obj} gets linked in with this package diff --git a/create-neon/data/versions.json b/create-neon/data/versions.json index 3459d1594..38b5d43b6 100644 --- a/create-neon/data/versions.json +++ b/create-neon/data/versions.json @@ -1,5 +1,5 @@ { - "neon": "0.9", + "neon": "0.10", "napi": "6", "cargo-cp-artifact": "0.1" } diff --git a/create-neon/package.json b/create-neon/package.json index d6112971a..58b02aeee 100644 --- a/create-neon/package.json +++ b/create-neon/package.json @@ -1,6 +1,6 @@ { "name": "create-neon", - "version": "0.1.5", + "version": "0.2.0", "description": "Create Neon projects with no build configuration.", "author": "Dave Herman ", "license": "MIT", diff --git a/package-lock.json b/package-lock.json index 7956009c0..3a82ef6a2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,7 +17,7 @@ }, "cli": { "name": "neon-cli", - "version": "0.9.1", + "version": "0.10.0", "license": "SEE LICENSE IN LICENSE-*", "dependencies": { "chalk": "^4.1.0", @@ -84,7 +84,7 @@ } }, "create-neon": { - "version": "0.1.5", + "version": "0.2.0", "license": "MIT", "dependencies": { "handlebars": "^4.7.7"