Commit graph

1202 commits

Author SHA1 Message Date
Chris Nixon
74e6cf2916
Don't try to use ureq on musl targets 2021-04-01 23:32:01 +01:00
LongYinan
9dd758526d
napi-derive@1.1.0 2021-04-01 21:08:53 +08:00
LongYinan
0b96ac24de
napi@1.4.0 2021-04-01 21:08:12 +08:00
LongYinan
9d76a39aa5
Merge pull request #524 from napi-rs/split-napi-raw
refactor(napi): split NapiRaw trait from NapiValue
2021-04-01 20:44:40 +08:00
LongYinan
d4331e05df
refactor(napi): split NapiRaw trait from NapiValue 2021-04-01 18:57:49 +08:00
LongYinan
ba1d16759f
chore: wrong keyword 2021-03-31 21:51:12 +08:00
LongYinan
9351c65161
napi@1.3.4 2021-03-31 21:49:50 +08:00
LongYinan
a2e1013249
chore: upgrade dependencies 2021-03-31 21:48:56 +08:00
LongYinan
b8310e3652
Merge pull request #522 from napi-rs/tsfn-release-error
fix(napi): do not call release tsfn in Drop when ref count is 0
2021-03-31 21:41:35 +08:00
LongYinan
d83fab23cd
Merge pull request #521 from messense/multiarch
Build multiarch Docker images
2021-03-31 21:37:18 +08:00
LongYinan
f0b8c5da07
fix(napi): do not call release tsfn in Drop when ref count is 0 2021-03-31 21:31:37 +08:00
LongYinan
3e239f69b2
Merge pull request #520 from napi-rs/fix-clippy
style: fix clippy error
2021-03-31 16:35:10 +08:00
messense
228c280607 Migrate to ghcr.io 2021-03-31 14:51:39 +08:00
messense
20cb92d202 Build multiarch Docker image 2021-03-31 14:39:53 +08:00
LongYinan
925786c955
style: fix clippy error 2021-03-31 11:53:51 +08:00
Chris Nixon
03e6048dc9
Check compile target at runtime in build 2021-03-30 22:56:03 +01:00
LongYinan
81af1674a8
napi-derive@1.0.1 2021-03-22 13:38:42 +08:00
LongYinan
4ca12ec7db
napi@1.3.3 2021-03-22 11:50:04 +08:00
LongYinan
a8c145b481
chore: upgrade dependencies 2021-03-22 11:50:04 +08:00
LongYinan
a8a83b2640
docs: Windows MSVC => Windows 2021-03-22 11:26:19 +08:00
LongYinan
6c46962833
docs: NodeJS => Node.js 2021-03-22 11:25:48 +08:00
LongYinan
69b8773350
Merge pull request #510 from napi-rs/fix-object-finalizer
fix(napi): finalizer maybe_ref pointer value
2021-03-19 15:48:06 +08:00
LongYinan
f45f1aeb53
fix(napi): finalizer maybe_ref pointer value 2021-03-19 13:53:28 +08:00
LongYinan
645584cfa9
Merge pull request #509 from napi-rs/upgrade-musl-image
ci: use lts alpine image
2021-03-19 12:15:31 +08:00
LongYinan
0a9d741e93
ci: use lts alpine image 2021-03-19 11:53:48 +08:00
LongYinan
2ae748249d
Merge pull request #508 from getditto/ditto/closure-into-jsfunction
Add a way to convert stateful (Rust) closures into `JsFunction`s.
2021-03-19 11:07:15 +08:00
Daniel Henry-Mantilla
4aba159958 Add a way to convert _stateful_ (Rust) closures into JsFunctions. 2021-03-18 21:09:55 +01:00
LongYinan
3f40b9270e
Merge pull request #504 from napi-rs/dependabot/npm_and_yarn/types/node-14.14.34
build(deps-dev): bump @types/node from 14.14.33 to 14.14.34
2021-03-17 13:36:11 +08:00
LongYinan
5c458033ca
Merge pull request #505 from napi-rs/dependabot/npm_and_yarn/eslint-7.22.0
build(deps-dev): bump eslint from 7.21.0 to 7.22.0
2021-03-17 13:36:00 +08:00
dependabot[bot]
e56834fb25
build(deps-dev): bump eslint from 7.21.0 to 7.22.0
Bumps [eslint](https://github.com/eslint/eslint) from 7.21.0 to 7.22.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.21.0...v7.22.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-15 05:34:36 +00:00
dependabot[bot]
6c42ba302d
build(deps-dev): bump @types/node from 14.14.33 to 14.14.34
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.33 to 14.14.34.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-15 05:34:06 +00:00
LongYinan
3dd071540b
Merge pull request #503 from fanatid/patch-1
Remove deprecated `register_module` from example in README.md
2021-03-14 17:01:26 +08:00
Kirill Fomichev
5527451b8d
Remove deprecated register_module from example in README.md 2021-03-14 11:17:19 +03:00
LongYinan
7c6bfb4087
napi@1.3.2 2021-03-12 16:26:19 +08:00
LongYinan
526b335df3
Merge pull request #502 from napi-rs/fix-adjust-external-memory-issue
fix(napi): napi_adjust_external_memory issue on wini686
2021-03-12 16:22:10 +08:00
LongYinan
1e3290cd01
fix(napi): napi_adjust_external_memory issue on wini686 2021-03-12 16:09:57 +08:00
LongYinan
0f300da917
napi@1.3.1 2021-03-11 19:03:17 +08:00
LongYinan
50f207f744
fix(napi): InvalidArg error when create_external with size hint 2021-03-11 19:02:42 +08:00
LongYinan
66663d129d
napi@1.3.0 2021-03-11 14:06:51 +08:00
LongYinan
7b86999f92
chore: upgrade deps 2021-03-11 13:42:28 +08:00
LongYinan
7ac2550609
Merge pull request #498 from napi-rs/dependabot/npm_and_yarn/husky-5.1.3
build(deps-dev): bump husky from 5.1.2 to 5.1.3
2021-03-11 13:30:37 +08:00
LongYinan
2c94f40cc4
Merge pull request #494 from napi-rs/dependabot/npm_and_yarn/typescript-4.2.3
build(deps-dev): bump typescript from 4.2.2 to 4.2.3
2021-03-11 13:30:08 +08:00
LongYinan
66ad5a4835
Merge pull request #499 from napi-rs/dependabot/npm_and_yarn/types/node-14.14.32
build(deps-dev): bump @types/node from 14.14.31 to 14.14.32
2021-03-11 13:29:46 +08:00
LongYinan
2be938e933
Merge pull request #496 from napi-rs/dependabot/npm_and_yarn/octokit/rest-18.3.4
build(deps): bump @octokit/rest from 18.3.0 to 18.3.4
2021-03-11 13:29:33 +08:00
LongYinan
676d7c9b3f
Merge pull request #492 from napi-rs/dependabot/npm_and_yarn/typescript-eslint/parser-4.16.1
build(deps-dev): bump @typescript-eslint/parser from 4.15.2 to 4.16.1
2021-03-11 13:29:19 +08:00
LongYinan
50fa1c0f0d
Merge pull request #501 from napi-rs/ubuntu-20.04
ci: running cross compile testing on ubuntu-20.04
2021-03-11 13:29:02 +08:00
LongYinan
6c8dcea460
ci: running cross compile testing on ubuntu-20.04 2021-03-11 12:12:19 +08:00
LongYinan
7108cc0f76
Merge pull request #500 from getditto/ditto/threadsafe-function-add-error-handling-opt-out
Add a way to opt out of error handling for `ThreadsafeFunction`s.
2021-03-11 00:21:14 +08:00
Daniel Henry-Mantilla
0204ef9342 Added a way to opt out of error handling for ThreadsafeFunctions.
This is to allow having the `ThreadSafeFunction` expect the same calling API
as an unwrapped `JsFunction` would have: in some contexts this consistency is
more desireable than giving the option to the caller to handle a native-to-js
conversion failure (or somebody having directly fed a `Result<T>`; although
that use case seems oddly niche to me: it can already be covered when
`type T = Result<U>;` and propagated/flattened inside the `R` closure with a
simple `?`), since such failure can already be quite fatal / unexpected in
some cases.

In order to keep the code backwards-compatible, this PR uses an added
**optional** generic (type) parameter. Since this parameter, semantically,
represents an `enum`, and since we don't have yet `const_generic` `enum`s, we
circumvent this limitation by using the type-level enum pattern, which is
abtracted away with a helper macro that incidentally yields some handy docs
(I can attach a rendered version of the docs hosted on netlify if the reviewer
so wishes).
2021-03-09 23:51:12 +01:00
dependabot[bot]
67f30800e2
build(deps-dev): bump @types/node from 14.14.31 to 14.14.32
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.31 to 14.14.32.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-08 05:44:08 +00:00