@fluojs/cli 1.0.0-beta.6 → 1.0.0-beta.7

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 +1 @@
1
- {"version":3,"file":"scaffold.d.ts","sourceRoot":"","sources":["../../src/new/scaffold.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,gBAAgB,EAAkB,MAAM,YAAY,CAAC;AAkoEnE;;;;;;GAMG;AACH,wBAAsB,oBAAoB,CACxC,OAAO,EAAE,gBAAgB,EACzB,aAAa,SAAkB,GAC9B,OAAO,CAAC,IAAI,CAAC,CA6Bf;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,6BAAuB,CAAC"}
1
+ {"version":3,"file":"scaffold.d.ts","sourceRoot":"","sources":["../../src/new/scaffold.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,gBAAgB,EAAkB,MAAM,YAAY,CAAC;AA2oEnE;;;;;;GAMG;AACH,wBAAsB,oBAAoB,CACxC,OAAO,EAAE,gBAAgB,EACzB,aAAa,SAAkB,GAC9B,OAAO,CAAC,IAAI,CAAC,CA6Bf;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,6BAAuB,CAAC"}
@@ -27,22 +27,22 @@ const PUBLISHED_RUNTIME_DEPENDENCIES = {
27
27
  nats: '^2.29.3'
28
28
  };
29
29
  const PUBLISHED_INTERNAL_DEPENDENCIES = {
30
- '@fluojs/cli': '^1.0.0-beta.3',
31
- '@fluojs/config': '^1.0.0-beta.5',
32
- '@fluojs/core': '^1.0.0-beta.3',
30
+ '@fluojs/cli': '^1.0.0-beta.7',
31
+ '@fluojs/config': '^1.0.0-beta.7',
32
+ '@fluojs/core': '^1.0.0-beta.4',
33
33
  '@fluojs/di': '^1.0.0-beta.6',
34
- '@fluojs/http': '^1.0.0-beta.9',
35
- '@fluojs/microservices': '^1.0.0-beta.3',
34
+ '@fluojs/http': '^1.0.0-beta.10',
35
+ '@fluojs/microservices': '^1.0.0-beta.5',
36
36
  '@fluojs/platform-bun': '^1.0.0-beta.6',
37
37
  '@fluojs/platform-cloudflare-workers': '^1.0.0-beta.2',
38
38
  '@fluojs/platform-deno': '^1.0.0-beta.3',
39
39
  '@fluojs/platform-express': '^1.0.0-beta.6',
40
40
  '@fluojs/platform-fastify': '^1.0.0-beta.8',
41
41
  '@fluojs/platform-nodejs': '^1.0.0-beta.4',
42
- '@fluojs/runtime': '^1.0.0-beta.9',
42
+ '@fluojs/runtime': '^1.0.0-beta.11',
43
43
  '@fluojs/testing': '^1.0.0-beta.2',
44
- '@fluojs/validation': '^1.0.0-beta.2',
45
- '@fluojs/vite': '^1.0.0-beta.1'
44
+ '@fluojs/validation': '^1.0.0-beta.3',
45
+ '@fluojs/vite': '^1.0.0-beta.2'
46
46
  };
47
47
  function describeApplicationStarter(options) {
48
48
  if (options.runtime === 'bun') {
@@ -741,6 +741,12 @@ export default {
741
741
  `;
742
742
  }
743
743
  const portExpression = options.runtime === 'bun' ? "Bun.env.PORT ?? '3000'" : "process.env.PORT ?? '3000'";
744
+ const loggerGuidance = options.runtime === 'node' ? `
745
+ // Application logging defaults to the pretty console logger when logger is omitted.
746
+ // JSON logs are opt-in:
747
+ // import { createJsonApplicationLogger } from '@fluojs/runtime/node';
748
+ // Then pass \`logger: createJsonApplicationLogger()\` to FluoFactory.create(...).
749
+ ` : '';
744
750
  return `import { ${starter.adapterFactory} } from '${starter.packageName}';
745
751
  import { FluoFactory } from '@fluojs/runtime';
746
752
 
@@ -748,6 +754,7 @@ import { AppModule } from './app';
748
754
 
749
755
  // The generated starter wires the selected first-class fluo new application path:
750
756
  // ${starter.runtimeLabel} + ${starter.platformLabel} via ${starter.adapterFactory}(...).
757
+ ${loggerGuidance}
751
758
 
752
759
  const parsedPort = Number.parseInt(${portExpression}, 10);
753
760
  const port = Number.isFinite(parsedPort) ? parsedPort : 3000;
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "migration",
10
10
  "diagnostics"
11
11
  ],
12
- "version": "1.0.0-beta.6",
12
+ "version": "1.0.0-beta.7",
13
13
  "private": false,
14
14
  "license": "MIT",
15
15
  "repository": {