node-linux-arm64 18.12.1 → 18.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -107,6 +107,18 @@ The externally maintained libraries used by Node.js are:
107
107
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
108
108
  """
109
109
 
110
+ - ittapi, located at deps/v8/third_party/ittapi, is licensed as follows:
111
+ """
112
+ Copyright (c) 2019 Intel Corporation. All rights reserved.
113
+
114
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
115
+
116
+ 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
117
+ 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
118
+ 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
119
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
120
+ """
121
+
110
122
  - ICU, located at deps/icu-small, is licensed as follows:
111
123
  """
112
124
  UNICODE, INC. LICENSE AGREEMENT - DATA FILES AND SOFTWARE
@@ -693,10 +705,6 @@ The externally maintained libraries used by Node.js are:
693
705
 
694
706
  - pthread-fixes.c, copyright Google Inc. and Sony Mobile Communications AB.
695
707
  Three clause BSD license.
696
-
697
- - android-ifaddrs.h, android-ifaddrs.c, copyright Berkeley Software Design
698
- Inc, Kenneth MacKay and Emergya (Cloud4all, FP7/2007-2013, grant agreement
699
- n° 289016). Three clause BSD license.
700
708
  """
701
709
 
702
710
  - llhttp, located at deps/llhttp, is licensed as follows:
@@ -984,8 +992,7 @@ The externally maintained libraries used by Node.js are:
984
992
  - Strongtalk assembler, the basis of the files assembler-arm-inl.h,
985
993
  assembler-arm.cc, assembler-arm.h, assembler-ia32-inl.h,
986
994
  assembler-ia32.cc, assembler-ia32.h, assembler-x64-inl.h,
987
- assembler-x64.cc, assembler-x64.h, assembler-mips-inl.h,
988
- assembler-mips.cc, assembler-mips.h, assembler.cc and assembler.h.
995
+ assembler-x64.cc, assembler-x64.h, assembler.cc and assembler.h.
989
996
  This code is copyrighted by Sun Microsystems Inc. and released
990
997
  under a 3-clause BSD license.
991
998
 
@@ -1045,9 +1052,9 @@ The externally maintained libraries used by Node.js are:
1045
1052
  - zlib, located at deps/zlib, is licensed as follows:
1046
1053
  """
1047
1054
  zlib.h -- interface of the 'zlib' general purpose compression library
1048
- version 1.2.11, January 15th, 2017
1055
+ version 1.2.13, October 13th, 2022
1049
1056
 
1050
- Copyright (C) 1995-2017 Jean-loup Gailly and Mark Adler
1057
+ Copyright (C) 1995-2022 Jean-loup Gailly and Mark Adler
1051
1058
 
1052
1059
  This software is provided 'as-is', without any express or implied
1053
1060
  warranty. In no event will the authors be held liable for any damages
package/README.md CHANGED
@@ -184,6 +184,8 @@ For information about the governance of the Node.js project, see
184
184
  **Matteo Collina** <<matteo.collina@gmail.com>> (he/him)
185
185
  * [mhdawson](https://github.com/mhdawson) -
186
186
  **Michael Dawson** <<midawson@redhat.com>> (he/him)
187
+ * [RafaelGSS](https://github.com/RafaelGSS) -
188
+ **Rafael Gonzaga** <<rafael.nunu@hotmail.com>> (he/him)
187
189
  * [RaisinTen](https://github.com/RaisinTen) -
188
190
  **Darshan Sen** <<raisinten@gmail.com>> (he/him)
189
191
  * [richardlau](https://github.com/richardlau) -
@@ -266,12 +268,14 @@ For information about the governance of the Node.js project, see
266
268
  **Anna Henningsen** <<anna@addaleax.net>> (she/her)
267
269
  * [aduh95](https://github.com/aduh95) -
268
270
  **Antoine du Hamel** <<duhamelantoine1995@gmail.com>> (he/him)
271
+ * [anonrig](https://github.com/anonrig) -
272
+ **Yagiz Nizipli** <<yagiz@nizipli.com>> (he/him)
269
273
  * [antsmartian](https://github.com/antsmartian) -
270
274
  **Anto Aravinth** <<anto.aravinth.cse@gmail.com>> (he/him)
271
275
  * [apapirovski](https://github.com/apapirovski) -
272
276
  **Anatoli Papirovski** <<apapirovski@mac.com>> (he/him)
273
277
  * [AshCripps](https://github.com/AshCripps) -
274
- **Ash Cripps** <<acripps@redhat.com>>
278
+ **Ash Cripps** <<email@ashleycripps.co.uk>>
275
279
  * [Ayase-252](https://github.com/Ayase-252) -
276
280
  **Qingyu Deng** <<i@ayase-lab.com>>
277
281
  * [bcoe](https://github.com/bcoe) -
@@ -310,8 +314,6 @@ For information about the governance of the Node.js project, see
310
314
  **David Carlier** <<devnexen@gmail.com>>
311
315
  * [devsnek](https://github.com/devsnek) -
312
316
  **Gus Caplan** <<me@gus.host>> (they/them)
313
- * [dmabupt](https://github.com/dmabupt) -
314
- **Xu Meng** <<dmabupt@gmail.com>> (he/him)
315
317
  * [edsadr](https://github.com/edsadr) -
316
318
  **Adrian Estrada** <<edsadr@gmail.com>> (he/him)
317
319
  * [erickwendel](https://github.com/erickwendel) -
@@ -370,6 +372,8 @@ For information about the governance of the Node.js project, see
370
372
  **LiviaMedeiros** <<livia@cirno.name>>
371
373
  * [lpinca](https://github.com/lpinca) -
372
374
  **Luigi Pinca** <<luigipinca@gmail.com>> (he/him)
375
+ * [lukekarrys](https://github.com/lukekarrys) -
376
+ **Luke Karrys** <<luke@lukekarrys.com>> (he/him)
373
377
  * [Lxxyx](https://github.com/Lxxyx) -
374
378
  **Zijian Liu** <<lxxyxzj@gmail.com>> (he/him)
375
379
  * [marsonya](https://github.com/marsonya) -
@@ -396,8 +400,6 @@ For information about the governance of the Node.js project, see
396
400
  **Ouyang Yadong** <<oyydoibh@gmail.com>> (he/him)
397
401
  * [panva](https://github.com/panva) -
398
402
  **Filip Skokan** <<panva.ip@gmail.com>>
399
- * [PoojaDurgad](https://github.com/PoojaDurgad) -
400
- **Pooja D P** <<Pooja.D.P@ibm.com>> (she/her)
401
403
  * [puzpuzpuz](https://github.com/puzpuzpuz) -
402
404
  **Andrey Pechkurov** <<apechkurov@gmail.com>> (he/him)
403
405
  * [Qard](https://github.com/Qard) -
@@ -425,7 +427,7 @@ For information about the governance of the Node.js project, see
425
427
  * [ShogunPanda](https://github.com/ShogunPanda) -
426
428
  **Paolo Insogna** <<paolo@cowtech.it>> (he/him)
427
429
  * [srl295](https://github.com/srl295) -
428
- **Steven R Loomis** <<srloomis@us.ibm.com>>
430
+ **Steven R Loomis** <<srl295@gmail.com>>
429
431
  * [starkwang](https://github.com/starkwang) -
430
432
  **Weijia Wang** <<starkwang@126.com>>
431
433
  * [sxa](https://github.com/sxa) -
@@ -444,7 +446,7 @@ For information about the governance of the Node.js project, see
444
446
  **Rich Trott** <<rtrott@gmail.com>> (he/him)
445
447
  * [vdeturckheim](https://github.com/vdeturckheim) -
446
448
  **Vladimir de Turckheim** <<vlad2t@hotmail.com>> (he/him)
447
- * [VoltrexMaster](https://github.com/VoltrexMaster) -
449
+ * [VoltrexKeyva](https://github.com/VoltrexKeyva) -
448
450
  **Mohammed Keyvanzadeh** <<mohammadkeyvanzade94@gmail.com>> (he/him)
449
451
  * [watilde](https://github.com/watilde) -
450
452
  **Daijiro Wachi** <<daijiro.wachi@gmail.com>> (he/him)
@@ -494,6 +496,8 @@ For information about the governance of the Node.js project, see
494
496
  **Jamie Davis** <<davisjam@vt.edu>> (he/him)
495
497
  * [digitalinfinity](https://github.com/digitalinfinity) -
496
498
  **Hitesh Kanwathirtha** <<digitalinfinity@gmail.com>> (he/him)
499
+ * [dmabupt](https://github.com/dmabupt) -
500
+ **Xu Meng** <<dmabupt@gmail.com>> (he/him)
497
501
  * [dnlup](https://github.com/dnlup)
498
502
  **dnlup** <<dnlup.dev@gmail.com>>
499
503
  * [eljefedelrodeodeljefe](https://github.com/eljefedelrodeodeljefe) -
@@ -590,6 +594,8 @@ For information about the governance of the Node.js project, see
590
594
  **Bert Belder** <<bertbelder@gmail.com>>
591
595
  * [pmq20](https://github.com/pmq20) -
592
596
  **Minqi Pan** <<pmq2001@gmail.com>>
597
+ * [PoojaDurgad](https://github.com/PoojaDurgad) -
598
+ **Pooja D P** <<Pooja.D.P@ibm.com>> (she/her)
593
599
  * [princejwesley](https://github.com/princejwesley) -
594
600
  **Prince John Wesley** <<princejohnwesley@gmail.com>>
595
601
  * [psmarshall](https://github.com/psmarshall) -
@@ -662,6 +668,8 @@ maintaining the Node.js project.
662
668
 
663
669
  * [Ayase-252](https://github.com/Ayase-252) -
664
670
  **Qingyu Deng** <<i@ayase-lab.com>>
671
+ * [bmuenzenmeyer](https://github.com/bmuenzenmeyer) -
672
+ **Brian Muenzenmeyer** <<brian.muenzenmeyer@gmail.com>> (he/him)
665
673
  * [daeyeon](https://github.com/daeyeon) -
666
674
  **Daeyeon Jeong** <<daeyeon.dev@gmail.com>> (he/him)
667
675
  * [F3n67u](https://github.com/F3n67u) -
@@ -684,9 +692,12 @@ maintaining the Node.js project.
684
692
  **Pooja Durgad** <<Pooja.D.P@ibm.com>>
685
693
  * [RaisinTen](https://github.com/RaisinTen) -
686
694
  **Darshan Sen** <<raisinten@gmail.com>>
687
- * [VoltrexMaster](https://github.com/VoltrexMaster) -
695
+ * [VoltrexKeyva](https://github.com/VoltrexKeyva) -
688
696
  **Mohammed Keyvanzadeh** <<mohammadkeyvanzade94@gmail.com>> (he/him)
689
697
 
698
+ Triagers follow the [Triage Guide](./doc/contributing/issues.md#triaging-a-bug-report) when
699
+ responding to new issues.
700
+
690
701
  ### Release keys
691
702
 
692
703
  Primary GPG keys for Node.js Releasers (some Releasers sign with subkeys):
@@ -779,6 +790,12 @@ releases on a rotation basis as outlined in the
779
790
  * [vdeturckheim](https://github.com/vdeturckheim) -
780
791
  **Vladimir de Turckheim** <<vlad2t@hotmail.com>> (he/him)
781
792
  * NearForm
793
+ * [RafaelGSS](https://github.com/RafaelGSS) -
794
+ **Rafael Gonzaga** <<rafael.nunu@hotmail.com>> (he/him)
795
+ * NodeSource
796
+ * [juanarbol](https://github.com/juanarbol) -
797
+ **Juan José Arboleda** <<soyjuanarbol@gmail.com>> (he/him)
798
+ * Platformatic
782
799
  * [mcollina](https://github.com/mcollina) -
783
800
  **Matteo Collina** <<matteo.collina@gmail.com>> (he/him)
784
801
  * Red Hat and IBM
package/bin/node CHANGED
Binary file
@@ -36,7 +36,7 @@
36
36
 
37
37
  # Reset this number to 0 on major V8 upgrades.
38
38
  # Increment by one for each non-official patch applied to deps/v8.
39
- 'v8_embedder_string': '-node.12',
39
+ 'v8_embedder_string': '-node.21',
40
40
 
41
41
  ##### V8 defaults for Node.js #####
42
42
 
@@ -283,11 +283,7 @@
283
283
  '-std:c++17'
284
284
  ],
285
285
  'BufferSecurityCheck': 'true',
286
- 'target_conditions': [
287
- ['_toolset=="target"', {
288
- 'DebugInformationFormat': 1 # /Z7 embed info in .obj files
289
- }],
290
- ],
286
+ 'DebugInformationFormat': 1, # /Z7 embed info in .obj files
291
287
  'ExceptionHandling': 0, # /EHsc
292
288
  'MultiProcessorCompilation': 'true',
293
289
  'StringPooling': 'true', # pool string literals
@@ -1,6 +1,7 @@
1
1
  # Do not edit. Generated by the configure script.
2
2
  { 'target_defaults': {'cflags': ['-msign-return-address=all'], 'default_configuration': 'Release', 'defines': ['NODE_OPENSSL_CONF_NAME=nodejs_conf', 'NODE_OPENSSL_HAS_QUIC'], 'include_dirs': [], 'libraries': []},
3
- 'variables': { 'asan': 0,
3
+ 'variables': { 'arm_fpu': 'neon',
4
+ 'asan': 0,
4
5
  'coverage': 'false',
5
6
  'dcheck_always_on': 0,
6
7
  'debug_nghttp2': 'false',
@@ -12,19 +13,21 @@
12
13
  'force_dynamic_crt': 0,
13
14
  'gas_version': '2.30',
14
15
  'host_arch': 'arm64',
15
- 'icu_data_in': '../../deps/icu-tmp/icudt71l.dat',
16
+ 'icu_data_in': '../../deps/icu-tmp/icudt72l.dat',
16
17
  'icu_endianness': 'l',
17
18
  'icu_gyp_path': 'tools/icu/icu-generic.gyp',
18
19
  'icu_path': 'deps/icu-small',
19
20
  'icu_small': 'false',
20
- 'icu_ver_major': '71',
21
+ 'icu_ver_major': '72',
21
22
  'is_debug': 0,
22
23
  'libdir': 'lib',
23
24
  'llvm_version': '0.0',
24
25
  'napi_build_version': '8',
26
+ 'node_builtin_shareable_builtins': ['deps/cjs-module-lexer/lexer.js', 'deps/cjs-module-lexer/dist/lexer.js', 'deps/undici/undici.js'],
25
27
  'node_byteorder': 'little',
26
28
  'node_debug_lib': 'false',
27
29
  'node_enable_d8': 'false',
30
+ 'node_enable_v8_vtunejit': 'false',
28
31
  'node_fipsinstall': 'false',
29
32
  'node_install_corepack': 'true',
30
33
  'node_install_npm': 'true',
@@ -123,6 +126,7 @@
123
126
  'lib/internal/error_serdes.js',
124
127
  'lib/internal/errors.js',
125
128
  'lib/internal/event_target.js',
129
+ 'lib/internal/file.js',
126
130
  'lib/internal/fixed_queue.js',
127
131
  'lib/internal/freelist.js',
128
132
  'lib/internal/freeze_intrinsics.js',
@@ -131,6 +135,7 @@
131
135
  'lib/internal/fs/dir.js',
132
136
  'lib/internal/fs/promises.js',
133
137
  'lib/internal/fs/read_file_context.js',
138
+ 'lib/internal/fs/recursive_watch.js',
134
139
  'lib/internal/fs/rimraf.js',
135
140
  'lib/internal/fs/streams.js',
136
141
  'lib/internal/fs/sync_write_stream.js',
@@ -160,6 +165,7 @@
160
165
  'lib/internal/main/test_runner.js',
161
166
  'lib/internal/main/watch_mode.js',
162
167
  'lib/internal/main/worker_thread.js',
168
+ 'lib/internal/mime.js',
163
169
  'lib/internal/modules/cjs/helpers.js',
164
170
  'lib/internal/modules/cjs/loader.js',
165
171
  'lib/internal/modules/esm/assert.js',
@@ -246,7 +252,11 @@
246
252
  'lib/internal/test/binding.js',
247
253
  'lib/internal/test/transfer.js',
248
254
  'lib/internal/test_runner/harness.js',
255
+ 'lib/internal/test_runner/mock.js',
249
256
  'lib/internal/test_runner/runner.js',
257
+ 'lib/internal/test_runner/tap_checker.js',
258
+ 'lib/internal/test_runner/tap_lexer.js',
259
+ 'lib/internal/test_runner/tap_parser.js',
250
260
  'lib/internal/test_runner/tap_stream.js',
251
261
  'lib/internal/test_runner/test.js',
252
262
  'lib/internal/test_runner/utils.js',
@@ -270,6 +280,7 @@
270
280
  'lib/internal/v8_prof_polyfill.js',
271
281
  'lib/internal/v8_prof_processor.js',
272
282
  'lib/internal/validators.js',
283
+ 'lib/internal/vm.js',
273
284
  'lib/internal/vm/module.js',
274
285
  'lib/internal/wasm_web_api.js',
275
286
  'lib/internal/watch_mode/files_watcher.js',
@@ -401,6 +401,7 @@ NAPI_EXTERN napi_status NAPI_CDECL napi_create_arraybuffer(napi_env env,
401
401
  size_t byte_length,
402
402
  void** data,
403
403
  napi_value* result);
404
+ #ifndef NODE_API_NO_EXTERNAL_BUFFERS_ALLOWED
404
405
  NAPI_EXTERN napi_status NAPI_CDECL
405
406
  napi_create_external_arraybuffer(napi_env env,
406
407
  void* external_data,
@@ -408,6 +409,7 @@ napi_create_external_arraybuffer(napi_env env,
408
409
  napi_finalize finalize_cb,
409
410
  void* finalize_hint,
410
411
  napi_value* result);
412
+ #endif // NODE_API_NO_EXTERNAL_BUFFERS_ALLOWED
411
413
  NAPI_EXTERN napi_status NAPI_CDECL napi_get_arraybuffer_info(
412
414
  napi_env env, napi_value arraybuffer, void** data, size_t* byte_length);
413
415
  NAPI_EXTERN napi_status NAPI_CDECL napi_is_typedarray(napi_env env,
@@ -98,7 +98,8 @@ typedef enum {
98
98
  napi_date_expected,
99
99
  napi_arraybuffer_expected,
100
100
  napi_detachable_arraybuffer_expected,
101
- napi_would_deadlock // unused
101
+ napi_would_deadlock, // unused
102
+ napi_no_external_buffers_allowed
102
103
  } napi_status;
103
104
  // Note: when adding a new enum value to `napi_status`, please also update
104
105
  // * `const int last_status` in the definition of `napi_get_last_error_info()'
@@ -228,6 +228,8 @@ class MultiIsolatePlatform;
228
228
  class InitializationResultImpl;
229
229
 
230
230
  namespace ProcessFlags {
231
+ // TODO(addaleax): Switch to uint32_t to match std::atomic<uint32_t>
232
+ // init_process_flags in node.cc
231
233
  enum Flags : uint64_t {
232
234
  kNoFlags = 0,
233
235
  // Enable stdio inheritance, which is disabled by default.
@@ -153,6 +153,7 @@ NAPI_EXTERN napi_status NAPI_CDECL napi_create_buffer(napi_env env,
153
153
  size_t length,
154
154
  void** data,
155
155
  napi_value* result);
156
+ #ifndef NODE_API_NO_EXTERNAL_BUFFERS_ALLOWED
156
157
  NAPI_EXTERN napi_status NAPI_CDECL
157
158
  napi_create_external_buffer(napi_env env,
158
159
  size_t length,
@@ -160,6 +161,7 @@ napi_create_external_buffer(napi_env env,
160
161
  napi_finalize finalize_cb,
161
162
  void* finalize_hint,
162
163
  napi_value* result);
164
+ #endif // NODE_API_NO_EXTERNAL_BUFFERS_ALLOWED
163
165
  NAPI_EXTERN napi_status NAPI_CDECL napi_create_buffer_copy(napi_env env,
164
166
  size_t length,
165
167
  const void* data,
@@ -206,11 +208,11 @@ napi_get_uv_event_loop(napi_env env, struct uv_loop_s** loop);
206
208
  NAPI_EXTERN napi_status NAPI_CDECL napi_fatal_exception(napi_env env,
207
209
  napi_value err);
208
210
 
209
- NAPI_EXTERN napi_status NAPI_CDECL napi_add_env_cleanup_hook(
210
- napi_env env, void(NAPI_CDECL* fun)(void* arg), void* arg);
211
+ NAPI_EXTERN napi_status NAPI_CDECL
212
+ napi_add_env_cleanup_hook(napi_env env, napi_cleanup_hook fun, void* arg);
211
213
 
212
- NAPI_EXTERN napi_status NAPI_CDECL napi_remove_env_cleanup_hook(
213
- napi_env env, void(NAPI_CDECL* fun)(void* arg), void* arg);
214
+ NAPI_EXTERN napi_status NAPI_CDECL
215
+ napi_remove_env_cleanup_hook(napi_env env, napi_cleanup_hook fun, void* arg);
214
216
 
215
217
  NAPI_EXTERN napi_status NAPI_CDECL
216
218
  napi_open_callback_scope(napi_env env,
@@ -6,6 +6,11 @@
6
6
  typedef struct napi_callback_scope__* napi_callback_scope;
7
7
  typedef struct napi_async_context__* napi_async_context;
8
8
  typedef struct napi_async_work__* napi_async_work;
9
+
10
+ #if NAPI_VERSION >= 3
11
+ typedef void(NAPI_CDECL* napi_cleanup_hook)(void* arg);
12
+ #endif // NAPI_VERSION >= 3
13
+
9
14
  #if NAPI_VERSION >= 4
10
15
  typedef struct napi_threadsafe_function__* napi_threadsafe_function;
11
16
  #endif // NAPI_VERSION >= 4
@@ -23,8 +23,8 @@
23
23
  #define SRC_NODE_VERSION_H_
24
24
 
25
25
  #define NODE_MAJOR_VERSION 18
26
- #define NODE_MINOR_VERSION 12
27
- #define NODE_PATCH_VERSION 1
26
+ #define NODE_MINOR_VERSION 13
27
+ #define NODE_PATCH_VERSION 0
28
28
 
29
29
  #define NODE_VERSION_IS_LTS 1
30
30
  #define NODE_VERSION_LTS_CODENAME "Hydrogen"
@@ -31,8 +31,8 @@
31
31
  */
32
32
 
33
33
  #define UV_VERSION_MAJOR 1
34
- #define UV_VERSION_MINOR 43
35
- #define UV_VERSION_PATCH 0
34
+ #define UV_VERSION_MINOR 44
35
+ #define UV_VERSION_PATCH 2
36
36
  #define UV_VERSION_IS_RELEASE 1
37
37
  #define UV_VERSION_SUFFIX ""
38
38
 
@@ -263,21 +263,14 @@ typedef union {
263
263
  } unused_; /* TODO: retained for ABI compatibility; remove me in v2.x. */
264
264
  } uv_cond_t;
265
265
 
266
- typedef union {
267
- struct {
268
- unsigned int num_readers_;
269
- CRITICAL_SECTION num_readers_lock_;
270
- HANDLE write_semaphore_;
271
- } state_;
272
- /* TODO: remove me in v2.x. */
273
- struct {
274
- SRWLOCK unused_;
275
- } unused1_;
276
- /* TODO: remove me in v2.x. */
277
- struct {
278
- uv_mutex_t unused1_;
279
- uv_mutex_t unused2_;
280
- } unused2_;
266
+ typedef struct {
267
+ SRWLOCK read_write_lock_;
268
+ /* TODO: retained for ABI compatibility; remove me in v2.x */
269
+ #ifdef _WIN64
270
+ unsigned char padding_[72];
271
+ #else
272
+ unsigned char padding_[44];
273
+ #endif
281
274
  } uv_rwlock_t;
282
275
 
283
276
  typedef struct {
@@ -384,6 +377,12 @@ typedef struct {
384
377
  OVERLAPPED overlapped; \
385
378
  size_t queued_bytes; \
386
379
  } io; \
380
+ /* in v2, we can move these to the UV_CONNECT_PRIVATE_FIELDS */ \
381
+ struct { \
382
+ ULONG_PTR result; /* overlapped.Internal is reused to hold the result */\
383
+ HANDLE pipeHandle; \
384
+ DWORD duplex_flags; \
385
+ } connect; \
387
386
  } u; \
388
387
  struct uv_req_s* next_req;
389
388
 
package/include/node/uv.h CHANGED
@@ -1133,8 +1133,8 @@ struct uv_interface_address_s {
1133
1133
 
1134
1134
  struct uv_passwd_s {
1135
1135
  char* username;
1136
- long uid;
1137
- long gid;
1136
+ unsigned long uid;
1137
+ unsigned long gid;
1138
1138
  char* shell;
1139
1139
  char* homedir;
1140
1140
  };
@@ -1242,6 +1242,7 @@ UV_EXTERN uv_pid_t uv_os_getppid(void);
1242
1242
  UV_EXTERN int uv_os_getpriority(uv_pid_t pid, int* priority);
1243
1243
  UV_EXTERN int uv_os_setpriority(uv_pid_t pid, int priority);
1244
1244
 
1245
+ UV_EXTERN unsigned int uv_available_parallelism(void);
1245
1246
  UV_EXTERN int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count);
1246
1247
  UV_EXTERN void uv_free_cpu_info(uv_cpu_info_t* cpu_infos, int count);
1247
1248
 
@@ -240,6 +240,11 @@ class V8_EXPORT ArrayBuffer : public Object {
240
240
  */
241
241
  bool IsDetachable() const;
242
242
 
243
+ /**
244
+ * Returns true if this ArrayBuffer has been detached.
245
+ */
246
+ bool WasDetached() const;
247
+
243
248
  /**
244
249
  * Detaches this ArrayBuffer and all its views (typed arrays).
245
250
  * Detaching sets the byte length of the buffer and all typed arrays to zero,
@@ -253,6 +258,9 @@ class V8_EXPORT ArrayBuffer : public Object {
253
258
  * pointer coordinates the lifetime management of the internal storage
254
259
  * with any live ArrayBuffers on the heap, even across isolates. The embedder
255
260
  * should not attempt to manage lifetime of the storage through other means.
261
+ *
262
+ * The returned shared pointer will not be empty, even if the ArrayBuffer has
263
+ * been detached. Use |WasDetached| to tell if it has been detached instead.
256
264
  */
257
265
  std::shared_ptr<BackingStore> GetBackingStore();
258
266
 
@@ -11,7 +11,7 @@
11
11
  #define V8_MAJOR_VERSION 10
12
12
  #define V8_MINOR_VERSION 2
13
13
  #define V8_BUILD_NUMBER 154
14
- #define V8_PATCH_LEVEL 15
14
+ #define V8_PATCH_LEVEL 23
15
15
 
16
16
  // Use 1 for candidates and 0 otherwise.
17
17
  // (Boolean macro values are not supported by all preprocessors.)
@@ -50,6 +50,9 @@
50
50
  # define crc32 z_crc32
51
51
  # define crc32_combine z_crc32_combine
52
52
  # define crc32_combine64 z_crc32_combine64
53
+ # define crc32_combine_gen z_crc32_combine_gen
54
+ # define crc32_combine_gen64 z_crc32_combine_gen64
55
+ # define crc32_combine_op z_crc32_combine_op
53
56
  # define crc32_z z_crc32_z
54
57
  # define deflate z_deflate
55
58
  # define deflateBound z_deflateBound
@@ -361,6 +364,9 @@
361
364
  # ifdef FAR
362
365
  # undef FAR
363
366
  # endif
367
+ # ifndef WIN32_LEAN_AND_MEAN
368
+ # define WIN32_LEAN_AND_MEAN
369
+ # endif
364
370
  # include <windows.h>
365
371
  /* No need for _export, use ZLIB.DEF instead. */
366
372
  /* For complete Windows compatibility, use WINAPI, not __stdcall. */
@@ -482,11 +488,18 @@ typedef uLong FAR uLongf;
482
488
  # undef _LARGEFILE64_SOURCE
483
489
  #endif
484
490
 
485
- #if defined(__WATCOMC__) && !defined(Z_HAVE_UNISTD_H)
486
- # define Z_HAVE_UNISTD_H
491
+ #ifndef Z_HAVE_UNISTD_H
492
+ # ifdef __WATCOMC__
493
+ # define Z_HAVE_UNISTD_H
494
+ # endif
495
+ #endif
496
+ #ifndef Z_HAVE_UNISTD_H
497
+ # if defined(_LARGEFILE64_SOURCE) && !defined(_WIN32)
498
+ # define Z_HAVE_UNISTD_H
499
+ # endif
487
500
  #endif
488
501
  #ifndef Z_SOLO
489
- # if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE)
502
+ # if defined(Z_HAVE_UNISTD_H)
490
503
  # include <unistd.h> /* for SEEK_*, off_t, and _LFS64_LARGEFILE */
491
504
  # ifdef VMS
492
505
  # include <unixio.h> /* for off_t */