使用 beta 版 Firebase 查找函数
Find Functions using beta version Firebase
几天前,我收到一封来自 Google Firebase 的电子邮件,说我的一些云函数正在使用测试版,如果我没理解错的话,他们正在删除测试版调用。所以现在我必须更新它。我想检查我的哪个函数正在调用测试版我没有向任何 API 发出静态请求。我正在使用 firebase 函数调用 APIs,其中一个函数正在调用 firebase API。那么有什么可能的方法可以知道正在调用 beta 版本 API 的函数吗?我正在使用 0.8.1
所以是因为这个版本,该函数正在调用 beta API 还是有其他原因?这是我的 Package.json
{
"name": "functions",
"description": "Cloud Functions for Firebase",
"scripts": {
"serve": "firebase serve --only functions",
"shell": "firebase experimental:functions:shell",
"start": "npm run shell",
"deploy": "firebase deploy --only functions",
"logs": "firebase functions:log"
},
"dependencies": {
"asyncawait": "^1.0.6",
"firebase-admin": "~5.8.1",
"firebase-functions": "^0.8.1"
},
"private": true
}
谢谢
您在该项目中的所有功能都使用非常 旧的 beta API。由于这种依赖性,您可以判断:
"firebase-functions": "^0.8.1"
latest firebase-functions module is 3.5.0 at the time of this writing. The APIs have changed significantly since 0.8.1, and your code (for non-http functions) will not work if you upgrade without changing your code. You should consult the documentation了解现代 API。
几天前,我收到一封来自 Google Firebase 的电子邮件,说我的一些云函数正在使用测试版,如果我没理解错的话,他们正在删除测试版调用。所以现在我必须更新它。我想检查我的哪个函数正在调用测试版我没有向任何 API 发出静态请求。我正在使用 firebase 函数调用 APIs,其中一个函数正在调用 firebase API。那么有什么可能的方法可以知道正在调用 beta 版本 API 的函数吗?我正在使用 0.8.1
所以是因为这个版本,该函数正在调用 beta API 还是有其他原因?这是我的 Package.json
{
"name": "functions",
"description": "Cloud Functions for Firebase",
"scripts": {
"serve": "firebase serve --only functions",
"shell": "firebase experimental:functions:shell",
"start": "npm run shell",
"deploy": "firebase deploy --only functions",
"logs": "firebase functions:log"
},
"dependencies": {
"asyncawait": "^1.0.6",
"firebase-admin": "~5.8.1",
"firebase-functions": "^0.8.1"
},
"private": true
}
谢谢
您在该项目中的所有功能都使用非常 旧的 beta API。由于这种依赖性,您可以判断:
"firebase-functions": "^0.8.1"
latest firebase-functions module is 3.5.0 at the time of this writing. The APIs have changed significantly since 0.8.1, and your code (for non-http functions) will not work if you upgrade without changing your code. You should consult the documentation了解现代 API。