-
Notifications
You must be signed in to change notification settings - Fork 939
V11 - Remove functions node bundle #8507
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
399efc0
8bb819b
49f0618
3f14414
8cb2f4d
c055cfe
5e34319
9da8f06
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,6 @@ | ||
--- | ||
'@firebase/functions-compat': patch | ||
'@firebase/functions': patch | ||
--- | ||
|
||
Remove node bundle from the functions SDK as the node-specific fetch code has been removed in favor of using native fetch throughout the SDK. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,16 +3,16 @@ | |
"version": "0.3.14", | ||
"description": "", | ||
"author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)", | ||
"main": "dist/index.node.cjs.js", | ||
"main": "dist/index.cjs.js", | ||
"browser": "dist/index.esm2017.js", | ||
"module": "dist/index.esm2017.js", | ||
"esm5": "dist/index.esm5.js", | ||
"exports": { | ||
".": { | ||
"types": "./dist/src/index.d.ts", | ||
"node": { | ||
"import": "./dist/node-esm/index.node.esm.js", | ||
"require": "./dist/index.node.cjs.js" | ||
"require": "./dist/index.cjs.js", | ||
"import": "./dist/index.esm2017.js" | ||
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 know this order is swapped, but now it matches the order of the browser's settings below. :) |
||
}, | ||
"esm5": "./dist/index.esm5.js", | ||
"browser": { | ||
|
@@ -57,7 +57,7 @@ | |
"test:all": "run-p --npm-path npm test:browser test:node", | ||
"test:browser": "karma start", | ||
"test:browser:debug": "karma start --browsers=Chrome --auto-watch", | ||
"test:node": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha 'src/{,!(browser)/**/}*.test.ts' --file src/index.node.ts --config ../../config/mocharc.node.js", | ||
"test:node": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha 'src/{,!(browser)/**/}*.test.ts' --config ../../config/mocharc.node.js", | ||
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. Did you also remove the file itself? It's not showing up as removed in the Github diff for me. 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. Done! Sorry about that. |
||
"test:emulator": "env FIREBASE_FUNCTIONS_HOST=http://localhost FIREBASE_FUNCTIONS_PORT=5005 run-p --npm-path npm test:node", | ||
"trusted-type-check": "tsec -p tsconfig.json --noEmit", | ||
"add-compat-overloads": "ts-node-script ../../scripts/build/create-overloads.ts -i ../functions/dist/functions-public.d.ts -o dist/src/index.d.ts -a -r Functions:types.FirebaseFunctions -r FirebaseApp:FirebaseAppCompat --moduleToEnhance @firebase/functions" | ||
|
This file was deleted.
This file was deleted.
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.
Looks like functions-compat also has a src/index.node.ts, and it's also referenced in this file's
test:node
npm script.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.
Removed.