@foal/cli 3.3.0 → 4.1.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.
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "port": "env(PORT)",
3
3
  "settings": {
4
- "loggerFormat": "tiny",
4
+ "loggerFormat": "foal",
5
5
  "session": {
6
6
  "store": "@foal/typeorm"
7
7
  }
8
8
  },
9
9
  "database": {
10
- "type": "better-sqlite3",
10
+ "type": "sqlite",
11
11
  "database": "./db.sqlite3"
12
12
  }
13
- }
13
+ }
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "port": "env(PORT)",
3
3
  "settings": {
4
- "loggerFormat": "tiny"
4
+ "loggerFormat": "foal"
5
5
  },
6
6
  "database": {
7
7
  "type": "mongodb",
8
8
  "url": "mongodb://localhost:27017//* kebabName */"
9
9
  }
10
- }
10
+ }
@@ -1,7 +1,7 @@
1
1
  port: env(PORT)
2
2
 
3
3
  settings:
4
- loggerFormat: tiny
4
+ loggerFormat: foal
5
5
 
6
6
  database:
7
7
  type: mongodb
@@ -1,10 +1,10 @@
1
1
  port: env(PORT)
2
2
 
3
3
  settings:
4
- loggerFormat: tiny
4
+ loggerFormat: foal
5
5
  session:
6
6
  store: '@foal/typeorm'
7
7
 
8
8
  database:
9
- type: better-sqlite3
9
+ type: sqlite
10
10
  database: './db.sqlite3'
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "settings": {
3
3
  "debug": true,
4
- "loggerFormat": "dev"
4
+ "logger": {
5
+ "format": "dev"
6
+ }
5
7
  }
6
- }
8
+ }
@@ -1,3 +1,4 @@
1
1
  settings:
2
2
  debug: true
3
- loggerFormat: dev
3
+ logger:
4
+ format: dev
@@ -7,4 +7,4 @@
7
7
  "dropSchema": true,
8
8
  "synchronize": true
9
9
  }
10
- }
10
+ }
@@ -21,26 +21,26 @@
21
21
  "revertmigration": "npx typeorm migration:revert -d build/db"
22
22
  },
23
23
  "engines": {
24
- "node": ">=16.0.0"
24
+ "node": ">=18.0.0"
25
25
  },
26
26
  "dependencies": {
27
- "@foal/core": "^3.0.0",
28
- "@foal/typeorm": "^3.0.0",
27
+ "@foal/core": "^4.0.0",
28
+ "@foal/typeorm": "^4.0.0",
29
29
  "source-map-support": "~0.5.21",
30
- "better-sqlite3": "~7.6.2",
31
- "typeorm": "0.3.10"
30
+ "sqlite3": "~5.1.6",
31
+ "typeorm": "0.3.17"
32
32
  },
33
33
  "devDependencies": {
34
- "@foal/cli": "^3.0.0",
34
+ "@foal/cli": "^4.0.0",
35
35
  "@types/mocha": "10.0.1",
36
- "@types/node": "16.18.40",
37
- "concurrently": "~8.2.0",
36
+ "@types/node": "18.18.6",
37
+ "concurrently": "~8.2.1",
38
38
  "mocha": "~10.2.0",
39
39
  "supertest": "~6.3.3",
40
40
  "supervisor": "~0.12.0",
41
- "eslint": "~8.47.0",
42
- "@typescript-eslint/eslint-plugin": "~6.3.0",
43
- "@typescript-eslint/parser": "~6.3.0",
41
+ "eslint": "~8.48.0",
42
+ "@typescript-eslint/eslint-plugin": "~6.5.0",
43
+ "@typescript-eslint/parser": "~6.5.0",
44
44
  "typescript": "~4.9.5"
45
45
  }
46
46
  }
@@ -18,25 +18,25 @@
18
18
  "lint:fix": "eslint --ext ts --fix src"
19
19
  },
20
20
  "engines": {
21
- "node": ">=16.0.0"
21
+ "node": ">=18.0.0"
22
22
  },
23
23
  "dependencies": {
24
- "@foal/core": "^3.0.0",
25
- "mongodb": "~3.7.3",
24
+ "@foal/core": "^4.0.0",
25
+ "mongodb": "~5.8.1",
26
26
  "source-map-support": "~0.5.21",
27
- "typeorm": "0.3.10"
27
+ "typeorm": "0.3.17"
28
28
  },
29
29
  "devDependencies": {
30
- "@foal/cli": "^3.0.0",
30
+ "@foal/cli": "^4.0.0",
31
31
  "@types/mocha": "10.0.1",
32
- "@types/node": "16.18.40",
33
- "concurrently": "~8.2.0",
32
+ "@types/node": "18.18.6",
33
+ "concurrently": "~8.2.1",
34
34
  "mocha": "~10.2.0",
35
35
  "supertest": "~6.3.3",
36
36
  "supervisor": "~0.12.0",
37
- "eslint": "~8.47.0",
38
- "@typescript-eslint/eslint-plugin": "~6.3.0",
39
- "@typescript-eslint/parser": "~6.3.0",
37
+ "eslint": "~8.48.0",
38
+ "@typescript-eslint/eslint-plugin": "~6.5.0",
39
+ "@typescript-eslint/parser": "~6.5.0",
40
40
  "typescript": "~4.9.5"
41
41
  }
42
42
  }
@@ -1,9 +1,9 @@
1
- import { BaseEntity, Entity, ObjectID, ObjectIdColumn } from 'typeorm';
1
+ import { BaseEntity, Entity, ObjectId, ObjectIdColumn } from 'typeorm';
2
2
 
3
3
  @Entity()
4
4
  export class User extends BaseEntity {
5
5
 
6
6
  @ObjectIdColumn()
7
- _id: ObjectID;
7
+ _id: ObjectId;
8
8
 
9
9
  }
@@ -1,10 +1,10 @@
1
1
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
2
- import { BaseEntity, Column, Entity, ObjectID, ObjectIdColumn } from 'typeorm';
2
+ import { BaseEntity, Column, Entity, ObjectId, ObjectIdColumn } from 'typeorm';
3
3
 
4
4
  @Entity()
5
5
  export class /* upperFirstCamelName */ extends BaseEntity {
6
6
 
7
7
  @ObjectIdColumn()
8
- _id: ObjectID;
8
+ _id: ObjectId;
9
9
 
10
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foal/cli",
3
- "version": "3.3.0",
3
+ "version": "4.1.0",
4
4
  "description": "CLI tool for FoalTS",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -23,7 +23,7 @@
23
23
  "url": "https://github.com/sponsors/LoicPoullain"
24
24
  },
25
25
  "engines": {
26
- "node": ">=16.0.0"
26
+ "node": ">=18.0.0"
27
27
  },
28
28
  "bin": {
29
29
  "foal": "./lib/index.js"
@@ -61,17 +61,17 @@
61
61
  "ajv-formats": "~2.1.1",
62
62
  "cli-spinner": "~0.2.10",
63
63
  "colors": "1.4.0",
64
- "commander": "~9.4.1",
64
+ "commander": "~11.1.0",
65
65
  "node-fetch": "~2.6.7"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@types/mocha": "10.0.1",
69
- "@types/node": "16.18.40",
69
+ "@types/node": "18.18.6",
70
70
  "copyfiles": "~2.4.1",
71
71
  "mocha": "~10.2.0",
72
72
  "rimraf": "~5.0.1",
73
73
  "ts-node": "~10.9.1",
74
74
  "typescript": "~4.9.5"
75
75
  },
76
- "gitHead": "eab46a1647a49c2512779d3b6c4349421b2fd4a9"
76
+ "gitHead": "b877ef3ad39de86385e412276f20d9b90f6fe854"
77
77
  }