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
Fix premature close with chunked transfer encoding (Node 10+) and for async iterators in Node 12 #1064
Fix premature close with chunked transfer encoding (Node 10+) and for async iterators in Node 12 #1064
Conversation
9cf8c18
to
858b7ed
Compare
Very excited for this fix! 😄 |
@davidje13 @xxczaki @Richienb I'm seeing anecdotal evidence from multiple sources that this change fixes a large set of issues with stalling requests. I think it would be beneficial to get your reviews so we can merge and release an updated beta. |
Hey @tekwiz is there a plan to release this bugfix in a new |
are these changes released to |
@ran-kalir @oed I will release |
Ok, that's unfortunate. When is v3 slated for release? Or any way to backport this fix? |
Hey @xxczaki, any update on getting this backported to v2? This is causing major problems for us that is getting in the way of our product launch. (see #1055 and ipfs/js-ipfs#3465 which inspired it) |
@stbrody can you send a pull request agains the v2 branch? |
…rators in Node 12 This PR backports the fix from node-fetch#1064 to the `2.x.x` branch following the [comment here](node-fetch#1064 (comment)). I had to add some extra babel config to allow using the `for await..of` syntax in the tests. The config is only needed for the tests as this syntax is not used in the implementation.
CI on #1172 is green! |
node-fetch/node-fetch#1064 fixes a bug in node-fetch to make it handle situations where the stream closes prematurely but it's been merged into the v3 release tree which is still future tech with no release date. node-fetch/node-fetch#1172 backports that fix to v2 but although approved it's not been merged and released yet so here we use a temporary fork published with that PR merged in.
…127) node-fetch/node-fetch#1064 fixes a bug in node-fetch to make it handle situations where the stream closes prematurely but it's been merged into the v3 release tree which is still future tech with no release date. node-fetch/node-fetch#1172 backports that fix to v2 but although approved it's not been merged and released yet so here we use a temporary fork published with that PR merged in.
…rators in Node 12 (#1172) * fix: premature close with chunked transfer encoding and for async iterators in Node 12 This PR backports the fix from #1064 to the `2.x.x` branch following the [comment here](#1064 (comment)). I had to add some extra babel config to allow using the `for await..of` syntax in the tests. The config is only needed for the tests as this syntax is not used in the implementation. * chore: fix up tests for node 6+ * chore: codecov dropped support for node < 8 without shipping major * chore: npm7 strips empty dependencies hash during install * chore: pin deps to versions that work on node 4 * chore: do not emit close error after aborting a request * chore: test on node 4-16 * chore: simplify chunked transer encoding bad ending * chore: avoid calling .destroy as it is not in every node.js release * chore: listen for response close as socket is reused and shows warnings
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [node-fetch](https://togithub.com/node-fetch/node-fetch) | [`2.6.7` -> `2.6.11`](https://renovatebot.com/diffs/npm/node-fetch/2.6.7/2.6.11) | [![age](https://badges.renovateapi.com/packages/npm/node-fetch/2.6.11/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/node-fetch/2.6.11/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/node-fetch/2.6.11/compatibility-slim/2.6.7)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/node-fetch/2.6.11/confidence-slim/2.6.7)](https://docs.renovatebot.com/merge-confidence/) | | [@types/node-fetch](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-fetch) ([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped)) | [`2.6.2` -> `2.6.4`](https://renovatebot.com/diffs/npm/@types%2fnode-fetch/2.6.2/2.6.4) | [![age](https://badges.renovateapi.com/packages/npm/@types%2fnode-fetch/2.6.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@types%2fnode-fetch/2.6.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@types%2fnode-fetch/2.6.4/compatibility-slim/2.6.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@types%2fnode-fetch/2.6.4/confidence-slim/2.6.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>node-fetch/node-fetch</summary> ### [`v2.6.11`](https://togithub.com/node-fetch/node-fetch/releases/tag/v2.6.11) [Compare Source](https://togithub.com/node-fetch/node-fetch/compare/v2.6.10...v2.6.11) ##### Reverts - Revert "fix: handle bom in text and json ([#​1739](https://togithub.com/node-fetch/node-fetch/issues/1739))" ([#​1741](https://togithub.com/node-fetch/node-fetch/issues/1741)) ([afb36f6](https://togithub.com/bitinn/node-fetch/commit/afb36f6c178342488d71947dfc87e7ddd19fab9e)), closes [#​1739](https://togithub.com/bitinn/node-fetch/issues/1739) [#​1741](https://togithub.com/bitinn/node-fetch/issues/1741) ### [`v2.6.10`](https://togithub.com/node-fetch/node-fetch/releases/tag/v2.6.10) [Compare Source](https://togithub.com/node-fetch/node-fetch/compare/v2.6.9...v2.6.10) ##### Bug Fixes - handle bom in text and json ([#​1739](https://togithub.com/bitinn/node-fetch/issues/1739)) ([29909d7](https://togithub.com/bitinn/node-fetch/commit/29909d75c62d51e0d1c23758e526dba74bfd463d)) ### [`v2.6.9`](https://togithub.com/node-fetch/node-fetch/releases/tag/v2.6.9) [Compare Source](https://togithub.com/node-fetch/node-fetch/compare/v2.6.8...v2.6.9) ##### Bug Fixes - "global is not defined" ([#​1704](https://togithub.com/bitinn/node-fetch/issues/1704)) ([70f592d](https://togithub.com/bitinn/node-fetch/commit/70f592d9d2da959df1cebc2dd2314286a4bcf345)) ### [`v2.6.8`](https://togithub.com/node-fetch/node-fetch/releases/tag/v2.6.8) [Compare Source](https://togithub.com/node-fetch/node-fetch/compare/v2.6.7...v2.6.8) ##### Bug Fixes - **headers:** don't forward secure headers on protocol change ([#​1605](https://togithub.com/bitinn/node-fetch/issues/1605)) ([fddad0e](https://togithub.com/bitinn/node-fetch/commit/fddad0e7ea3fd6da01cc006fdf0ed304ccdd7990)), closes [#​1599](https://togithub.com/bitinn/node-fetch/issues/1599) - premature close with chunked transfer encoding and for async iterators in Node 12 ([#​1172](https://togithub.com/bitinn/node-fetch/issues/1172)) ([50536d1](https://togithub.com/bitinn/node-fetch/commit/50536d1e02ad42bdf262381034805378b98bfa53)), closes [#​1064](https://togithub.com/bitinn/node-fetch/issues/1064) [/github.com/node-fetch/node-fetch/pull/1064#issuecomment-849167400](https://togithub.com//github.com/node-fetch/node-fetch/pull/1064/issues/issuecomment-849167400) - prevent hoisting of the undefined `global` variable in `browser.js` ([#​1534](https://togithub.com/bitinn/node-fetch/issues/1534)) ([8bb6e31](https://togithub.com/bitinn/node-fetch/commit/8bb6e317c866c4134e7d67e90a5596a8c67e3965)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/levaintech/sticky). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMzEuMCIsInVwZGF0ZWRJblZlciI6IjM1LjEzMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@types/jest](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jest) ([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped)) | [`29.2.4` -> `29.5.3`](https://renovatebot.com/diffs/npm/@types%2fjest/29.2.4/29.5.3) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2fjest/29.5.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2fjest/29.5.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2fjest/29.2.4/29.5.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2fjest/29.2.4/29.5.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [@types/node](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node) ([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped)) | [`18.11.13` -> `18.16.20`](https://renovatebot.com/diffs/npm/@types%2fnode/18.11.13/18.16.20) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2fnode/18.16.20?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2fnode/18.16.20?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2fnode/18.11.13/18.16.20?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2fnode/18.11.13/18.16.20?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [@types/node-fetch](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-fetch) ([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped)) | [`2.6.2` -> `2.6.4`](https://renovatebot.com/diffs/npm/@types%2fnode-fetch/2.6.2/2.6.4) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2fnode-fetch/2.6.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2fnode-fetch/2.6.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2fnode-fetch/2.6.2/2.6.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2fnode-fetch/2.6.2/2.6.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [firebase-admin](https://firebase.google.com/) ([source](https://togithub.com/firebase/firebase-admin-node)) | [`11.4.0` -> `11.10.1`](https://renovatebot.com/diffs/npm/firebase-admin/11.4.0/11.10.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/firebase-admin/11.10.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/firebase-admin/11.10.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/firebase-admin/11.4.0/11.10.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/firebase-admin/11.4.0/11.10.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [firebase-functions](https://togithub.com/firebase/firebase-functions) | [`4.1.1` -> `4.4.1`](https://renovatebot.com/diffs/npm/firebase-functions/4.1.1/4.4.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/firebase-functions/4.4.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/firebase-functions/4.4.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/firebase-functions/4.1.1/4.4.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/firebase-functions/4.1.1/4.4.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [firebase-functions-test](https://togithub.com/firebase/firebase-functions-test) | [`3.0.0` -> `3.1.0`](https://renovatebot.com/diffs/npm/firebase-functions-test/3.0.0/3.1.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/firebase-functions-test/3.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/firebase-functions-test/3.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/firebase-functions-test/3.0.0/3.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/firebase-functions-test/3.0.0/3.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [jest](https://jestjs.io/) ([source](https://togithub.com/facebook/jest)) | [`29.3.1` -> `29.6.1`](https://renovatebot.com/diffs/npm/jest/29.3.1/29.6.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/jest/29.6.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/jest/29.6.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/jest/29.3.1/29.6.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/jest/29.3.1/29.6.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [node-fetch](https://togithub.com/node-fetch/node-fetch) | [`2.6.7` -> `2.6.12`](https://renovatebot.com/diffs/npm/node-fetch/2.6.7/2.6.12) | [![age](https://developer.mend.io/api/mc/badges/age/npm/node-fetch/2.6.12?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/node-fetch/2.6.12?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/node-fetch/2.6.7/2.6.12?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/node-fetch/2.6.7/2.6.12?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [ts-jest](https://kulshekhar.github.io/ts-jest) ([source](https://togithub.com/kulshekhar/ts-jest)) | [`29.0.3` -> `29.1.1`](https://renovatebot.com/diffs/npm/ts-jest/29.0.3/29.1.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/ts-jest/29.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/ts-jest/29.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/ts-jest/29.0.3/29.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/ts-jest/29.0.3/29.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [typescript](https://www.typescriptlang.org/) ([source](https://togithub.com/Microsoft/TypeScript)) | [`4.9.4` -> `4.9.5`](https://renovatebot.com/diffs/npm/typescript/4.9.4/4.9.5) | [![age](https://developer.mend.io/api/mc/badges/age/npm/typescript/4.9.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/typescript/4.9.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/typescript/4.9.4/4.9.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/typescript/4.9.4/4.9.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>firebase/firebase-admin-node (firebase-admin)</summary> ### [`v11.10.1`](https://togithub.com/firebase/firebase-admin-node/releases/tag/v11.10.1): Firebase Admin Node.js SDK v11.10.1 [Compare Source](https://togithub.com/firebase/firebase-admin-node/compare/v11.10.0...v11.10.1) ##### Miscellaneous - \[chore] Release 11.10.1 ([#​2248](https://togithub.com/firebase/firebase-admin-node/issues/2248)) - Revert "chore: upgrade databse-compat ([#​2244](https://togithub.com/firebase/firebase-admin-node/issues/2244))" ([#​2247](https://togithub.com/firebase/firebase-admin-node/issues/2247)) ### [`v11.10.0`](https://togithub.com/firebase/firebase-admin-node/releases/tag/v11.10.0): Firebase Admin Node.js SDK v11.10.0 [Compare Source](https://togithub.com/firebase/firebase-admin-node/compare/v11.9.0...v11.10.0) ##### New Features - feat(functions): Add features to task queue functions ([#​2216](https://togithub.com/firebase/firebase-admin-node/issues/2216)) - feat(auth): Add `TotpInfo` field to `UserRecord` ([#​2197](https://togithub.com/firebase/firebase-admin-node/issues/2197)) - feat(storage): Add `getDownloadUrl` method to the Storage API ([#​2036](https://togithub.com/firebase/firebase-admin-node/issues/2036)) ##### Bug Fixes - fix: Update TOTP docstrings ([#​2245](https://togithub.com/firebase/firebase-admin-node/issues/2245)) ##### Miscellaneous - \[chore] Release 11.10.0 ([#​2246](https://togithub.com/firebase/firebase-admin-node/issues/2246)) - chore: upgrade databse-compat ([#​2244](https://togithub.com/firebase/firebase-admin-node/issues/2244)) - build(deps): bump semver from 5.7.1 to 5.7.2 ([#​2242](https://togithub.com/firebase/firebase-admin-node/issues/2242)) - build(deps-dev): bump [@​microsoft/api-extractor](https://togithub.com/microsoft/api-extractor) from 7.36.0 to 7.36.1 ([#​2239](https://togithub.com/firebase/firebase-admin-node/issues/2239)) - build(deps-dev): bump sinon from 15.0.4 to 15.2.0 ([#​2240](https://togithub.com/firebase/firebase-admin-node/issues/2240)) - Fixed docgen for `getDownloadURL` ([#​2241](https://togithub.com/firebase/firebase-admin-node/issues/2241)) - Fix Memory Leak in AsyncHttpCall affecting auth.listUsers ([#​2236](https://togithub.com/firebase/firebase-admin-node/issues/2236)) - build(deps): bump [@​google-cloud/storage](https://togithub.com/google-cloud/storage) from 6.9.5 to 6.11.0 ([#​2231](https://togithub.com/firebase/firebase-admin-node/issues/2231)) - build(deps): bump [@​google-cloud/firestore](https://togithub.com/google-cloud/firestore) from 6.6.0 to 6.6.1 ([#​2232](https://togithub.com/firebase/firebase-admin-node/issues/2232)) - build(deps-dev): bump [@​firebase/app-compat](https://togithub.com/firebase/app-compat) from 0.2.7 to 0.2.13 ([#​2233](https://togithub.com/firebase/firebase-admin-node/issues/2233)) - Fixes to password policy validation ([#​2227](https://togithub.com/firebase/firebase-admin-node/issues/2227)) - Fix nesting in auth config tests ([#​2228](https://togithub.com/firebase/firebase-admin-node/issues/2228)) - build(deps-dev): bump eslint from 8.41.0 to 8.43.0 ([#​2218](https://togithub.com/firebase/firebase-admin-node/issues/2218)) - build(deps-dev): bump [@​typescript-eslint/eslint-plugin](https://togithub.com/typescript-eslint/eslint-plugin) ([#​2223](https://togithub.com/firebase/firebase-admin-node/issues/2223)) - build(deps-dev): bump [@​microsoft/api-extractor](https://togithub.com/microsoft/api-extractor) from 7.34.4 to 7.36.0 ([#​2219](https://togithub.com/firebase/firebase-admin-node/issues/2219)) - build(deps): bump [@​types/node](https://togithub.com/types/node) from 18.16.3 to 20.3.2 ([#​2224](https://togithub.com/firebase/firebase-admin-node/issues/2224)) - Expose MultiDB within Firestore ([#​2209](https://togithub.com/firebase/firebase-admin-node/issues/2209)) - build(deps-dev): bump [@​typescript-eslint/parser](https://togithub.com/typescript-eslint/parser) from 5.59.2 to 5.59.9 ([#​2205](https://togithub.com/firebase/firebase-admin-node/issues/2205)) - build(deps-dev): bump [@​types/lodash](https://togithub.com/types/lodash) from 4.14.194 to 4.14.195 ([#​2206](https://togithub.com/firebase/firebase-admin-node/issues/2206)) - build(deps-dev): bump [@​firebase/auth-compat](https://togithub.com/firebase/auth-compat) from 0.4.1 to 0.4.2 ([#​2208](https://togithub.com/firebase/firebase-admin-node/issues/2208)) ### [`v11.9.0`](https://togithub.com/firebase/firebase-admin-node/releases/tag/v11.9.0): Firebase Admin Node.js SDK v11.9.0 [Compare Source](https://togithub.com/firebase/firebase-admin-node/compare/v11.8.0...v11.9.0) ##### New Features - feat(auth): Add Password Policies support in Project and Tenant config ([#​2107](https://togithub.com/firebase/firebase-admin-node/issues/2107)) ##### Bug Fixes - fix(firestore): Export `Filter` type from Firestore ([#​2192](https://togithub.com/firebase/firebase-admin-node/issues/2192)) ##### Miscellaneous - \[chore] Release 11.9.0 ([#​2196](https://togithub.com/firebase/firebase-admin-node/issues/2196)) - build(deps-dev): bump yargs from 17.7.1 to 17.7.2 ([#​2199](https://togithub.com/firebase/firebase-admin-node/issues/2199)) - build(deps-dev): bump [@​typescript-eslint/eslint-plugin](https://togithub.com/typescript-eslint/eslint-plugin) ([#​2200](https://togithub.com/firebase/firebase-admin-node/issues/2200)) - build(deps-dev): bump [@​types/firebase-token-generator](https://togithub.com/types/firebase-token-generator) ([#​2201](https://togithub.com/firebase/firebase-admin-node/issues/2201)) - chore: Upgrade Firestore to v6.6.0 ([#​2193](https://togithub.com/firebase/firebase-admin-node/issues/2193)) - fix Unsafe JavaScript Equality Checking ([#​2183](https://togithub.com/firebase/firebase-admin-node/issues/2183)) - build(deps-dev): bump nock from 13.3.0 to 13.3.1 ([#​2187](https://togithub.com/firebase/firebase-admin-node/issues/2187)) - build(deps-dev): bump [@​typescript-eslint/eslint-plugin](https://togithub.com/typescript-eslint/eslint-plugin) ([#​2188](https://togithub.com/firebase/firebase-admin-node/issues/2188)) - build(deps-dev): bump eslint from 8.40.0 to 8.41.0 ([#​2189](https://togithub.com/firebase/firebase-admin-node/issues/2189)) - build(deps-dev): bump [@​typescript-eslint/eslint-plugin](https://togithub.com/typescript-eslint/eslint-plugin) ([#​2182](https://togithub.com/firebase/firebase-admin-node/issues/2182)) - build(deps-dev): bump [@​types/chai](https://togithub.com/types/chai) from 4.3.4 to 4.3.5 ([#​2178](https://togithub.com/firebase/firebase-admin-node/issues/2178)) - build(deps-dev): bump eslint from 8.39.0 to 8.40.0 ([#​2177](https://togithub.com/firebase/firebase-admin-node/issues/2177)) - chore: Pin firebase-tools@11.30.0 to fix the CIs ([#​2185](https://togithub.com/firebase/firebase-admin-node/issues/2185)) ### [`v11.8.0`](https://togithub.com/firebase/firebase-admin-node/releases/tag/v11.8.0): Firebase Admin Node.js SDK v11.8.0 [Compare Source](https://togithub.com/firebase/firebase-admin-node/compare/v11.7.0...v11.8.0) ##### New Features - feat(appcheck): Added replay protection feature to App Check `verifyToken()` API ([#​2148](https://togithub.com/firebase/firebase-admin-node/issues/2148)) ##### Miscellaneous - \[chore] Release 11.8.0 ([#​2175](https://togithub.com/firebase/firebase-admin-node/issues/2175)) - build(deps-dev): bump [@​firebase/auth-compat](https://togithub.com/firebase/auth-compat) from 0.3.7 to 0.4.1 ([#​2173](https://togithub.com/firebase/firebase-admin-node/issues/2173)) - build(deps): bump [@​types/node](https://togithub.com/types/node) from 18.16.1 to 18.16.3 ([#​2172](https://togithub.com/firebase/firebase-admin-node/issues/2172)) - build(deps-dev): bump [@​typescript-eslint/parser](https://togithub.com/typescript-eslint/parser) from 5.59.0 to 5.59.2 ([#​2171](https://togithub.com/firebase/firebase-admin-node/issues/2171)) - build(deps): bump [@​types/node](https://togithub.com/types/node) from 18.15.11 to 18.16.1 ([#​2166](https://togithub.com/firebase/firebase-admin-node/issues/2166)) - build(deps-dev): bump eslint from 8.38.0 to 8.39.0 ([#​2160](https://togithub.com/firebase/firebase-admin-node/issues/2160)) - build(deps-dev): bump sinon from 15.0.3 to 15.0.4 ([#​2162](https://togithub.com/firebase/firebase-admin-node/issues/2162)) ### [`v11.7.0`](https://togithub.com/firebase/firebase-admin-node/releases/tag/v11.7.0): Firebase Admin Node.js SDK v11.7.0 [Compare Source](https://togithub.com/firebase/firebase-admin-node/compare/v11.6.0...v11.7.0) ##### New Features - feat(auth): reCAPTCHA Public preview ([#​2129](https://togithub.com/firebase/firebase-admin-node/issues/2129)) - feat(fcm): Add `sendEach` and `sendEachForMulticast` for FCM batch send ([#​2138](https://togithub.com/firebase/firebase-admin-node/issues/2138)) ##### Miscellaneous - \[chore] Release 11.7.0 ([#​2158](https://togithub.com/firebase/firebase-admin-node/issues/2158)) - build(deps-dev): bump [@​types/sinon](https://togithub.com/types/sinon) from 10.0.13 to 10.0.14 ([#​2157](https://togithub.com/firebase/firebase-admin-node/issues/2157)) - build(deps-dev): bump [@​types/lodash](https://togithub.com/types/lodash) from 4.14.192 to 4.14.194 ([#​2156](https://togithub.com/firebase/firebase-admin-node/issues/2156)) - build(deps-dev): bump [@​typescript-eslint/parser](https://togithub.com/typescript-eslint/parser) from 5.58.0 to 5.59.0 ([#​2154](https://togithub.com/firebase/firebase-admin-node/issues/2154)) - chore: Upgrade dependencies ([#​2147](https://togithub.com/firebase/firebase-admin-node/issues/2147)) ### [`v11.6.0`](https://togithub.com/firebase/firebase-admin-node/releases/tag/v11.6.0): Firebase Admin Node.js SDK v11.6.0 [Compare Source](https://togithub.com/firebase/firebase-admin-node/compare/v11.5.0...v11.6.0) ##### New Features - feat(auth): Add TOTP support in Project and Tenant config ([#​1989](https://togithub.com/firebase/firebase-admin-node/issues/1989)) ##### Changed - Deprecate sendToDevice and sendToDeviceGroup and their response classes ([#​2090](https://togithub.com/firebase/firebase-admin-node/issues/2090)) ##### Miscellaneous - \[chore] Release 11.6.0 ([#​2139](https://togithub.com/firebase/firebase-admin-node/issues/2139)) - chore: update app check integration tests ([#​2140](https://togithub.com/firebase/firebase-admin-node/issues/2140)) - build(deps-dev): bump [@​typescript-eslint/eslint-plugin](https://togithub.com/typescript-eslint/eslint-plugin) ([#​2134](https://togithub.com/firebase/firebase-admin-node/issues/2134)) - build(deps-dev): bump [@​firebase/auth-compat](https://togithub.com/firebase/auth-compat) from 0.3.5 to 0.3.7 ([#​2133](https://togithub.com/firebase/firebase-admin-node/issues/2133)) - build(deps-dev): bump [@​typescript-eslint/parser](https://togithub.com/typescript-eslint/parser) from 5.56.0 to 5.57.1 ([#​2135](https://togithub.com/firebase/firebase-admin-node/issues/2135)) - build(deps): bump [@​google-cloud/storage](https://togithub.com/google-cloud/storage) from 6.9.4 to 6.9.5 ([#​2136](https://togithub.com/firebase/firebase-admin-node/issues/2136)) - build(deps-dev): bump sinon from 15.0.2 to 15.0.3 ([#​2126](https://togithub.com/firebase/firebase-admin-node/issues/2126)) - build(deps): bump [@​firebase/database-compat](https://togithub.com/firebase/database-compat) from 0.3.1 to 0.3.4 ([#​2125](https://togithub.com/firebase/firebase-admin-node/issues/2125)) - build(deps): bump [@​types/node](https://togithub.com/types/node) from 18.15.5 to 18.15.10 ([#​2123](https://togithub.com/firebase/firebase-admin-node/issues/2123)) - build(deps-dev): bump eslint from 8.35.0 to 8.36.0 ([#​2124](https://togithub.com/firebase/firebase-admin-node/issues/2124)) - build(deps-dev): bump [@​firebase/auth-compat](https://togithub.com/firebase/auth-compat) from 0.3.1 to 0.3.5 ([#​2127](https://togithub.com/firebase/firebase-admin-node/issues/2127)) - build(deps-dev): bump sinon from 15.0.1 to 15.0.2 ([#​2120](https://togithub.com/firebase/firebase-admin-node/issues/2120)) - build(deps): bump [@​google-cloud/storage](https://togithub.com/google-cloud/storage) from 6.9.3 to 6.9.4 ([#​2119](https://togithub.com/firebase/firebase-admin-node/issues/2119)) - build(deps-dev): bump [@​firebase/app-compat](https://togithub.com/firebase/app-compat) from 0.2.3 to 0.2.5 ([#​2118](https://togithub.com/firebase/firebase-admin-node/issues/2118)) - build(deps-dev): bump [@​typescript-eslint/eslint-plugin](https://togithub.com/typescript-eslint/eslint-plugin) ([#​2121](https://togithub.com/firebase/firebase-admin-node/issues/2121)) - build(deps): bump [@​types/node](https://togithub.com/types/node) from 18.15.3 to 18.15.5 ([#​2117](https://togithub.com/firebase/firebase-admin-node/issues/2117)) - build(deps): bump [@​firebase/database-types](https://togithub.com/firebase/database-types) from 0.10.3 to 0.10.4 ([#​2101](https://togithub.com/firebase/firebase-admin-node/issues/2101)) - build(deps-dev): bump yargs from 17.6.0 to 17.7.1 ([#​2099](https://togithub.com/firebase/firebase-admin-node/issues/2099)) - build(deps-dev): bump [@​typescript-eslint/parser](https://togithub.com/typescript-eslint/parser) from 5.48.2 to 5.56.0 ([#​2115](https://togithub.com/firebase/firebase-admin-node/issues/2115)) - build(deps): bump [@​types/node](https://togithub.com/types/node) from 18.14.2 to 18.15.3 ([#​2114](https://togithub.com/firebase/firebase-admin-node/issues/2114)) - build(deps): bump [@​google-cloud/firestore](https://togithub.com/google-cloud/firestore) from 6.4.3 to 6.5.0 ([#​2102](https://togithub.com/firebase/firebase-admin-node/issues/2102)) - build(deps): bump [@​types/node](https://togithub.com/types/node) from 18.13.0 to 18.14.2 ([#​2088](https://togithub.com/firebase/firebase-admin-node/issues/2088)) - build(deps-dev): bump [@​types/uuid](https://togithub.com/types/uuid) from 8.3.4 to 9.0.1 ([#​2086](https://togithub.com/firebase/firebase-admin-node/issues/2086)) - build(deps-dev): bump minimist from 1.2.7 to 1.2.8 ([#​2081](https://togithub.com/firebase/firebase-admin-node/issues/2081)) - build(deps-dev): bump [@​typescript-eslint/eslint-plugin](https://togithub.com/typescript-eslint/eslint-plugin) ([#​2087](https://togithub.com/firebase/firebase-admin-node/issues/2087)) - build(deps-dev): bump eslint from 8.33.0 to 8.35.0 ([#​2089](https://togithub.com/firebase/firebase-admin-node/issues/2089)) - Fixing links to externally defined RTDB APIs. ([#​2085](https://togithub.com/firebase/firebase-admin-node/issues/2085)) - build(deps): bump [@​google-cloud/storage](https://togithub.com/google-cloud/storage) from 6.8.0 to 6.9.3 ([#​2082](https://togithub.com/firebase/firebase-admin-node/issues/2082)) - build(deps): bump [@​google-cloud/firestore](https://togithub.com/google-cloud/firestore) from 6.4.2 to 6.4.3 ([#​2079](https://togithub.com/firebase/firebase-admin-node/issues/2079)) - build(deps): bump [@​google-cloud/firestore](https://togithub.com/google-cloud/firestore) from 6.4.0 to 6.4.2 ([#​2074](https://togithub.com/firebase/firebase-admin-node/issues/2074)) - build(deps-dev): bump [@​firebase/auth-types](https://togithub.com/firebase/auth-types) from 0.11.1 to 0.12.0 ([#​2072](https://togithub.com/firebase/firebase-admin-node/issues/2072)) - build(deps-dev): bump [@​firebase/app-compat](https://togithub.com/firebase/app-compat) from 0.2.1 to 0.2.3 ([#​2071](https://togithub.com/firebase/firebase-admin-node/issues/2071)) - build(deps): bump [@​firebase/database-types](https://togithub.com/firebase/database-types) from 0.10.0 to 0.10.3 ([#​2073](https://togithub.com/firebase/firebase-admin-node/issues/2073)) - build(deps-dev): bump [@​microsoft/api-extractor](https://togithub.com/microsoft/api-extractor) from 7.34.3 to 7.34.4 ([#​2070](https://togithub.com/firebase/firebase-admin-node/issues/2070)) - build(deps): bump [@​types/node](https://togithub.com/types/node) from 18.11.14 to 18.13.0 ([#​2067](https://togithub.com/firebase/firebase-admin-node/issues/2067)) - build(deps-dev): bump [@​microsoft/api-extractor](https://togithub.com/microsoft/api-extractor) from 7.33.5 to 7.34.3 ([#​2064](https://togithub.com/firebase/firebase-admin-node/issues/2064)) - build(deps): bump [@​fastify/busboy](https://togithub.com/fastify/busboy) from 1.1.0 to 1.2.1 ([#​2066](https://togithub.com/firebase/firebase-admin-node/issues/2066)) - build(deps-dev): bump eslint from 8.31.0 to 8.33.0 ([#​2060](https://togithub.com/firebase/firebase-admin-node/issues/2060)) - build(deps): bump [@​firebase/database-compat](https://togithub.com/firebase/database-compat) from 0.3.0 to 0.3.1 ([#​2059](https://togithub.com/firebase/firebase-admin-node/issues/2059)) - build(deps-dev): bump nock from 13.2.9 to 13.3.0 ([#​2058](https://togithub.com/firebase/firebase-admin-node/issues/2058)) - build(deps-dev): bump [@​firebase/auth-compat](https://togithub.com/firebase/auth-compat) from 0.2.24 to 0.3.1 ([#​2053](https://togithub.com/firebase/firebase-admin-node/issues/2053)) - build(deps-dev): bump [@​firebase/app-compat](https://togithub.com/firebase/app-compat) from 0.1.37 to 0.2.1 ([#​2052](https://togithub.com/firebase/firebase-admin-node/issues/2052)) ### [`v11.5.0`](https://togithub.com/firebase/firebase-admin-node/releases/tag/v11.5.0): Firebase Admin Node.js SDK v11.5.0 [Compare Source](https://togithub.com/firebase/firebase-admin-node/compare/v11.4.1...v11.5.0) ##### New Features - feat: Fix impersonated service account parsing exception ([#​1862](https://togithub.com/firebase/firebase-admin-node/issues/1862)) ##### Bug Fixes - fix(firestore): Fix PreferRest caching ([#​2040](https://togithub.com/firebase/firebase-admin-node/issues/2040)) ##### Miscellaneous - \[chore] Release 11.5.0 ([#​2049](https://togithub.com/firebase/firebase-admin-node/issues/2049)) - chore: Increase test coverage for service account impersonation support ([#​2047](https://togithub.com/firebase/firebase-admin-node/issues/2047)) - build(deps-dev): bump [@​typescript-eslint/eslint-plugin](https://togithub.com/typescript-eslint/eslint-plugin) ([#​2045](https://togithub.com/firebase/firebase-admin-node/issues/2045)) - build(deps): bump jwks-rsa from 2.1.5 to 3.0.1 ([#​2046](https://togithub.com/firebase/firebase-admin-node/issues/2046)) - build(deps-dev): bump [@​typescript-eslint/parser](https://togithub.com/typescript-eslint/parser) from 5.47.0 to 5.48.2 ([#​2044](https://togithub.com/firebase/firebase-admin-node/issues/2044)) - build(deps): bump [@​firebase/database-types](https://togithub.com/firebase/database-types) from 0.9.17 to 0.10.0 ([#​2030](https://togithub.com/firebase/firebase-admin-node/issues/2030)) - build(deps): bump json5 from 2.2.1 to 2.2.3 ([#​2038](https://togithub.com/firebase/firebase-admin-node/issues/2038)) - build(deps-dev): bump eslint from 8.29.0 to 8.31.0 ([#​2033](https://togithub.com/firebase/firebase-admin-node/issues/2033)) - build(deps): bump [@​firebase/database-compat](https://togithub.com/firebase/database-compat) from 0.2.10 to 0.3.0 ([#​2029](https://togithub.com/firebase/firebase-admin-node/issues/2029)) - build(deps-dev): bump sinon from 14.0.2 to 15.0.1 ([#​2028](https://togithub.com/firebase/firebase-admin-node/issues/2028)) ### [`v11.4.1`](https://togithub.com/firebase/firebase-admin-node/releases/tag/v11.4.1): Firebase Admin Node.js SDK v11.4.1 [Compare Source](https://togithub.com/firebase/firebase-admin-node/compare/v11.4.0...v11.4.1) ##### Bug Fixes - fix: Update jsonwebtoken to v9.0.0 ([#​2025](https://togithub.com/firebase/firebase-admin-node/issues/2025)) ##### Miscellaneous - \[chore] Release 11.4.1 ([#​2026](https://togithub.com/firebase/firebase-admin-node/issues/2026)) - build(deps-dev): bump mocha from 10.1.0 to 10.2.0 ([#​2019](https://togithub.com/firebase/firebase-admin-node/issues/2019)) - build(deps-dev): bump [@​typescript-eslint/parser](https://togithub.com/typescript-eslint/parser) from 5.42.1 to 5.47.0 ([#​2020](https://togithub.com/firebase/firebase-admin-node/issues/2020)) - build(deps-dev): bump [@​typescript-eslint/eslint-plugin](https://togithub.com/typescript-eslint/eslint-plugin) ([#​2018](https://togithub.com/firebase/firebase-admin-node/issues/2018)) </details> <details> <summary>firebase/firebase-functions (firebase-functions)</summary> ### [`v4.4.1`](https://togithub.com/firebase/firebase-functions/releases/tag/v4.4.1) [Compare Source](https://togithub.com/firebase/firebase-functions/compare/v4.4.0...v4.4.1) - Update list of supported regions for 2nd Gen Functions. ([#​1402](https://togithub.com/firebase/firebase-functions/issues/1402)) - Fix bug where log message on structured log was being overwritten ([#​1416](https://togithub.com/firebase/firebase-functions/issues/1416)) - Fix bug where exists() should return true for falsy values like 0, "" ([#​1410](https://togithub.com/firebase/firebase-functions/issues/1410)) ### [`v4.4.0`](https://togithub.com/firebase/firebase-functions/releases/tag/v4.4.0) [Compare Source](https://togithub.com/firebase/firebase-functions/compare/v4.3.1...v4.4.0) - Fix typo on alert event type. ([#​1384](https://togithub.com/firebase/firebase-functions/issues/1384)) - Add `consumeAppCheckToken` option for callable functions ([#​1374](https://togithub.com/firebase/firebase-functions/issues/1374)) ### [`v4.3.1`](https://togithub.com/firebase/firebase-functions/releases/tag/v4.3.1) [Compare Source](https://togithub.com/firebase/firebase-functions/compare/v4.3.0...v4.3.1) - Export Change interface from the v2 firestore path ([#​1379](https://togithub.com/firebase/firebase-functions/issues/1379)). ### [`v4.3.0`](https://togithub.com/firebase/firebase-functions/releases/tag/v4.3.0) [Compare Source](https://togithub.com/firebase/firebase-functions/compare/v4.2.1...v4.3.0) - Enhance firstore triggers ([#​1358](https://togithub.com/firebase/firebase-functions/issues/1358)). - Allow parametrized string type in ServiceAccount fields in Functions and trigger configs ([#​1309](https://togithub.com/firebase/firebase-functions/issues/1309)) - Adds support for region params ([#​1353](https://togithub.com/firebase/firebase-functions/issues/1353)). ### [`v4.2.1`](https://togithub.com/firebase/firebase-functions/releases/tag/v4.2.1) [Compare Source](https://togithub.com/firebase/firebase-functions/compare/v4.2.0...v4.2.1) - Fixes an emulator issue where snapshot.ref could not point to multiple databases ([#​1339](https://togithub.com/firebase/firebase-functions/issues/1339)). - Fixes emulated v1 callable functions that use a monorepo setup ([#​1345](https://togithub.com/firebase/firebase-functions/issues/1345)). ### [`v4.2.0`](https://togithub.com/firebase/firebase-functions/releases/tag/v4.2.0) [Compare Source](https://togithub.com/firebase/firebase-functions/compare/v4.1.1...v4.2.0) - Allow Functions to specify vpcConnector as a string parameter ([#​1329](https://togithub.com/firebase/firebase-functions/issues/1329)) - Upgrade jsonwebtoken to version 9 ([#​1336](https://togithub.com/firebase/firebase-functions/issues/1336)) - Adds 'eventarcpublishing' as required API to custom event function - Hide type information of defineFloat in params module - it's not supported yet ([#​1341](https://togithub.com/firebase/firebase-functions/issues/1341)) </details> <details> <summary>firebase/firebase-functions-test (firebase-functions-test)</summary> ### [`v3.1.0`](https://togithub.com/firebase/firebase-functions-test/releases/tag/v3.1.0) [Compare Source](https://togithub.com/firebase/firebase-functions-test/compare/v3.0.0...v3.1.0) - Add testing support for 2nd gen firestore triggers ([#​200](https://togithub.com/firebase/firebase-functions-test/issues/200)). </details> <details> <summary>facebook/jest (jest)</summary> ### [`v29.6.1`](https://togithub.com/facebook/jest/blob/HEAD/CHANGELOG.md#2961) [Compare Source](https://togithub.com/facebook/jest/compare/v29.6.0...v29.6.1) ##### Fixes - `[jest-circus]` Revert [#​14110](https://togithub.com/jestjs/jest/pull/14110) as it was a breaking change ([#​14304](https://togithub.com/jestjs/jest/pull/14304)) ### [`v29.6.0`](https://togithub.com/facebook/jest/blob/HEAD/CHANGELOG.md#2960) [Compare Source](https://togithub.com/facebook/jest/compare/v29.5.0...v29.6.0) ##### Features - `[jest-circus, jest-snapshot]` Add support for snapshot matchers in concurrent tests ([#​14139](https://togithub.com/jestjs/jest/pull/14139)) - `[jest-cli]` Include type definitions to generated config files ([#​14078](https://togithub.com/facebook/jest/pull/14078)) - `[jest-snapshot]` Support arrays as property matchers ([#​14025](https://togithub.com/facebook/jest/pull/14025)) - `[jest-core, jest-circus, jest-reporter, jest-runner]` Added support for reporting about start individual test cases using jest-circus ([#​14174](https://togithub.com/jestjs/jest/pull/14174)) ##### Fixes - `[jest-circus]` Prevent false test failures caused by promise rejections handled asynchronously ([#​14110](https://togithub.com/jestjs/jest/pull/14110)) - `[jest-config]` Handle frozen config object ([#​14054](https://togithub.com/facebook/jest/pull/14054)) - `[jest-config]` Allow `coverageDirectory` and `collectCoverageFrom` in project config ([#​14180](https://togithub.com/jestjs/jest/pull/14180)) - `[jest-core]` Always use workers in watch mode to avoid crashes ([#​14059](https://togithub.com/facebook/jest/pull/14059)). - `[jest-environment-jsdom, jest-environment-node]` Fix assignment of `customExportConditions` via `testEnvironmentOptions` when custom env subclass defines a default value ([#​13989](https://togithub.com/facebook/jest/pull/13989)) - `[jest-matcher-utils]` Fix copying value of inherited getters ([#​14007](https://togithub.com/facebook/jest/pull/14007)) - `[jest-mock]` Tweak typings to allow `jest.replaceProperty()` replace methods ([#​14008](https://togithub.com/facebook/jest/pull/14008)) - `[jest-mock]` Improve user input validation and error messages of `spyOn` and `replaceProperty` methods ([#​14087](https://togithub.com/facebook/jest/pull/14087)) - `[jest-runtime]` Bind `jest.isolateModulesAsync` to `this` ([#​14083](https://togithub.com/facebook/jest/pull/14083)) - `[jest-runtime]` Forward `wrapperLength` to the `Script` constructor as `columnOffset` for accurate debugging ([#​14148](https://togithub.com/facebook/jest/pull/14148)) - `[jest-runtime]` Guard `_isMockFunction` access with `in` ([#​14188](https://togithub.com/facebook/jest/pull/14188)) - `[jest-snapshot]` Fix a potential bug when not using prettier and improve performance ([#​14036](https://togithub.com/facebook/jest/pull/14036)) - `[@jest/transform]` Do not instrument `.json` modules ([#​14048](https://togithub.com/facebook/jest/pull/14048)) - `[jest-worker]` Restart a shut down worker before sending it a task ([#​14015](https://togithub.com/facebook/jest/pull/14015)) ##### Chore & Maintenance - `[*]` Update `semver` dependency to get vulnerability fix ([#​14262](https://togithub.com/jestjs/jest/pull/14262)) - `[docs]` Updated documentation for the `--runTestsByPath` CLI command ([#​14004](https://togithub.com/facebook/jest/pull/14004)) - `[docs]` Updated documentation regarding the synchronous fallback when asynchronous code transforms are unavailable ([#​14056](https://togithub.com/facebook/jest/pull/14056)) - `[docs]` Update jest statistics of use and downloads in website Index. ### [`v29.5.0`](https://togithub.com/facebook/jest/blob/HEAD/CHANGELOG.md#2950) [Compare Source](https://togithub.com/facebook/jest/compare/v29.4.3...v29.5.0) ##### Features - `[jest-changed-files]` Support Sapling ([#​13941](https://togithub.com/facebook/jest/pull/13941)) - `[jest-circus, @​jest/cli, jest-config]` Add feature to randomize order of tests via CLI flag or through the config file([#​12922](https://togithub.com/facebook/jest/pull/12922)) - `[jest-cli, jest-config, @​jest/core, jest-haste-map, @​jest/reporters, jest-runner, jest-runtime, @​jest/types]` Add `workerThreads` configuration option to allow using [worker threads](https://nodejs.org/dist/latest/docs/api/worker_threads.html) for parallelization ([#​13939](https://togithub.com/facebook/jest/pull/13939)) - `[jest-cli]` Export `yargsOptions` ([#​13970](https://togithub.com/facebook/jest/pull/13970)) - `[jest-config]` Add `openHandlesTimeout` option to configure possible open handles warning. ([#​13875](https://togithub.com/facebook/jest/pull/13875)) - `[@jest/create-cache-key-function]` Allow passing `length` argument to `createCacheKey()` function and set its default value to `16` on Windows ([#​13827](https://togithub.com/facebook/jest/pull/13827)) - `[jest-message-util]` Add support for [AggregateError](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/AggregateError) ([#​13946](https://togithub.com/facebook/jest/pull/13946) & [#​13947](https://togithub.com/facebook/jest/pull/13947)) - `[jest-message-util]` Add support for [Error causes](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/cause) in `test` and `it` ([#​13935](https://togithub.com/facebook/jest/pull/13935) & [#​13966](https://togithub.com/facebook/jest/pull/13966)) - `[jest-reporters]` Add `summaryThreshold` option to summary reporter to allow overriding the internal threshold that is used to print the summary of all failed tests when the number of test suites surpasses it ([#​13895](https://togithub.com/facebook/jest/pull/13895)) - `[jest-runtime]` Expose `@sinonjs/fake-timers` async APIs functions `advanceTimersByTimeAsync(msToRun)` (`tickAsync(msToRun)`), `advanceTimersToNextTimerAsync(steps)` (`nextAsync`), `runAllTimersAsync` (`runAllAsync`), and `runOnlyPendingTimersAsync` (`runToLastAsync`) ([#​13981](https://togithub.com/facebook/jest/pull/13981)) - `[jest-runtime, @​jest/transform]` Allow V8 coverage provider to collect coverage from files which were not loaded explicitly ([#​13974](https://togithub.com/facebook/jest/pull/13974)) - `[jest-snapshot]` Add support to `cts` and `mts` TypeScript files to inline snapshots ([#​13975](https://togithub.com/facebook/jest/pull/13975)) - `[jest-worker]` Add `start` method to worker farms ([#​13937](https://togithub.com/facebook/jest/pull/13937)) - `[jest-worker]` Support passing a URL as path to worker ([#​13982](https://togithub.com/facebook/jest/pull/13982)) ##### Fixes - `[babel-plugin-jest-hoist]` Fix unwanted hoisting of nested `jest` usages ([#​13952](https://togithub.com/facebook/jest/pull/13952)) - `[jest-circus]` Send test case results for `todo` tests ([#​13915](https://togithub.com/facebook/jest/pull/13915)) - `[jest-circus]` Update message printed on test timeout ([#​13830](https://togithub.com/facebook/jest/pull/13830)) - `[jest-circus]` Avoid creating the word "testfalse" when `takesDoneCallback` is `false` in the message printed on test timeout AND updated timeouts test ([#​13954](https://togithub.com/facebook/jest/pull/13954)) - `[jest-environment-jsdom]` Stop setting `document` to `null` on teardown ([#​13972](https://togithub.com/facebook/jest/pull/13972)) - `[@jest/expect-utils]` Update `toStrictEqual()` to be able to check `jest.fn().mock.calls` ([#​13960](https://togithub.com/facebook/jest/pull/13960)) - `[@jest/test-result]` Allow `TestResultsProcessor` type to return a Promise ([#​13950](https://togithub.com/facebook/jest/pull/13950)) ##### Chore & Maintenance - `[jest-snapshot]` Remove dependency on `jest-haste-map` ([#​13977](https://togithub.com/facebook/jest/pull/13977)) ### [`v29.4.3`](https://togithub.com/facebook/jest/blob/HEAD/CHANGELOG.md#2943) [Compare Source](https://togithub.com/facebook/jest/compare/v29.4.2...v29.4.3) ##### Features - `[expect]` Update `toThrow()` to be able to use error `cause`s ([#​13606](https://togithub.com/facebook/jest/pull/13606)) - `[jest-core]` allow to use `workerIdleMemoryLimit` with only 1 worker or `runInBand` option ([#​13846](https://togithub.com/facebook/jest/pull/13846)) - `[jest-message-util]` Add support for [error `cause`s](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/cause) ([#​13868](https://togithub.com/facebook/jest/pull/13868) & [#​13912](https://togithub.com/facebook/jest/pull/13912)) - `[jest-runtime]` Revert `import assertions` for JSON modules as it's been relegated to Stage 2 ([#​13911](https://togithub.com/facebook/jest/pull/13911)) ##### Fixes - `[@jest/expect-utils]` `subsetEquality` should consider also an object's inherited string keys ([#​13824](https://togithub.com/facebook/jest/pull/13824)) - `[jest-mock]` Clear mock state when `jest.restoreAllMocks()` is called ([#​13867](https://togithub.com/facebook/jest/pull/13867)) - `[jest-mock]` Prevent `mockImplementationOnce` and `mockReturnValueOnce` bleeding into `withImplementation` ([#​13888](https://togithub.com/facebook/jest/pull/13888)) - `[jest-mock]` Do not restore mocks when `jest.resetAllMocks()` is called ([#​13866](https://togithub.com/facebook/jest/pull/13866)) ### [`v29.4.2`](https://togithub.com/facebook/jest/blob/HEAD/CHANGELOG.md#2942) [Compare Source](https://togithub.com/facebook/jest/compare/v29.4.1...v29.4.2) ##### Features - `[@jest/core]` Instrument significant lifecycle events with [`performance.mark()`](https://nodejs.org/docs/latest-v16.x/api/perf_hooks.html#performancemarkname-options) ([#​13859](https://togithub.com/facebook/jest/pull/13859)) ##### Fixes - `[expect, @​jest/expect]` Provide type of `actual` as a generic argument to `Matchers` to allow better-typed extensions ([#​13848](https://togithub.com/facebook/jest/pull/13848)) - `[jest-circus]` Added explicit mention of test failing because `done()` is not being called in error message ([#​13847](https://togithub.com/facebook/jest/pull/13847)) - `[jest-runtime]` Handle CJS re-exports of node core modules from ESM ([#​13856](https://togithub.com/facebook/jest/pull/13856)) - `[jest-transform]` Downgrade `write-file-atomic` to v4 ([#​13853](https://togithub.com/facebook/jest/pull/13853)) - `[jest-worker]` Ignore IPC messages not intended for Jest ([#​13543](https://togithub.com/facebook/jest/pull/13543)) ##### Chore & Maintenance - `[*]` make sure to exclude `.eslintcache` from published module ([#​13832](https://togithub.com/facebook/jest/pull/13832)) - `[docs]` Cleanup incorrect links in CHANGELOG.md ([#​13857](https://togithub.com/facebook/jest/pull/13857)) ### [`v29.4.1`](https://togithub.com/facebook/jest/blob/HEAD/CHANGELOG.md#2941) [Compare Source](https://togithub.com/facebook/jest/compare/v29.4.0...v29.4.1) ##### Features - `[expect, jest-circus, @​jest/types]` Implement `numPassingAsserts` of testResults to track the number of passing asserts in a test ([#​13795](https://togithub.com/facebook/jest/pull/13795)) - `[jest-core]` Add newlines to JSON output ([#​13817](https://togithub.com/facebook/jest/pull/13817)) - `[@jest/reporters]` Automatic log folding in GitHub Actions Reporter ([#​13626](https://togithub.com/facebook/jest/pull/13626)) ##### Fixes - `[@jest/expect-utils]` `toMatchObject` diffs should include `Symbol` properties ([#​13810](https://togithub.com/facebook/jest/pull/13810)) - `[jest-runtime]` Handle missing `replaceProperty` ([#​13823](https://togithub.com/facebook/jest/pull/13823)) - `[@jest/types]` Add partial support for `done` callbacks in typings of `each` ([#​13756](https://togithub.com/facebook/jest/pull/13756)) ### [`v29.4.0`](https://togithub.com/facebook/jest/blob/HEAD/CHANGELOG.md#2940) [Compare Source](https://togithub.com/facebook/jest/compare/v29.3.1...v29.4.0) ##### Features - `[expect, @​jest/expect-utils]` Support custom equality testers ([#​13654](https://togithub.com/facebook/jest/pull/13654)) - `[jest-config, jest-worker]` Use `os.availableParallelism` if available to calculate number of workers to spawn ([#​13738](https://togithub.com/facebook/jest/pull/13738)) - `[@jest/globals, jest-mock]` Add `jest.replaceProperty()` that replaces property value ([#​13496](https://togithub.com/facebook/jest/pull/13496)) - `[jest-haste-map]` ignore Sapling vcs directories (`.sl/`) ([#​13674](https://togithub.com/facebook/jest/pull/13674)) - `[jest-resolve]` Support subpath imports ([#​13705](https://togithub.com/facebook/jest/pull/13705), [#​13723](https://togithub.com/facebook/jest/pull/13723), [#​13777](https://togithub.com/facebook/jest/pull/13777)) - `[jest-runtime]` Add `jest.isolateModulesAsync` for scoped module initialization of asynchronous functions ([#​13680](https://togithub.com/facebook/jest/pull/13680)) - `[jest-runtime]` Add `jest.isEnvironmentTornDown` function ([#​13741](https://togithub.com/facebook/jest/pull/13741)) - `[jest-test-result]` Added `skipped` and `focused` status to `FormattedTestResult` ([#​13700](https://togithub.com/facebook/jest/pull/13700)) - `[jest-transform]` Support for asynchronous `createTransformer` ([#​13762](https://togithub.com/facebook/jest/pull/13762)) ##### Fixes - `[jest-environment-node]` Fix non-configurable globals ([#​13687](https://togithub.com/facebook/jest/pull/13687)) - `[@jest/expect-utils]` `toMatchObject` should handle `Symbol` properties ([#​13639](https://togithub.com/facebook/jest/pull/13639)) - `[jest-mock]` Fix `mockReset` and `resetAllMocks` `undefined` return value([#​13692](https://togithub.com/facebook/jest/pull/13692)) - `[jest-resolve]` Add global paths to `require.resolve.paths` ([#​13633](https://togithub.com/facebook/jest/pull/13633)) - `[jest-resolve]` Correct node core module detection when using `node:` specifiers ([#​13806](https://togithub.com/facebook/jest/pull/13806)) - `[jest-runtime]` Support WASM files that import JS resources ([#​13608](https://togithub.com/facebook/jest/pull/13608)) - `[jest-runtime]` Use the `scriptTransformer` cache in `jest-runner` ([#​13735](https://togithub.com/facebook/jest/pull/13735)) - `[jest-runtime]` Enforce import assertions when importing JSON in ESM ([#​12755](https://togithub.com/facebook/jest/pull/12755) & [#​13805](https://togithub.com/facebook/jest/pull/13805)) - `[jest-snapshot]` Make sure to import `babel` outside of the sandbox ([#​13694](https://togithub.com/facebook/jest/pull/13694)) - `[jest-transform]` Ensure the correct configuration is passed to preprocessors specified multiple times in the `transform` option ([#​13770](https://togithub.com/facebook/jest/pull/13770)) ##### Chore & Maintenance - `[@jest/fake-timers]` Update `@sinonjs/fake-timers` ([#​13612](https://togithub.com/facebook/jest/pull/13612)) - `[docs]` Improve custom puppeteer example to prevent worker warnings ([#​13619](https://togithub.com/facebook/jest/pull/13619)) </details> <details> <summary>node-fetch/node-fetch (node-fetch)</summary> ### [`v2.6.12`](https://togithub.com/node-fetch/node-fetch/releases/tag/v2.6.12) [Compare Source](https://togithub.com/node-fetch/node-fetch/compare/v2.6.11...v2.6.12) ##### Bug Fixes - socket variable testing for undefined ([#​1726](https://togithub.com/bitinn/node-fetch/issues/1726)) ([8bc3a7c](https://togithub.com/bitinn/node-fetch/commit/8bc3a7c85f67fb81bb3d71c8254e68f3b88e9169)) ### [`v2.6.11`](https://togithub.com/node-fetch/node-fetch/releases/tag/v2.6.11) [Compare Source](https://togithub.com/node-fetch/node-fetch/compare/v2.6.10...v2.6.11) ##### Reverts - Revert "fix: handle bom in text and json ([#​1739](https://togithub.com/node-fetch/node-fetch/issues/1739))" ([#​1741](https://togithub.com/node-fetch/node-fetch/issues/1741)) ([afb36f6](https://togithub.com/bitinn/node-fetch/commit/afb36f6c178342488d71947dfc87e7ddd19fab9e)), closes [#​1739](https://togithub.com/bitinn/node-fetch/issues/1739) [#​1741](https://togithub.com/bitinn/node-fetch/issues/1741) ### [`v2.6.10`](https://togithub.com/node-fetch/node-fetch/releases/tag/v2.6.10) [Compare Source](https://togithub.com/node-fetch/node-fetch/compare/v2.6.9...v2.6.10) ##### Bug Fixes - handle bom in text and json ([#​1739](https://togithub.com/bitinn/node-fetch/issues/1739)) ([29909d7](https://togithub.com/bitinn/node-fetch/commit/29909d75c62d51e0d1c23758e526dba74bfd463d)) ### [`v2.6.9`](https://togithub.com/node-fetch/node-fetch/releases/tag/v2.6.9) [Compare Source](https://togithub.com/node-fetch/node-fetch/compare/v2.6.8...v2.6.9) ##### Bug Fixes - "global is not defined" ([#​1704](https://togithub.com/bitinn/node-fetch/issues/1704)) ([70f592d](https://togithub.com/bitinn/node-fetch/commit/70f592d9d2da959df1cebc2dd2314286a4bcf345)) ### [`v2.6.8`](https://togithub.com/node-fetch/node-fetch/releases/tag/v2.6.8) [Compare Source](https://togithub.com/node-fetch/node-fetch/compare/v2.6.7...v2.6.8) ##### Bug Fixes - **headers:** don't forward secure headers on protocol change ([#​1605](https://togithub.com/bitinn/node-fetch/issues/1605)) ([fddad0e](https://togithub.com/bitinn/node-fetch/commit/fddad0e7ea3fd6da01cc006fdf0ed304ccdd7990)), closes [#​1599](https://togithub.com/bitinn/node-fetch/issues/1599) - premature close with chunked transfer encoding and for async iterators in Node 12 ([#​1172](https://togithub.com/bitinn/node-fetch/issues/1172)) ([50536d1](https://togithub.com/bitinn/node-fetch/commit/50536d1e02ad42bdf262381034805378b98bfa53)), closes [#​1064](https://togithub.com/bitinn/node-fetch/issues/1064) [/github.com/node-fetch/node-fetch/pull/1064#issuecomment-849167400](https://togithub.com//github.com/node-fetch/node-fetch/pull/1064/issues/issuecomment-849167400) - prevent hoisting of the undefined `global` variable in `browser.js` ([#​1534](https://togithub.com/bitinn/node-fetch/issues/1534)) ([8bb6e31](https://togithub.com/bitinn/node-fetch/commit/8bb6e317c866c4134e7d67e90a5596a8c67e3965)) </details> <details> <summary>kulshekhar/ts-jest (ts-jest)</summary> ### [`v29.1.1`](https://togithub.com/kulshekhar/ts-jest/blob/HEAD/CHANGELOG.md#2911-2023-06-23) [Compare Source](https://togithub.com/kulshekhar/ts-jest/compare/v29.1.0...v29.1.1) ##### Security Fixes - bump `semver` to `7.5.3` ### [`v29.1.0`](https://togithub.com/kulshekhar/ts-jest/blob/HEAD/CHANGELOG.md#2910-2023-03-26) [Compare Source](https://togithub.com/kulshekhar/ts-jest/compare/v29.0.5...v29.1.0) ##### Features - Support TypeScript 5.x ([#​4064](https://togithub.com/kulshekhar/ts-jest/issues/4064)) ([db98cc9](https://togithub.com/kulshekhar/ts-jest/commit/87f27821db99be411288b50a4f9baa7bedb98cc9)), closes [#​4048](https://togithub.com/kulshekhar/ts-jest/issues/4048) #### [29.0.5](https://togithub.com/kulshekhar/ts-jest/compare/v29.0.4...v29.0.5) (2023-01-13) ##### Reverts - Revert "fix(transformer): don't use cache when `tsJestConfig` is different ([#​3966](https://togithub.com/kulshekhar/ts-jest/issues/3966))" ([185eb18](https://togithub.com/kulshekhar/ts-jest/commit/185eb189d7076c717a107066817d2d6959a8fe39)), closes [#​3966](https://togithub.com/kulshekhar/ts-jest/issues/3966) #### [29.0.4](https://togithub.com/kulshekhar/ts-jest/compare/v29.0.3...v29.0.4) (2023-01-10) ##### Bug Fixes - **transformer:** don't use cache when `tsJestConfig` is different ([#​3966](https://togithub.com/kulshekhar/ts-jest/issues/3966)) ([a445638](https://togithub.com/kulshekhar/ts-jest/commit/a445638ca631911e8ab1a896ffdfcd21506ce71a)) - bump `json5` to `2.2.3` ([#​3976](https://togithub.com/kulshekhar/ts-jest/pull/3976))([b9f7809](https://togithub.com/kulshekhar/ts-jest/commit/b9f7809948309f92534aeba63f3ffb01cb7dc536)) #### [29.0.3](https://togithub.com/kulshekhar/ts-jest/compare/v29.0.2...v29.0.3) (2022-09-28) ##### Bug Fixes - merge config from `globals` with transformer config correctly ([#​3842](https://togithub.com/kulshekhar/ts-jest/issues/3842)) ([9c9fd60](https://togithub.com/kulshekhar/ts-jest/commit/9c9fd6097aea36a6e8b06b0e8841df22896f9121)), closes [#​3841](https://togithub.com/kulshekhar/ts-jest/issues/3841) - **presets:** allow merging transform config when using presets ([#​3833](https://togithub.com/kulshekhar/ts-jest/issues/3833)) ([afc6a94](https://togithub.com/kulshekhar/ts-jest/commit/afc6a948b17c2dc22be51b1a9475a0f6ecbbc372)) ##### Features - add `useESM` option to `pathsToModuleNameMapper` options ([#​3792](https://togithub.com/kulshekhar/ts-jest/issues/3792)) ([eabe906](https://togithub.com/kulshekhar/ts-jest/commit/eabe906e1dd6b132a7b0d05ffc13172cd8a6b73b)) #### [29.0.2](https://togithub.com/kulshekhar/ts-jest/compare/v29.0.1...v29.0.2) (2022-09-23) ##### Bug Fixes - mark `ts-jest` as optional in `ConfigGlobals` ([#​3816](https://togithub.com/kulshekhar/ts-jest/issues/3816)) ([cbb88bb](https://togithub.com/kulshekhar/ts-jest/commit/cbb88bba34dbb852d8f4013be6e020769feb306d)), closes [#​3815](https://togithub.com/kulshekhar/ts-jest/issues/3815) - use correct typings for `config:init` command ([#​3825](https://togithub.com/kulshekhar/ts-jest/issues/3825)) ([21b94db](https://togithub.com/kulshekhar/ts-jest/commit/21b94dbca25b762f79e63b92dea12d830f444570)) #### [29.0.2](https://togithub.com/kulshekhar/ts-jest/compare/v29.0.1...v29.0.2) (2022-09-22) ##### Bug Fixes - mark `ts-jest` as optional in `ConfigGlobals` ([#​3816](https://togithub.com/kulshekhar/ts-jest/issues/3816)) ([cbb88bb](https://togithub.com/kulshekhar/ts-jest/commit/cbb88bba34dbb852d8f4013be6e020769feb306d)), closes [#​3815](https://togithub.com/kulshekhar/ts-jest/issues/3815) #### [29.0.1](https://togithub.com/kulshekhar/ts-jest/compare/v29.0.0...v29.0.1) (2022-09-13) ##### Bug Fixes - **legacy:** include existing globals config in cached config ([#​3803](https://togithub.com/kulshekhar/ts-jest/issues/3803)) ([e79be47](https://togithub.com/kulshekhar/ts-jest/commit/e79be47d2b81a677d0dd39d84328a38ca0f0ffc6)) ##### Features - add typings for `ts-jest` options via `transform` config ([#​3805](https://togithub.com/kulshekhar/ts-jest/issues/3805)) ([664b0f2](https://togithub.com/kulshekhar/ts-jest/commit/664b0f2b446a36dd7661f4840ca3dd7722f1f6ff)) ### [`v29.0.5`](https://togithub.com/kulshekhar/ts-jest/blob/HEAD/CHANGELOG.md#2905-2023-01-13) [Compare Source](https://togithub.com/kulshekhar/ts-jest/compare/v29.0.4...v29.0.5) ##### Reverts - Revert "fix(transformer): don't use cache when `tsJestConfig` is different ([#​3966](https://togithub.com/kulshekhar/ts-jest/issues/3966))" ([185eb18](https://togithub.com/kulshekhar/ts-jest/commit/185eb189d7076c717a107066817d2d6959a8fe39)), closes [#​3966](https://togithub.com/kulshekhar/ts-jest/issues/3966) ### [`v29.0.4`](https://togithub.com/kulshekhar/ts-jest/blob/HEAD/CHANGELOG.md#2904-2023-01-10) [Compare Source](https://togithub.com/kulshekhar/ts-jest/compare/v29.0.3...v29.0.4) ##### Bug Fixes - **transformer:** don't use cache when `tsJestConfig` is different ([#​3966](https://togithub.com/kulshekhar/ts-jest/issues/3966)) ([a445638](https://togithub.com/kulshekhar/ts-jest/commit/a445638ca631911e8ab1a896ffdfcd21506ce71a)) - bump `json5` to `2.2.3` ([#​3976](https://togithub.com/kulshekhar/ts-jest/pull/3976))([b9f7809](https://togithub.com/kulshekhar/ts-jest/commit/b9f7809948309f92534aeba63f3ffb01cb7dc536)) </details> <details> <summary>Microsoft/TypeScript (typescript)</summary> ### [`v4.9.5`](https://togithub.com/microsoft/TypeScript/releases/tag/v4.9.5): TypeScript 4.9.5 [Compare Source](https://togithub.com/Microsoft/TypeScript/compare/v4.9.4...v4.9.5) For release notes, check out the [release announcement](https://devblogs.microsoft.com/typescript/announcing-typescript-4-9/). Downloads are available on: - [npm](https://www.npmjs.com/package/typescript) - [NuGet package](https://www.nuget.org/packages/Microsoft.TypeScript.MSBuild) #### Changes: - [`69e88ef`](https://togithub.com/Microsoft/TypeScript/commit/69e88ef5513a81acf69ec78f4af1f927da0d0584) Port ignore deprecations to 4.9 ([#​52419](https://togithub.com/Microsoft/TypeScript/issues/52419)) - [`daf4e81`](https://togithub.com/Microsoft/TypeScript/commit/daf4e817a18def96b70ac34703b158ff0e6d58df) Port timestamp fix to 4.9 ([#​52426](https://togithub.com/Microsoft/TypeScript/issues/52426)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on the first day of the month" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/sawyerh/highlights). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi4xMS4wIiwidXBkYXRlZEluVmVyIjoiMzYuMTEuMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [node-fetch](https://togithub.com/node-fetch/node-fetch) | [`2.6.7` -> `2.7.0`](https://renovatebot.com/diffs/npm/node-fetch/2.6.7/2.7.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/node-fetch/2.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/node-fetch/2.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/node-fetch/2.6.7/2.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/node-fetch/2.6.7/2.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [@types/node-fetch](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-fetch) ([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped)) | [`2.6.1` -> `2.6.6`](https://renovatebot.com/diffs/npm/@types%2fnode-fetch/2.6.1/2.6.6) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2fnode-fetch/2.6.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2fnode-fetch/2.6.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2fnode-fetch/2.6.1/2.6.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2fnode-fetch/2.6.1/2.6.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>node-fetch/node-fetch (node-fetch)</summary> ### [`v2.7.0`](https://togithub.com/node-fetch/node-fetch/releases/tag/v2.7.0) [Compare Source](https://togithub.com/node-fetch/node-fetch/compare/v2.6.13...v2.7.0) ##### Features - `AbortError` ([#​1744](https://togithub.com/bitinn/node-fetch/issues/1744)) ([9b9d458](https://togithub.com/bitinn/node-fetch/commit/9b9d45881e5ca68757077726b3c0ecf8fdca1f29)) ### [`v2.6.13`](https://togithub.com/node-fetch/node-fetch/releases/tag/v2.6.13) [Compare Source](https://togithub.com/node-fetch/node-fetch/compare/v2.6.12...v2.6.13) ##### Bug Fixes - Remove the default connection close header ([#​1765](https://togithub.com/bitinn/node-fetch/issues/1765)) ([65ae25a](https://togithub.com/bitinn/node-fetch/commit/65ae25a1da2834b046c218685f2085a06f679492)), closes [#​1735](https://togithub.com/bitinn/node-fetch/issues/1735) [#​1473](https://togithub.com/bitinn/node-fetch/issues/1473) [#​1736](https://togithub.com/bitinn/node-fetch/issues/1736) ### [`v2.6.12`](https://togithub.com/node-fetch/node-fetch/releases/tag/v2.6.12) [Compare Source](https://togithub.com/node-fetch/node-fetch/compare/v2.6.11...v2.6.12) ##### Bug Fixes - socket variable testing for undefined ([#​1726](https://togithub.com/bitinn/node-fetch/issues/1726)) ([8bc3a7c](https://togithub.com/bitinn/node-fetch/commit/8bc3a7c85f67fb81bb3d71c8254e68f3b88e9169)) ### [`v2.6.11`](https://togithub.com/node-fetch/node-fetch/releases/tag/v2.6.11) [Compare Source](https://togithub.com/node-fetch/node-fetch/compare/v2.6.10...v2.6.11) ##### Reverts - Revert "fix: handle bom in text and json ([#​1739](https://togithub.com/node-fetch/node-fetch/issues/1739))" ([#​1741](https://togithub.com/node-fetch/node-fetch/issues/1741)) ([afb36f6](https://togithub.com/bitinn/node-fetch/commit/afb36f6c178342488d71947dfc87e7ddd19fab9e)), closes [#​1739](https://togithub.com/bitinn/node-fetch/issues/1739) [#​1741](https://togithub.com/bitinn/node-fetch/issues/1741) ### [`v2.6.10`](https://togithub.com/node-fetch/node-fetch/releases/tag/v2.6.10) [Compare Source](https://togithub.com/node-fetch/node-fetch/compare/v2.6.9...v2.6.10) ##### Bug Fixes - handle bom in text and json ([#​1739](https://togithub.com/bitinn/node-fetch/issues/1739)) ([29909d7](https://togithub.com/bitinn/node-fetch/commit/29909d75c62d51e0d1c23758e526dba74bfd463d)) ### [`v2.6.9`](https://togithub.com/node-fetch/node-fetch/releases/tag/v2.6.9) [Compare Source](https://togithub.com/node-fetch/node-fetch/compare/v2.6.8...v2.6.9) ##### Bug Fixes - "global is not defined" ([#​1704](https://togithub.com/bitinn/node-fetch/issues/1704)) ([70f592d](https://togithub.com/bitinn/node-fetch/commit/70f592d9d2da959df1cebc2dd2314286a4bcf345)) ### [`v2.6.8`](https://togithub.com/node-fetch/node-fetch/releases/tag/v2.6.8) [Compare Source](https://togithub.com/node-fetch/node-fetch/compare/v2.6.7...v2.6.8) ##### Bug Fixes - **headers:** don't forward secure headers on protocol change ([#​1605](https://togithub.com/bitinn/node-fetch/issues/1605)) ([fddad0e](https://togithub.com/bitinn/node-fetch/commit/fddad0e7ea3fd6da01cc006fdf0ed304ccdd7990)), closes [#​1599](https://togithub.com/bitinn/node-fetch/issues/1599) - premature close with chunked transfer encoding and for async iterators in Node 12 ([#​1172](https://togithub.com/bitinn/node-fetch/issues/1172)) ([50536d1](https://togithub.com/bitinn/node-fetch/commit/50536d1e02ad42bdf262381034805378b98bfa53)), closes [#​1064](https://togithub.com/bitinn/node-fetch/issues/1064) [/github.com/node-fetch/node-fetch/pull/1064#issuecomment-849167400](https://togithub.com//github.com/node-fetch/node-fetch/pull/1064/issues/issuecomment-849167400) - prevent hoisting of the undefined `global` variable in `browser.js` ([#​1534](https://togithub.com/bitinn/node-fetch/issues/1534)) ([8bb6e31](https://togithub.com/bitinn/node-fetch/commit/8bb6e317c866c4134e7d67e90a5596a8c67e3965)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/X-oss-byte/Canary-nextjs).
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [node-fetch](https://togithub.com/node-fetch/node-fetch) | [`2.6.7` -> `2.7.0`](https://renovatebot.com/diffs/npm/node-fetch/2.6.7/2.7.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/node-fetch/2.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/node-fetch/2.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/node-fetch/2.6.7/2.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/node-fetch/2.6.7/2.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [@types/node-fetch](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-fetch) ([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped)) | [`2.6.1` -> `2.6.6`](https://renovatebot.com/diffs/npm/@types%2fnode-fetch/2.6.1/2.6.6) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2fnode-fetch/2.6.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2fnode-fetch/2.6.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2fnode-fetch/2.6.1/2.6.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2fnode-fetch/2.6.1/2.6.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>node-fetch/node-fetch (node-fetch)</summary> ### [`v2.7.0`](https://togithub.com/node-fetch/node-fetch/releases/tag/v2.7.0) [Compare Source](https://togithub.com/node-fetch/node-fetch/compare/v2.6.13...v2.7.0) ##### Features - `AbortError` ([#​1744](https://togithub.com/bitinn/node-fetch/issues/1744)) ([9b9d458](https://togithub.com/bitinn/node-fetch/commit/9b9d45881e5ca68757077726b3c0ecf8fdca1f29)) ### [`v2.6.13`](https://togithub.com/node-fetch/node-fetch/releases/tag/v2.6.13) [Compare Source](https://togithub.com/node-fetch/node-fetch/compare/v2.6.12...v2.6.13) ##### Bug Fixes - Remove the default connection close header ([#​1765](https://togithub.com/bitinn/node-fetch/issues/1765)) ([65ae25a](https://togithub.com/bitinn/node-fetch/commit/65ae25a1da2834b046c218685f2085a06f679492)), closes [#​1735](https://togithub.com/bitinn/node-fetch/issues/1735) [#​1473](https://togithub.com/bitinn/node-fetch/issues/1473) [#​1736](https://togithub.com/bitinn/node-fetch/issues/1736) ### [`v2.6.12`](https://togithub.com/node-fetch/node-fetch/releases/tag/v2.6.12) [Compare Source](https://togithub.com/node-fetch/node-fetch/compare/v2.6.11...v2.6.12) ##### Bug Fixes - socket variable testing for undefined ([#​1726](https://togithub.com/bitinn/node-fetch/issues/1726)) ([8bc3a7c](https://togithub.com/bitinn/node-fetch/commit/8bc3a7c85f67fb81bb3d71c8254e68f3b88e9169)) ### [`v2.6.11`](https://togithub.com/node-fetch/node-fetch/releases/tag/v2.6.11) [Compare Source](https://togithub.com/node-fetch/node-fetch/compare/v2.6.10...v2.6.11) ##### Reverts - Revert "fix: handle bom in text and json ([#​1739](https://togithub.com/node-fetch/node-fetch/issues/1739))" ([#​1741](https://togithub.com/node-fetch/node-fetch/issues/1741)) ([afb36f6](https://togithub.com/bitinn/node-fetch/commit/afb36f6c178342488d71947dfc87e7ddd19fab9e)), closes [#​1739](https://togithub.com/bitinn/node-fetch/issues/1739) [#​1741](https://togithub.com/bitinn/node-fetch/issues/1741) ### [`v2.6.10`](https://togithub.com/node-fetch/node-fetch/releases/tag/v2.6.10) [Compare Source](https://togithub.com/node-fetch/node-fetch/compare/v2.6.9...v2.6.10) ##### Bug Fixes - handle bom in text and json ([#​1739](https://togithub.com/bitinn/node-fetch/issues/1739)) ([29909d7](https://togithub.com/bitinn/node-fetch/commit/29909d75c62d51e0d1c23758e526dba74bfd463d)) ### [`v2.6.9`](https://togithub.com/node-fetch/node-fetch/releases/tag/v2.6.9) [Compare Source](https://togithub.com/node-fetch/node-fetch/compare/v2.6.8...v2.6.9) ##### Bug Fixes - "global is not defined" ([#​1704](https://togithub.com/bitinn/node-fetch/issues/1704)) ([70f592d](https://togithub.com/bitinn/node-fetch/commit/70f592d9d2da959df1cebc2dd2314286a4bcf345)) ### [`v2.6.8`](https://togithub.com/node-fetch/node-fetch/releases/tag/v2.6.8) [Compare Source](https://togithub.com/node-fetch/node-fetch/compare/v2.6.7...v2.6.8) ##### Bug Fixes - **headers:** don't forward secure headers on protocol change ([#​1605](https://togithub.com/bitinn/node-fetch/issues/1605)) ([fddad0e](https://togithub.com/bitinn/node-fetch/commit/fddad0e7ea3fd6da01cc006fdf0ed304ccdd7990)), closes [#​1599](https://togithub.com/bitinn/node-fetch/issues/1599) - premature close with chunked transfer encoding and for async iterators in Node 12 ([#​1172](https://togithub.com/bitinn/node-fetch/issues/1172)) ([50536d1](https://togithub.com/bitinn/node-fetch/commit/50536d1e02ad42bdf262381034805378b98bfa53)), closes [#​1064](https://togithub.com/bitinn/node-fetch/issues/1064) [/github.com/node-fetch/node-fetch/pull/1064#issuecomment-849167400](https://togithub.com//github.com/node-fetch/node-fetch/pull/1064/issues/issuecomment-849167400) - prevent hoisting of the undefined `global` variable in `browser.js` ([#​1534](https://togithub.com/bitinn/node-fetch/issues/1534)) ([8bb6e31](https://togithub.com/bitinn/node-fetch/commit/8bb6e317c866c4134e7d67e90a5596a8c67e3965)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/X-oss-byte/Nextjs).
What is the purpose of this pull request?
What changes did you make? (provide an overview)
re. 47b00e1: For responses using chunked
Transfer-Encoding
without aContent-Length
, this adds a check at the socket'sclose
event to verify that the last bytes received were the final chunk bytes, i.e.0\r\n
. If not, it creates aPremature close
error and sends it toresponse.body.destroy()
. Certain network errors evidently bypass the HTTP parser's error handling resulting in silent failures. @davidje13 confirmed fix in #739 #739 (comment).re. 13cdcf3: Before Node.js 14, pipeline() does not fully support async iterators and does not always properly handle when the socket close/end events are out of order. This fix emits a
Premature close
error if the socket's readableend
event occurs before the writableclose
event.re. 9cf8c18: Usage of async iterators for both Node.js 12 and 14 is added to the README.
Which issue (if any) does this pull request address?
#739 #766 #968 #1055 #1056 and possibly #736
Is there anything you'd like reviewers to know?