@feathersjs/generators 5.0.22 → 5.0.24
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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [5.0.24](https://github.com/feathersjs/feathers/compare/v5.0.23...v5.0.24) (2024-03-13)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **generators:** Use module format for JS Knex migrations ([#3444](https://github.com/feathersjs/feathers/issues/3444)) ([3feaa71](https://github.com/feathersjs/feathers/commit/3feaa719443aa30b1121d928ba5b7b8f43837ffb))
|
|
11
|
+
|
|
12
|
+
## [5.0.23](https://github.com/feathersjs/feathers/compare/v5.0.22...v5.0.23) (2024-02-25)
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
- **core:** Update to latest feathersjs/hooks ([#3434](https://github.com/feathersjs/feathers/issues/3434)) ([1499ccc](https://github.com/feathersjs/feathers/commit/1499ccc41fb3ebba97b2c84e0cb19bc48ad3c651))
|
|
17
|
+
|
|
6
18
|
## [5.0.22](https://github.com/feathersjs/feathers/compare/v5.0.21...v5.0.22) (2024-02-15)
|
|
7
19
|
|
|
8
20
|
**Note:** Version bump only for package @feathersjs/generators
|
|
@@ -34,13 +34,13 @@ const toAppFile = toFile(({ lib }) => [lib, 'app']);
|
|
|
34
34
|
export const generate = (ctx) => Promise.resolve(ctx)
|
|
35
35
|
.then(renderSource(template, toFile(({ lib, database }) => [lib, database])))
|
|
36
36
|
.then(renderSource(knexfile, toFile('knexfile')))
|
|
37
|
-
.then(mergeJSON({
|
|
37
|
+
.then(mergeJSON((ctx) => ({
|
|
38
38
|
scripts: {
|
|
39
39
|
migrate: 'knex migrate:latest',
|
|
40
|
-
'migrate:make': 'knex migrate:make',
|
|
40
|
+
'migrate:make': 'knex migrate:make' + ctx.language === 'js' ? ' -x mjs' : '',
|
|
41
41
|
test: 'cross-env NODE_ENV=test npm run migrate && npm run mocha'
|
|
42
42
|
}
|
|
43
|
-
}, toFile('package.json')))
|
|
43
|
+
}), toFile('package.json')))
|
|
44
44
|
.then(injectSource(importTemplate, before('import { services } from'), toAppFile))
|
|
45
45
|
.then(injectSource(configureTemplate, before('app.configure(services)'), toAppFile))
|
|
46
46
|
.then(async (ctx) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"knex.tpl.js","sourceRoot":"","sources":["../../../src/connection/templates/knex.tpl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjE,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAC7D,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AACnC,OAAO,IAAI,MAAM,MAAM,CAAA;AAEvB,MAAM,QAAQ,GAAG,CAAC,EAChB,QAAQ,EACmB,EAAE,EAAE,CAAC,QAAQ,CAAC;;;;;;;MAOrC,QAAQ;;;;eAIC,QAAQ;4BACK,QAAQ;;;aAGvB,QAAQ;;CAEpB,CAAA;AAED,MAAM,QAAQ,GAAG,CAAC,EAChB,GAAG,EACH,QAAQ,EACR,QAAQ,EACmB,EAAE,EAAE,CAAC,QAAQ,CAAC;yBAClB,GAAG;;;0BAGF,QAAQ;;EAEhC,QAAQ,KAAK,IAAI,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,yBAAyB;CACxE,CAAA;AAED,MAAM,cAAc,GAAG,CAAC,EAAE,QAAQ,EAA8B,EAAE,EAAE,CAClE,YAAY,QAAQ,cAAc,QAAQ,GAAG,CAAA;AAC/C,MAAM,iBAAiB,GAAG,CAAC,EAAE,QAAQ,EAA8B,EAAE,EAAE,CAAC,iB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,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,YAAY,CAAC,CAAC,CAAA;IAC7C,OAAO,GAAG,CAAA;AACZ,CAAC,CAAC,CAAA"}
|
|
@@ -55,13 +55,13 @@ export const generate = (ctx: ConnectionGeneratorContext) =>
|
|
|
55
55
|
.then(renderSource(knexfile, toFile('knexfile')))
|
|
56
56
|
.then(
|
|
57
57
|
mergeJSON<ConnectionGeneratorContext>(
|
|
58
|
-
{
|
|
58
|
+
(ctx) => ({
|
|
59
59
|
scripts: {
|
|
60
60
|
migrate: 'knex migrate:latest',
|
|
61
|
-
'migrate:make': 'knex migrate:make',
|
|
61
|
+
'migrate:make': 'knex migrate:make' + ctx.language === 'js' ? ' -x mjs' : '',
|
|
62
62
|
test: 'cross-env NODE_ENV=test npm run migrate && npm run mocha'
|
|
63
63
|
}
|
|
64
|
-
},
|
|
64
|
+
}),
|
|
65
65
|
toFile('package.json')
|
|
66
66
|
)
|
|
67
67
|
)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feathersjs/generators",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.24",
|
|
4
4
|
"description": "Feathers CLI core generators, powered by Pinion",
|
|
5
5
|
"homepage": "https://feathersjs.com",
|
|
6
6
|
"keywords": [
|
|
@@ -57,41 +57,41 @@
|
|
|
57
57
|
"chalk": "^5.3.0",
|
|
58
58
|
"lodash": "^4.17.21",
|
|
59
59
|
"prettier": "^3.2.5",
|
|
60
|
-
"typescript": "^5.
|
|
60
|
+
"typescript": "^5.4.2"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@feathersjs/adapter-commons": "^5.0.
|
|
64
|
-
"@feathersjs/authentication": "^5.0.
|
|
65
|
-
"@feathersjs/authentication-client": "^5.0.
|
|
66
|
-
"@feathersjs/authentication-local": "^5.0.
|
|
67
|
-
"@feathersjs/authentication-oauth": "^5.0.
|
|
68
|
-
"@feathersjs/configuration": "^5.0.
|
|
69
|
-
"@feathersjs/errors": "^5.0.
|
|
70
|
-
"@feathersjs/express": "^5.0.
|
|
71
|
-
"@feathersjs/feathers": "^5.0.
|
|
72
|
-
"@feathersjs/knex": "^5.0.
|
|
73
|
-
"@feathersjs/koa": "^5.0.
|
|
74
|
-
"@feathersjs/mongodb": "^5.0.
|
|
75
|
-
"@feathersjs/rest-client": "^5.0.
|
|
76
|
-
"@feathersjs/schema": "^5.0.
|
|
77
|
-
"@feathersjs/socketio": "^5.0.
|
|
78
|
-
"@feathersjs/transport-commons": "^5.0.
|
|
79
|
-
"@feathersjs/typebox": "^5.0.
|
|
63
|
+
"@feathersjs/adapter-commons": "^5.0.24",
|
|
64
|
+
"@feathersjs/authentication": "^5.0.24",
|
|
65
|
+
"@feathersjs/authentication-client": "^5.0.24",
|
|
66
|
+
"@feathersjs/authentication-local": "^5.0.24",
|
|
67
|
+
"@feathersjs/authentication-oauth": "^5.0.24",
|
|
68
|
+
"@feathersjs/configuration": "^5.0.24",
|
|
69
|
+
"@feathersjs/errors": "^5.0.24",
|
|
70
|
+
"@feathersjs/express": "^5.0.24",
|
|
71
|
+
"@feathersjs/feathers": "^5.0.24",
|
|
72
|
+
"@feathersjs/knex": "^5.0.24",
|
|
73
|
+
"@feathersjs/koa": "^5.0.24",
|
|
74
|
+
"@feathersjs/mongodb": "^5.0.24",
|
|
75
|
+
"@feathersjs/rest-client": "^5.0.24",
|
|
76
|
+
"@feathersjs/schema": "^5.0.24",
|
|
77
|
+
"@feathersjs/socketio": "^5.0.24",
|
|
78
|
+
"@feathersjs/transport-commons": "^5.0.24",
|
|
79
|
+
"@feathersjs/typebox": "^5.0.24",
|
|
80
80
|
"@types/mocha": "^10.0.6",
|
|
81
|
-
"@types/node": "^20.11.
|
|
81
|
+
"@types/node": "^20.11.26",
|
|
82
82
|
"@types/prettier": "^2.7.3",
|
|
83
83
|
"axios": "^1.6.7",
|
|
84
84
|
"knex": "^3.1.0",
|
|
85
85
|
"mocha": "^10.3.0",
|
|
86
|
-
"mongodb": "^6.
|
|
86
|
+
"mongodb": "^6.5.0",
|
|
87
87
|
"mssql": "^10.0.2",
|
|
88
88
|
"mysql": "^2.18.1",
|
|
89
89
|
"pg": "^8.11.3",
|
|
90
90
|
"shx": "^0.3.4",
|
|
91
91
|
"sqlite3": "^5.1.7",
|
|
92
92
|
"tsx": "^4.7.1",
|
|
93
|
-
"type-fest": "^4.
|
|
94
|
-
"typescript": "^5.
|
|
93
|
+
"type-fest": "^4.12.0",
|
|
94
|
+
"typescript": "^5.4.2"
|
|
95
95
|
},
|
|
96
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "09519fb1c454ea718747a09797bc6dfd3b6a79a3"
|
|
97
97
|
}
|