Skip to content

Commit 0c59300

Browse files
authored
Merge pull request #940 from neon-bindings/kv/release-1.0.0-alpha.2
Release 1.0.0-alpha.2
2 parents 000b6c5 + 0c40428 commit 0c59300

File tree

7 files changed

+51
-7
lines changed

7 files changed

+51
-7
lines changed

AUTHORS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Neon owes its existence to the contributions of these fine people.
1919
* [ComplexSpaces](https://github.com/complexspaces)
2020
* [Nathaniel Daniel](https://github.com/adumbidiot)
2121
* [Joey Ezechiëls](https://github.com/jjpe)
22+
* [Ryan Fitzgerald](https://github.com/rf-)
2223
* [Cory Forsyth](https://github.com/bantic)
2324
* [Olivier Goffart](https://github.com/ogoffart)
2425
* [Dave Herman](https://github.com/dherman)
@@ -43,6 +44,7 @@ Neon owes its existence to the contributions of these fine people.
4344
* [MikaelUrankar](https://github.com/MikaelUrankar)
4445
* [Darin Morrison](https://github.com/freebroccolo)
4546
* [Martin Muñoz](https://github.com/mmun)
47+
* [Dominik Nakamura](https://github.com/dnaka91)
4648
* [Kayo Phoenix](https://github.com/katyo)
4749
* [Mike Piccolo](https://github.com/mfpiccolo)
4850
* [Jan Piotrowski](https://github.com/janpio)

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

RELEASES.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,45 @@
1+
# Version 1.0.0-alpha.2
2+
3+
## Breaking Changes
4+
5+
### `neon::object::This`
6+
7+
https://github.com/neon-bindings/neon/pull/918
8+
9+
Trait [`neon::object::This`](https://docs.rs/neon/latest/neon/object/trait.This.html) has been removed. `This` was primarily added for use with the `declare_types!` macro to generate classes. The macro was removed and `This` is no longer needed. Additionally, the `This` argument on `JsFunction` was found to be _invalid_ because it asserted at compile time a type for `this` that could change at runtime. (Note that this was _not_ unsound because the type would be checked by Node-API and result in a `panic`.)
10+
11+
### `JsFunction::this`
12+
13+
https://github.com/neon-bindings/neon/pull/918
14+
15+
`JsFunction::this` was changed to perform a downcast and be _fallible_. This is in line with similar APIs (e.g., `Object::get`). Additionally, an infallible version, `JsValue::this_value` was added that does _not_ perform a downcast.
16+
17+
### Added Feature flag for external buffers
18+
19+
https://github.com/neon-bindings/neon/pull/937
20+
21+
Electron began using [pointer compression](https://www.electronjs.org/blog/v8-memory-cage) on JavaScript values that is incompatible with external buffers. As a preventative measure, `JsArrayBuffer::external` and `JsBuffer::external` have been placed behind a feature flag that warns of Electron incompatibility.
22+
23+
## Improvements
24+
25+
* Lifetimes were relaxed on `execute_scoped` to allow valid code to compile. (https://github.com/neon-bindings/neon/pull/919)
26+
* Added a `from_slice` helper on `TypedArray` (https://github.com/neon-bindings/neon/pull/925)
27+
* `JsTypedArray` construction and type aliases (https://github.com/neon-bindings/neon/pull/909)
28+
29+
## Bug Fixes
30+
31+
* Fixed a panic on VM shutdown when using `Channel` (https://github.com/neon-bindings/neon/pull/934)
32+
* Type tags were added to `JsBox` to prevent undefined behavior when multiple native add-ons are used (https://github.com/neon-bindings/neon/pull/907)
33+
34+
## Docs
35+
36+
* Significantly improved documentation of `TypedArray` (https://github.com/neon-bindings/neon/pull/909)
37+
* Removed unused values in `Channel` docs (https://github.com/neon-bindings/neon/pull/925)
38+
39+
### `cargo-cp-artifact`
40+
41+
`0.1.7` includes a fix to unlink `.node` files before copying to address common code signing errors on macOS (https://github.com/neon-bindings/neon/pull/921).
42+
143
# Version 1.0.0-alpha.1
244

345
Pre-release of a major milestone for Neon. 1.0.

crates/neon-macros/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "neon-macros"
3-
version = "1.0.0-alpha.1"
3+
version = "1.0.0-alpha.2"
44
authors = ["Dave Herman <[email protected]>"]
55
description = "Procedural macros supporting Neon"
66
repository = "https://github.com/neon-bindings/neon"

crates/neon/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "neon"
3-
version = "1.0.0-alpha.1"
3+
version = "1.0.0-alpha.2"
44
authors = ["Dave Herman <[email protected]>"]
55
description = "A safe abstraction layer for Node.js."
66
readme = "../../README.md"
@@ -25,7 +25,7 @@ libloading = "0.7.3"
2525
semver = "1"
2626
smallvec = "1.4.2"
2727
once_cell = "1.10.0"
28-
neon-macros = { version = "=1.0.0-alpha.1", path = "../neon-macros" }
28+
neon-macros = { version = "=1.0.0-alpha.2", path = "../neon-macros" }
2929
aquamarine = { version = "0.1.11", optional = true }
3030
doc-comment = { version = "0.3.3", optional = true }
3131

test/electron/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ license = "MIT/Apache-2.0"
99
crate-type = ["cdylib"]
1010

1111
[dependencies.neon]
12-
version = "1.0.0-alpha.1"
12+
version = "1.0.0-alpha.2"
1313
path = "../../crates/neon"

test/napi/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ once_cell = "1"
1414
tokio = { version = "1", features = ["rt-multi-thread"] }
1515

1616
[dependencies.neon]
17-
version = "1.0.0-alpha.1"
17+
version = "1.0.0-alpha.2"
1818
path = "../../crates/neon"
1919
features = ["futures", "napi-experimental", "external-buffers"]

0 commit comments

Comments
 (0)