-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Upgrade Node.js to version 14 #83425
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
288708a
f4bbd8f
02b8e85
d0640f1
f82898c
dde1039
fa0813a
7864180
5c5561d
4a4caf5
dfb20e8
70c7c44
727c032
948d93b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 12.19.1 | ||
| 14.15.1 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 12.19.1 | ||
| 14.15.1 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -70,7 +70,7 @@ describe('reduceStream', () => { | |
| const errorStub = jest.fn(); | ||
| 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. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm somewhat concerned about this change. Looks like
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 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... |
||
|
|
||
| reduce$.write(1); | ||
| reduce$.write(2); | ||
|
|
@@ -79,7 +79,7 @@ describe('reduceStream', () => { | |
| reduce$.write(1000); | ||
| reduce$.end(); | ||
|
|
||
| await endEvent; | ||
| await closeEvent; | ||
| expect(reducer).toHaveBeenCalledTimes(3); | ||
| expect(dataStub).toHaveBeenCalledTimes(0); | ||
| expect(errorStub).toHaveBeenCalledTimes(1); | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,6 +27,9 @@ export function replaceUrlQuery( | |
| queryReplacer: (query: ParsedQuery) => ParsedQuery | ||
| ) { | ||
| 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 || {}); | ||
|
Comment on lines
29
to
33
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
||
| const searchQueryString = stringify(urlUtils.encodeQuery(newQuery), { | ||
| sort: false, | ||
|
|
@@ -45,6 +48,9 @@ export function replaceUrlHashQuery( | |
| ) { | ||
| const url = parseUrl(rawUrl); | ||
| const hash = parseUrlHash(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(hash?.query || {}); | ||
| const searchQueryString = stringify(urlUtils.encodeQuery(newQuery), { | ||
| sort: false, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.