Commit graph

2435 commits

Author SHA1 Message Date
LongYinan
688ee04247
Release independent packages
- napi-build@2.1.0
- napi-derive@2.14.0
- napi@2.14.0
- napi-sys@2.3.0
2023-11-07 14:18:36 +08:00
LongYinan
be755a1d51
chore(release): publish
- @napi-rs/cli@3.0.0-alpha.6
 - @napi-rs/triples@2.0.0-alpha.4
2023-11-07 14:11:10 +08:00
renovate[bot]
90a2b8864d
chore(deps): lock file maintenance (#1712)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-07 14:06:18 +08:00
LongYinan
36581336c6
feat(napi): pass the rest of async tests (#1792)
Pass the rest of async tests, including await the JavaScript Promise in the Rust side, and the worker_threads tests.
2023-11-07 01:46:43 +08:00
renovate[bot]
ca18bbdae0
chore(deps): update dependency @types/sinon to v17 (#1778)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-06 23:28:26 +08:00
LongYinan
b03b3ee4dc
fix(build): rerun if cli version changed (#1789)
- Close https://github.com/napi-rs/napi-rs/issues/1719
2023-11-06 14:03:34 +08:00
LongYinan
dac073805b
fix(cli): js binding template (#1788)
- Close https://github.com/napi-rs/napi-rs/issues/1775
2023-11-06 14:00:25 +08:00
LongYinan
3deae16442
fix(napi): add tokio cleanup hook for more platforms (#1790) 2023-11-06 13:59:54 +08:00
LongYinan
65f57918fb
style(napi): as ptr => ptr::cast (#1786) 2023-11-06 11:22:30 +08:00
LongYinan
1e5c32ca60
style(napi): fix compile warning (#1785) 2023-11-06 11:21:26 +08:00
LongYinan
feabcd7f16
test(napi): add tests for napi9 features (#1784) 2023-11-06 11:03:44 +08:00
LongYinan
4e4d891ad8
feat: add experimental Env::get_module_file_name method (#1783) 2023-11-06 11:01:27 +08:00
LongYinan
2b0ddf4a21
feat(napi,sys): sync to napi9 (#1781)
- Close https://github.com/napi-rs/napi-rs/issues/1600
2023-11-06 11:00:27 +08:00
LongYinan
cec062bd4b
fix(napi-sys): missing napi9 load on Windows (#1780) 2023-11-06 10:59:28 +08:00
LongYinan
546b108a5b
feat(napi): support async class factory (#1779)
- Close https://github.com/napi-rs/napi-rs/issues/1777
2023-11-06 10:58:23 +08:00
LongYinan
0dc1ef738b fix(napi): asan caught memory safety issue 2023-11-04 15:26:07 +08:00
Jez
afd3395bb4
fix(napi-derive): import FromNapiValue and ToNapiValue from napi::bindgen_prelude when generating enum (#1713) 2023-11-02 23:05:16 +08:00
Özgür Akkurt
2c410b238d
feat(napi): impl Default for Buffer (#1734) 2023-11-02 22:32:13 +08:00
renovate[bot]
b19ada79fd
chore(deps): update actions/setup-node action to v4 (#1772)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-02 21:57:29 +08:00
LongYinan
7a3cd77bc8
ci: add YARN_IGNORE_NODE on macOS arm64 build 2023-11-02 20:32:36 +08:00
LongYinan
8d85509119
chore: upgrade to yarn 4 (#1774) 2023-11-02 20:10:08 +08:00
Raphael Darley
fcb5c2bdd0
fix(cli): switch name parsing to allow periods in name
Co-authored-by: LongYinan <lynweklm@gmail.com>
2023-11-02 19:52:23 +08:00
stefan-gorules
afdd4060ab
fix(napi): js promise error messages (#1672) 2023-11-02 17:32:20 +08:00
kuzeyardabulut
3a1a280d5f
fix(napi): potential double free issue (#1679)
* Update module_register.rs

* Run fmt

---------

Co-authored-by: LongYinan <lynweklm@gmail.com>
2023-11-02 17:19:35 +08:00
LongYinan
13d0ce075e
feat: integrate with emnapi (#1669)
* Integrate with emnapi

* resolve conflict

* ignore wasm

* generate wasi file

* Add wasi test to workflow

* Fix wasi template

* emnapi new initialize api

* Finish test

* Purne tsconfig

* Generate wasi worker

* Fix electron test

* Finalize check

* Noop adjust_external_memory

* Apply cr suggestions
2023-11-02 12:57:11 +08:00
LongYinan
69c0223b9b
test: reduce memory usage while testing aginst worker thread (#1769) 2023-11-02 00:44:08 +08:00
LongYinan
0c6656d192
chore(cli): update ci template (#1771) 2023-11-01 18:02:55 +08:00
renovate[bot]
b0fd67fae4
chore(deps): update actions/setup-node action to v4 (#1763)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-24 11:03:35 +08:00
renovate[bot]
3a971c6819
chore(deps): update dependency sinon to v17 (#1758)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-22 00:33:10 +08:00
LongYinan
9db4581d7f
feat: bump msrv to 1.65 (#1755) 2023-10-17 20:18:29 +08:00
renovate[bot]
68d2cfd51b
chore(deps): update dependency lint-staged to v15 (#1754)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-16 20:37:02 +08:00
renovate[bot]
60deb42056
fix(deps): update dependency dockerode to v4 (#1753)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-12 11:21:04 +08:00
renovate[bot]
f3428c6b2f
chore(deps): update dependency electron to v27 (#1750)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-11 15:28:05 +08:00
Markus
9b4beb83e9
chore(napi): make napi_register_module_v1 pub (#1747)
* feat(napi): make napi_register_module_v1 pub

* docs: add safety section

* chore: format doc comment
2023-10-09 11:18:34 +08:00
dependabot[bot]
0dd6422abf
build(deps-dev): bump electron from 26.2.1 to 26.2.4 (#1743)
Bumps [electron](https://github.com/electron/electron) from 26.2.1 to 26.2.4.
- [Release notes](https://github.com/electron/electron/releases)
- [Changelog](https://github.com/electron/electron/blob/main/docs/breaking-changes.md)
- [Commits](https://github.com/electron/electron/compare/v26.2.1...v26.2.4)

---
updated-dependencies:
- dependency-name: electron
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-06 12:32:02 +08:00
renovate[bot]
2c9b8516d4
chore(deps): update yarn to v3.6.4 (#1742)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-04 10:09:37 +08:00
LongYinan
2e03db1fec
test: refactor the example tests to esm, add bun:test => ava polyfill (#1730) 2023-09-20 01:18:01 -07:00
LongYinan
ebc48cf6c4
build: Docker arm64 platform (#1731) 2023-09-17 17:29:15 -07:00
Tom Sherman
3418fd3e8f
feat(napi,sys): implement Symbol.for (#1721)
Co-authored-by: LongYinan <lynweklm@gmail.com>
2023-09-13 15:45:14 -07:00
renovate[bot]
c853a412b6
chore(deps): update docker/setup-buildx-action action to v3 (#1724)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-13 14:15:28 -07:00
renovate[bot]
b1a580226d
chore(deps): update docker/setup-qemu-action action to v3 (#1725)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-13 14:15:18 -07:00
renovate[bot]
30ec1402a5
chore(deps): update docker/build-push-action action to v5 (#1722)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-13 14:15:05 -07:00
renovate[bot]
4bd063b8a1
chore(deps): update dependency electron to v26.2.1 (#1726)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-13 14:14:55 -07:00
renovate[bot]
a5b31e49b1
chore(deps): update docker/login-action action to v3 (#1723)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-13 14:13:36 -07:00
renovate[bot]
7392dc9d19
chore(deps): update dependency sinon to v16 (#1727)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-13 14:12:03 -07:00
renovate[bot]
220afd3e3e
chore(deps): update dependency electron to v26.2.0 (#1718)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-06 22:33:49 -07:00
LongYinan
2277c8bd2f
Merge pull request #1717 from napi-rs/renovate/actions-checkout-4.x
chore(deps): update actions/checkout action to v4
2023-09-04 16:33:42 -07:00
renovate[bot]
80186fca76
chore(deps): update actions/checkout action to v4 2023-09-04 14:34:40 +00:00
LongYinan
05b4be4d80
style: clippy fix (#1711) 2023-08-30 16:41:13 +08:00
LongYinan
fda46658f4
Merge pull request #1709 from napi-rs/renovate/electron-26.x
chore(deps): update dependency electron to v26.1.0
2023-08-28 12:51:54 +08:00