Commit graph

1644 commits

Author SHA1 Message Date
LongYinan
f57651f749
chore: publish
- @napi-rs/cli@2.0.0-alpha.5
2021-11-16 14:11:56 +08:00
LongYinan
0743ced07a
Merge pull request #860 from napi-rs/pipe-command
feat(napi): add pipe flag to pipe the generated files into custom command
2021-11-16 14:11:06 +08:00
LongYinan
e37c3fd908
feat(napi): add pipe flag to pipe the generated files into custom command 2021-11-16 13:58:01 +08:00
LongYinan
41037ec193
Merge pull request #859 from napi-rs/fix-newline
fix: always add a newline at the end of the file when generating js-binding.js
2021-11-16 13:42:21 +08:00
yisibl
753bb1e31b fix: always add a newline at the end of the file when generating js-binding.js 2021-11-16 13:10:03 +08:00
LongYinan
dd0a705b83
test: update ts snapshot 2021-11-16 13:07:17 +08:00
LongYinan
fa8e32d3c0
Release independent packages
napi-derive-backend@1.0.7
napi-derive@2.0.0-alpha.6

Generated by cargo-workspaces
2021-11-16 13:03:50 +08:00
LongYinan
b4a8cadb21
fix(napi-derive-backend): Option value should produce optional types 2021-11-16 13:02:40 +08:00
LongYinan
0e0bfb1c0a
Release independent packages
napi-derive-backend@1.0.6
napi-derive@2.0.0-alpha.5

Generated by cargo-workspaces
2021-11-16 12:36:19 +08:00
LongYinan
b8bcdd9c04
fix(napi-derive-backend): JsBuffer should map to Buffer type 2021-11-16 12:35:22 +08:00
LongYinan
052bcd8f3e
Release independent packages
napi@2.0.0-alpha.3
napi-derive-backend@1.0.5
napi-derive@2.0.0-alpha.4

Generated by cargo-workspaces
2021-11-16 10:44:48 +08:00
dependabot[bot]
be70c27667
build(deps-dev): bump @typescript-eslint/eslint-plugin 2021-11-15 21:42:20 +00:00
dependabot[bot]
06ec033844
build(deps-dev): bump lint-staged from 11.2.6 to 12.0.2 2021-11-15 21:27:48 +00:00
dependabot[bot]
f0485e1c03
build(deps-dev): bump @typescript-eslint/parser from 5.3.1 to 5.4.0 2021-11-15 21:27:37 +00:00
dependabot[bot]
6fef238673
build(deps-dev): bump eslint-plugin-import from 2.25.2 to 2.25.3 2021-11-15 21:27:32 +00:00
LongYinan
09426f0803
Merge pull request #853 from napi-rs/symbol-improvement
feat(napi): improve symbol support
2021-11-15 23:22:17 +08:00
LongYinan
424c7805c4
feat(napi): improve symbol support 2021-11-15 23:10:15 +08:00
LongYinan
c0a89834c2
Merge pull request #852 from napi-rs/global
feat(napi): support JsGlobal in `Env`
2021-11-15 23:03:09 +08:00
LongYinan
3386bb9867
feat(napi): support JsGlobal in Env 2021-11-15 22:41:01 +08:00
LongYinan
1ef7de4dd6
Merge pull request #849 from napi-rs/promise
feat(napi): await Promise<T> in async fn
2021-11-15 17:05:56 +08:00
LongYinan
92aa3fcf53
chore(napi): add log_js_value helper 2021-11-15 16:55:15 +08:00
LongYinan
25231b6ae1
fix(napi): correct the CString usage 2021-11-15 16:55:13 +08:00
LongYinan
eaa96f7eb2
feat(napi): await Promise<T> in async fn 2021-11-15 16:54:55 +08:00
LongYinan
0d469ed8db
Merge pull request #851 from timfish/fix/qualify
Fully qualify all types in generated code
2021-11-15 16:36:17 +08:00
Tim Fish
a14cbbb836 Full qualify types 2021-11-14 23:34:44 +00:00
LongYinan
1013052de3
Merge pull request #848 from napi-rs/tsfn
feat(napi): create ThreadsafeFunction from JsFunction
2021-11-12 17:36:12 +08:00
LongYinan
30031f09ed
feat(napi): create ThreadsafeFunction from JsFunction 2021-11-12 17:22:57 +08:00
LongYinan
4ff51a3c66
Merge pull request #847 from napi-rs/mut-arg
fix(napi-derive-backend): typegen issue when arg is mut
2021-11-11 18:17:25 +08:00
LongYinan
fe8f061f1f
fix(napi-derive-backend): typegen issue when arg is mut 2021-11-11 17:10:32 +08:00
LongYinan
9a8484144c
Merge pull request #846 from napi-rs/bigint
feat(napi): BigInt codegen support
2021-11-11 16:48:08 +08:00
LongYinan
0424a08c06
feat(napi): BigInt codegen support 2021-11-11 16:18:25 +08:00
LongYinan
38d2645632
Release independent packages
napi-derive-backend@1.0.4
napi-derive@2.0.0-alpha.3
2021-11-10 14:19:09 +08:00
LongYinan
d670e0454d
Release independent packages
napi-derive-backend@1.0.4

Generated by cargo-workspaces
2021-11-10 14:18:04 +08:00
LongYinan
413a55545f
fix(napi-derive-backend): wrong restrict on Result return type 2021-11-10 13:15:54 +08:00
LongYinan
ea8a79e761
chore: publish
- @napi-rs/cli@2.0.0-alpha.4
2021-11-09 22:07:33 +08:00
LongYinan
4866e21c7e
Merge pull request #845 from napi-rs/generate-js-binding
Generate js binding
2021-11-09 22:05:59 +08:00
LongYinan
35b0e53801
chore: update lockfile 2021-11-09 21:43:51 +08:00
LongYinan
179f20a7c5
feat(cli): generate js binding to avoid dynamic require logic 2021-11-09 21:43:51 +08:00
dependabot[bot]
b7a98d2c7a
build(deps-dev): bump @typescript-eslint/eslint-plugin 2021-11-08 21:47:18 +00:00
dependabot[bot]
eb5f53a2cf
build(deps): bump table from 6.7.2 to 6.7.3 2021-11-08 21:34:14 +00:00
dependabot[bot]
89a5547e33
build(deps-dev): bump eslint from 8.1.0 to 8.2.0 2021-11-08 21:33:58 +00:00
dependabot[bot]
85fc76206a
build(deps-dev): bump sinon from 11.1.2 to 12.0.1 2021-11-08 21:33:31 +00:00
dependabot[bot]
baa6c94387
build(deps-dev): bump @typescript-eslint/parser from 5.3.0 to 5.3.1 2021-11-08 21:33:15 +00:00
LongYinan
1ab52c42b6
Release independent packages
napi@2.0.0-alpha.2
napi-derive@2.0.0-alpha.2
napi-derive-backend@1.0.3
2021-11-07 00:06:29 +08:00
LongYinan
e0671fe071
feat(napi): implement Env::throw to throw any JsValue 2021-11-06 23:33:58 +08:00
LongYinan
c92c5534c8
Merge pull request #838 from napi-rs/fix-async-fn
fix(napi-derive): missing move in async fn
2021-11-06 22:31:23 +08:00
LongYinan
785388ae40
fix(napi-derive): missing move in async fn 2021-11-06 22:19:42 +08:00
LongYinan
c2c5887ea4
Merge pull request #837 from napi-rs/return-result
fix(napi-derive): return Result type in Constructor and Factory
2021-11-06 22:13:55 +08:00
LongYinan
e9ab2192da
fix(napi-derive): return Result type in Constructor and Factory 2021-11-06 21:48:18 +08:00
LongYinan
44040e3bfe
fix(napi-derive): type generate issue for Factory and Class 2021-11-06 13:51:55 +08:00