Upgrade Node.js to version 14#83425
Merged
watson merged 14 commits intoelastic:masterfrom Dec 2, 2020
Merged
Conversation
Closed
69f09e8 to
f7b1a4a
Compare
Webpack 4 doesn't support optional chaining, so we need to force Babel to use plugin-proposal-optional-chaining even though Node.js 14 supports it. Once we upgrade to Webpack 5 this should no longer be needed.
patrykkopycinski
approved these changes
Dec 1, 2020
Contributor
patrykkopycinski
left a comment
There was a problem hiding this comment.
SIEM/Endpoint LGTM
spalger
approved these changes
Dec 1, 2020
| reduce$.on('data', dataStub); | ||
| reduce$.on('error', errorStub); | ||
| const endEvent = promiseFromEvent('end', reduce$); | ||
| const closeEvent = promiseFromEvent('close', reduce$); |
Contributor
There was a problem hiding this comment.
I'm somewhat concerned about this change. Looks like transform.destroy() is what leads to the close event being emitted, but we don't call it... any idea what change in node 14 lead to this being necessary?
Contributor
Author
There was a problem hiding this comment.
Good question. I must say I didn't go into too many details when debugging the test-failure, so I'm not sure my solution is correct. I'll take a closer look...
mshustov
approved these changes
Dec 2, 2020
mshustov
reviewed
Dec 2, 2020
jportner
approved these changes
Dec 2, 2020
Contributor
jportner
left a comment
There was a problem hiding this comment.
One nit and a question below, LGTM!
Comment on lines
29
to
33
| const url = parseUrl(rawUrl); | ||
| // @ts-expect-error `queryReplacer` expects key/value pairs with values of type `string | string[] | null`, | ||
| // however `@types/node` says that `url.query` has values of type `string | string[] | undefined`. | ||
| // After investigating this, it seems that no matter what the values will be of type `string | string[]` | ||
| const newQuery = queryReplacer(url.query || {}); |
streamich
approved these changes
Dec 2, 2020
Contributor
💚 Build SucceededMetrics [docs]Distributable file count
History
To update your PR or re-run it, just comment with: |
10 tasks
watson
added a commit
that referenced
this pull request
Dec 3, 2020
gmmorris
added a commit
to gmmorris/kibana
that referenced
this pull request
Dec 3, 2020
* master: (40 commits) fix: 🐛 don't add separator befor group on no main items (elastic#83166) [Security Solution][Detections] Implements indicator match rule cypress test (elastic#84323) [APM] Add APM agent config options (elastic#84678) Fixed a11y issue on rollup jobs table selection (elastic#84567) [Discover] Refactor getContextUrl to separate file (elastic#84503) [Embeddable] Export CSV action for Lens embeddables in dashboard (elastic#83654) [TSVB] [Cleanup] Remove extra dateFormat props (elastic#84749) [Lens] Migrate legacy es client and remove total hits as int (elastic#84340) Improve logging pipeline in @kbn/legacy-logging (elastic#84629) Catch @hapi/podium errors (elastic#84575) [Discover] Unskip date histogram test (elastic#84727) Rename server.xsrf.whitelist to server.xsrf.allowlist (elastic#84791) [Enterprise Search] Fix schema errors button (elastic#84842) [APM] Removes react-sticky dependency in favor of using CSS (elastic#84589) [Maps] Always initialize routes on server-startup (elastic#84806) [Fleet] EPM support to handle uploaded file paths (elastic#84708) [Snapshot Restore] Fix initial policy form state (elastic#83928) Upgrade Node.js to version 14 (elastic#83425) [Security Solution] Keep Endpoint policies up to date with license changes (elastic#83992) [Security Solution][Exceptions] Implement exceptions for ML rules (elastic#84006) ...
gmmorris
added a commit
to gmmorris/kibana
that referenced
this pull request
Dec 3, 2020
* master: (236 commits) fix: 🐛 don't add separator befor group on no main items (elastic#83166) [Security Solution][Detections] Implements indicator match rule cypress test (elastic#84323) [APM] Add APM agent config options (elastic#84678) Fixed a11y issue on rollup jobs table selection (elastic#84567) [Discover] Refactor getContextUrl to separate file (elastic#84503) [Embeddable] Export CSV action for Lens embeddables in dashboard (elastic#83654) [TSVB] [Cleanup] Remove extra dateFormat props (elastic#84749) [Lens] Migrate legacy es client and remove total hits as int (elastic#84340) Improve logging pipeline in @kbn/legacy-logging (elastic#84629) Catch @hapi/podium errors (elastic#84575) [Discover] Unskip date histogram test (elastic#84727) Rename server.xsrf.whitelist to server.xsrf.allowlist (elastic#84791) [Enterprise Search] Fix schema errors button (elastic#84842) [APM] Removes react-sticky dependency in favor of using CSS (elastic#84589) [Maps] Always initialize routes on server-startup (elastic#84806) [Fleet] EPM support to handle uploaded file paths (elastic#84708) [Snapshot Restore] Fix initial policy form state (elastic#83928) Upgrade Node.js to version 14 (elastic#83425) [Security Solution] Keep Endpoint policies up to date with license changes (elastic#83992) [Security Solution][Exceptions] Implement exceptions for ML rules (elastic#84006) ...
gmmorris
added a commit
to gmmorris/kibana
that referenced
this pull request
Dec 3, 2020
…overy-action-group * upstream/master: (48 commits) [Lens] accessibility screen reader issues (elastic#84395) [Logs UI] Fetch single log entries via a search strategy (elastic#81710) fix: 🐛 don't add separator befor group on no main items (elastic#83166) [Security Solution][Detections] Implements indicator match rule cypress test (elastic#84323) [APM] Add APM agent config options (elastic#84678) Fixed a11y issue on rollup jobs table selection (elastic#84567) [Discover] Refactor getContextUrl to separate file (elastic#84503) [Embeddable] Export CSV action for Lens embeddables in dashboard (elastic#83654) [TSVB] [Cleanup] Remove extra dateFormat props (elastic#84749) [Lens] Migrate legacy es client and remove total hits as int (elastic#84340) Improve logging pipeline in @kbn/legacy-logging (elastic#84629) Catch @hapi/podium errors (elastic#84575) [Discover] Unskip date histogram test (elastic#84727) Rename server.xsrf.whitelist to server.xsrf.allowlist (elastic#84791) [Enterprise Search] Fix schema errors button (elastic#84842) [APM] Removes react-sticky dependency in favor of using CSS (elastic#84589) [Maps] Always initialize routes on server-startup (elastic#84806) [Fleet] EPM support to handle uploaded file paths (elastic#84708) [Snapshot Restore] Fix initial policy form state (elastic#83928) Upgrade Node.js to version 14 (elastic#83425) ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This upgrades the Node.js runtime to a new major version.
For a complete list of changes in the Node.js runtime, see the Node.js CHANGELOG. For only the breaking changes, see the list of notable changes for v13 and v14 respectively.
Closes #54039
What's new?
Node.js 14 brings with it a lot of new features and improvements. Among the most interesting are:
streamAPI much more concise.--experimental-modulesflag.Read more here.
Todo
lmdb-storewith fixes for@types/nodev13+ included.@elastic/goodwith fixes for Node.js 14 included.@elastic/goodwith other fixes for Node.js 14 included.Notes to reviewers
@babel/proposal-optional-chainingplugin inkbn-pmbecause webpack v4 doesn't like optional chaining in combination with TypeScript, so even though Node.js 14 supports it, we still need to babelify it. It looks like we'll need to do this until we upgrade to webpack v5.Release note
Upgrades the major Node.js version used by and shipped with Kibana from v12 to v14.