-
Notifications
You must be signed in to change notification settings - Fork 160
chore!: migrate to Node 18 #2399
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
Merged
Merged
Changes from 5 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
304ddbc
Update to node 18+. Update all deps, except chai and chai-as-promised
MarkDuckworth be2c037
Fixes for google-gax major version update
MarkDuckworth e00f785
formatting
MarkDuckworth f302e88
more formatting
MarkDuckworth eab3a2a
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] 90a0fc9
Update .OwlBot.lock.yaml
MarkDuckworth bf8df48
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] 289f0c7
Update opentelemetry packages to v2
MarkDuckworth 901afb0
Merge branch 'node-18' of github.com:googleapis/nodejs-firestore into…
MarkDuckworth 03e8e67
fix for opentelemetry dep tree with override
MarkDuckworth bc11ab8
Remove ignore of no-floating-promises lint error
MarkDuckworth f037570
Floating promise lint error fixes (#2400)
MarkDuckworth fc4c934
Merge branch 'main' into node-18
MarkDuckworth cec047e
Merge branch 'main' into node-18
MarkDuckworth 71ee0c8
linting
MarkDuckworth b4b784f
Update .OwlBot.lock.yaml
MarkDuckworth 62cab6a
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] 5b0a9b0
update @google-cloud/opentelemetry-cloud-trace-exporter
MarkDuckworth c31cd4b
Skip tests failing because of gax-fallback regression
MarkDuckworth 57e9210
Merge branch 'main' into node-18
MarkDuckworth 61f304d
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] dfed5c4
Get the API report building again
MarkDuckworth 38e473d
add renamed api-report script
MarkDuckworth File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,7 +34,8 @@ | |
| "object": "it", | ||
| "property": "only" | ||
| } | ||
| ] | ||
| ], | ||
| "@typescript-eslint/no-floating-promises": ["off"] | ||
| } | ||
| } | ||
| ] | ||
|
|
||
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,30 @@ | ||
| Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: | ||
| - [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/nodejs-firestore/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea | ||
| > Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: | ||
|
|
||
| ## Description | ||
|
|
||
| > Please provide a detailed description for the change. | ||
| > As much as possible, please try to keep changes separate by purpose. For example, try not to make a one-line bug fix in a feature request, or add an irrelevant README change to a bug fix. | ||
|
|
||
| ## Impact | ||
|
|
||
| > What's the impact of this change? | ||
|
|
||
| ## Testing | ||
|
|
||
| > Have you added unit and integration tests if necessary? | ||
| > Were any tests changed? Are any breaking changes necessary? | ||
|
|
||
| ## Additional Information | ||
|
|
||
| > Any additional details that we should be aware of? | ||
|
|
||
| ## Checklist | ||
|
|
||
| - [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/nodejs-firestore/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea | ||
| - [ ] Ensure the tests and linter pass | ||
| - [ ] Code coverage does not decrease (if any source code was changed) | ||
| - [ ] Appropriate docs were updated (if necessary) | ||
| - [ ] Code coverage does not decrease | ||
| - [ ] Appropriate docs were updated | ||
| - [ ] Appropriate comments were added, particularly in complex areas or places that require background | ||
| - [ ] No new warnings or issues will be generated from this change | ||
|
|
||
| Fixes #<issue_number_goes_here> 🦕 | ||
| Fixes #issue_number_goes_here 🦕 |
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| ### Please make sure you have searched for information in the following guides. | ||
|
|
||
| - [X] Search the issues already opened: https://github.com/GoogleCloudPlatform/google-cloud-node/issues | ||
| - [X] Search StackOverflow: http://stackoverflow.com/questions/tagged/google-cloud-platform+node.js | ||
| - [X] Check our Troubleshooting guide: https://googlecloudplatform.github.io/google-cloud-node/#/docs/guides/troubleshooting | ||
| - [X] Check our FAQ: https://googlecloudplatform.github.io/google-cloud-node/#/docs/guides/faq | ||
| - [X] Check our libraries HOW-TO: https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md | ||
| - [X] Check out our authentication guide: https://github.com/googleapis/google-auth-library-nodejs | ||
| - [X] Check out handwritten samples for many of our APIs: https://github.com/GoogleCloudPlatform/nodejs-docs-samples | ||
|
|
||
| ### A screenshot that you have tested with "Try this API". | ||
|
|
||
|
|
||
| N/A | ||
|
|
||
| ### Link to the code that reproduces this issue. A link to a **public** Github Repository or gist with a minimal reproduction. | ||
|
|
||
| not-a-link | ||
|
|
||
| ### A step-by-step description of how to reproduce the issue, based on the linked reproduction. | ||
|
|
||
|
|
||
| Change MY_PROJECT to your project name, add credentials if needed and run. | ||
|
|
||
| ### A clear and concise description of what the bug is, and what you expected to happen. | ||
|
|
||
| The application crashes with the following exception (which there is no way to catch). It should just emit error, and allow graceful handling. | ||
| TypeError [ERR_INVALID_ARG_TYPE]: The "chunk" argument must be of type string or an instance of Buffer or Uint8Array. Received an instance of Object | ||
| at _write (node:internal/streams/writable:474:13) | ||
| at Writable.write (node:internal/streams/writable:502:10) | ||
| at Duplexify._write (/project/node_modules/duplexify/index.js:212:22) | ||
| at doWrite (/project/node_modules/duplexify/node_modules/readable-stream/lib/_stream_writable.js:390:139) | ||
| at writeOrBuffer (/project/node_modules/duplexify/node_modules/readable-stream/lib/_stream_writable.js:381:5) | ||
| at Writable.write (/project/node_modules/duplexify/node_modules/readable-stream/lib/_stream_writable.js:302:11) | ||
| at Pumpify.<anonymous> (/project/node_modules/@google-cloud/speech/build/src/helpers.js:79:27) | ||
| at Object.onceWrapper (node:events:633:26) | ||
| at Pumpify.emit (node:events:518:28) | ||
| at obj.<computed> [as _write] (/project/node_modules/stubs/index.js:28:22) | ||
| at doWrite (/project/node_modules/duplexify/node_modules/readable-stream/lib/_stream_writable.js:390:139) | ||
| at writeOrBuffer (/project/node_modules/duplexify/node_modules/readable-stream/lib/_stream_writable.js:381:5) | ||
| at Writable.write (/project/node_modules/duplexify/node_modules/readable-stream/lib/_stream_writable.js:302:11) | ||
| at PassThrough.ondata (node:internal/streams/readable:1007:22) | ||
| at PassThrough.emit (node:events:518:28) | ||
| at addChunk (node:internal/streams/readable:559:12) { | ||
| code: 'ERR_INVALID_ARG_TYPE' | ||
|
|
||
|
|
||
| ### A clear and concise description WHY you expect this behavior, i.e., was it a recent change, there is documentation that points to this behavior, etc. ** | ||
|
|
||
| No library should crash an application this way. |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| ### Please make sure you have searched for information in the following guides. | ||
|
|
||
| - [X] Search the issues already opened: https://github.com/GoogleCloudPlatform/google-cloud-node/issues | ||
| - [X] Search StackOverflow: http://stackoverflow.com/questions/tagged/google-cloud-platform+node.js | ||
| - [X] Check our Troubleshooting guide: https://googlecloudplatform.github.io/google-cloud-node/#/docs/guides/troubleshooting | ||
| - [X] Check our FAQ: https://googlecloudplatform.github.io/google-cloud-node/#/docs/guides/faq | ||
| - [X] Check our libraries HOW-TO: https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md | ||
| - [X] Check out our authentication guide: https://github.com/googleapis/google-auth-library-nodejs | ||
| - [X] Check out handwritten samples for many of our APIs: https://github.com/GoogleCloudPlatform/nodejs-docs-samples | ||
|
|
||
| ### A screenshot that you have tested with "Try this API". | ||
|
|
||
|
|
||
| N/A | ||
|
|
||
| ### Link to the code that reproduces this issue. A link to a **public** Github Repository or gist with a minimal reproduction. | ||
|
|
||
| https://gist.github.com/orgads/13cbf44c91923da27d8772b5f10489c9 | ||
|
|
||
| ### A step-by-step description of how to reproduce the issue, based on the linked reproduction. | ||
|
|
||
|
|
||
| Change MY_PROJECT to your project name, add credentials if needed and run. | ||
|
|
||
| ### A clear and concise description of what the bug is, and what you expected to happen. | ||
|
|
||
| The application crashes with the following exception (which there is no way to catch). It should just emit error, and allow graceful handling. | ||
| TypeError [ERR_INVALID_ARG_TYPE]: The "chunk" argument must be of type string or an instance of Buffer or Uint8Array. Received an instance of Object | ||
| at _write (node:internal/streams/writable:474:13) | ||
| at Writable.write (node:internal/streams/writable:502:10) | ||
| at Duplexify._write (/project/node_modules/duplexify/index.js:212:22) | ||
| at doWrite (/project/node_modules/duplexify/node_modules/readable-stream/lib/_stream_writable.js:390:139) | ||
| at writeOrBuffer (/project/node_modules/duplexify/node_modules/readable-stream/lib/_stream_writable.js:381:5) | ||
| at Writable.write (/project/node_modules/duplexify/node_modules/readable-stream/lib/_stream_writable.js:302:11) | ||
| at Pumpify.<anonymous> (/project/node_modules/@google-cloud/speech/build/src/helpers.js:79:27) | ||
| at Object.onceWrapper (node:events:633:26) | ||
| at Pumpify.emit (node:events:518:28) | ||
| at obj.<computed> [as _write] (/project/node_modules/stubs/index.js:28:22) | ||
| at doWrite (/project/node_modules/duplexify/node_modules/readable-stream/lib/_stream_writable.js:390:139) | ||
| at writeOrBuffer (/project/node_modules/duplexify/node_modules/readable-stream/lib/_stream_writable.js:381:5) | ||
| at Writable.write (/project/node_modules/duplexify/node_modules/readable-stream/lib/_stream_writable.js:302:11) | ||
| at PassThrough.ondata (node:internal/streams/readable:1007:22) | ||
| at PassThrough.emit (node:events:518:28) | ||
| at addChunk (node:internal/streams/readable:559:12) { | ||
| code: 'ERR_INVALID_ARG_TYPE' | ||
|
|
||
|
|
||
| ### A clear and concise description WHY you expect this behavior, i.e., was it a recent change, there is documentation that points to this behavior, etc. ** | ||
|
|
||
| No library should crash an application this way. |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.