@feathersjs/generators 5.0.37 → 6.0.0-pre.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/CHANGELOG.md +64 -0
- package/LICENSE +1 -2
- package/README.md +1 -1
- package/lib/app/index.js +2 -1
- package/lib/app/index.js.map +1 -1
- package/lib/app/templates/configuration.tpl.js +2 -2
- package/lib/app/templates/declarations.tpl.js +2 -2
- package/lib/app/templates/declarations.tpl.js.map +1 -1
- package/lib/app/templates/tsconfig.json.tpl.js +1 -1
- package/lib/hook/index.js +3 -3
- package/lib/hook/index.js.map +1 -1
- package/lib/service/index.js +7 -7
- package/lib/service/index.js.map +1 -1
- package/lib/service/templates/schema.typebox.tpl.js +4 -4
- package/package.json +31 -30
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,70 @@
|
|
|
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
|
+
# 6.0.0-pre.0 (2026-01-31)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **cli:** Another fix for CLI ES module loading ([#3397](https://github.com/feathersjs/feathers/issues/3397)) ([3cb3bc9](https://github.com/feathersjs/feathers/commit/3cb3bc9a32602d82193b781b583ed0f37044e778))
|
|
11
|
+
- **core:** Update to latest feathersjs/hooks ([#3434](https://github.com/feathersjs/feathers/issues/3434)) ([1499ccc](https://github.com/feathersjs/feathers/commit/1499ccc41fb3ebba97b2c84e0cb19bc48ad3c651))
|
|
12
|
+
- **dependencies:** Update all dependencies ([#3139](https://github.com/feathersjs/feathers/issues/3139)) ([f24276e](https://github.com/feathersjs/feathers/commit/f24276e9a909e2e58a0730c730258ce1f70f4028))
|
|
13
|
+
- **dependencies:** Update all dependencies ([#3545](https://github.com/feathersjs/feathers/issues/3545)) ([221b92b](https://github.com/feathersjs/feathers/commit/221b92bb0ee5d54fb1036742968797cb02e56da2))
|
|
14
|
+
- **dependencies:** Update all dependencies ([#3625](https://github.com/feathersjs/feathers/issues/3625)) ([2698e4e](https://github.com/feathersjs/feathers/commit/2698e4e2996fbf479d82435938d907bc3d5b583a))
|
|
15
|
+
- **dependencies:** Update dependencies ([#3571](https://github.com/feathersjs/feathers/issues/3571)) ([ad611cb](https://github.com/feathersjs/feathers/commit/ad611cb6ffb1dc31d603ba5817331318c5a23217))
|
|
16
|
+
- **generators:** Add FeathersGeneratorError ([#3556](https://github.com/feathersjs/feathers/issues/3556)) ([2a81a20](https://github.com/feathersjs/feathers/commit/2a81a204eb55c95d20fc45bf091c0131eff5a25d))
|
|
17
|
+
- **generators:** Add main schema to all validators ([#2997](https://github.com/feathersjs/feathers/issues/2997)) ([5854dea](https://github.com/feathersjs/feathers/commit/5854dea7f610262121a49623ec5bbd474dcd3ef3))
|
|
18
|
+
- **generators:** Add schema selection to CI test matrix ([#3035](https://github.com/feathersjs/feathers/issues/3035)) ([7484b16](https://github.com/feathersjs/feathers/commit/7484b164fba4ac2ee379dc5c6363f964f45e94d3))
|
|
19
|
+
- **generators:** Add sourceMap to tsconfig.json template ([#3166](https://github.com/feathersjs/feathers/issues/3166)) ([3049b7a](https://github.com/feathersjs/feathers/commit/3049b7a425d01cdd3058442c7183307a06cfc87a))
|
|
20
|
+
- **generators:** Add TypeScript as normal instead of dev dependency ([#3011](https://github.com/feathersjs/feathers/issues/3011)) ([2f67398](https://github.com/feathersjs/feathers/commit/2f673987f38b199e75aff629b7cdfcaebfd69c4c))
|
|
21
|
+
- **generators:** better types for enabled methods ([#3474](https://github.com/feathersjs/feathers/issues/3474)) ([bdb3d3a](https://github.com/feathersjs/feathers/commit/bdb3d3a308322bfed3caa4214e4b6a72f1a84944))
|
|
22
|
+
- **generators:** Conditionally import channels in Express app ([#3106](https://github.com/feathersjs/feathers/issues/3106)) ([c2dbaaa](https://github.com/feathersjs/feathers/commit/c2dbaaa4d1d5a5675b5812a7ed2317076ac414fe))
|
|
23
|
+
- **generators:** Do not removeAdditional in queries ([#3000](https://github.com/feathersjs/feathers/issues/3000)) ([ef501bc](https://github.com/feathersjs/feathers/commit/ef501bcfa528119168787e9d857f1bb90e0c3114))
|
|
24
|
+
- **generators:** Fix channel/service configuration order for Koa based apps ([580344e](https://github.com/feathersjs/feathers/commit/580344e96fe8a2f17fd53476af5a0c7ddefac0b6))
|
|
25
|
+
- **generators:** Fix configure channels when not real-time app ([#3271](https://github.com/feathersjs/feathers/issues/3271)) ([c619ab2](https://github.com/feathersjs/feathers/commit/c619ab2c57f692c419fee610c269c1502b124852))
|
|
26
|
+
- **generators:** Fix generating of gitignore ([#3514](https://github.com/feathersjs/feathers/issues/3514)) ([cabc397](https://github.com/feathersjs/feathers/commit/cabc397d2e4378c4bce79a60f2d196713cce4d8c))
|
|
27
|
+
- **generators:** Fix Knex migration generated filename ([#3033](https://github.com/feathersjs/feathers/issues/3033)) ([1ac18a7](https://github.com/feathersjs/feathers/commit/1ac18a7143173d973af982772678834f7a7334f7))
|
|
28
|
+
- **generators:** Fix migrate:make script in generated app ([#3490](https://github.com/feathersjs/feathers/issues/3490)) ([c7b0111](https://github.com/feathersjs/feathers/commit/c7b011150152e62a35f3f8ab04d6dde6d6727583))
|
|
29
|
+
- **generators:** Fix typo in service client generator ([#3068](https://github.com/feathersjs/feathers/issues/3068)) ([612032e](https://github.com/feathersjs/feathers/commit/612032eced24ecbcf255d51ff0d537d74227cfd7))
|
|
30
|
+
- **generators:** Generated app does not start when choosing JSON schema ([#3034](https://github.com/feathersjs/feathers/issues/3034)) ([7b8250b](https://github.com/feathersjs/feathers/commit/7b8250bd535c3c5ec7429a65139335ad43616ae0))
|
|
31
|
+
- **generators:** Harden mongodb.js to reliably extract database from any connection string ([#3264](https://github.com/feathersjs/feathers/issues/3264)) ([7b0f82c](https://github.com/feathersjs/feathers/commit/7b0f82c631ff5549cdc9a8e0ffcc705d067c2157))
|
|
32
|
+
- **generators:** Make sure TypeScript version in generated app matches ([#3122](https://github.com/feathersjs/feathers/issues/3122)) ([f0acfdf](https://github.com/feathersjs/feathers/commit/f0acfdf9d33337bf40ca12126c2550f56e31fa3b))
|
|
33
|
+
- **generators:** Move generators and CLI to featherscloud/pinion ([#3386](https://github.com/feathersjs/feathers/issues/3386)) ([eb87c99](https://github.com/feathersjs/feathers/commit/eb87c9922db56c5610e5b808f3ffe033c830e2b2))
|
|
34
|
+
- **generators:** Properly log unhandled rejection ([#3149](https://github.com/feathersjs/feathers/issues/3149)) ([eda8f78](https://github.com/feathersjs/feathers/commit/eda8f78fa5084c3247ad10b051610b3c51a13d24))
|
|
35
|
+
- **generators:** typebox generated schema resolver generic ([#3622](https://github.com/feathersjs/feathers/issues/3622)) ([55a4a9b](https://github.com/feathersjs/feathers/commit/55a4a9b6bb021c369fb65b50fa13869311587c3f))
|
|
36
|
+
- **generators:** use `export type` vs `export` ([#3246](https://github.com/feathersjs/feathers/issues/3246)) ([82d30fd](https://github.com/feathersjs/feathers/commit/82d30fd37914e61935e068e89fc389f6bf47aaad))
|
|
37
|
+
- **generators:** Use cross-platform ES module \_\_dirname ([#3402](https://github.com/feathersjs/feathers/issues/3402)) ([0ac4882](https://github.com/feathersjs/feathers/commit/0ac4882663bb6a78622be0d903ae6508ecb516ad))
|
|
38
|
+
- **generators:** Use module format for JS Knex migrations ([#3444](https://github.com/feathersjs/feathers/issues/3444)) ([3feaa71](https://github.com/feathersjs/feathers/commit/3feaa719443aa30b1121d928ba5b7b8f43837ffb))
|
|
39
|
+
- **knex:** Update all dependencies and Knex peer ([#3308](https://github.com/feathersjs/feathers/issues/3308)) ([d2f9860](https://github.com/feathersjs/feathers/commit/d2f986036c4741cce2339d8abbcc6b2eb037a12a))
|
|
40
|
+
- Make sure all Readme files are up to date ([#3154](https://github.com/feathersjs/feathers/issues/3154)) ([a5f0b38](https://github.com/feathersjs/feathers/commit/a5f0b38bbf2a11486415a39533bcc6c67fb51e3e))
|
|
41
|
+
- **schema:** HookContext is now typed in schema ([#3306](https://github.com/feathersjs/feathers/issues/3306)) ([65fab86](https://github.com/feathersjs/feathers/commit/65fab86407b813122f24db928a59986c7286f270))
|
|
42
|
+
- Update all dependencies ([#3024](https://github.com/feathersjs/feathers/issues/3024)) ([283dc47](https://github.com/feathersjs/feathers/commit/283dc4798d85584bc031e6e54b83b4ea77d1edd0))
|
|
43
|
+
- Update all dependencies ([#3613](https://github.com/feathersjs/feathers/issues/3613)) ([5136bbd](https://github.com/feathersjs/feathers/commit/5136bbd2e2eeb4e6579e07c9e914006629542363))
|
|
44
|
+
- Update dependencies ([#3584](https://github.com/feathersjs/feathers/issues/3584)) ([119fa4e](https://github.com/feathersjs/feathers/commit/119fa4e1ade8b0078aa235083d566e2538b3a084))
|
|
45
|
+
|
|
46
|
+
### Features
|
|
47
|
+
|
|
48
|
+
- ES module v5 compatibility layer for v6 ([#3607](https://github.com/feathersjs/feathers/issues/3607)) ([1dfff88](https://github.com/feathersjs/feathers/commit/1dfff8832eedca895eeaafd7f3acf0f8a27be23c))
|
|
49
|
+
- **generators:** Add service file for shared information ([#3008](https://github.com/feathersjs/feathers/issues/3008)) ([0a1665d](https://github.com/feathersjs/feathers/commit/0a1665d23e002afadb40ed99bf0168f0fceb0054))
|
|
50
|
+
- **generators:** Final tweaks to the generators ([#3060](https://github.com/feathersjs/feathers/issues/3060)) ([1bf1544](https://github.com/feathersjs/feathers/commit/1bf1544fa8deeaa44ba354fb539dc3f1fd187767))
|
|
51
|
+
- **generators:** Move core code generators to shared generators package ([#2982](https://github.com/feathersjs/feathers/issues/2982)) ([0328d22](https://github.com/feathersjs/feathers/commit/0328d2292153870bc43958f73d2c6f288a8cec17))
|
|
52
|
+
- **mongodb:** Add Object ID keyword converter and update MongoDB CLI & docs ([#3041](https://github.com/feathersjs/feathers/issues/3041)) ([ca0994e](https://github.com/feathersjs/feathers/commit/ca0994eaecb5a31f310bc980d106834e11f24f41))
|
|
53
|
+
- **schema:** Add schema helper for handling Object ids ([#3058](https://github.com/feathersjs/feathers/issues/3058)) ([1393bed](https://github.com/feathersjs/feathers/commit/1393bed81a9ee814de6aab0e537af83e667591a2))
|
|
54
|
+
- Update to Typebox v1 ([#3616](https://github.com/feathersjs/feathers/issues/3616)) ([077dcc2](https://github.com/feathersjs/feathers/commit/077dcc2cece0ede6f92388dd39be4dcaeed203eb))
|
|
55
|
+
- Upgrade to latest TypeBox ([#3612](https://github.com/feathersjs/feathers/issues/3612)) ([4def62e](https://github.com/feathersjs/feathers/commit/4def62efaaf093cb33e44a3f82169149422af987))
|
|
56
|
+
- v5 compatibility layer for v6 ([7415d5a](https://github.com/feathersjs/feathers/commit/7415d5addbb9943cfaf8a7a942ca542c6d99bceb))
|
|
57
|
+
|
|
58
|
+
### BREAKING CHANGES
|
|
59
|
+
|
|
60
|
+
- All packages are now ES modules only
|
|
61
|
+
|
|
62
|
+
## [5.0.39](https://github.com/feathersjs/feathers/compare/v5.0.38...v5.0.39) (2026-01-31)
|
|
63
|
+
|
|
64
|
+
**Note:** Version bump only for package @feathersjs/generators
|
|
65
|
+
|
|
66
|
+
## [5.0.38](https://github.com/feathersjs/feathers/compare/v5.0.37...v5.0.38) (2026-01-31)
|
|
67
|
+
|
|
68
|
+
**Note:** Version bump only for package @feathersjs/generators
|
|
69
|
+
|
|
6
70
|
## [5.0.37](https://github.com/feathersjs/feathers/compare/v5.0.36...v5.0.37) (2025-11-10)
|
|
7
71
|
|
|
8
72
|
**Note:** Version bump only for package @feathersjs/generators
|
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2025 Feathers Contributors
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -19,4 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
21
|
SOFTWARE.
|
|
22
|
-
|
package/README.md
CHANGED
|
@@ -17,6 +17,6 @@ Refer to the [Feathers CLI guide](https://feathersjs.com/guides/cli/) for more d
|
|
|
17
17
|
|
|
18
18
|
## License
|
|
19
19
|
|
|
20
|
-
Copyright (c)
|
|
20
|
+
Copyright (c) 2025 [Feathers contributors](https://github.com/feathersjs/feathers/graphs/contributors)
|
|
21
21
|
|
|
22
22
|
Licensed under the [MIT license](LICENSE).
|
package/lib/app/index.js
CHANGED
|
@@ -106,7 +106,7 @@ export const generate = (ctx) => Promise.resolve(ctx)
|
|
|
106
106
|
})
|
|
107
107
|
.then(install(({ transports, framework, dependencyVersions, dependencies, schema }) => {
|
|
108
108
|
const hasSocketio = transports.includes('websockets');
|
|
109
|
-
dependencies.push('@feathersjs/feathers', '@feathersjs/errors', '@feathersjs/schema', '@feathersjs/configuration', '@feathersjs/transport-commons', '@feathersjs/adapter-commons', '@feathersjs/authentication', '@feathersjs/authentication-client', 'winston');
|
|
109
|
+
dependencies.push('@feathersjs/feathers', '@feathersjs/hooks', '@feathersjs/errors', '@feathersjs/schema', '@feathersjs/configuration', '@feathersjs/transport-commons', '@feathersjs/adapter-commons', '@feathersjs/authentication', '@feathersjs/authentication-client', 'winston');
|
|
110
110
|
if (hasSocketio) {
|
|
111
111
|
dependencies.push('@feathersjs/socketio');
|
|
112
112
|
}
|
|
@@ -118,6 +118,7 @@ export const generate = (ctx) => Promise.resolve(ctx)
|
|
|
118
118
|
}
|
|
119
119
|
if (schema === 'typebox') {
|
|
120
120
|
dependencies.push('@feathersjs/typebox');
|
|
121
|
+
dependencies.push('typebox');
|
|
121
122
|
}
|
|
122
123
|
return addVersions(dependencies, dependencyVersions);
|
|
123
124
|
}, false, ({ packager }) => packager))
|
package/lib/app/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/app/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AACnC,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,EAGL,qBAAqB,EACrB,WAAW,EACX,OAAO,EACR,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,QAAQ,IAAI,mBAAmB,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAEtG,6BAA6B;AAC7B,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAA;AAiCzD,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,GAA0B,EAAE,EAAE,CACrD,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC;KACjB,IAAI,CAAC,qBAAqB,EAAE,CAAC;KAC7B,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;IACd,GAAG,GAAG;IACN,YAAY,EAAE,EAAc;IAC5B,eAAe,EAAE,EAAc;CAChC,CAAC,CAAC;KACF,IAAI,CACH,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC;IACd;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,8CAA8C;QACvD,IAAI,EAAE,CAAC,GAAG,CAAC,QAAQ;QACnB,OAAO,EAAE;YACP,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,IAAI,EAAE;YACnC,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,IAAI,EAAE;SACpC;KACF;IACD;QACE,I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14 @@ import type { Static } from '@feathersjs/typebox'
|
|
|
50
50
|
|
|
51
51
|
import { dataValidator } from './validators'
|
|
52
52
|
|
|
53
|
-
export const configurationSchema = Type.Intersect([
|
|
53
|
+
export const configurationSchema = Type.Evaluate(Type.Intersect([
|
|
54
54
|
defaultAppConfiguration,
|
|
55
55
|
Type.Object({
|
|
56
56
|
host: Type.String(),
|
|
57
57
|
port: Type.Number(),
|
|
58
58
|
public: Type.String()
|
|
59
59
|
})
|
|
60
|
-
])
|
|
60
|
+
]))
|
|
61
61
|
|
|
62
62
|
export type ApplicationConfiguration = Static<typeof configurationSchema>
|
|
63
63
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { toFile, when, renderTemplate } from '@featherscloud/pinion';
|
|
2
2
|
const template = ({ framework, schema }) => /* ts */ `// For more information about this file see https://dove.feathersjs.com/guides/cli/typescript.html
|
|
3
|
-
import { HookContext as FeathersHookContext, NextFunction } from '@feathersjs/feathers'
|
|
4
|
-
import { Application as FeathersApplication } from '@feathersjs/${framework}'
|
|
3
|
+
import type { HookContext as FeathersHookContext, NextFunction } from '@feathersjs/feathers'
|
|
4
|
+
import type { Application as FeathersApplication } from '@feathersjs/${framework}'
|
|
5
5
|
${schema === false
|
|
6
6
|
? `type ApplicationConfiguration = any`
|
|
7
7
|
: `import { ApplicationConfiguration } from './configuration'`}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"declarations.tpl.js","sourceRoot":"","sources":["../../../src/app/templates/declarations.tpl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAGpE,MAAM,QAAQ,GAAG,CAAC,EAChB,SAAS,EACT,MAAM,EACc,EAAE,EAAE,CAAC,QAAQ,CAAC;;
|
|
1
|
+
{"version":3,"file":"declarations.tpl.js","sourceRoot":"","sources":["../../../src/app/templates/declarations.tpl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAGpE,MAAM,QAAQ,GAAG,CAAC,EAChB,SAAS,EACT,MAAM,EACc,EAAE,EAAE,CAAC,QAAQ,CAAC;;uEAEmC,SAAS;EAE9E,MAAM,KAAK,KAAK;IACd,CAAC,CAAC,qCAAqC;IACvC,CAAC,CAAC,4DACN;;;;;;;;;;;;;;;;;CAiBC,CAAA;AAED,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,GAAwB,EAAE,EAAE,CACnD,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,CACvB,IAAI,CACF,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,QAAQ,KAAK,IAAI,EACnC,cAAc,CACZ,QAAQ,EACR,MAAM,CAAsB,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,GAAG,EAAE,iBAAiB,CAAC,CACjE,CACF,CACF,CAAA"}
|
package/lib/hook/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { dirname } from 'path';
|
|
2
2
|
import { fileURLToPath } from 'url';
|
|
3
3
|
import { prompt, runGenerators } from '@featherscloud/pinion';
|
|
4
|
-
import
|
|
4
|
+
import { kebabCase, camelCase } from 'lodash-es';
|
|
5
5
|
import { checkPreconditions, initializeBaseContext } from '../commons.js';
|
|
6
6
|
// Set __dirname in es module
|
|
7
7
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
@@ -28,8 +28,8 @@ export const generate = (ctx) => Promise.resolve(ctx)
|
|
|
28
28
|
]))
|
|
29
29
|
.then((ctx) => {
|
|
30
30
|
const { name } = ctx;
|
|
31
|
-
const kebabName =
|
|
32
|
-
const camelName =
|
|
31
|
+
const kebabName = kebabCase(name);
|
|
32
|
+
const camelName = camelCase(name);
|
|
33
33
|
return {
|
|
34
34
|
...ctx,
|
|
35
35
|
kebabName,
|
package/lib/hook/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/hook/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAC7D,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/hook/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAC7D,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAChD,OAAO,EAAE,kBAAkB,EAAuB,qBAAqB,EAAE,MAAM,eAAe,CAAA;AAE9F,6BAA6B;AAC7B,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAA;AASzD,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,GAAyB,EAAE,EAAE,CACpD,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC;KACjB,IAAI,CAAC,qBAAqB,EAAE,CAAC;KAC7B,IAAI,CAAC,kBAAkB,EAAE,CAAC;KAC1B,IAAI,CACH,MAAM,CAAuB,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;IAC/C;QACE,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,+BAA+B;QACxC,IAAI,EAAE,CAAC,IAAI;KACZ;IACD;QACE,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,CAAC,IAAI;QACX,OAAO,EAAE,0BAA0B;QACnC,OAAO,EAAE;YACP,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE;YACnC,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,wBAAwB,EAAE;SACrD;KACF;CACF,CAAC,CACH;KACA,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE;IACZ,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,CAAA;IACpB,MAAM,SAAS,GAAG,SAAS,CAAC,IAAI,CAAC,CAAA;IACjC,MAAM,SAAS,GAAG,SAAS,CAAC,IAAI,CAAC,CAAA;IAEjC,OAAO;QACL,GAAG,GAAG;QACN,SAAS;QACT,SAAS;KACV,CAAA;AACH,CAAC,CAAC;KACD,IAAI,CAAC,aAAa,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC,CAAA"}
|
package/lib/service/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { dirname } from 'path';
|
|
2
|
-
import
|
|
2
|
+
import { camelCase, kebabCase, upperFirst, last } from 'lodash-es';
|
|
3
3
|
import { runGenerator, runGenerators, prompt } from '@featherscloud/pinion';
|
|
4
4
|
import { fileURLToPath } from 'url';
|
|
5
5
|
import chalk from 'chalk';
|
|
@@ -30,7 +30,7 @@ export const generate = (ctx) => Promise.resolve(ctx)
|
|
|
30
30
|
type: 'input',
|
|
31
31
|
when: !path,
|
|
32
32
|
message: 'Which path should the service be registered on?',
|
|
33
|
-
default: (answers) => `${
|
|
33
|
+
default: (answers) => `${kebabCase(answers.name)}`,
|
|
34
34
|
validate: (input) => {
|
|
35
35
|
if (!input || input === 'authentication') {
|
|
36
36
|
return 'Invalid service path';
|
|
@@ -93,14 +93,14 @@ export const generate = (ctx) => Promise.resolve(ctx)
|
|
|
93
93
|
}))
|
|
94
94
|
.then(async (ctx) => {
|
|
95
95
|
const { name, path, type, authStrategies = [] } = ctx;
|
|
96
|
-
const kebabName =
|
|
97
|
-
const camelName =
|
|
98
|
-
const upperName =
|
|
96
|
+
const kebabName = kebabCase(name);
|
|
97
|
+
const camelName = camelCase(name);
|
|
98
|
+
const upperName = upperFirst(camelName);
|
|
99
99
|
const className = `${upperName}Service`;
|
|
100
100
|
const folder = path.split('/').filter((el) => el !== '');
|
|
101
101
|
const relative = ['', ...folder].map(() => '..').join('/');
|
|
102
|
-
const fileName =
|
|
103
|
-
const kebabPath =
|
|
102
|
+
const fileName = last(folder);
|
|
103
|
+
const kebabPath = kebabCase(path);
|
|
104
104
|
return {
|
|
105
105
|
name,
|
|
106
106
|
type,
|
package/lib/service/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/service/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAC9B,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/service/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAC9B,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAClE,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EACL,kBAAkB,EAClB,cAAc,EAEd,UAAU,EACV,kBAAkB,EAClB,qBAAqB,EACtB,MAAM,eAAe,CAAA;AAEtB,6BAA6B;AAC7B,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAA;AAyEzD,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,GAA8B,EAAE,EAAE,CACzD,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC;KACjB,IAAI,CAAC,qBAAqB,EAAE,CAAC;KAC7B,I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Y,CAA0B,SAAS,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,GAAG,IAAI,SAAS,CAAC,CAAC,CAAA"}
|
|
@@ -31,7 +31,7 @@ export const ${camelName}Resolver = resolve<${upperName}Query, HookContext<${upp
|
|
|
31
31
|
|
|
32
32
|
export const ${camelName}ExternalResolver = resolve<${upperName}, HookContext<${upperName}Service>>({
|
|
33
33
|
${localTemplate(authStrategies, `// The password should never be visible externally
|
|
34
|
-
password: async () => undefined`)}
|
|
34
|
+
password: async () => undefined`)}
|
|
35
35
|
})
|
|
36
36
|
|
|
37
37
|
// Schema for creating new entries
|
|
@@ -64,11 +64,11 @@ export const ${camelName}QueryProperties = Type.Pick(${camelName}Schema, [
|
|
|
64
64
|
? authStrategies.map((name) => (name === 'local' ? `'email'` : `'${name}Id'`)).join(', ')
|
|
65
65
|
: `'text'`}
|
|
66
66
|
])
|
|
67
|
-
export const ${camelName}QuerySchema = Type.Intersect([
|
|
68
|
-
querySyntax(${camelName}QueryProperties),
|
|
67
|
+
export const ${camelName}QuerySchema = Type.Evaluate(Type.Intersect([
|
|
68
|
+
querySyntax(${camelName}QueryProperties, {}),
|
|
69
69
|
// Add additional query properties here
|
|
70
70
|
Type.Object({}, { additionalProperties: false })
|
|
71
|
-
], { additionalProperties: false })
|
|
71
|
+
], { additionalProperties: false }))
|
|
72
72
|
export type ${upperName}Query = Static<typeof ${camelName}QuerySchema>
|
|
73
73
|
export const ${camelName}QueryValidator = getValidator(${camelName}QuerySchema, queryValidator)
|
|
74
74
|
export const ${camelName}QueryResolver = resolve<${upperName}Query, HookContext<${upperName}Service>>({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feathersjs/generators",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0-pre.0",
|
|
4
4
|
"description": "Feathers CLI core generators, powered by Pinion",
|
|
5
5
|
"homepage": "https://feathersjs.com",
|
|
6
6
|
"keywords": [
|
|
@@ -27,10 +27,9 @@
|
|
|
27
27
|
"url": "https://github.com/feathersjs/feathers/issues"
|
|
28
28
|
},
|
|
29
29
|
"engines": {
|
|
30
|
-
"node": ">=
|
|
30
|
+
"node": ">= 20"
|
|
31
31
|
},
|
|
32
32
|
"main": "lib/index.js",
|
|
33
|
-
"types": "lib/",
|
|
34
33
|
"type": "module",
|
|
35
34
|
"files": [
|
|
36
35
|
"CHANGELOG.md",
|
|
@@ -54,43 +53,45 @@
|
|
|
54
53
|
"dependencies": {
|
|
55
54
|
"@featherscloud/pinion": "^0.5.5",
|
|
56
55
|
"chalk": "^5.6.2",
|
|
57
|
-
"lodash": "^4.17.
|
|
58
|
-
"prettier": "^3.
|
|
56
|
+
"lodash-es": "^4.17.23",
|
|
57
|
+
"prettier": "^3.8.1",
|
|
59
58
|
"typescript": "^5.9.3"
|
|
60
59
|
},
|
|
61
60
|
"devDependencies": {
|
|
62
|
-
"@feathersjs/adapter-commons": "^
|
|
63
|
-
"@feathersjs/authentication": "^
|
|
64
|
-
"@feathersjs/authentication-client": "^
|
|
65
|
-
"@feathersjs/authentication-local": "^
|
|
66
|
-
"@feathersjs/authentication-oauth": "^
|
|
67
|
-
"@feathersjs/configuration": "^
|
|
68
|
-
"@feathersjs/errors": "^
|
|
69
|
-
"@feathersjs/express": "^
|
|
70
|
-
"@feathersjs/feathers": "^
|
|
71
|
-
"@feathersjs/
|
|
72
|
-
"@feathersjs/
|
|
73
|
-
"@feathersjs/
|
|
74
|
-
"@feathersjs/
|
|
75
|
-
"@feathersjs/
|
|
76
|
-
"@feathersjs/
|
|
77
|
-
"@feathersjs/
|
|
78
|
-
"@feathersjs/
|
|
61
|
+
"@feathersjs/adapter-commons": "^6.0.0-pre.0",
|
|
62
|
+
"@feathersjs/authentication": "^6.0.0-pre.0",
|
|
63
|
+
"@feathersjs/authentication-client": "^6.0.0-pre.0",
|
|
64
|
+
"@feathersjs/authentication-local": "^6.0.0-pre.0",
|
|
65
|
+
"@feathersjs/authentication-oauth": "^6.0.0-pre.0",
|
|
66
|
+
"@feathersjs/configuration": "^6.0.0-pre.0",
|
|
67
|
+
"@feathersjs/errors": "^6.0.0-pre.0",
|
|
68
|
+
"@feathersjs/express": "^6.0.0-pre.0",
|
|
69
|
+
"@feathersjs/feathers": "^6.0.0-pre.0",
|
|
70
|
+
"@feathersjs/hooks": "^6.0.0-pre.0",
|
|
71
|
+
"@feathersjs/knex": "^6.0.0-pre.0",
|
|
72
|
+
"@feathersjs/koa": "^6.0.0-pre.0",
|
|
73
|
+
"@feathersjs/mongodb": "^6.0.0-pre.0",
|
|
74
|
+
"@feathersjs/rest-client": "^6.0.0-pre.0",
|
|
75
|
+
"@feathersjs/schema": "^6.0.0-pre.0",
|
|
76
|
+
"@feathersjs/socketio": "^6.0.0-pre.0",
|
|
77
|
+
"@feathersjs/transport-commons": "^6.0.0-pre.0",
|
|
78
|
+
"@feathersjs/typebox": "^6.0.0-pre.0",
|
|
79
79
|
"@types/mocha": "^10.0.10",
|
|
80
|
-
"@types/node": "^
|
|
80
|
+
"@types/node": "^25.1.0",
|
|
81
81
|
"@types/prettier": "^2.7.3",
|
|
82
|
-
"axios": "^1.13.
|
|
82
|
+
"axios": "^1.13.4",
|
|
83
83
|
"knex": "^3.1.0",
|
|
84
84
|
"mocha": "^11.7.5",
|
|
85
|
-
"mongodb": "^
|
|
86
|
-
"mssql": "^12.
|
|
85
|
+
"mongodb": "^7.0.0",
|
|
86
|
+
"mssql": "^12.2.0",
|
|
87
87
|
"mysql": "^2.18.1",
|
|
88
|
-
"pg": "^8.
|
|
88
|
+
"pg": "^8.18.0",
|
|
89
89
|
"shx": "^0.4.0",
|
|
90
90
|
"sqlite3": "^5.1.7",
|
|
91
|
-
"tsx": "^4.
|
|
92
|
-
"type-fest": "^5.2
|
|
91
|
+
"tsx": "^4.21.0",
|
|
92
|
+
"type-fest": "^5.4.2",
|
|
93
|
+
"typebox": "^1.0.80",
|
|
93
94
|
"typescript": "^5.9.3"
|
|
94
95
|
},
|
|
95
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "8fad4bb3d393794fb98fa5fe7cfc327661fedbd2"
|
|
96
97
|
}
|