nodejs / node

Node.js JavaScript runtime ✨🐢🚀✨
https://nodejs.org
Other
108.11k stars 29.86k forks source link

V8 13.0 Deprecations #55452

Open RedYetiDev opened 1 month ago

RedYetiDev commented 1 month ago

Another PR is updated V8 to 13.0, so I compiled a list of deprecations from that version onward. While they don't need to be fixed immediately, it's important to know they exist.

richardlau commented 1 month ago
* [ ]  **`v8::SnapshotCreator::SnapshotCreator(v8::Isolate*, const intptr_t*, const v8::StartupData*, bool)`**

  * **Reason**: Deprecated in favor of a version that passes `CreateParams`.
  * **Action**: Use the version that passes `CreateParams`.
  * **Details**:
    ```
    ‘v8::SnapshotCreator::SnapshotCreator(v8::Isolate*, const intptr_t*, const v8::StartupData*, bool)’ is deprecated: 
    Use the version that passes CreateParams instead. 
    ```

Refs: https://github.com/nodejs/node/pull/55337

malinjawi commented 1 month ago

hey @RedYetiDev I am gonna try to have a crack at solving one of these tasks. I am new to node.js and looking forward to making my first contribution.

RedYetiDev commented 1 month ago

I am new to node.js and looking forward to making my first contribution.

Be my guest 😃. By the way, for issues specifically labeled to help get you started, see issues with the "good first issue" label.

ronag commented 1 month ago

template struct v8::FastApiTypedArray

Regarding this one. Both us (me) and Deno has commented on the Chromium issue tracker that we believe this deprecation is problematic. IMHO we should try to stick with it while it still works even if deprecated. The alternative is significantly slower (at least the way we compile V8).

Refs: https://issues.chromium.org/issues/356158110 Refs: https://x.com/rough__sea/status/1819296459071598668 Refs: https://github.com/v8/node/pull/197 Refs: https://github.com/nodejs/node/pull/54087 Refs: https://github.com/nodejs/node/pull/54103

targos commented 2 weeks ago

@ronag FastApiTypedArray has just been removed from upstream: https://chromium-review.googlesource.com/c/v8/v8/+/5982984

targos commented 2 weeks ago

IIUC we should use this instead: https://chromium-review.googlesource.com/c/v8/v8/+/5915615