Commit graph

2525 commits

Author SHA1 Message Date
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
renovate[bot]
f69d0b43c6
chore(deps): update dependency electron to v26.1.0 2023-08-25 14:59:20 +00:00
LongYinan
b235cea33f
Merge pull request #1701 from yoogoc/main
throw `is not a valid identifier` when generating getters and setters
2023-08-25 22:58:44 +08:00
LongYinan
ee58c5c84d
Merge pull request #1708 from napi-rs/renovate/yarn-monorepo
chore(deps): update yarn to v3.6.3
2023-08-24 17:29:05 +08:00
renovate[bot]
f1d016a914
chore(deps): update yarn to v3.6.3 2023-08-23 23:00:30 +00:00
renovate[bot]
f97af3852d
chore(deps): update yarn to v3.6.2 (#1702)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-17 21:20:09 +00:00
yoogo
4259e85e0e fix(backend): attribute of a struct marked as #[napi(constructor)] contain Rust keywords, causing to throw is not a valid identifier when generating getters and setters 2023-08-17 20:48:54 +08:00
LongYinan
b1dd613243
Release independent packages
napi@2.13.3
2023-08-16 15:24:33 +08:00
LongYinan
0cd8dd2c46
Merge pull request #1699 from napi-rs/fix-android-ranlib
fix(cli): set RANLIB while building android targets
2023-08-16 12:57:24 +08:00
LongYinan
5d0240e8ad
fix(cli): set RANLIB while building android targets 2023-08-16 12:36:22 +08:00
LongYinan
00ac5b1da7
Merge pull request #1697 from napi-rs/renovate/electron-26.x
chore(deps): update dependency electron to v26
2023-08-15 11:33:00 +08:00