-
Notifications
You must be signed in to change notification settings - Fork 928
V11 release removal of node-fetch and undici dependencies #8492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
4bdab6f
45723bb
5ee8eb7
84f0770
afea52d
79753b2
ba32125
6fdd758
0601594
2c4a46e
3b93ffe
97eb7a3
9c010b2
69d789c
c8c64e7
b16903b
0c05f70
5077ae3
7a6691b
033c4dc
9aa1f75
f35d2a0
1e25ff2
7acb14e
498bc7b
10a6149
10e089e
d517b14
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
'@firebase/rules-unit-testing': patch | ||
'@firebase/firestore-compat': patch | ||
'@firebase/functions-compat': patch | ||
'@firebase/storage-compat': patch | ||
'@firebase/auth-compat': patch | ||
'@firebase/firestore': patch | ||
'@firebase/functions': patch | ||
'@firebase/storage': patch | ||
'@firebase/auth': patch | ||
--- | ||
|
||
Removed dependency on undici and node-fetch in our node bundles, replacing them with the native fetch implementation. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,9 +15,8 @@ | |
* limitations under the License. | ||
*/ | ||
import { registerFunctions } from './config'; | ||
import { fetch as undiciFetch } from 'undici'; | ||
|
||
export * from './api'; | ||
export * from './public-types'; | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
registerFunctions(undiciFetch as any, 'node'); | ||
registerFunctions('node'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hm, I don't think we actually need a separate functions Node bundle anymore. Maybe that can be a separate PR though. The only thing different is that it labels the bundle "node" for platform logging, which is pointless if it's the same bundle. I guess it tells us how many node users are using functions. Also it doesn't export the types from public-types which is probably a mistake. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'll add the export. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We spoke offline about removing the separate node bundle, will be done in a different PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This consructor is removed because it would now have the same signature as RestConnection's constructor.