@feathersjs/generators 5.0.0-pre.38 → 5.0.1

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.1](https://github.com/feathersjs/feathers/compare/v5.0.0...v5.0.1) (2023-03-15)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **generators:** Conditionally import channels in Express app ([#3106](https://github.com/feathersjs/feathers/issues/3106)) ([c2dbaaa](https://github.com/feathersjs/feathers/commit/c2dbaaa4d1d5a5675b5812a7ed2317076ac414fe))
11
+
12
+ # [5.0.0](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.38...v5.0.0) (2023-02-24)
13
+
14
+ ### Bug Fixes
15
+
16
+ - **generators:** Fix typo in service client generator ([#3068](https://github.com/feathersjs/feathers/issues/3068)) ([612032e](https://github.com/feathersjs/feathers/commit/612032eced24ecbcf255d51ff0d537d74227cfd7))
17
+
6
18
  # [5.0.0-pre.38](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.37...v5.0.0-pre.38) (2023-02-17)
7
19
 
8
20
  ### Features
@@ -73,7 +73,7 @@ ${schema !== false ? `import { configurationValidator } from './configuration'`
73
73
  import { logger } from './logger'
74
74
  import { logError } from './hooks/log-error'
75
75
  import { services } from './services/index'
76
- import { channels } from './channels'
76
+ ${transports.includes('websockets') ? `import { channels } from './channels'` : ''}
77
77
 
78
78
  const app: Application = express(feathers())
79
79
 
@@ -1 +1 @@
1
- {"version":3,"file":"app.tpl.js","sourceRoot":"","sources":["../../../src/app/templates/app.tpl.ts"],"names":[],"mappings":";;;AAAA,+CAAsD;AACtD,2CAA4C;AAG5C,MAAM,QAAQ,GAAG,CAAC,EAChB,UAAU,EACV,MAAM,EACc,EAAE,EAAE,CAAC,QAAQ,CAAC;;;;;;EAMlC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CAAC,CAAC,CAAC,uCAAuC,CAAC,CAAC,CAAC,EAAE;;;;;8BAKpD,MAAM,KAAK,KAAK,CAAC,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE;;;;;;;;;EAU5E,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC;IAC/B,CAAC,CAAC;;;;IAIF;IACA,CAAC,CAAC,EACN;;;;;;;;;;;;;;;;;;;;;;;;CAwBC,CAAA;AAED,MAAM,QAAQ,GAAG,CAAC,GAAwB,EAAE,EAAE,CAC5C,GAAG,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA;AAE1D,MAAM,QAAQ,GAAG,CAAC,GAAwB,EAAE,EAAE,CACnD,IAAA,kBAAS,EAAC,GAAG,CAAC,CAAC,IAAI,CACjB,IAAA,sBAAY,EACV,QAAQ,EACR,IAAA,eAAM,EAAsB,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,GAAG,EAAE,KAAK,CAAC,CACrD,CACF,CAAA;AANU,QAAA,QAAQ,YAMlB"}
@@ -81,7 +81,7 @@ ${schema !== false ? `import { configurationValidator } from './configuration'`
81
81
  import { logger } from './logger'
82
82
  import { logError } from './hooks/log-error'
83
83
  import { services } from './services/index'
84
- import { channels } from './channels'
84
+ ${transports.includes('websockets') ? `import { channels } from './channels'` : ''}
85
85
 
86
86
  const app: Application = express(feathers())
87
87
 
@@ -14,7 +14,6 @@ export type {
14
14
  `;
15
15
  const registrationTemplate = ({ camelName }) => ` client.configure(${camelName}Client)`;
16
16
  const toClientFile = (0, pinion_1.toFile)(({ lib }) => [lib, 'client']);
17
- const generate = async (ctx) => (0, pinion_1.generator)(ctx);
17
+ const generate = async (ctx) => (0, pinion_1.generator)(ctx).then((0, pinion_1.when)(({ lib, language }) => (0, commons_1.fileExists)(lib, `client.${language}`), (0, commons_1.injectSource)(registrationTemplate, (0, pinion_1.before)('return client'), toClientFile), (0, commons_1.injectSource)(importTemplate, (0, pinion_1.after)(({ language }) => language === 'ts' ? 'import type { AuthenticationClientOptions }' : 'import authenticationClient'), toClientFile)));
18
18
  exports.generate = generate;
19
- (0, pinion_1.when)(({ lib, language }) => (0, commons_1.fileExists)(lib, `client.${language}`), (0, commons_1.injectSource)(registrationTemplate, (0, pinion_1.before)('return client'), toClientFile), (0, commons_1.injectSource)(importTemplate, (0, pinion_1.after)(({ language }) => language === 'ts' ? 'import type { AuthenticationClientOptions }' : 'import authenticationClient'), toClientFile));
20
19
  //# sourceMappingURL=client.tpl.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"client.tpl.js","sourceRoot":"","sources":["../../../src/service/templates/client.tpl.ts"],"names":[],"mappings":";;;AAAA,+CAA2E;AAC3E,2CAAwD;AAGxD,MAAM,cAAc,GAAG,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAA2B,EAAE,EAAE,CAAC,QAAQ,CAAC;WAC9F,SAAS,6BAA6B,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,QAAQ;;IAEzE,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;qBACQ,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,QAAQ;CAChD,CAAA;AAED,MAAM,oBAAoB,GAAG,CAAC,EAAE,SAAS,EAA2B,EAAE,EAAE,CACtE,sBAAsB,SAAS,SAAS,CAAA;AAE1C,MAAM,YAAY,GAAG,IAAA,eAAM,EAA0B,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAA;AAE3E,MAAM,QAAQ,GAAG,KAAK,EAAE,GAA4B,EAAE,EAAE,CAAC,IAAA,kBAAS,EAAC,GAAG,CAAC,CAAA;AAAjE,QAAA,QAAQ,YAAyD;AAC9E,IAAA,aAAI,EACF,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE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AAU,QAAQ,EAAE,CAAC,EAC5D,IAAA,sBAAY,EAAC,oBAAoB,EAAE,IAAA,eAAM,EAAC,eAAe,CAAC,EAAE,YAAY,CAAC,EACzE,IAAA,sBAAY,EACV,cAAc,EACd,IAAA,cAAK,EAA0B,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAC9C,QAAQ,KAAK,IAAI,CAAC,CAAC,CAAC,6CAA6C,CAAC,CAAC,CAAC,6BAA6B,CAClG,EACD,YAAY,CACb,CACF,CACF,CAAA;AAbU,QAAA,QAAQ,YAalB"}
@@ -17,15 +17,17 @@ const registrationTemplate = ({ camelName }: ServiceGeneratorContext) =>
17
17
 
18
18
  const toClientFile = toFile<ServiceGeneratorContext>(({ lib }) => [lib, 'client'])
19
19
 
20
- export const generate = async (ctx: ServiceGeneratorContext) => generator(ctx)
21
- when<ServiceGeneratorContext>(
22
- ({ lib, language }) => fileExists(lib, `client.${language}`),
23
- injectSource(registrationTemplate, before('return client'), toClientFile),
24
- injectSource(
25
- importTemplate,
26
- after<ServiceGeneratorContext>(({ language }) =>
27
- language === 'ts' ? 'import type { AuthenticationClientOptions }' : 'import authenticationClient'
28
- ),
29
- toClientFile
20
+ export const generate = async (ctx: ServiceGeneratorContext) =>
21
+ generator(ctx).then(
22
+ when<ServiceGeneratorContext>(
23
+ ({ lib, language }) => fileExists(lib, `client.${language}`),
24
+ injectSource(registrationTemplate, before('return client'), toClientFile),
25
+ injectSource(
26
+ importTemplate,
27
+ after<ServiceGeneratorContext>(({ language }) =>
28
+ language === 'ts' ? 'import type { AuthenticationClientOptions }' : 'import authenticationClient'
29
+ ),
30
+ toClientFile
31
+ )
32
+ )
30
33
  )
31
- )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feathersjs/generators",
3
- "version": "5.0.0-pre.38",
3
+ "version": "5.0.1",
4
4
  "description": "Feathers CLI core generators, powered by Pinion",
5
5
  "homepage": "https://feathersjs.com",
6
6
  "keywords": [
@@ -59,36 +59,36 @@
59
59
  "typescript": "^4.9.5"
60
60
  },
61
61
  "devDependencies": {
62
- "@feathersjs/adapter-commons": "^5.0.0-pre.38",
63
- "@feathersjs/authentication": "^5.0.0-pre.38",
64
- "@feathersjs/authentication-client": "^5.0.0-pre.38",
65
- "@feathersjs/authentication-local": "^5.0.0-pre.38",
66
- "@feathersjs/authentication-oauth": "^5.0.0-pre.38",
67
- "@feathersjs/configuration": "^5.0.0-pre.38",
68
- "@feathersjs/errors": "^5.0.0-pre.38",
69
- "@feathersjs/express": "^5.0.0-pre.38",
70
- "@feathersjs/feathers": "^5.0.0-pre.38",
71
- "@feathersjs/knex": "^5.0.0-pre.38",
72
- "@feathersjs/koa": "^5.0.0-pre.38",
73
- "@feathersjs/mongodb": "^5.0.0-pre.38",
74
- "@feathersjs/rest-client": "^5.0.0-pre.38",
75
- "@feathersjs/schema": "^5.0.0-pre.38",
76
- "@feathersjs/socketio": "^5.0.0-pre.38",
77
- "@feathersjs/transport-commons": "^5.0.0-pre.38",
78
- "@feathersjs/typebox": "^5.0.0-pre.38",
62
+ "@feathersjs/adapter-commons": "^5.0.1",
63
+ "@feathersjs/authentication": "^5.0.1",
64
+ "@feathersjs/authentication-client": "^5.0.1",
65
+ "@feathersjs/authentication-local": "^5.0.1",
66
+ "@feathersjs/authentication-oauth": "^5.0.1",
67
+ "@feathersjs/configuration": "^5.0.1",
68
+ "@feathersjs/errors": "^5.0.1",
69
+ "@feathersjs/express": "^5.0.1",
70
+ "@feathersjs/feathers": "^5.0.1",
71
+ "@feathersjs/knex": "^5.0.1",
72
+ "@feathersjs/koa": "^5.0.1",
73
+ "@feathersjs/mongodb": "^5.0.1",
74
+ "@feathersjs/rest-client": "^5.0.1",
75
+ "@feathersjs/schema": "^5.0.1",
76
+ "@feathersjs/socketio": "^5.0.1",
77
+ "@feathersjs/transport-commons": "^5.0.1",
78
+ "@feathersjs/typebox": "^5.0.1",
79
79
  "@types/mocha": "^10.0.1",
80
- "@types/node": "^18.13.0",
80
+ "@types/node": "^18.14.6",
81
81
  "@types/prettier": "^2.7.2",
82
- "axios": "^1.3.2",
82
+ "axios": "^1.3.4",
83
83
  "mocha": "^10.2.0",
84
- "mongodb": "^5.0.1",
84
+ "mongodb": "^5.1.0",
85
85
  "mssql": "^9.1.1",
86
86
  "mysql": "^2.18.1",
87
- "pg": "^8.9.0",
87
+ "pg": "^8.10.0",
88
88
  "shx": "^0.3.4",
89
89
  "sqlite3": "^5.1.4",
90
90
  "ts-node": "^10.9.1",
91
- "type-fest": "^3.5.7"
91
+ "type-fest": "^3.6.1"
92
92
  },
93
- "gitHead": "7fc86307438ae8cf3f71ce3b677be8bcc55768c1"
93
+ "gitHead": "18b7f4ab0a8075572a81d78956ba1205a9795c91"
94
94
  }