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 ThreadsafeFunction
s.
...
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
dependabot[bot]
6da914fa77
build(deps-dev): bump husky from 5.1.2 to 5.1.3
...
Bumps [husky](https://github.com/typicode/husky ) from 5.1.2 to 5.1.3.
- [Release notes](https://github.com/typicode/husky/releases )
- [Commits](https://github.com/typicode/husky/compare/v5.1.2...v5.1.3 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-08 05:43:53 +00:00
dependabot[bot]
398f12b452
build(deps): bump @octokit/rest from 18.3.0 to 18.3.4
...
Bumps [@octokit/rest](https://github.com/octokit/rest.js ) from 18.3.0 to 18.3.4.
- [Release notes](https://github.com/octokit/rest.js/releases )
- [Commits](https://github.com/octokit/rest.js/compare/v18.3.0...v18.3.4 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-08 05:43:00 +00:00
dependabot[bot]
774666de68
build(deps-dev): bump typescript from 4.2.2 to 4.2.3
...
Bumps [typescript](https://github.com/Microsoft/TypeScript ) from 4.2.2 to 4.2.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases )
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.2.2...v4.2.3 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-08 05:37:15 +00:00
dependabot[bot]
8ee7f6a163
build(deps-dev): bump @typescript-eslint/parser from 4.15.2 to 4.16.1
...
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ) from 4.15.2 to 4.16.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.16.1/packages/parser )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-08 05:34:00 +00:00
LongYinan
510e584750
Merge pull request #489 from napi-rs/dependabot/npm_and_yarn/inquirer-8.0.0
...
build(deps): bump inquirer from 7.3.3 to 8.0.0
2021-03-03 11:47:17 +08:00
LongYinan
e946fe0fe5
Merge pull request #483 from napi-rs/dependabot/npm_and_yarn/husky-5.1.2
...
build(deps-dev): bump husky from 5.1.0 to 5.1.2
2021-03-01 23:20:46 +08:00
LongYinan
89d087e3e4
Merge pull request #487 from napi-rs/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-4.15.2
...
build(deps-dev): bump @typescript-eslint/eslint-plugin from 4.15.1 to 4.15.2
2021-03-01 23:20:31 +08:00
dependabot[bot]
4fd41da5c8
build(deps): bump inquirer from 7.3.3 to 8.0.0
...
Bumps [inquirer](https://github.com/SBoudrias/Inquirer.js ) from 7.3.3 to 8.0.0.
- [Release notes](https://github.com/SBoudrias/Inquirer.js/releases )
- [Commits](https://github.com/SBoudrias/Inquirer.js/compare/inquirer@7.3.3...inquirer@8.0.0 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-01 12:23:03 +00:00
dependabot[bot]
90b856935f
build(deps-dev): bump @typescript-eslint/eslint-plugin
...
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin ) from 4.15.1 to 4.15.2.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.15.2/packages/eslint-plugin )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-01 12:18:52 +00:00
LongYinan
d2f0311980
Merge pull request #485 from napi-rs/dependabot/npm_and_yarn/eslint-7.21.0
...
build(deps-dev): bump eslint from 7.20.0 to 7.21.0
2021-03-01 20:14:59 +08:00
LongYinan
56c6a17dab
Merge pull request #482 from napi-rs/dependabot/npm_and_yarn/typescript-4.2.2
...
build(deps-dev): bump typescript from 4.1.5 to 4.2.2
2021-03-01 20:14:46 +08:00
LongYinan
ce729d1f3b
Merge pull request #488 from napi-rs/dependabot/npm_and_yarn/typescript-eslint/parser-4.15.2
...
build(deps-dev): bump @typescript-eslint/parser from 4.15.1 to 4.15.2
2021-03-01 20:14:24 +08:00
dependabot[bot]
4031908b58
build(deps-dev): bump @typescript-eslint/parser from 4.15.1 to 4.15.2
...
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ) from 4.15.1 to 4.15.2.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.15.2/packages/parser )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-01 11:31:32 +00:00
dependabot[bot]
3ed3330409
build(deps-dev): bump typescript from 4.1.5 to 4.2.2
...
Bumps [typescript](https://github.com/Microsoft/TypeScript ) from 4.1.5 to 4.2.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases )
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.1.5...v4.2.2 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-01 11:31:19 +00:00
dependabot[bot]
cc645d1c3c
build(deps-dev): bump eslint from 7.20.0 to 7.21.0
...
Bumps [eslint](https://github.com/eslint/eslint ) from 7.20.0 to 7.21.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.20.0...v7.21.0 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-01 11:31:16 +00:00
dependabot[bot]
246d87b460
build(deps-dev): bump husky from 5.1.0 to 5.1.2
...
Bumps [husky](https://github.com/typicode/husky ) from 5.1.0 to 5.1.2.
- [Release notes](https://github.com/typicode/husky/releases )
- [Commits](https://github.com/typicode/husky/compare/v5.1.0...v5.1.2 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-01 11:29:39 +00:00
LongYinan
a533958465
Merge pull request #486 from napi-rs/dependabot/npm_and_yarn/eslint-config-prettier-8.1.0
...
build(deps-dev): bump eslint-config-prettier from 8.0.0 to 8.1.0
2021-03-01 19:26:28 +08:00
LongYinan
93208fb6eb
Merge pull request #484 from napi-rs/dependabot/npm_and_yarn/octokit/rest-18.3.0
...
build(deps): bump @octokit/rest from 18.2.0 to 18.3.0
2021-03-01 19:26:13 +08:00
dependabot[bot]
bc1197ff79
build(deps-dev): bump eslint-config-prettier from 8.0.0 to 8.1.0
...
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier ) from 8.0.0 to 8.1.0.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases )
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v8.0.0...v8.1.0 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-01 05:44:07 +00:00
dependabot[bot]
4f89df4211
build(deps): bump @octokit/rest from 18.2.0 to 18.3.0
...
Bumps [@octokit/rest](https://github.com/octokit/rest.js ) from 18.2.0 to 18.3.0.
- [Release notes](https://github.com/octokit/rest.js/releases )
- [Commits](https://github.com/octokit/rest.js/compare/v18.2.0...v18.3.0 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-01 05:43:18 +00:00
LongYinan
49eaaf30e9
napi@1.2.0
2021-02-26 18:52:31 +08:00
LongYinan
673fa3b7bd
Merge pull request #481 from napi-rs/unwrap-from-ref
...
Unwrap from ref
2021-02-26 18:51:41 +08:00
LongYinan
071dcff9eb
feat(napi): add back clone trait to ThreadsafeFunction
2021-02-26 18:38:48 +08:00
LongYinan
e622d9693a
feat(napi): unwrap &'static value from Ref object
2021-02-25 22:17:21 +08:00
dependabot[bot]
c75967e911
build(deps-dev): bump @typescript-eslint/eslint-plugin ( #475 )
...
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin ) from 4.15.0 to 4.15.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.15.1/packages/eslint-plugin )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: LongYinan <lynweklm@gmail.com>
2021-02-22 16:02:35 +08:00
dependabot[bot]
7b4887b85e
build(deps-dev): bump eslint-config-prettier from 7.2.0 to 8.0.0
...
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier ) from 7.2.0 to 8.0.0.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases )
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v7.2.0...v8.0.0 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-02-22 16:01:40 +08:00
dependabot[bot]
75868ae7d8
build(deps-dev): bump @typescript-eslint/parser from 4.15.0 to 4.15.1
...
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ) from 4.15.0 to 4.15.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.15.1/packages/parser )
Signed-off-by: dependabot[bot] <support@github.com>
2021-02-22 16:00:35 +08:00
dependabot[bot]
3d0f90bf49
build(deps-dev): bump husky from 5.0.9 to 5.1.0
...
Bumps [husky](https://github.com/typicode/husky ) from 5.0.9 to 5.1.0.
- [Release notes](https://github.com/typicode/husky/releases )
- [Commits](https://github.com/typicode/husky/compare/v5.0.9...v5.1.0 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-02-22 16:00:22 +08:00
dependabot[bot]
f49fbfddf8
build(deps-dev): bump @types/node from 14.14.28 to 14.14.31
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 14.14.28 to 14.14.31.
- [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-02-22 16:00:10 +08:00
dependabot[bot]
771814c936
build(deps): bump @octokit/rest from 18.1.1 to 18.2.0
...
Bumps [@octokit/rest](https://github.com/octokit/rest.js ) from 18.1.1 to 18.2.0.
- [Release notes](https://github.com/octokit/rest.js/releases )
- [Commits](https://github.com/octokit/rest.js/compare/v18.1.1...v18.2.0 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-02-22 15:59:54 +08:00
dependabot[bot]
d1766ca191
build(deps): bump lodash from 4.17.20 to 4.17.21
...
Bumps [lodash](https://github.com/lodash/lodash ) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases )
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-02-22 15:59:38 +08:00
LongYinan
ea4cefac48
ci: upgrade freebsd image
2021-02-22 15:59:08 +08:00
dependabot[bot]
498c5af4ec
build(deps-dev): bump @types/node from 14.14.25 to 14.14.28
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 14.14.25 to 14.14.28.
- [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-02-17 01:14:00 +08:00
dependabot[bot]
d2a3927394
build(deps-dev): bump @typescript-eslint/parser from 4.14.2 to 4.15.0
...
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ) from 4.14.2 to 4.15.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.15.0/packages/parser )
Signed-off-by: dependabot[bot] <support@github.com>
2021-02-17 01:13:40 +08:00
dependabot[bot]
bc43d8c3c2
build(deps): bump @octokit/rest from 18.1.0 to 18.1.1
...
Bumps [@octokit/rest](https://github.com/octokit/rest.js ) from 18.1.0 to 18.1.1.
- [Release notes](https://github.com/octokit/rest.js/releases )
- [Commits](https://github.com/octokit/rest.js/compare/v18.1.0...v18.1.1 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-02-17 01:13:23 +08:00
dependabot[bot]
151edee745
build(deps-dev): bump typescript from 4.1.3 to 4.1.5
...
Bumps [typescript](https://github.com/Microsoft/TypeScript ) from 4.1.3 to 4.1.5.
- [Release notes](https://github.com/Microsoft/TypeScript/releases )
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.1.3...v4.1.5 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-02-17 01:12:58 +08:00
dependabot[bot]
f03f4dcdd6
build(deps-dev): bump husky from 4.3.8 to 5.0.9
...
Bumps [husky](https://github.com/typicode/husky ) from 4.3.8 to 5.0.9.
- [Release notes](https://github.com/typicode/husky/releases )
- [Commits](https://github.com/typicode/husky/compare/v4.3.8...v5.0.9 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-02-17 01:12:36 +08:00
LongYinan
f5b975a10a
Merge pull request #465 from napi-rs/dependabot/npm_and_yarn/eslint-7.20.0
...
build(deps-dev): bump eslint from 7.19.0 to 7.20.0
2021-02-17 01:12:11 +08:00
dependabot[bot]
179f175e1d
build(deps-dev): bump eslint from 7.19.0 to 7.20.0
...
Bumps [eslint](https://github.com/eslint/eslint ) from 7.19.0 to 7.20.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.19.0...v7.20.0 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-02-15 05:37:29 +00:00
LongYinan
418daaa4ad
Merge pull request #456 from napi-rs/dependabot/npm_and_yarn/octokit/rest-18.1.0
...
build(deps): bump @octokit/rest from 18.0.15 to 18.1.0
2021-02-09 17:16:26 +08:00
LongYinan
c8187c6b62
Merge pull request #462 from napi-rs/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-4.15.0
...
build(deps-dev): bump @typescript-eslint/eslint-plugin from 4.14.1 to 4.15.0
2021-02-09 17:16:15 +08:00
dependabot[bot]
1b3989c4ba
build(deps-dev): bump @typescript-eslint/eslint-plugin
...
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin ) from 4.14.1 to 4.15.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.15.0/packages/eslint-plugin )
Signed-off-by: dependabot[bot] <support@github.com>
2021-02-09 07:28:51 +00:00
LongYinan
5215543fb8
Merge pull request #458 from napi-rs/dependabot/npm_and_yarn/lint-staged-10.5.4
...
build(deps-dev): bump lint-staged from 10.5.3 to 10.5.4
2021-02-09 14:32:26 +08:00
LongYinan
3ee248fb11
Merge pull request #457 from napi-rs/dependabot/npm_and_yarn/typescript-eslint/parser-4.14.2
...
build(deps-dev): bump @typescript-eslint/parser from 4.14.1 to 4.14.2
2021-02-09 14:32:16 +08:00
LongYinan
eec45f2c94
Merge pull request #460 from napi-rs/dependabot/npm_and_yarn/types/node-14.14.25
...
build(deps-dev): bump @types/node from 14.14.21 to 14.14.25
2021-02-09 14:32:05 +08:00
dependabot[bot]
8996eb9f33
build(deps-dev): bump @types/node from 14.14.21 to 14.14.25
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 14.14.21 to 14.14.25.
- [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-02-08 05:39:47 +00:00