Skip to content

Commit 013e643

Browse files
authored
Update App Engine samples to Node12 (#1985)
* Update appengine/hello-world to nodejs 12 * Update appengine/storage to nodejs 12 * Update appengine/pubsub to nodejs12 * Update appengine/metadata to nodejs12 * App Engine analytics to nodejs12 * App Engine build to nodejs12 * App Engine cloudsql to nodejs12 * App Engine cloudsql_postgresql to nodejs12 * App Engine datastore to nodejs12 * App Engine endpoints to nodejs12 * App Engine mailjet to nodejs12 * App Engine maemcached to nodejs12 * App Engine sendgrid to nodejs12 * App Engine static-files to nodejs12 * App Engine twilio to nodejs12 * App Engine typescript to nodejs12 * App Engine websockets to nodejs12
1 parent a3e0e4a commit 013e643

37 files changed

+67
-67
lines changed

appengine/analytics/app.standard.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
1313

14-
runtime: nodejs10
14+
runtime: nodejs12
1515

1616
# [START gae_analytics_env_variables]
1717
env_variables:

appengine/analytics/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
1111
},
1212
"engines": {
13-
"node": ">=8.0.0"
13+
"node": "12.x.x"
1414
},
1515
"scripts": {
1616
"start": "node app.js",

appengine/building-an-app/build/app.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
# limitations under the License.
1313

1414
# [START app_yaml]
15-
runtime: nodejs10
15+
runtime: nodejs12
1616
# [END app_yaml]

appengine/building-an-app/build/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
1515
},
1616
"engines": {
17-
"node": ">=8.0.0"
17+
"node": "12.x.x"
1818
},
1919
"author": "Google Inc.",
2020
"license": "Apache-2.0",

appengine/building-an-app/update/app.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
# limitations under the License.
1313

1414
# [START app_yaml]
15-
runtime: nodejs10
15+
runtime: nodejs12
1616
# [END app_yaml]

appengine/building-an-app/update/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
1515
},
1616
"engines": {
17-
"node": ">=8.0.0"
17+
"node": "12.x.x"
1818
},
1919
"author": "Google Inc.",
2020
"license": "Apache-2.0",

appengine/cloudsql/app.standard.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
1313

14-
runtime: nodejs8
14+
runtime: nodejs12
1515

1616
# [START gae_mysql_env]
1717
# The following env variables may contain sensitive information that grants

appengine/cloudsql/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
1111
},
1212
"engines": {
13-
"node": ">=8.0.0"
13+
"node": "12.x.x"
1414
},
1515
"scripts": {
1616
"unit-test": "mocha test/createTables.test.js --timeout=60000 && mocha test/server.test.js",

appengine/cloudsql_postgresql/app.standard.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
1313

14-
runtime: nodejs8
14+
runtime: nodejs12
1515

1616
# [START gae_postgres_env]
1717
# The following env variables may contain sensitive information that grants

appengine/cloudsql_postgresql/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
1111
},
1212
"engines": {
13-
"node": ">=8.0.0"
13+
"node": "12.x.x"
1414
},
1515
"scripts": {
1616
"unit-test": "mocha test/createTables.test.js --timeout=30000 && mocha test/server.test.js",

appengine/datastore/app.standard.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
1313

14-
runtime: nodejs10
14+
runtime: nodejs12

appengine/datastore/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
1111
},
1212
"engines": {
13-
"node": ">=8.0.0"
13+
"node": "12.x.x"
1414
},
1515
"scripts": {
1616
"start": "node app.js",

appengine/endpoints/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
1111
},
1212
"engines": {
13-
"node": ">=8.0.0"
13+
"node": "12.x.x"
1414
},
1515
"scripts": {
1616
"deploy": "gcloud app deploy",
+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "appengine-hello-world",
33
"description": "Simple Hello World Node.js sample for Google App Engine Flexible Environment.",
4-
"version": "0.0.1",
4+
"version": "0.0.2",
55
"private": true,
66
"license": "Apache-2.0",
77
"author": "Google Inc.",
@@ -10,17 +10,17 @@
1010
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
1111
},
1212
"engines": {
13-
"node": ">=8.0.0"
13+
"node": "12.18.4"
1414
},
1515
"scripts": {
1616
"start": "node app.js",
1717
"test": "mocha --exit test/*.test.js"
1818
},
1919
"dependencies": {
20-
"express": "^4.16.3"
20+
"express": "^4.17.1"
2121
},
2222
"devDependencies": {
23-
"mocha": "^8.0.0",
23+
"mocha": "^8.1.3",
2424
"supertest": "^4.0.2"
2525
}
2626
}

appengine/hello-world/standard/app.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
# limitations under the License.
1313

1414
# [START gae_quickstart_yaml]
15-
runtime: nodejs10
15+
runtime: nodejs12
1616
# [END gae_quickstart_yaml]
+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "appengine-hello-world",
33
"description": "Simple Hello World Node.js sample for Google App Engine Standard Environment.",
4-
"version": "0.0.1",
4+
"version": "0.0.2",
55
"private": true,
66
"license": "Apache-2.0",
77
"author": "Google Inc.",
@@ -10,17 +10,17 @@
1010
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
1111
},
1212
"engines": {
13-
"node": ">=8.0.0"
13+
"node": ">=12.0.0"
1414
},
1515
"scripts": {
1616
"start": "node app.js",
1717
"test": "mocha --exit test/*.test.js"
1818
},
1919
"dependencies": {
20-
"express": "^4.16.3"
20+
"express": "^4.17.1"
2121
},
2222
"devDependencies": {
23-
"mocha": "^8.0.0",
23+
"mocha": "^8.1.3",
2424
"supertest": "^4.0.2"
2525
}
2626
}

appengine/mailjet/app.standard.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# limitations under the License.
1313

1414
# [START gae_mailjet_yaml]
15-
runtime: nodejs10
15+
runtime: nodejs12
1616

1717
# The following env variables may contain sensitive information that grants
1818
# anyone access to your Mailjet account. Do not add this file to your source

appengine/mailjet/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
1111
},
1212
"engines": {
13-
"node": ">=8.0.0"
13+
"node": "12.x.x"
1414
},
1515
"scripts": {
1616
"start": "node app.js",

appengine/memcached/app.standard.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
1313

14-
runtime: nodejs10
14+
runtime: nodejs12
1515

1616
# [START gae_redislabs_memcache_yaml]
1717
# The following env variables may contain sensitive information that grants

appengine/memcached/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"license": "Apache Version 2.0",
77
"author": "Google Inc.",
88
"engines": {
9-
"node": ">=8.0.0"
9+
"node": "12.x.x"
1010
},
1111
"scripts": {
1212
"start": "node app.js",

appengine/metadata/flexible/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@
1010
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
1111
},
1212
"engines": {
13-
"node": ">=8.0.0"
13+
"node": "12.x.x"
1414
},
1515
"scripts": {
1616
"system-test": "mocha --exit test/*.test.js",
1717
"test": "npm run system-test"
1818
},
1919
"dependencies": {
20-
"express": "^4.16.4",
21-
"got": "^11.0.0"
20+
"express": "^4.17.1",
21+
"got": "^11.7.0"
2222
},
2323
"devDependencies": {
24-
"mocha": "^8.0.0",
24+
"mocha": "^8.1.3",
2525
"supertest": "^4.0.2"
2626
}
2727
}

appengine/metadata/standard/app.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
1313

14-
runtime: nodejs10
14+
runtime: nodejs12

appengine/metadata/standard/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@
1010
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
1111
},
1212
"engines": {
13-
"node": ">=8.0.0"
13+
"node": "12.x.x"
1414
},
1515
"scripts": {
1616
"system-test": "mocha --exit test/*.test.js",
1717
"test": "npm run system-test"
1818
},
1919
"dependencies": {
20-
"express": "^4.16.4",
21-
"got": "^11.0.0"
20+
"express": "^4.17.1",
21+
"got": "^11.7.0"
2222
},
2323
"devDependencies": {
24-
"mocha": "^8.0.0",
24+
"mocha": "^8.1.3",
2525
"supertest": "^4.0.2"
2626
}
2727
}

appengine/pubsub/app.standard.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
runtime: nodejs10
15+
runtime: nodejs12
1616

1717
instance_class: F2
1818

appengine/pubsub/package.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,27 @@
66
"license": "Apache Version 2.0",
77
"author": "Google Inc.",
88
"engines": {
9-
"node": ">=8.0.0"
9+
"node": "12.x.x"
1010
},
1111
"scripts": {
1212
"start": "node app.js",
1313
"test": "mocha test/*.test.js --timeout=30000 --exit"
1414
},
1515
"dependencies": {
16-
"@google-cloud/pubsub": "^2.0.0",
17-
"body-parser": "^1.18.3",
18-
"express": "^4.16.3",
19-
"google-auth-library": "^6.0.0",
16+
"@google-cloud/pubsub": "^2.5.0",
17+
"body-parser": "^1.19.0",
18+
"express": "^4.17.1",
19+
"google-auth-library": "^6.0.6",
2020
"path": "^0.12.7",
2121
"pug": "^3.0.0",
22-
"wait-port": "^0.2.7"
22+
"wait-port": "^0.2.9"
2323
},
2424
"devDependencies": {
2525
"jsonwebtoken": "^8.5.1",
2626
"chai": "^4.2.0",
27-
"mocha": "^8.0.0",
28-
"sinon": "^9.0.0",
29-
"uuid": "^8.0.0",
27+
"mocha": "^8.1.3",
28+
"sinon": "^9.0.3",
29+
"uuid": "^8.3.0",
3030
"supertest": "^4.0.2",
3131
"proxyquire": "^2.1.3"
3232
}

appengine/sendgrid/app.standard.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
1313

14-
runtime: nodejs10
14+
runtime: nodejs12
1515

1616
# [START gae_sendgrid_yaml]
1717
# The following env variables may contain sensitive information that grants

appengine/sendgrid/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"license": "Apache Version 2.0",
77
"author": "Google Inc.",
88
"engines": {
9-
"node": ">=8.0.0"
9+
"node": "12.x.x"
1010
},
1111
"scripts": {
1212
"start": "node app.js",

appengine/static-files/app.standard.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
1313

14-
runtime: nodejs10
14+
runtime: nodejs12
1515

1616
handlers:
1717
- url: /static

appengine/static-files/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"license": "Apache Version 2.0",
77
"author": "Google Inc.",
88
"engines": {
9-
"node": ">=8.0.0"
9+
"node": "12.x.x"
1010
},
1111
"scripts": {
1212
"start": "node app.js",

appengine/storage/flexible/package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@
66
"test": "mocha system-test/*.test.js --exit --timeout=30000"
77
},
88
"engines": {
9-
"node": ">=8.0.0"
9+
"node": "12.18.4"
1010
},
1111
"dependencies": {
12-
"@google-cloud/storage": "^5.0.0",
13-
"body-parser": "^1.18.3",
14-
"express": "^4.16.4",
15-
"multer": "^1.4.1",
12+
"@google-cloud/storage": "^5.3.0",
13+
"body-parser": "^1.19.0",
14+
"express": "^4.17.0",
15+
"multer": "^1.4.2",
1616
"pug": "^3.0.0"
1717
},
1818
"devDependencies": {
19-
"mocha": "^8.0.0",
19+
"mocha": "^8.1.3",
2020
"supertest": "^4.0.2",
2121
"proxyquire": "^2.1.3"
2222
}

appengine/storage/standard/app.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# limitations under the License.
1313

1414
# [START gae_storage_yaml]
15-
runtime: nodejs10
15+
runtime: nodejs12
1616

1717
env_variables:
1818
GCLOUD_STORAGE_BUCKET: YOUR_BUCKET_NAME

0 commit comments

Comments
 (0)