<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/node-new.git/test/node-api, branch main</title>
<subtitle>github.com: nodejs/node.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node-new.git/'/>
<entry>
<title>node-api: get Node API version used by addon</title>
<updated>2023-05-05T15:00:27+00:00</updated>
<author>
<name>Vladimir Morozov</name>
<email>vmorozov@microsoft.com</email>
</author>
<published>2023-04-07T14:40:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node-new.git/commit/?id=c542d3a1d30d3e6c22b27f9bde55656923874818'/>
<id>c542d3a1d30d3e6c22b27f9bde55656923874818</id>
<content type='text'>
PR-URL: https://github.com/nodejs/node/pull/45715
Reviewed-By: Gabriel Schulhof &lt;gabrielschulhof@gmail.com&gt;
Reviewed-By: Michael Dawson &lt;midawson@redhat.com&gt;
Reviewed-By: Chengzhong Wu &lt;legendecas@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PR-URL: https://github.com/nodejs/node/pull/45715
Reviewed-By: Gabriel Schulhof &lt;gabrielschulhof@gmail.com&gt;
Reviewed-By: Michael Dawson &lt;midawson@redhat.com&gt;
Reviewed-By: Chengzhong Wu &lt;legendecas@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>src: throw DataCloneError on transfering untransferable objects</title>
<updated>2023-05-05T11:22:42+00:00</updated>
<author>
<name>Chengzhong Wu</name>
<email>legendecas@gmail.com</email>
</author>
<published>2023-05-05T11:22:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node-new.git/commit/?id=64549731b6cfe3729cb42896ab1f8229b62ff968'/>
<id>64549731b6cfe3729cb42896ab1f8229b62ff968</id>
<content type='text'>
The HTML StructuredSerializeWithTransfer algorithm defines that when
an untransferable object is in the transfer list, a DataCloneError is
thrown.
An array buffer that is already transferred is also considered as
untransferable.

PR-URL: https://github.com/nodejs/node/pull/47604
Reviewed-By: James M Snell &lt;jasnell@gmail.com&gt;
Reviewed-By: Benjamin Gruenbaum &lt;benjamingr@gmail.com&gt;
Reviewed-By: Joyee Cheung &lt;joyeec9h3@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The HTML StructuredSerializeWithTransfer algorithm defines that when
an untransferable object is in the transfer list, a DataCloneError is
thrown.
An array buffer that is already transferred is also considered as
untransferable.

PR-URL: https://github.com/nodejs/node/pull/47604
Reviewed-By: James M Snell &lt;jasnell@gmail.com&gt;
Reviewed-By: Benjamin Gruenbaum &lt;benjamingr@gmail.com&gt;
Reviewed-By: Joyee Cheung &lt;joyeec9h3@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>node-api: deprecate napi_module_register</title>
<updated>2023-03-24T18:00:40+00:00</updated>
<author>
<name>Vladimir Morozov</name>
<email>vmoroz@users.noreply.github.com</email>
</author>
<published>2023-01-23T15:15:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node-new.git/commit/?id=5e4f5e122c06744967f539def1e51473abb5db62'/>
<id>5e4f5e122c06744967f539def1e51473abb5db62</id>
<content type='text'>
PR-URL: https://github.com/nodejs/node/pull/46319
Reviewed-By: Chengzhong Wu &lt;legendecas@gmail.com&gt;
Reviewed-By: Michael Dawson &lt;midawson@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PR-URL: https://github.com/nodejs/node/pull/46319
Reviewed-By: Chengzhong Wu &lt;legendecas@gmail.com&gt;
Reviewed-By: Michael Dawson &lt;midawson@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>node-api: verify cleanup hooks order</title>
<updated>2023-03-14T16:57:25+00:00</updated>
<author>
<name>Chengzhong Wu</name>
<email>chengzhong.wcz@alibaba-inc.com</email>
</author>
<published>2023-02-17T08:49:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node-new.git/commit/?id=b80ab31124a170369eeb15c88d9bac54d65fb91b'/>
<id>b80ab31124a170369eeb15c88d9bac54d65fb91b</id>
<content type='text'>
Cleanup hooks are called before the environment shutdown finalizer
invocations.

PR-URL: https://github.com/nodejs/node/pull/46692
Reviewed-By: Colin Ihrig &lt;cjihrig@gmail.com&gt;
Reviewed-By: James M Snell &lt;jasnell@gmail.com&gt;
Reviewed-By: Michael Dawson &lt;midawson@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Cleanup hooks are called before the environment shutdown finalizer
invocations.

PR-URL: https://github.com/nodejs/node/pull/46692
Reviewed-By: Colin Ihrig &lt;cjihrig@gmail.com&gt;
Reviewed-By: James M Snell &lt;jasnell@gmail.com&gt;
Reviewed-By: Michael Dawson &lt;midawson@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>test: add trailing commas in `test/node-api`</title>
<updated>2023-01-29T19:01:09+00:00</updated>
<author>
<name>Antoine du Hamel</name>
<email>duhamelantoine1995@gmail.com</email>
</author>
<published>2023-01-25T06:05:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node-new.git/commit/?id=d640feee85447b16af13dcd5ddaa26ede4eec826'/>
<id>d640feee85447b16af13dcd5ddaa26ede4eec826</id>
<content type='text'>
PR-URL: https://github.com/nodejs/node/pull/46384
Reviewed-By: Michael Dawson &lt;midawson@redhat.com&gt;
Reviewed-By: James M Snell &lt;jasnell@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PR-URL: https://github.com/nodejs/node/pull/46384
Reviewed-By: Michael Dawson &lt;midawson@redhat.com&gt;
Reviewed-By: James M Snell &lt;jasnell@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>process,worker: ensure code after exit() effectless</title>
<updated>2022-12-25T09:54:12+00:00</updated>
<author>
<name>ywave620</name>
<email>60539365+ywave620@users.noreply.github.com</email>
</author>
<published>2022-12-25T09:54:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node-new.git/commit/?id=8438f3b73b3928f9c64eb8298c67528cd5c2c9d6'/>
<id>8438f3b73b3928f9c64eb8298c67528cd5c2c9d6</id>
<content type='text'>
Cope with the delay(to the next function call) of
v8::Isolate::TerminateExecution()

PR-URL: https://github.com/nodejs/node/pull/45620
Reviewed-By: Anna Henningsen &lt;anna@addaleax.net&gt;
Reviewed-By: Yagiz Nizipli &lt;yagiz@nizipli.com&gt;
Reviewed-By: James M Snell &lt;jasnell@gmail.com&gt;
Reviewed-By: Colin Ihrig &lt;cjihrig@gmail.com&gt;
Reviewed-By: Minwoo Jung &lt;nodecorelab@gmail.com&gt;
Reviewed-By: Antoine du Hamel &lt;duhamelantoine1995@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Cope with the delay(to the next function call) of
v8::Isolate::TerminateExecution()

PR-URL: https://github.com/nodejs/node/pull/45620
Reviewed-By: Anna Henningsen &lt;anna@addaleax.net&gt;
Reviewed-By: Yagiz Nizipli &lt;yagiz@nizipli.com&gt;
Reviewed-By: James M Snell &lt;jasnell@gmail.com&gt;
Reviewed-By: Colin Ihrig &lt;cjihrig@gmail.com&gt;
Reviewed-By: Minwoo Jung &lt;nodecorelab@gmail.com&gt;
Reviewed-By: Antoine du Hamel &lt;duhamelantoine1995@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>node-api: handle no support for external buffers</title>
<updated>2022-11-09T18:30:43+00:00</updated>
<author>
<name>Michael Dawson</name>
<email>mdawson@devrus.com</email>
</author>
<published>2022-10-25T21:39:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node-new.git/commit/?id=09ae62b9a869ff19d634b0fd1f5a17f198cd1ae7'/>
<id>09ae62b9a869ff19d634b0fd1f5a17f198cd1ae7</id>
<content type='text'>
Refs: https://github.com/electron/electron/issues/35801
Refs: https://github.com/nodejs/abi-stable-node/issues/441

Electron recently dropped support for external
buffers. Provide a way for addon authors to:
- hide the methods to create external buffers so they can
  avoid using them if they want the broadest compatibility.
- call the methods that create external buffers at runtime
  to check if external buffers are supported and either
  use them or not based on the return code.

Signed-off-by: Michael Dawson &lt;mdawson@devrus.com&gt;

PR-URL: https://github.com/nodejs/node/pull/45181
Reviewed-By: Chengzhong Wu &lt;legendecas@gmail.com&gt;
Reviewed-By: Minwoo Jung &lt;nodecorelab@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Refs: https://github.com/electron/electron/issues/35801
Refs: https://github.com/nodejs/abi-stable-node/issues/441

Electron recently dropped support for external
buffers. Provide a way for addon authors to:
- hide the methods to create external buffers so they can
  avoid using them if they want the broadest compatibility.
- call the methods that create external buffers at runtime
  to check if external buffers are supported and either
  use them or not based on the return code.

Signed-off-by: Michael Dawson &lt;mdawson@devrus.com&gt;

PR-URL: https://github.com/nodejs/node/pull/45181
Reviewed-By: Chengzhong Wu &lt;legendecas@gmail.com&gt;
Reviewed-By: Minwoo Jung &lt;nodecorelab@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>test: use uv_sleep() where possible</title>
<updated>2022-10-27T17:13:50+00:00</updated>
<author>
<name>Santiago Gimeno</name>
<email>santiago.gimeno@gmail.com</email>
</author>
<published>2022-10-27T17:13:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node-new.git/commit/?id=09cbb66f04ced855097427b05fb6e2c93e1ad2db'/>
<id>09cbb66f04ced855097427b05fb6e2c93e1ad2db</id>
<content type='text'>
PR-URL: https://github.com/nodejs/node/pull/45124
Reviewed-By: Michaël Zasso &lt;targos@protonmail.com&gt;
Reviewed-By: Darshan Sen &lt;raisinten@gmail.com&gt;
Reviewed-By: theanarkh &lt;theratliter@gmail.com&gt;
Reviewed-By: Colin Ihrig &lt;cjihrig@gmail.com&gt;
Reviewed-By: Tobias Nießen &lt;tniessen@tnie.de&gt;
Reviewed-By: James M Snell &lt;jasnell@gmail.com&gt;
Reviewed-By: Luigi Pinca &lt;luigipinca@gmail.com&gt;
Reviewed-By: Yagiz Nizipli &lt;yagiz@nizipli.com&gt;
Reviewed-By: Daeyeon Jeong &lt;daeyeon.dev@gmail.com&gt;
Reviewed-By: Juan José Arboleda &lt;soyjuanarbol@gmail.com&gt;
Reviewed-By: Gerhard Stöbich &lt;deb2001-github@yahoo.de&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PR-URL: https://github.com/nodejs/node/pull/45124
Reviewed-By: Michaël Zasso &lt;targos@protonmail.com&gt;
Reviewed-By: Darshan Sen &lt;raisinten@gmail.com&gt;
Reviewed-By: theanarkh &lt;theratliter@gmail.com&gt;
Reviewed-By: Colin Ihrig &lt;cjihrig@gmail.com&gt;
Reviewed-By: Tobias Nießen &lt;tniessen@tnie.de&gt;
Reviewed-By: James M Snell &lt;jasnell@gmail.com&gt;
Reviewed-By: Luigi Pinca &lt;luigipinca@gmail.com&gt;
Reviewed-By: Yagiz Nizipli &lt;yagiz@nizipli.com&gt;
Reviewed-By: Daeyeon Jeong &lt;daeyeon.dev@gmail.com&gt;
Reviewed-By: Juan José Arboleda &lt;soyjuanarbol@gmail.com&gt;
Reviewed-By: Gerhard Stöbich &lt;deb2001-github@yahoo.de&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>src: disambiguate terms used to refer to builtins and addons</title>
<updated>2022-08-08T17:36:49+00:00</updated>
<author>
<name>Joyee Cheung</name>
<email>joyeec9h3@gmail.com</email>
</author>
<published>2022-08-04T18:32:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node-new.git/commit/?id=472edc775d683aed2d9ed39ca7cf381f3e7e3ce2'/>
<id>472edc775d683aed2d9ed39ca7cf381f3e7e3ce2</id>
<content type='text'>
The term "native module" dates back to some of the oldest code
in the code base. Within the context of Node.js core it usually
refers to modules that are native to Node.js (e.g. fs, http),
but it can cause confusion for people who don't work on this
part of the code base, as "native module" can also refer to
native addons - which is even the case in some of the API
docs and error messages.

This patch tries to make the usage of these terms more consistent.
Now within the context of Node.js core:

- JavaScript scripts that are built-in to Node.js are now referred
  to as "built-in(s)". If they are available as modules,
  they can also be referred to as "built-in module(s)".
- Dynamically-linked shared objects that are loaded into
  the Node.js processes are referred to as "addons".

We will try to avoid using the term "native modules" because it could
be ambiguous.

Changes in this patch:

File names:
- node_native_module.h -&gt; node_builtins.h,
- node_native_module.cc -&gt; node_builtins.cc

C++ binding names:
- `native_module` -&gt; `builtins`

`node::Environment`:
- `native_modules_without_cache` -&gt; `builtins_without_cache`
- `native_modules_with_cache` -&gt; `builtins_with_cache`
- `native_modules_in_snapshot` -&gt; `builtins_in_cache`
- `native_module_require` -&gt; `builtin_module_require`

`node::EnvSerializeInfo`:
- `native_modules` -&gt; `builtins

`node::native_module::NativeModuleLoader`:
- `native_module` namespace -&gt; `builtins` namespace
- `NativeModuleLoader` -&gt; `BuiltinLoader`
- `NativeModuleRecordMap` -&gt; `BuiltinSourceMap`
- `NativeModuleCacheMap` -&gt; `BuiltinCodeCacheMap`
- `ModuleIds` -&gt; `BuiltinIds`
- `ModuleCategories` -&gt; `BuiltinCategories`
- `LoadBuiltinModuleSource` -&gt; `LoadBuiltinSource`

`loader.js`:
- `NativeModule` -&gt; `BuiltinModule` (the `NativeModule` name used in
  `process.moduleLoadList` is kept for compatibility)

And other clarifications in the documentation and comments.

PR-URL: https://github.com/nodejs/node/pull/44135
Fixes: https://github.com/nodejs/node/issues/44036
Reviewed-By: Jacob Smith &lt;jacob@frende.me&gt;
Reviewed-By: Matteo Collina &lt;matteo.collina@gmail.com&gt;
Reviewed-By: Michael Dawson &lt;midawson@redhat.com&gt;
Reviewed-By: Richard Lau &lt;rlau@redhat.com&gt;
Reviewed-By: Jiawen Geng &lt;technicalcute@gmail.com&gt;
Reviewed-By: Chengzhong Wu &lt;legendecas@gmail.com&gt;
Reviewed-By: Mohammed Keyvanzadeh &lt;mohammadkeyvanzade94@gmail.com&gt;
Reviewed-By: Tobias Nießen &lt;tniessen@tnie.de&gt;
Reviewed-By: Jan Krems &lt;jan.krems@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The term "native module" dates back to some of the oldest code
in the code base. Within the context of Node.js core it usually
refers to modules that are native to Node.js (e.g. fs, http),
but it can cause confusion for people who don't work on this
part of the code base, as "native module" can also refer to
native addons - which is even the case in some of the API
docs and error messages.

This patch tries to make the usage of these terms more consistent.
Now within the context of Node.js core:

- JavaScript scripts that are built-in to Node.js are now referred
  to as "built-in(s)". If they are available as modules,
  they can also be referred to as "built-in module(s)".
- Dynamically-linked shared objects that are loaded into
  the Node.js processes are referred to as "addons".

We will try to avoid using the term "native modules" because it could
be ambiguous.

Changes in this patch:

File names:
- node_native_module.h -&gt; node_builtins.h,
- node_native_module.cc -&gt; node_builtins.cc

C++ binding names:
- `native_module` -&gt; `builtins`

`node::Environment`:
- `native_modules_without_cache` -&gt; `builtins_without_cache`
- `native_modules_with_cache` -&gt; `builtins_with_cache`
- `native_modules_in_snapshot` -&gt; `builtins_in_cache`
- `native_module_require` -&gt; `builtin_module_require`

`node::EnvSerializeInfo`:
- `native_modules` -&gt; `builtins

`node::native_module::NativeModuleLoader`:
- `native_module` namespace -&gt; `builtins` namespace
- `NativeModuleLoader` -&gt; `BuiltinLoader`
- `NativeModuleRecordMap` -&gt; `BuiltinSourceMap`
- `NativeModuleCacheMap` -&gt; `BuiltinCodeCacheMap`
- `ModuleIds` -&gt; `BuiltinIds`
- `ModuleCategories` -&gt; `BuiltinCategories`
- `LoadBuiltinModuleSource` -&gt; `LoadBuiltinSource`

`loader.js`:
- `NativeModule` -&gt; `BuiltinModule` (the `NativeModule` name used in
  `process.moduleLoadList` is kept for compatibility)

And other clarifications in the documentation and comments.

PR-URL: https://github.com/nodejs/node/pull/44135
Fixes: https://github.com/nodejs/node/issues/44036
Reviewed-By: Jacob Smith &lt;jacob@frende.me&gt;
Reviewed-By: Matteo Collina &lt;matteo.collina@gmail.com&gt;
Reviewed-By: Michael Dawson &lt;midawson@redhat.com&gt;
Reviewed-By: Richard Lau &lt;rlau@redhat.com&gt;
Reviewed-By: Jiawen Geng &lt;technicalcute@gmail.com&gt;
Reviewed-By: Chengzhong Wu &lt;legendecas@gmail.com&gt;
Reviewed-By: Mohammed Keyvanzadeh &lt;mohammadkeyvanzade94@gmail.com&gt;
Reviewed-By: Tobias Nießen &lt;tniessen@tnie.de&gt;
Reviewed-By: Jan Krems &lt;jan.krems@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>test: mark flaky tests on smartos</title>
<updated>2022-06-28T17:06:48+00:00</updated>
<author>
<name>Feng Yu</name>
<email>F3n67u@outlook.com</email>
</author>
<published>2022-06-28T17:06:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node-new.git/commit/?id=ea9943158654bca9432a9a8b53abc97f1ca84bf7'/>
<id>ea9943158654bca9432a9a8b53abc97f1ca84bf7</id>
<content type='text'>
PR-URL: https://github.com/nodejs/node/pull/43596
Refs: https://github.com/nodejs/node/issues/43457
Reviewed-By: Tobias Nießen &lt;tniessen@tnie.de&gt;
Reviewed-By: Filip Skokan &lt;panva.ip@gmail.com&gt;
Reviewed-By: Ben Noordhuis &lt;info@bnoordhuis.nl&gt;
Reviewed-By: Richard Lau &lt;rlau@redhat.com&gt;
Reviewed-By: Darshan Sen &lt;raisinten@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PR-URL: https://github.com/nodejs/node/pull/43596
Refs: https://github.com/nodejs/node/issues/43457
Reviewed-By: Tobias Nießen &lt;tniessen@tnie.de&gt;
Reviewed-By: Filip Skokan &lt;panva.ip@gmail.com&gt;
Reviewed-By: Ben Noordhuis &lt;info@bnoordhuis.nl&gt;
Reviewed-By: Richard Lau &lt;rlau@redhat.com&gt;
Reviewed-By: Darshan Sen &lt;raisinten@gmail.com&gt;</pre>
</div>
</content>
</entry>
</feed>
