node-linux-arm64 18.19.1 → 18.20.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/CHANGELOG.md +175 -0
- package/bin/node +0 -0
- package/include/node/common.gypi +1 -1
- package/include/node/config.gypi +2 -2
- package/include/node/js_native_api.h +26 -20
- package/include/node/js_native_api_types.h +39 -0
- package/include/node/node_api.h +16 -16
- package/include/node/node_version.h +2 -2
- package/include/node/v8-object.h +17 -0
- package/include/node/v8-script.h +3 -4
- package/include/node/zlib.h +16 -13
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
</tr>
|
|
10
10
|
<tr>
|
|
11
11
|
<td>
|
|
12
|
+
<a href="#18.20.0">18.20.0</a><br/>
|
|
12
13
|
<a href="#18.19.1">18.19.1</a><br/>
|
|
13
14
|
<a href="#18.19.0">18.19.0</a><br/>
|
|
14
15
|
<a href="#18.18.2">18.18.2</a><br/>
|
|
@@ -64,6 +65,180 @@
|
|
|
64
65
|
* [io.js](CHANGELOG_IOJS.md)
|
|
65
66
|
* [Archive](CHANGELOG_ARCHIVE.md)
|
|
66
67
|
|
|
68
|
+
<a id="18.20.0"></a>
|
|
69
|
+
|
|
70
|
+
## 2024-03-26, Version 18.20.0 'Hydrogen' (LTS), @richardlau
|
|
71
|
+
|
|
72
|
+
### Notable Changes
|
|
73
|
+
|
|
74
|
+
#### Added support for import attributes
|
|
75
|
+
|
|
76
|
+
Support has been added for import attributes, to replace the old import
|
|
77
|
+
assertions syntax. This will aid migration by making the new syntax available
|
|
78
|
+
across all currently supported Node.js release lines.
|
|
79
|
+
|
|
80
|
+
This adds the `with` keyword which should be used in place of the previous
|
|
81
|
+
`assert` keyword, which will be removed in a future semver-major Node.js
|
|
82
|
+
release.
|
|
83
|
+
|
|
84
|
+
For example,
|
|
85
|
+
|
|
86
|
+
```console
|
|
87
|
+
import "foo" assert { ... }
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
should be replaced with
|
|
91
|
+
|
|
92
|
+
```console
|
|
93
|
+
import "foo" with { ... }
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
For more details, see
|
|
97
|
+
|
|
98
|
+
* [#50134](https://github.com/nodejs/node/issues/50134)
|
|
99
|
+
* [#51622](https://github.com/nodejs/node/issues/51622)
|
|
100
|
+
|
|
101
|
+
Contributed by Nicolò Ribaudo in [#51136](https://github.com/nodejs/node/pull/51136)
|
|
102
|
+
and Antoine du Hamel in [#50140](https://github.com/nodejs/node/pull/50140).
|
|
103
|
+
|
|
104
|
+
#### Doc deprecation for `dirent.path`
|
|
105
|
+
|
|
106
|
+
Please use newly added `dirent.parentPath` instead.
|
|
107
|
+
|
|
108
|
+
Contributed by Antoine du Hamel in [#50976](https://github.com/nodejs/node/pull/50976)
|
|
109
|
+
and [#51020](https://github.com/nodejs/node/pull/51020).
|
|
110
|
+
|
|
111
|
+
#### Experimental node-api feature flags
|
|
112
|
+
|
|
113
|
+
Introduces an experimental feature to segregate finalizers that affect GC state.
|
|
114
|
+
A new type called `node_api_nogc_env` has been introduced as the const version
|
|
115
|
+
of `napi_env` and `node_api_nogc_finalize` as a variant of `napi_finalize` that
|
|
116
|
+
accepts a `node_api_nogc_env` as its first argument.
|
|
117
|
+
|
|
118
|
+
This feature can be turned off by defining
|
|
119
|
+
`NODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT`.
|
|
120
|
+
|
|
121
|
+
Contributed by Gabriel Schulhof in [#50060](https://github.com/nodejs/node/pull/50060).
|
|
122
|
+
|
|
123
|
+
#### Root certificates updated to NSS 3.98
|
|
124
|
+
|
|
125
|
+
Certificates added:
|
|
126
|
+
|
|
127
|
+
* Telekom Security TLS ECC Root 2020
|
|
128
|
+
* Telekom Security TLS RSA Root 2023
|
|
129
|
+
|
|
130
|
+
Certificates removed:
|
|
131
|
+
|
|
132
|
+
* Security Communication Root CA
|
|
133
|
+
|
|
134
|
+
#### Updated dependencies
|
|
135
|
+
|
|
136
|
+
* ada updated to 2.7.6.
|
|
137
|
+
* base64 updated to 0.5.2.
|
|
138
|
+
* c-ares updated to 1.27.0.
|
|
139
|
+
* corepack updated to 0.25.2.
|
|
140
|
+
* ICU updated to 74.2. Includes CLDR 44.1 and Unicode 15.1.
|
|
141
|
+
* npm updated to 10.5.0. Fixes a regression in signals not being passed onto child processes.
|
|
142
|
+
* simdutf8 updated to 4.0.8.
|
|
143
|
+
* Timezone updated to 2024a.
|
|
144
|
+
* zlib updated to 1.3.0.1-motley-40e35a7.
|
|
145
|
+
|
|
146
|
+
#### vm: fix V8 compilation cache support for vm.Script
|
|
147
|
+
|
|
148
|
+
Previously repeated compilation of the same source code using `vm.Script`
|
|
149
|
+
stopped hitting the V8 compilation cache after v16.x when support for
|
|
150
|
+
`importModuleDynamically` was added to `vm.Script`, resulting in a performance
|
|
151
|
+
regression that blocked users (in particular Jest users) from upgrading from
|
|
152
|
+
v16.x.
|
|
153
|
+
|
|
154
|
+
The recent fixes allow the compilation cache to be hit again
|
|
155
|
+
for `vm.Script` when `--experimental-vm-modules` is not used even in the
|
|
156
|
+
presence of the `importModuleDynamically` option, so that users affected by the
|
|
157
|
+
performance regression can now upgrade. Ongoing work is also being done to
|
|
158
|
+
enable compilation cache support for `vm.CompileFunction`.
|
|
159
|
+
|
|
160
|
+
Contributed by Joyee Cheung in [#49950](https://github.com/nodejs/node/pull/49950)
|
|
161
|
+
and [#50137](https://github.com/nodejs/node/pull/50137).
|
|
162
|
+
|
|
163
|
+
### Commits
|
|
164
|
+
|
|
165
|
+
* \[[`c70383b8d4`](https://github.com/nodejs/node/commit/c70383b8d4)] - **build**: support Python 3.12 (Shi Pujin) [#50209](https://github.com/nodejs/node/pull/50209)
|
|
166
|
+
* \[[`4b960c3a4a`](https://github.com/nodejs/node/commit/4b960c3a4a)] - **build**: fix incorrect g++ warning message (Richard Lau) [#51695](https://github.com/nodejs/node/pull/51695)
|
|
167
|
+
* \[[`8fdea67694`](https://github.com/nodejs/node/commit/8fdea67694)] - **crypto**: update root certificates to NSS 3.98 (Node.js GitHub Bot) [#51794](https://github.com/nodejs/node/pull/51794)
|
|
168
|
+
* \[[`812b126dd9`](https://github.com/nodejs/node/commit/812b126dd9)] - **deps**: V8: cherry-pick d90d4533b053 (Michaël Zasso) [#50077](https://github.com/nodejs/node/pull/50077)
|
|
169
|
+
* \[[`9ab8c3db87`](https://github.com/nodejs/node/commit/9ab8c3db87)] - **deps**: update c-ares to 1.27.0 (Node.js GitHub Bot) [#51846](https://github.com/nodejs/node/pull/51846)
|
|
170
|
+
* \[[`c688680387`](https://github.com/nodejs/node/commit/c688680387)] - **deps**: update c-ares to 1.26.0 (Node.js GitHub Bot) [#51582](https://github.com/nodejs/node/pull/51582)
|
|
171
|
+
* \[[`9498ac8a47`](https://github.com/nodejs/node/commit/9498ac8a47)] - **deps**: compile c-ares with C11 support (Michaël Zasso) [#51410](https://github.com/nodejs/node/pull/51410)
|
|
172
|
+
* \[[`8fb743642f`](https://github.com/nodejs/node/commit/8fb743642f)] - **deps**: update c-ares to 1.25.0 (Node.js GitHub Bot) [#51385](https://github.com/nodejs/node/pull/51385)
|
|
173
|
+
* \[[`7bea2d7c12`](https://github.com/nodejs/node/commit/7bea2d7c12)] - **deps**: update zlib to 1.3.0.1-motley-40e35a7 (Node.js GitHub Bot) [#51274](https://github.com/nodejs/node/pull/51274)
|
|
174
|
+
* \[[`57a38c8f75`](https://github.com/nodejs/node/commit/57a38c8f75)] - **deps**: update zlib to 1.3.0.1-motley-dd5fc13 (Node.js GitHub Bot) [#51105](https://github.com/nodejs/node/pull/51105)
|
|
175
|
+
* \[[`b0ca084a6b`](https://github.com/nodejs/node/commit/b0ca084a6b)] - **deps**: update zlib to 1.3-22124f5 (Node.js GitHub Bot) [#50910](https://github.com/nodejs/node/pull/50910)
|
|
176
|
+
* \[[`4b43823f37`](https://github.com/nodejs/node/commit/4b43823f37)] - **deps**: update zlib to 1.2.13.1-motley-5daffc7 (Node.js GitHub Bot) [#50803](https://github.com/nodejs/node/pull/50803)
|
|
177
|
+
* \[[`f0da591812`](https://github.com/nodejs/node/commit/f0da591812)] - **deps**: update zlib to 1.2.13.1-motley-dfc48fc (Node.js GitHub Bot) [#50456](https://github.com/nodejs/node/pull/50456)
|
|
178
|
+
* \[[`16d28a883a`](https://github.com/nodejs/node/commit/16d28a883a)] - **deps**: update base64 to 0.5.2 (Node.js GitHub Bot) [#51455](https://github.com/nodejs/node/pull/51455)
|
|
179
|
+
* \[[`13a9e81cb6`](https://github.com/nodejs/node/commit/13a9e81cb6)] - **deps**: update base64 to 0.5.1 (Node.js GitHub Bot) [#50629](https://github.com/nodejs/node/pull/50629)
|
|
180
|
+
* \[[`b4502d3ac5`](https://github.com/nodejs/node/commit/b4502d3ac5)] - **deps**: update simdutf to 4.0.8 (Node.js GitHub Bot) [#51000](https://github.com/nodejs/node/pull/51000)
|
|
181
|
+
* \[[`183cf8a74a`](https://github.com/nodejs/node/commit/183cf8a74a)] - **deps**: update simdutf to 4.0.4 (Node.js GitHub Bot) [#50772](https://github.com/nodejs/node/pull/50772)
|
|
182
|
+
* \[[`11ba8593ea`](https://github.com/nodejs/node/commit/11ba8593ea)] - **deps**: update ada to 2.7.6 (Node.js GitHub Bot) [#51542](https://github.com/nodejs/node/pull/51542)
|
|
183
|
+
* \[[`73a946d55c`](https://github.com/nodejs/node/commit/73a946d55c)] - **deps**: update ada to 2.7.5 (Node.js GitHub Bot) [#51542](https://github.com/nodejs/node/pull/51542)
|
|
184
|
+
* \[[`cc434c1a39`](https://github.com/nodejs/node/commit/cc434c1a39)] - **deps**: update ada to 2.7.4 (Node.js GitHub Bot) [#50815](https://github.com/nodejs/node/pull/50815)
|
|
185
|
+
* \[[`3a3808a6ae`](https://github.com/nodejs/node/commit/3a3808a6ae)] - **deps**: upgrade npm to 10.5.0 (npm team) [#51913](https://github.com/nodejs/node/pull/51913)
|
|
186
|
+
* \[[`c8876d765c`](https://github.com/nodejs/node/commit/c8876d765c)] - **deps**: upgrade npm to 10.3.0 (npm team) [#51431](https://github.com/nodejs/node/pull/51431)
|
|
187
|
+
* \[[`5aec3af460`](https://github.com/nodejs/node/commit/5aec3af460)] - **deps**: update corepack to 0.25.2 (Node.js GitHub Bot) [#51810](https://github.com/nodejs/node/pull/51810)
|
|
188
|
+
* \[[`a593985326`](https://github.com/nodejs/node/commit/a593985326)] - **deps**: update corepack to 0.24.1 (Node.js GitHub Bot) [#51459](https://github.com/nodejs/node/pull/51459)
|
|
189
|
+
* \[[`d1a9237bf5`](https://github.com/nodejs/node/commit/d1a9237bf5)] - **deps**: update corepack to 0.24.0 (Node.js GitHub Bot) [#51318](https://github.com/nodejs/node/pull/51318)
|
|
190
|
+
* \[[`adac0c7a63`](https://github.com/nodejs/node/commit/adac0c7a63)] - **deps**: update corepack to 0.23.0 (Node.js GitHub Bot) [#50563](https://github.com/nodejs/node/pull/50563)
|
|
191
|
+
* \[[`4a6f83e32a`](https://github.com/nodejs/node/commit/4a6f83e32a)] - **deps**: escape Python strings correctly (Michaël Zasso) [#50695](https://github.com/nodejs/node/pull/50695)
|
|
192
|
+
* \[[`c13969e52a`](https://github.com/nodejs/node/commit/c13969e52a)] - **deps**: V8: cherry-pick ea996ad04a68 (Nicolò Ribaudo) [#51136](https://github.com/nodejs/node/pull/51136)
|
|
193
|
+
* \[[`6fbf0ba5c3`](https://github.com/nodejs/node/commit/6fbf0ba5c3)] - **deps**: V8: cherry-pick a0fd3209dda8 (Nicolò Ribaudo) [#51136](https://github.com/nodejs/node/pull/51136)
|
|
194
|
+
* \[[`68fd7516e1`](https://github.com/nodejs/node/commit/68fd7516e1)] - **deps**: update timezone to 2024a (Michaël Zasso) [#51723](https://github.com/nodejs/node/pull/51723)
|
|
195
|
+
* \[[`f9b229ebe1`](https://github.com/nodejs/node/commit/f9b229ebe1)] - **deps**: update icu to 74.2 (Michaël Zasso) [#51723](https://github.com/nodejs/node/pull/51723)
|
|
196
|
+
* \[[`90c73d2eb4`](https://github.com/nodejs/node/commit/90c73d2eb4)] - **deps**: update timezone to 2023d (Node.js GitHub Bot) [#51461](https://github.com/nodejs/node/pull/51461)
|
|
197
|
+
* \[[`2a2bf57028`](https://github.com/nodejs/node/commit/2a2bf57028)] - **deps**: update icu to 74.1 (Node.js GitHub Bot) [#50515](https://github.com/nodejs/node/pull/50515)
|
|
198
|
+
* \[[`425e011e52`](https://github.com/nodejs/node/commit/425e011e52)] - **deps**: add v8::Object::SetInternalFieldForNodeCore() (Joyee Cheung) [#49874](https://github.com/nodejs/node/pull/49874)
|
|
199
|
+
* \[[`58c70344a2`](https://github.com/nodejs/node/commit/58c70344a2)] - **deps**: V8: cherry-pick 705e374124ae (Joyee Cheung) [#51004](https://github.com/nodejs/node/pull/51004)
|
|
200
|
+
* \[[`b0e88899e1`](https://github.com/nodejs/node/commit/b0e88899e1)] - **deps**: V8: cherry-pick 1fada6b36f8d (Joyee Cheung) [#51004](https://github.com/nodejs/node/pull/51004)
|
|
201
|
+
* \[[`d87a810b81`](https://github.com/nodejs/node/commit/d87a810b81)] - **deps**: V8: cherry-pick 3dd9576ce336 (Joyee Cheung) [#51004](https://github.com/nodejs/node/pull/51004)
|
|
202
|
+
* \[[`6d50966876`](https://github.com/nodejs/node/commit/6d50966876)] - **deps**: V8: cherry-pick 94e8282325a1 (Joyee Cheung) [#51004](https://github.com/nodejs/node/pull/51004)
|
|
203
|
+
* \[[`fafbacdfec`](https://github.com/nodejs/node/commit/fafbacdfec)] - **deps**: V8: cherry-pick 9a98f96b6d68 (Joyee Cheung) [#51004](https://github.com/nodejs/node/pull/51004)
|
|
204
|
+
* \[[`d4a530ed8d`](https://github.com/nodejs/node/commit/d4a530ed8d)] - **deps**: V8: cherry-pick 7f5daed62d47 (Joyee Cheung) [#51004](https://github.com/nodejs/node/pull/51004)
|
|
205
|
+
* \[[`1ce901b164`](https://github.com/nodejs/node/commit/1ce901b164)] - **deps**: V8: cherry-pick c400af48b5ef (Joyee Cheung) [#51004](https://github.com/nodejs/node/pull/51004)
|
|
206
|
+
* \[[`f232064f35`](https://github.com/nodejs/node/commit/f232064f35)] - **doc**: fix historical experimental fetch flag (Kenrick) [#51506](https://github.com/nodejs/node/pull/51506)
|
|
207
|
+
* \[[`194ff6a40f`](https://github.com/nodejs/node/commit/194ff6a40f)] - **(SEMVER-MINOR)** **doc**: add deprecation notice to `dirent.path` (Antoine du Hamel) [#50976](https://github.com/nodejs/node/pull/50976)
|
|
208
|
+
* \[[`0f09267dc6`](https://github.com/nodejs/node/commit/0f09267dc6)] - **(SEMVER-MINOR)** **doc**: deprecate `dirent.path` (Antoine du Hamel) [#50976](https://github.com/nodejs/node/pull/50976)
|
|
209
|
+
* \[[`8bfb8f5b2f`](https://github.com/nodejs/node/commit/8bfb8f5b2f)] - **doc,crypto**: further clarify RSA\_PKCS1\_PADDING support (Tobias Nießen) [#51799](https://github.com/nodejs/node/pull/51799)
|
|
210
|
+
* \[[`c7baf7b274`](https://github.com/nodejs/node/commit/c7baf7b274)] - **doc,crypto**: add changelog and note about disabled RSA\_PKCS1\_PADDING (Filip Skokan) [#51782](https://github.com/nodejs/node/pull/51782)
|
|
211
|
+
* \[[`a193be3dc2`](https://github.com/nodejs/node/commit/a193be3dc2)] - **esm**: use import attributes instead of import assertions (Antoine du Hamel) [#50140](https://github.com/nodejs/node/pull/50140)
|
|
212
|
+
* \[[`26e8f7793e`](https://github.com/nodejs/node/commit/26e8f7793e)] - **(SEMVER-MINOR)** **fs**: introduce `dirent.parentPath` (Antoine du Hamel) [#50976](https://github.com/nodejs/node/pull/50976)
|
|
213
|
+
* \[[`5b5e5192f7`](https://github.com/nodejs/node/commit/5b5e5192f7)] - **lib**: fix compileFunction throws range error for negative numbers (Jithil P Ponnan) [#49855](https://github.com/nodejs/node/pull/49855)
|
|
214
|
+
* \[[`7552de6806`](https://github.com/nodejs/node/commit/7552de6806)] - **module**: fix the leak in SourceTextModule and ContextifySript (Joyee Cheung) [#48510](https://github.com/nodejs/node/pull/48510)
|
|
215
|
+
* \[[`2e05cf1c60`](https://github.com/nodejs/node/commit/2e05cf1c60)] - **module**: fix leak of vm.SyntheticModule (Joyee Cheung) [#48510](https://github.com/nodejs/node/pull/48510)
|
|
216
|
+
* \[[`a86a2e14a3`](https://github.com/nodejs/node/commit/a86a2e14a3)] - **module**: use symbol in WeakMap to manage host defined options (Joyee Cheung) [#48510](https://github.com/nodejs/node/pull/48510)
|
|
217
|
+
* \[[`32906ddcac`](https://github.com/nodejs/node/commit/32906ddcac)] - **node-api**: segregate nogc APIs from rest via type system (Gabriel Schulhof) [#50060](https://github.com/nodejs/node/pull/50060)
|
|
218
|
+
* \[[`1aa71c26ff`](https://github.com/nodejs/node/commit/1aa71c26ff)] - **node-api**: factor out common code into macros (Gabriel Schulhof) [#50664](https://github.com/nodejs/node/pull/50664)
|
|
219
|
+
* \[[`3d0b233f52`](https://github.com/nodejs/node/commit/3d0b233f52)] - **node-api**: introduce experimental feature flags (Gabriel Schulhof) [#50991](https://github.com/nodejs/node/pull/50991)
|
|
220
|
+
* \[[`96514a8b9f`](https://github.com/nodejs/node/commit/96514a8b9f)] - **src**: iterate on import attributes array correctly (Michaël Zasso) [#50703](https://github.com/nodejs/node/pull/50703)
|
|
221
|
+
* \[[`2c2892bf88`](https://github.com/nodejs/node/commit/2c2892bf88)] - **src**: set ModuleWrap internal fields only once (Joyee Cheung) [#49391](https://github.com/nodejs/node/pull/49391)
|
|
222
|
+
* \[[`ff334cb774`](https://github.com/nodejs/node/commit/ff334cb774)] - **src**: cast v8::Object::GetInternalField() return value to v8::Value (Joyee Cheung) [#48943](https://github.com/nodejs/node/pull/48943)
|
|
223
|
+
* \[[`270b519971`](https://github.com/nodejs/node/commit/270b519971)] - **stream**: do not defer construction by one microtick (Matteo Collina) [#52005](https://github.com/nodejs/node/pull/52005)
|
|
224
|
+
* \[[`95d7a75084`](https://github.com/nodejs/node/commit/95d7a75084)] - **test**: fix dns test case failures after c-ares update to 1.21.0+ (Brad House) [#50743](https://github.com/nodejs/node/pull/50743)
|
|
225
|
+
* \[[`cd613e5167`](https://github.com/nodejs/node/commit/cd613e5167)] - **test**: handle relative https redirect (Richard Lau) [#51121](https://github.com/nodejs/node/pull/51121)
|
|
226
|
+
* \[[`40f10eafcf`](https://github.com/nodejs/node/commit/40f10eafcf)] - **test**: fix `internet/test-inspector-help-page` (Richard Lau) [#51693](https://github.com/nodejs/node/pull/51693)
|
|
227
|
+
* \[[`5e426511b1`](https://github.com/nodejs/node/commit/5e426511b1)] - **test**: deflake test-vm-contextified-script-leak (Joyee Cheung) [#49710](https://github.com/nodejs/node/pull/49710)
|
|
228
|
+
* \[[`0b156c6d28`](https://github.com/nodejs/node/commit/0b156c6d28)] - **test**: use checkIfCollectable in vm leak tests (Joyee Cheung) [#49671](https://github.com/nodejs/node/pull/49671)
|
|
229
|
+
* \[[`1586c11b3c`](https://github.com/nodejs/node/commit/1586c11b3c)] - **test**: add checkIfCollectable to test/common/gc.js (Joyee Cheung) [#49671](https://github.com/nodejs/node/pull/49671)
|
|
230
|
+
* \[[`902d8b3d4b`](https://github.com/nodejs/node/commit/902d8b3d4b)] - **test**: fix flaky http-chunk-extensions-limit test (Ethan Arrowood) [#51943](https://github.com/nodejs/node/pull/51943)
|
|
231
|
+
* \[[`1743d2bdc1`](https://github.com/nodejs/node/commit/1743d2bdc1)] - **test**: test surrogate pair filenames on windows (Mert Can Altın) [#51800](https://github.com/nodejs/node/pull/51800)
|
|
232
|
+
* \[[`1c1a7ec22d`](https://github.com/nodejs/node/commit/1c1a7ec22d)] - **test**: increase platform timeout zlib-brotli-16gb (Rafael Gonzaga) [#51792](https://github.com/nodejs/node/pull/51792)
|
|
233
|
+
* \[[`931d02fe3e`](https://github.com/nodejs/node/commit/931d02fe3e)] - **test, v8**: fix wrong import attributes test (Nicolò Ribaudo) [#52184](https://github.com/nodejs/node/pull/52184)
|
|
234
|
+
* \[[`d9ea6c1f8d`](https://github.com/nodejs/node/commit/d9ea6c1f8d)] - **tls**: fix order of setting cipher before setting cert and key (Kumar Rishav) [#50186](https://github.com/nodejs/node/pull/50186)
|
|
235
|
+
* \[[`3184befa2e`](https://github.com/nodejs/node/commit/3184befa2e)] - **tools**: fix update-icu.sh (Michaël Zasso) [#51723](https://github.com/nodejs/node/pull/51723)
|
|
236
|
+
* \[[`06646e11be`](https://github.com/nodejs/node/commit/06646e11be)] - **(SEMVER-MINOR)** **vm**: use import attributes instead of import assertions (Antoine du Hamel) [#50141](https://github.com/nodejs/node/pull/50141)
|
|
237
|
+
* \[[`fe66e9d06e`](https://github.com/nodejs/node/commit/fe66e9d06e)] - **vm**: reject in importModuleDynamically without --experimental-vm-modules (Joyee Cheung) [#50137](https://github.com/nodejs/node/pull/50137)
|
|
238
|
+
* \[[`052e095c6b`](https://github.com/nodejs/node/commit/052e095c6b)] - **vm**: use internal versions of compileFunction and Script (Joyee Cheung) [#50137](https://github.com/nodejs/node/pull/50137)
|
|
239
|
+
* \[[`9f7899ed0a`](https://github.com/nodejs/node/commit/9f7899ed0a)] - **vm**: unify host-defined option generation in vm.compileFunction (Joyee Cheung) [#50137](https://github.com/nodejs/node/pull/50137)
|
|
240
|
+
* \[[`6291c107d0`](https://github.com/nodejs/node/commit/6291c107d0)] - **vm**: use default HDO when importModuleDynamically is not set (Joyee Cheung) [#49950](https://github.com/nodejs/node/pull/49950)
|
|
241
|
+
|
|
67
242
|
<a id="18.19.1"></a>
|
|
68
243
|
|
|
69
244
|
## 2024-02-14, Version 18.19.1 'Hydrogen' (LTS), @RafaelGSS prepared by @marco-ippolito
|
package/bin/node
CHANGED
|
Binary file
|
package/include/node/common.gypi
CHANGED
package/include/node/config.gypi
CHANGED
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
'force_dynamic_crt': 0,
|
|
14
14
|
'gas_version': '2.30',
|
|
15
15
|
'host_arch': 'arm64',
|
|
16
|
-
'icu_data_in': '../../deps/icu-tmp/
|
|
16
|
+
'icu_data_in': '../../deps/icu-tmp/icudt74l.dat',
|
|
17
17
|
'icu_endianness': 'l',
|
|
18
18
|
'icu_gyp_path': 'tools/icu/icu-generic.gyp',
|
|
19
19
|
'icu_path': 'deps/icu-small',
|
|
20
20
|
'icu_small': 'false',
|
|
21
|
-
'icu_ver_major': '
|
|
21
|
+
'icu_ver_major': '74',
|
|
22
22
|
'is_debug': 0,
|
|
23
23
|
'libdir': 'lib',
|
|
24
24
|
'llvm_version': '0.0',
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
|
|
50
50
|
EXTERN_C_START
|
|
51
51
|
|
|
52
|
-
NAPI_EXTERN napi_status NAPI_CDECL
|
|
53
|
-
|
|
52
|
+
NAPI_EXTERN napi_status NAPI_CDECL napi_get_last_error_info(
|
|
53
|
+
node_api_nogc_env env, const napi_extended_error_info** result);
|
|
54
54
|
|
|
55
55
|
// Getters for defined singletons
|
|
56
56
|
NAPI_EXTERN napi_status NAPI_CDECL napi_get_undefined(napi_env env,
|
|
@@ -93,11 +93,12 @@ NAPI_EXTERN napi_status NAPI_CDECL napi_create_string_utf16(napi_env env,
|
|
|
93
93
|
size_t length,
|
|
94
94
|
napi_value* result);
|
|
95
95
|
#ifdef NAPI_EXPERIMENTAL
|
|
96
|
+
#define NODE_API_EXPERIMENTAL_HAS_EXTERNAL_STRINGS
|
|
96
97
|
NAPI_EXTERN napi_status NAPI_CDECL
|
|
97
98
|
node_api_create_external_string_latin1(napi_env env,
|
|
98
99
|
char* str,
|
|
99
100
|
size_t length,
|
|
100
|
-
|
|
101
|
+
node_api_nogc_finalize finalize_callback,
|
|
101
102
|
void* finalize_hint,
|
|
102
103
|
napi_value* result,
|
|
103
104
|
bool* copied);
|
|
@@ -105,7 +106,7 @@ NAPI_EXTERN napi_status NAPI_CDECL
|
|
|
105
106
|
node_api_create_external_string_utf16(napi_env env,
|
|
106
107
|
char16_t* str,
|
|
107
108
|
size_t length,
|
|
108
|
-
|
|
109
|
+
node_api_nogc_finalize finalize_callback,
|
|
109
110
|
void* finalize_hint,
|
|
110
111
|
napi_value* result,
|
|
111
112
|
bool* copied);
|
|
@@ -289,7 +290,7 @@ NAPI_EXTERN napi_status NAPI_CDECL napi_instanceof(napi_env env,
|
|
|
289
290
|
|
|
290
291
|
// Gets all callback info in a single call. (Ugly, but faster.)
|
|
291
292
|
NAPI_EXTERN napi_status NAPI_CDECL napi_get_cb_info(
|
|
292
|
-
napi_env env, // [in]
|
|
293
|
+
napi_env env, // [in] Node-API environment handle
|
|
293
294
|
napi_callback_info cbinfo, // [in] Opaque callback-info handle
|
|
294
295
|
size_t* argc, // [in-out] Specifies the size of the provided argv array
|
|
295
296
|
// and receives the actual count of args.
|
|
@@ -313,7 +314,7 @@ napi_define_class(napi_env env,
|
|
|
313
314
|
NAPI_EXTERN napi_status NAPI_CDECL napi_wrap(napi_env env,
|
|
314
315
|
napi_value js_object,
|
|
315
316
|
void* native_object,
|
|
316
|
-
|
|
317
|
+
node_api_nogc_finalize finalize_cb,
|
|
317
318
|
void* finalize_hint,
|
|
318
319
|
napi_ref* result);
|
|
319
320
|
NAPI_EXTERN napi_status NAPI_CDECL napi_unwrap(napi_env env,
|
|
@@ -325,7 +326,7 @@ NAPI_EXTERN napi_status NAPI_CDECL napi_remove_wrap(napi_env env,
|
|
|
325
326
|
NAPI_EXTERN napi_status NAPI_CDECL
|
|
326
327
|
napi_create_external(napi_env env,
|
|
327
328
|
void* data,
|
|
328
|
-
|
|
329
|
+
node_api_nogc_finalize finalize_cb,
|
|
329
330
|
void* finalize_hint,
|
|
330
331
|
napi_value* result);
|
|
331
332
|
NAPI_EXTERN napi_status NAPI_CDECL napi_get_value_external(napi_env env,
|
|
@@ -424,7 +425,7 @@ NAPI_EXTERN napi_status NAPI_CDECL
|
|
|
424
425
|
napi_create_external_arraybuffer(napi_env env,
|
|
425
426
|
void* external_data,
|
|
426
427
|
size_t byte_length,
|
|
427
|
-
|
|
428
|
+
node_api_nogc_finalize finalize_cb,
|
|
428
429
|
void* finalize_hint,
|
|
429
430
|
napi_value* result);
|
|
430
431
|
#endif // NODE_API_NO_EXTERNAL_BUFFERS_ALLOWED
|
|
@@ -466,7 +467,7 @@ napi_get_dataview_info(napi_env env,
|
|
|
466
467
|
size_t* byte_offset);
|
|
467
468
|
|
|
468
469
|
// version management
|
|
469
|
-
NAPI_EXTERN napi_status NAPI_CDECL napi_get_version(
|
|
470
|
+
NAPI_EXTERN napi_status NAPI_CDECL napi_get_version(node_api_nogc_env env,
|
|
470
471
|
uint32_t* result);
|
|
471
472
|
|
|
472
473
|
// Promises
|
|
@@ -490,7 +491,7 @@ NAPI_EXTERN napi_status NAPI_CDECL napi_run_script(napi_env env,
|
|
|
490
491
|
|
|
491
492
|
// Memory management
|
|
492
493
|
NAPI_EXTERN napi_status NAPI_CDECL napi_adjust_external_memory(
|
|
493
|
-
|
|
494
|
+
node_api_nogc_env env, int64_t change_in_bytes, int64_t* adjusted_value);
|
|
494
495
|
|
|
495
496
|
#if NAPI_VERSION >= 5
|
|
496
497
|
|
|
@@ -508,19 +509,21 @@ NAPI_EXTERN napi_status NAPI_CDECL napi_get_date_value(napi_env env,
|
|
|
508
509
|
double* result);
|
|
509
510
|
|
|
510
511
|
// Add finalizer for pointer
|
|
511
|
-
NAPI_EXTERN napi_status NAPI_CDECL
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
512
|
+
NAPI_EXTERN napi_status NAPI_CDECL
|
|
513
|
+
napi_add_finalizer(napi_env env,
|
|
514
|
+
napi_value js_object,
|
|
515
|
+
void* finalize_data,
|
|
516
|
+
node_api_nogc_finalize finalize_cb,
|
|
517
|
+
void* finalize_hint,
|
|
518
|
+
napi_ref* result);
|
|
517
519
|
|
|
518
520
|
#endif // NAPI_VERSION >= 5
|
|
519
521
|
|
|
520
522
|
#ifdef NAPI_EXPERIMENTAL
|
|
523
|
+
#define NODE_API_EXPERIMENTAL_HAS_POST_FINALIZER
|
|
521
524
|
|
|
522
525
|
NAPI_EXTERN napi_status NAPI_CDECL
|
|
523
|
-
node_api_post_finalizer(
|
|
526
|
+
node_api_post_finalizer(node_api_nogc_env env,
|
|
524
527
|
napi_finalize finalize_cb,
|
|
525
528
|
void* finalize_data,
|
|
526
529
|
void* finalize_hint);
|
|
@@ -564,10 +567,13 @@ napi_get_all_property_names(napi_env env,
|
|
|
564
567
|
napi_value* result);
|
|
565
568
|
|
|
566
569
|
// Instance data
|
|
567
|
-
NAPI_EXTERN napi_status NAPI_CDECL
|
|
568
|
-
|
|
570
|
+
NAPI_EXTERN napi_status NAPI_CDECL
|
|
571
|
+
napi_set_instance_data(node_api_nogc_env env,
|
|
572
|
+
void* data,
|
|
573
|
+
napi_finalize finalize_cb,
|
|
574
|
+
void* finalize_hint);
|
|
569
575
|
|
|
570
|
-
NAPI_EXTERN napi_status NAPI_CDECL napi_get_instance_data(
|
|
576
|
+
NAPI_EXTERN napi_status NAPI_CDECL napi_get_instance_data(node_api_nogc_env env,
|
|
571
577
|
void** data);
|
|
572
578
|
#endif // NAPI_VERSION >= 6
|
|
573
579
|
|
|
@@ -22,6 +22,35 @@ typedef uint16_t char16_t;
|
|
|
22
22
|
// JSVM API types are all opaque pointers for ABI stability
|
|
23
23
|
// typedef undefined structs instead of void* for compile time type safety
|
|
24
24
|
typedef struct napi_env__* napi_env;
|
|
25
|
+
|
|
26
|
+
// We need to mark APIs which can be called during garbage collection (GC),
|
|
27
|
+
// meaning that they do not affect the state of the JS engine, and can
|
|
28
|
+
// therefore be called synchronously from a finalizer that itself runs
|
|
29
|
+
// synchronously during GC. Such APIs can receive either a `napi_env` or a
|
|
30
|
+
// `node_api_nogc_env` as their first parameter, because we should be able to
|
|
31
|
+
// also call them during normal, non-garbage-collecting operations, whereas
|
|
32
|
+
// APIs that affect the state of the JS engine can only receive a `napi_env` as
|
|
33
|
+
// their first parameter, because we must not call them during GC. In lieu of
|
|
34
|
+
// inheritance, we use the properties of the const qualifier to accomplish
|
|
35
|
+
// this, because both a const and a non-const value can be passed to an API
|
|
36
|
+
// expecting a const value, but only a non-const value can be passed to an API
|
|
37
|
+
// expecting a non-const value.
|
|
38
|
+
//
|
|
39
|
+
// In conjunction with appropriate CFLAGS to warn us if we're passing a const
|
|
40
|
+
// (nogc) environment into an API that expects a non-const environment, and the
|
|
41
|
+
// definition of nogc finalizer function pointer types below, which receive a
|
|
42
|
+
// nogc environment as their first parameter, and can thus only call nogc APIs
|
|
43
|
+
// (unless the user explicitly casts the environment), we achieve the ability
|
|
44
|
+
// to ensure at compile time that we do not call APIs that affect the state of
|
|
45
|
+
// the JS engine from a synchronous (nogc) finalizer.
|
|
46
|
+
#if !defined(NAPI_EXPERIMENTAL) || \
|
|
47
|
+
(defined(NAPI_EXPERIMENTAL) && \
|
|
48
|
+
defined(NODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT))
|
|
49
|
+
typedef struct napi_env__* node_api_nogc_env;
|
|
50
|
+
#else
|
|
51
|
+
typedef const struct napi_env__* node_api_nogc_env;
|
|
52
|
+
#endif
|
|
53
|
+
|
|
25
54
|
typedef struct napi_value__* napi_value;
|
|
26
55
|
typedef struct napi_ref__* napi_ref;
|
|
27
56
|
typedef struct napi_handle_scope__* napi_handle_scope;
|
|
@@ -116,6 +145,16 @@ typedef void(NAPI_CDECL* napi_finalize)(napi_env env,
|
|
|
116
145
|
void* finalize_data,
|
|
117
146
|
void* finalize_hint);
|
|
118
147
|
|
|
148
|
+
#if !defined(NAPI_EXPERIMENTAL) || \
|
|
149
|
+
(defined(NAPI_EXPERIMENTAL) && \
|
|
150
|
+
defined(NODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT))
|
|
151
|
+
typedef napi_finalize node_api_nogc_finalize;
|
|
152
|
+
#else
|
|
153
|
+
typedef void(NAPI_CDECL* node_api_nogc_finalize)(node_api_nogc_env env,
|
|
154
|
+
void* finalize_data,
|
|
155
|
+
void* finalize_hint);
|
|
156
|
+
#endif
|
|
157
|
+
|
|
119
158
|
typedef struct {
|
|
120
159
|
// One of utf8name or name should be NULL.
|
|
121
160
|
const char* utf8name;
|
package/include/node/node_api.h
CHANGED
|
@@ -131,7 +131,7 @@ NAPI_EXTERN napi_status NAPI_CDECL
|
|
|
131
131
|
napi_create_external_buffer(napi_env env,
|
|
132
132
|
size_t length,
|
|
133
133
|
void* data,
|
|
134
|
-
|
|
134
|
+
node_api_nogc_finalize finalize_cb,
|
|
135
135
|
void* finalize_hint,
|
|
136
136
|
napi_value* result);
|
|
137
137
|
#endif // NODE_API_NO_EXTERNAL_BUFFERS_ALLOWED
|
|
@@ -159,20 +159,20 @@ napi_create_async_work(napi_env env,
|
|
|
159
159
|
napi_async_work* result);
|
|
160
160
|
NAPI_EXTERN napi_status NAPI_CDECL napi_delete_async_work(napi_env env,
|
|
161
161
|
napi_async_work work);
|
|
162
|
-
NAPI_EXTERN napi_status NAPI_CDECL napi_queue_async_work(
|
|
162
|
+
NAPI_EXTERN napi_status NAPI_CDECL napi_queue_async_work(node_api_nogc_env env,
|
|
163
163
|
napi_async_work work);
|
|
164
|
-
NAPI_EXTERN napi_status NAPI_CDECL napi_cancel_async_work(
|
|
164
|
+
NAPI_EXTERN napi_status NAPI_CDECL napi_cancel_async_work(node_api_nogc_env env,
|
|
165
165
|
napi_async_work work);
|
|
166
166
|
|
|
167
167
|
// version management
|
|
168
168
|
NAPI_EXTERN napi_status NAPI_CDECL
|
|
169
|
-
napi_get_node_version(
|
|
169
|
+
napi_get_node_version(node_api_nogc_env env, const napi_node_version** version);
|
|
170
170
|
|
|
171
171
|
#if NAPI_VERSION >= 2
|
|
172
172
|
|
|
173
173
|
// Return the current libuv event loop for a given environment
|
|
174
174
|
NAPI_EXTERN napi_status NAPI_CDECL
|
|
175
|
-
napi_get_uv_event_loop(
|
|
175
|
+
napi_get_uv_event_loop(node_api_nogc_env env, struct uv_loop_s** loop);
|
|
176
176
|
|
|
177
177
|
#endif // NAPI_VERSION >= 2
|
|
178
178
|
|
|
@@ -181,11 +181,11 @@ napi_get_uv_event_loop(napi_env env, struct uv_loop_s** loop);
|
|
|
181
181
|
NAPI_EXTERN napi_status NAPI_CDECL napi_fatal_exception(napi_env env,
|
|
182
182
|
napi_value err);
|
|
183
183
|
|
|
184
|
-
NAPI_EXTERN napi_status NAPI_CDECL
|
|
185
|
-
|
|
184
|
+
NAPI_EXTERN napi_status NAPI_CDECL napi_add_env_cleanup_hook(
|
|
185
|
+
node_api_nogc_env env, napi_cleanup_hook fun, void* arg);
|
|
186
186
|
|
|
187
|
-
NAPI_EXTERN napi_status NAPI_CDECL
|
|
188
|
-
|
|
187
|
+
NAPI_EXTERN napi_status NAPI_CDECL napi_remove_env_cleanup_hook(
|
|
188
|
+
node_api_nogc_env env, napi_cleanup_hook fun, void* arg);
|
|
189
189
|
|
|
190
190
|
NAPI_EXTERN napi_status NAPI_CDECL
|
|
191
191
|
napi_open_callback_scope(napi_env env,
|
|
@@ -209,7 +209,7 @@ napi_create_threadsafe_function(napi_env env,
|
|
|
209
209
|
size_t max_queue_size,
|
|
210
210
|
size_t initial_thread_count,
|
|
211
211
|
void* thread_finalize_data,
|
|
212
|
-
|
|
212
|
+
node_api_nogc_finalize thread_finalize_cb,
|
|
213
213
|
void* context,
|
|
214
214
|
napi_threadsafe_function_call_js call_js_cb,
|
|
215
215
|
napi_threadsafe_function* result);
|
|
@@ -228,18 +228,18 @@ napi_acquire_threadsafe_function(napi_threadsafe_function func);
|
|
|
228
228
|
NAPI_EXTERN napi_status NAPI_CDECL napi_release_threadsafe_function(
|
|
229
229
|
napi_threadsafe_function func, napi_threadsafe_function_release_mode mode);
|
|
230
230
|
|
|
231
|
-
NAPI_EXTERN napi_status NAPI_CDECL
|
|
232
|
-
|
|
231
|
+
NAPI_EXTERN napi_status NAPI_CDECL napi_unref_threadsafe_function(
|
|
232
|
+
node_api_nogc_env env, napi_threadsafe_function func);
|
|
233
233
|
|
|
234
|
-
NAPI_EXTERN napi_status NAPI_CDECL
|
|
235
|
-
|
|
234
|
+
NAPI_EXTERN napi_status NAPI_CDECL napi_ref_threadsafe_function(
|
|
235
|
+
node_api_nogc_env env, napi_threadsafe_function func);
|
|
236
236
|
|
|
237
237
|
#endif // NAPI_VERSION >= 4
|
|
238
238
|
|
|
239
239
|
#if NAPI_VERSION >= 8
|
|
240
240
|
|
|
241
241
|
NAPI_EXTERN napi_status NAPI_CDECL
|
|
242
|
-
napi_add_async_cleanup_hook(
|
|
242
|
+
napi_add_async_cleanup_hook(node_api_nogc_env env,
|
|
243
243
|
napi_async_cleanup_hook hook,
|
|
244
244
|
void* arg,
|
|
245
245
|
napi_async_cleanup_hook_handle* remove_handle);
|
|
@@ -252,7 +252,7 @@ napi_remove_async_cleanup_hook(napi_async_cleanup_hook_handle remove_handle);
|
|
|
252
252
|
#if NAPI_VERSION >= 9
|
|
253
253
|
|
|
254
254
|
NAPI_EXTERN napi_status NAPI_CDECL
|
|
255
|
-
node_api_get_module_file_name(
|
|
255
|
+
node_api_get_module_file_name(node_api_nogc_env env, const char** result);
|
|
256
256
|
|
|
257
257
|
#endif // NAPI_VERSION >= 9
|
|
258
258
|
|
|
@@ -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
|
|
27
|
-
#define NODE_PATCH_VERSION
|
|
26
|
+
#define NODE_MINOR_VERSION 20
|
|
27
|
+
#define NODE_PATCH_VERSION 0
|
|
28
28
|
|
|
29
29
|
#define NODE_VERSION_IS_LTS 1
|
|
30
30
|
#define NODE_VERSION_LTS_CODENAME "Hydrogen"
|
package/include/node/v8-object.h
CHANGED
|
@@ -20,6 +20,8 @@ class Function;
|
|
|
20
20
|
class FunctionTemplate;
|
|
21
21
|
template <typename T>
|
|
22
22
|
class PropertyCallbackInfo;
|
|
23
|
+
class Module;
|
|
24
|
+
class UnboundScript;
|
|
23
25
|
|
|
24
26
|
/**
|
|
25
27
|
* A private symbol
|
|
@@ -480,6 +482,21 @@ class V8_EXPORT Object : public Value {
|
|
|
480
482
|
/** Sets the value in an internal field. */
|
|
481
483
|
void SetInternalField(int index, Local<Value> value);
|
|
482
484
|
|
|
485
|
+
/**
|
|
486
|
+
* Warning: These are Node.js-specific extentions used to avoid breaking
|
|
487
|
+
* changes in Node.js v18.x. They do not exist in V8 upstream and will
|
|
488
|
+
* not exist in Node.js v21.x. Node.js embedders and addon authors should
|
|
489
|
+
* not use them from v18.x.
|
|
490
|
+
*/
|
|
491
|
+
#ifndef NODE_WANT_INTERNALS
|
|
492
|
+
V8_DEPRECATED("This extention should only be used by Node.js core")
|
|
493
|
+
#endif
|
|
494
|
+
void SetInternalFieldForNodeCore(int index, Local<Module> value);
|
|
495
|
+
#ifndef NODE_WANT_INTERNALS
|
|
496
|
+
V8_DEPRECATED("This extention should only be used by Node.js core")
|
|
497
|
+
#endif
|
|
498
|
+
void SetInternalFieldForNodeCore(int index, Local<UnboundScript> value);
|
|
499
|
+
|
|
483
500
|
/**
|
|
484
501
|
* Gets a 2-byte-aligned native pointer from an internal field. This field
|
|
485
502
|
* must have been set by SetAlignedPointerInInternalField, everything else
|
package/include/node/v8-script.h
CHANGED
|
@@ -128,10 +128,9 @@ class V8_EXPORT ModuleRequest : public Data {
|
|
|
128
128
|
*
|
|
129
129
|
* All assertions present in the module request will be supplied in this
|
|
130
130
|
* list, regardless of whether they are supported by the host. Per
|
|
131
|
-
* https://tc39.es/proposal-import-
|
|
132
|
-
* hosts are expected to
|
|
133
|
-
* opposed to, for example,
|
|
134
|
-
* present).
|
|
131
|
+
* https://tc39.es/proposal-import-attributes/#sec-hostgetsupportedimportattributes,
|
|
132
|
+
* hosts are expected to throw for assertions that they do not support (as
|
|
133
|
+
* opposed to, for example, ignoring them).
|
|
135
134
|
*/
|
|
136
135
|
Local<FixedArray> GetImportAssertions() const;
|
|
137
136
|
|
package/include/node/zlib.h
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* zlib.h -- interface of the 'zlib' general purpose compression library
|
|
2
|
-
version 1.
|
|
2
|
+
version 1.3.0.1, August xxth, 2023
|
|
3
3
|
|
|
4
|
-
Copyright (C) 1995-
|
|
4
|
+
Copyright (C) 1995-2023 Jean-loup Gailly and Mark Adler
|
|
5
5
|
|
|
6
6
|
This software is provided 'as-is', without any express or implied
|
|
7
7
|
warranty. In no event will the authors be held liable for any damages
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
extern "C" {
|
|
38
38
|
#endif
|
|
39
39
|
|
|
40
|
-
#define ZLIB_VERSION "1.
|
|
41
|
-
#define ZLIB_VERNUM
|
|
40
|
+
#define ZLIB_VERSION "1.3.0.1-motley"
|
|
41
|
+
#define ZLIB_VERNUM 0x1301
|
|
42
42
|
#define ZLIB_VER_MAJOR 1
|
|
43
|
-
#define ZLIB_VER_MINOR
|
|
44
|
-
#define ZLIB_VER_REVISION
|
|
43
|
+
#define ZLIB_VER_MINOR 3
|
|
44
|
+
#define ZLIB_VER_REVISION 0
|
|
45
45
|
#define ZLIB_VER_SUBREVISION 1
|
|
46
46
|
|
|
47
47
|
/*
|
|
@@ -230,7 +230,7 @@ ZEXTERN int ZEXPORT deflateInit(z_streamp strm, int level);
|
|
|
230
230
|
Initializes the internal stream state for compression. The fields
|
|
231
231
|
zalloc, zfree and opaque must be initialized before by the caller. If
|
|
232
232
|
zalloc and zfree are set to Z_NULL, deflateInit updates them to use default
|
|
233
|
-
allocation functions.
|
|
233
|
+
allocation functions. total_in, total_out, adler, and msg are initialized.
|
|
234
234
|
|
|
235
235
|
The compression level must be Z_DEFAULT_COMPRESSION, or between 0 and 9:
|
|
236
236
|
1 gives best speed, 9 gives best compression, 0 gives no compression at all
|
|
@@ -320,8 +320,8 @@ ZEXTERN int ZEXPORT deflate(z_streamp strm, int flush);
|
|
|
320
320
|
with the same value of the flush parameter and more output space (updated
|
|
321
321
|
avail_out), until the flush is complete (deflate returns with non-zero
|
|
322
322
|
avail_out). In the case of a Z_FULL_FLUSH or Z_SYNC_FLUSH, make sure that
|
|
323
|
-
avail_out is greater than six
|
|
324
|
-
avail_out == 0
|
|
323
|
+
avail_out is greater than six when the flush marker begins, in order to avoid
|
|
324
|
+
repeated flush markers upon calling deflate() again when avail_out == 0.
|
|
325
325
|
|
|
326
326
|
If the parameter flush is set to Z_FINISH, pending input is processed,
|
|
327
327
|
pending output is flushed and deflate returns with Z_STREAM_END if there was
|
|
@@ -382,7 +382,8 @@ ZEXTERN int ZEXPORT inflateInit(z_streamp strm);
|
|
|
382
382
|
read or consumed. The allocation of a sliding window will be deferred to
|
|
383
383
|
the first call of inflate (if the decompression does not complete on the
|
|
384
384
|
first call). If zalloc and zfree are set to Z_NULL, inflateInit updates
|
|
385
|
-
them to use default allocation functions.
|
|
385
|
+
them to use default allocation functions. total_in, total_out, adler, and
|
|
386
|
+
msg are initialized.
|
|
386
387
|
|
|
387
388
|
inflateInit returns Z_OK if success, Z_MEM_ERROR if there was not enough
|
|
388
389
|
memory, Z_VERSION_ERROR if the zlib library version is incompatible with the
|
|
@@ -695,7 +696,7 @@ ZEXTERN int ZEXPORT deflateReset(z_streamp strm);
|
|
|
695
696
|
This function is equivalent to deflateEnd followed by deflateInit, but
|
|
696
697
|
does not free and reallocate the internal compression state. The stream
|
|
697
698
|
will leave the compression level and any other attributes that may have been
|
|
698
|
-
set unchanged.
|
|
699
|
+
set unchanged. total_in, total_out, adler, and msg are initialized.
|
|
699
700
|
|
|
700
701
|
deflateReset returns Z_OK if success, or Z_STREAM_ERROR if the source
|
|
701
702
|
stream state was inconsistent (such as zalloc or state being Z_NULL).
|
|
@@ -820,8 +821,9 @@ ZEXTERN int ZEXPORT deflateSetHeader(z_streamp strm,
|
|
|
820
821
|
gzip file" and give up.
|
|
821
822
|
|
|
822
823
|
If deflateSetHeader is not used, the default gzip header has text false,
|
|
823
|
-
the time set to zero, and os set to
|
|
824
|
-
fields. The gzip header is returned to the default
|
|
824
|
+
the time set to zero, and os set to the current operating system, with no
|
|
825
|
+
extra, name, or comment fields. The gzip header is returned to the default
|
|
826
|
+
state by deflateReset().
|
|
825
827
|
|
|
826
828
|
deflateSetHeader returns Z_OK if success, or Z_STREAM_ERROR if the source
|
|
827
829
|
stream state was inconsistent.
|
|
@@ -960,6 +962,7 @@ ZEXTERN int ZEXPORT inflateReset(z_streamp strm);
|
|
|
960
962
|
This function is equivalent to inflateEnd followed by inflateInit,
|
|
961
963
|
but does not free and reallocate the internal decompression state. The
|
|
962
964
|
stream will keep attributes that may have been set by inflateInit2.
|
|
965
|
+
total_in, total_out, adler, and msg are initialized.
|
|
963
966
|
|
|
964
967
|
inflateReset returns Z_OK if success, or Z_STREAM_ERROR if the source
|
|
965
968
|
stream state was inconsistent (such as zalloc or state being Z_NULL).
|