@naturalcycles/backend-lib 4.14.2 → 4.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cfg/tsconfig.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
{
|
|
7
7
|
"compilerOptions": {
|
|
8
8
|
// Target/module
|
|
9
|
-
"target": "
|
|
9
|
+
"target": "es2022",
|
|
10
10
|
"lib": ["esnext"], // add "dom" if needed
|
|
11
11
|
"module": "commonjs",
|
|
12
12
|
"moduleResolution": "node",
|
|
@@ -24,6 +24,10 @@
|
|
|
24
24
|
"noImplicitOverride": true,
|
|
25
25
|
"noUncheckedIndexedAccess": true,
|
|
26
26
|
"noPropertyAccessFromIndexSignature": true,
|
|
27
|
+
// Otherwise since es2022 it defaults to true
|
|
28
|
+
// and starts to produce different/unexpected behavior
|
|
29
|
+
// https://angular.schule/blog/2022-11-use-define-for-class-fields
|
|
30
|
+
"useDefineForClassFields": false,
|
|
27
31
|
|
|
28
32
|
// Enabled should be faster, but will catch less errors
|
|
29
33
|
// "skipLibCheck": true,
|
|
@@ -6,7 +6,7 @@ const js_lib_1 = require("@naturalcycles/js-lib");
|
|
|
6
6
|
const colors_1 = require("@naturalcycles/nodejs-lib/dist/colors");
|
|
7
7
|
const yaml = require("js-yaml");
|
|
8
8
|
const APP_YAML_DEFAULT = () => ({
|
|
9
|
-
runtime: '
|
|
9
|
+
runtime: 'nodejs18',
|
|
10
10
|
service: 'default',
|
|
11
11
|
inbound_services: ['warmup'],
|
|
12
12
|
instance_class: 'F1',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturalcycles/backend-lib",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.15.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"prepare": "husky install && patch-package",
|
|
6
6
|
"serve": "APP_ENV=dev nodemon",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"url": "https://github.com/NaturalCycles/backend-lib"
|
|
79
79
|
},
|
|
80
80
|
"engines": {
|
|
81
|
-
"node": ">=
|
|
81
|
+
"node": ">=18.12.0"
|
|
82
82
|
},
|
|
83
83
|
"type": "commonjs",
|
|
84
84
|
"description": "Standard library for making Express.js / AppEngine based backend services",
|
|
@@ -6,7 +6,7 @@ import { BackendCfg } from './backend.cfg.util'
|
|
|
6
6
|
import { AppYaml, DeployInfo } from './deploy.model'
|
|
7
7
|
|
|
8
8
|
const APP_YAML_DEFAULT = (): AppYaml => ({
|
|
9
|
-
runtime: '
|
|
9
|
+
runtime: 'nodejs18',
|
|
10
10
|
service: 'default',
|
|
11
11
|
inbound_services: ['warmup'],
|
|
12
12
|
instance_class: 'F1',
|