Commit a5294fa
updated napi crate from v2 to v3 (#2228)
@sxlijin
<!-- ELLIPSIS_HIDDEN -->
----
> [!IMPORTANT]
> Update `napi` crate from v2 to v3, adjusting dependencies and code to
accommodate API changes.
>
> - **Dependencies**:
> - Update `napi` to version `3.1.3` and `napi-derive` to `3.1.1` in
`Cargo.toml`.
> - Update `@napi-rs/cli` to `3.0.4` in `package.json`.
> - **Code Changes**:
> - Replace `JsUnknown` with `Unknown` in `parse_ts_types.rs`,
`log_collector.rs`, and `request.rs`.
> - Update function signatures to use `Function` and `FunctionRef` for
callbacks in `runtime.rs` and `function_result_stream.rs`.
> - Modify `serde_value_to_js` to return `Unknown` instead of
`JsUnknown` in `log_collector.rs`.
> - Use `napi_derive::module_init` instead of `napi::module_init` in
`lib.rs`.
> - **Miscellaneous**:
> - Add `compat-mode` feature to `napi` in `Cargo.toml`.
> - Update checksum values in `Cargo.lock` for updated dependencies.
>
> <sup>This description was created by </sup>[<img alt="Ellipsis"
src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=BoundaryML%2Fbaml&utm_source=github&utm_medium=referral)<sup>
for f2bc26c. You can
[customize](https://app.ellipsis.dev/BoundaryML/settings/summaries) this
summary. It will automatically update as commits are pushed.</sup>
<!-- ELLIPSIS_HIDDEN -->
---------
Co-authored-by: Antonio Sarosi <sarosiantonio@gmail.com>1 parent 21f7d62 commit a5294fa
16 files changed
Lines changed: 945 additions & 827 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
| 256 | + | |
257 | 257 | | |
258 | | - | |
| 258 | + | |
259 | 259 | | |
260 | | - | |
| 260 | + | |
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
268 | | - | |
| 268 | + | |
269 | 269 | | |
270 | | - | |
271 | | - | |
272 | | - | |
| 270 | + | |
273 | 271 | | |
| 272 | + | |
0 commit comments