mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
Notable changes:
* assert:
* If the validation function passed to `assert.throws()` or
`assert.rejects()` returns a value other than `true`, an assertion
error will be thrown instead of the original error to highlight the
programming mistake (Ruben Bridgewater).
https://github.com/nodejs/node/pull/28263
* If a constructor function is passed to validate the instance of
errors thrown in `assert.throws()` or `assert.reject()`, an
assertion error will be thrown instead of the original error
(Ruben Bridgewater).
https://github.com/nodejs/node/pull/28263
* build:
* Node.js releases are now built with default full-icu support. This
means that all locales supported by ICU are now included and
Intl-related APIs may return different values than before
(Richard Lau).
https://github.com/nodejs/node/pull/29887
* The minimum Xcode version supported for macOS was increased to 10.
It is still possible to build Node.js with Xcode 8 but this may no
longer be the case in a future v13.x release (Michael Dawson).
https://github.com/nodejs/node/pull/29622
* child_process:
* `ChildProcess._channel` (DEP0129) is now a Runtime deprecation
(cjihrig).
https://github.com/nodejs/node/pull/27949
* console:
* The output `console.timeEnd()` and `console.timeLog()` will now
automatically select a suitable time unit instead of always using
milliseconds (Xavier Stouder).
https://github.com/nodejs/node/pull/29251
* deps:
* The V8 engine was updated to version 7.8. This includes performance
improvements to object destructuring, memory usage and WebAssembly
startup time (Myles Borins).
https://github.com/nodejs/node/pull/29694)
* domain:
* The domain's error handler is now executed with the active domain
set to the domain's parent to prevent inner recursion
(Julien Gilli).
https://github.com/nodejs/node/pull/26211
* fs:
* The undocumented method `FSWatcher.prototype.start()` was removed
(Lucas Holmquist).
https://github.com/nodejs/node/pull/29905
* Calling the `open()` method on a `ReadStream` or `WriteStream` now
emits a runtime deprecation warning. The methods are supposed to be
internal and should not be called by user code (Robert Nagy).
https://github.com/nodejs/node/pull/29061
* `fs.read/write`, `fs.readSync/writeSync` and `fd.read/write` now
accept any safe integer as their `offset` parameter. The value of
`offset` is also no longer coerced, so a valid type must be passed
to the functions (Zach Bjornson).
https://github.com/nodejs/node/pull/26572
* http:
* Aborted requests no longer emit the `end` or `error` events after
`aborted` (Robert Nagy).
https://github.com/nodejs/node/pull/27984
https://github.com/nodejs/node/pull/20077
* Data will no longer be emitted after a socket error (Robert Nagy).
https://github.com/nodejs/node/pull/28711
* The legacy HTTP parser (previously available under the
`--http-parser=legacy` flag) was removed (Anna Henningsen).
https://github.com/nodejs/node/pull/29589
* The `host` option for HTTP requests is now validated to be a string
value (Giorgos Ntemiris).
https://github.com/nodejs/node/pull/29568
* The `request.connection` and `response.connection` properties are now
runtime deprecated. The equivalent `request.socket` and `response.socket`
should be used instead (Robert Nagy).
https://github.com/nodejs/node/pull/29015
* http, http2:
* The default server timeout was removed (Ali Ijaz Sheikh).
https://github.com/nodejs/node/pull/27558
* Brought 425 status code name into accordance with RFC 8470. The name
changed from "Unordered Collection" to "Too Early" (Sergei Osipov).
https://github.com/nodejs/node/pull/29880
* lib:
* The `error.errno` property will now always be a number. To get the
string value, use `error.code` instead (Joyee Cheung).
https://github.com/nodejs/node/pull/28140
* module:
* `module.createRequireFromPath()` is deprecated. Use
`module.createRequire()` instead (cjihrig).
https://github.com/nodejs/node/pull/27951
* src:
* Changing the value of `process.env.TZ` will now clear the tz cache.
This affects the default time zone used by methods such as
`Date.prototype.toString` (Ben Noordhuis).
https://github.com/nodejs/node/pull/20026
* stream:
* The timing and behavior of streams was consolidated for a number of
edge cases. Please look at the individual commits below for more
information.
PR-URL: https://github.com/nodejs/node/pull/29504
99 lines
3.7 KiB
C
99 lines
3.7 KiB
C
// Copyright Joyent, Inc. and other Node contributors.
|
|
//
|
|
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
// copy of this software and associated documentation files (the
|
|
// "Software"), to deal in the Software without restriction, including
|
|
// without limitation the rights to use, copy, modify, merge, publish,
|
|
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
// persons to whom the Software is furnished to do so, subject to the
|
|
// following conditions:
|
|
//
|
|
// The above copyright notice and this permission notice shall be included
|
|
// in all copies or substantial portions of the Software.
|
|
//
|
|
// 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.
|
|
|
|
#ifndef SRC_NODE_VERSION_H_
|
|
#define SRC_NODE_VERSION_H_
|
|
|
|
#define NODE_MAJOR_VERSION 14
|
|
#define NODE_MINOR_VERSION 0
|
|
#define NODE_PATCH_VERSION 0
|
|
|
|
#define NODE_VERSION_IS_LTS 0
|
|
#define NODE_VERSION_LTS_CODENAME ""
|
|
|
|
#define NODE_VERSION_IS_RELEASE 0
|
|
|
|
#ifndef NODE_STRINGIFY
|
|
#define NODE_STRINGIFY(n) NODE_STRINGIFY_HELPER(n)
|
|
#define NODE_STRINGIFY_HELPER(n) #n
|
|
#endif
|
|
|
|
#ifndef NODE_RELEASE
|
|
#define NODE_RELEASE "node"
|
|
#endif
|
|
|
|
#ifndef NODE_TAG
|
|
# if NODE_VERSION_IS_RELEASE
|
|
# define NODE_TAG ""
|
|
# else
|
|
# define NODE_TAG "-pre"
|
|
# endif
|
|
#else
|
|
// NODE_TAG is passed without quotes when rc.exe is run from msbuild
|
|
# define NODE_EXE_VERSION NODE_STRINGIFY(NODE_MAJOR_VERSION) "." \
|
|
NODE_STRINGIFY(NODE_MINOR_VERSION) "." \
|
|
NODE_STRINGIFY(NODE_PATCH_VERSION) \
|
|
NODE_STRINGIFY(NODE_TAG)
|
|
#endif
|
|
|
|
# define NODE_VERSION_STRING NODE_STRINGIFY(NODE_MAJOR_VERSION) "." \
|
|
NODE_STRINGIFY(NODE_MINOR_VERSION) "." \
|
|
NODE_STRINGIFY(NODE_PATCH_VERSION) \
|
|
NODE_TAG
|
|
#ifndef NODE_EXE_VERSION
|
|
# define NODE_EXE_VERSION NODE_VERSION_STRING
|
|
#endif
|
|
|
|
#define NODE_VERSION "v" NODE_VERSION_STRING
|
|
|
|
|
|
#define NODE_VERSION_AT_LEAST(major, minor, patch) \
|
|
(( (major) < NODE_MAJOR_VERSION) \
|
|
|| ((major) == NODE_MAJOR_VERSION && (minor) < NODE_MINOR_VERSION) \
|
|
|| ((major) == NODE_MAJOR_VERSION && \
|
|
(minor) == NODE_MINOR_VERSION && (patch) <= NODE_PATCH_VERSION))
|
|
|
|
/**
|
|
* Node.js will refuse to load modules that weren't compiled against its own
|
|
* module ABI number, exposed as the process.versions.modules property.
|
|
*
|
|
* Node.js will refuse to load modules with a non-matching ABI version. The
|
|
* version number here should be changed whenever an ABI-incompatible API change
|
|
* is made in the C++ side, including in V8 or other dependencies.
|
|
*
|
|
* Node.js will not change the module version during a Major release line
|
|
* We will, at times update the version of V8 shipped in the release line
|
|
* if it can be made ABI compatible with the previous version.
|
|
*
|
|
* The registry of used NODE_MODULE_VERSION numbers is located at
|
|
* https://github.com/nodejs/node/blob/master/doc/abi_version_registry.json
|
|
* Extenders, embedders and other consumers of Node.js that require ABI
|
|
* version matching should open a pull request to reserve a number in this
|
|
* registry.
|
|
*/
|
|
#define NODE_MODULE_VERSION 79
|
|
|
|
// The NAPI_VERSION provided by this version of the runtime. This is the version
|
|
// which the Node binary being built supports.
|
|
#define NAPI_VERSION 5
|
|
|
|
#endif // SRC_NODE_VERSION_H_
|