@mastra/deployer 0.0.1-alpha.14 โ†’ 0.0.1-alpha.16

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
@@ -1,5 +1,22 @@
1
1
  # @mastra/deployer
2
2
 
3
+ ## 0.0.1-alpha.16
4
+
5
+ ### Patch Changes
6
+
7
+ - e4d4ede: Better setLogger()
8
+ - Updated dependencies [e4d4ede]
9
+ - Updated dependencies [06b2c0a]
10
+ - @mastra/core@0.1.27-alpha.72
11
+
12
+ ## 0.0.1-alpha.15
13
+
14
+ ### Patch Changes
15
+
16
+ - d9c8dd0: Logger changes for default transports
17
+ - Updated dependencies [d9c8dd0]
18
+ - @mastra/core@0.1.27-alpha.71
19
+
3
20
  ## 0.0.1-alpha.14
4
21
 
5
22
  ### Patch Changes
package/dist/index.js CHANGED
@@ -526,6 +526,7 @@ var Deployer = class extends MastraBase {
526
526
  }
527
527
  return acc;
528
528
  }, {});
529
+ mastraDeps["@mastra/loggers"] = "latest";
529
530
  const pkgPath = join(this.dotMastraPath, "package.json");
530
531
  if (this.type === "Dev" && existsSync(pkgPath)) {
531
532
  return;
@@ -10057,13 +10057,14 @@ async function createNodeServer(mastra, options = {}) {
10057
10057
  port: Number(process.env.PORT) || 4111
10058
10058
  },
10059
10059
  () => {
10060
- console.log(`\u{1F984} Mastra API running on port ${process.env.PORT || 4111}/api`);
10061
- console.log(`\u{1F4DA} Open API documentation available at http://localhost:${process.env.PORT || 4111}/openapi.json`);
10060
+ const logger2 = mastra.getLogger();
10061
+ logger2.info(`\u{1F984} Mastra API running on port ${process.env.PORT || 4111}/api`);
10062
+ logger2.info(`\u{1F4DA} Open API documentation available at http://localhost:${process.env.PORT || 4111}/openapi.json`);
10062
10063
  if (options?.swaggerUI) {
10063
- console.log(`\u{1F9EA} Swagger UI available at http://localhost:${process.env.PORT || 4111}/swagger-ui`);
10064
+ logger2.info(`\u{1F9EA} Swagger UI available at http://localhost:${process.env.PORT || 4111}/swagger-ui`);
10064
10065
  }
10065
10066
  if (options?.playground) {
10066
- console.log(`\u{1F468}\u200D\u{1F4BB} Playground available at http://localhost:${process.env.PORT || 4111}/`);
10067
+ logger2.info(`\u{1F468}\u200D\u{1F4BB} Playground available at http://localhost:${process.env.PORT || 4111}/`);
10067
10068
  }
10068
10069
  }
10069
10070
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/deployer",
3
- "version": "0.0.1-alpha.14",
3
+ "version": "0.0.1-alpha.16",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -26,7 +26,7 @@
26
26
  "execa": "^9.3.1",
27
27
  "fs-extra": "^11.2.0",
28
28
  "zod": "^3.24.1",
29
- "@mastra/core": "0.1.27-alpha.70"
29
+ "@mastra/core": "0.1.27-alpha.72"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@hono/node-server": "^1.13.7",
@@ -54,6 +54,8 @@ export class Deployer extends MastraBase {
54
54
  return acc;
55
55
  }, {});
56
56
 
57
+ mastraDeps['@mastra/loggers'] = 'latest';
58
+
57
59
  const pkgPath = join(this.dotMastraPath, 'package.json');
58
60
 
59
61
  if (this.type === 'Dev' && existsSync(pkgPath)) {
@@ -920,13 +920,14 @@ export async function createNodeServer(
920
920
  port: Number(process.env.PORT) || 4111,
921
921
  },
922
922
  () => {
923
- console.log(`๐Ÿฆ„ Mastra API running on port ${process.env.PORT || 4111}/api`);
924
- console.log(`๐Ÿ“š Open API documentation available at http://localhost:${process.env.PORT || 4111}/openapi.json`);
923
+ const logger = mastra.getLogger();
924
+ logger.info(`๐Ÿฆ„ Mastra API running on port ${process.env.PORT || 4111}/api`);
925
+ logger.info(`๐Ÿ“š Open API documentation available at http://localhost:${process.env.PORT || 4111}/openapi.json`);
925
926
  if (options?.swaggerUI) {
926
- console.log(`๐Ÿงช Swagger UI available at http://localhost:${process.env.PORT || 4111}/swagger-ui`);
927
+ logger.info(`๐Ÿงช Swagger UI available at http://localhost:${process.env.PORT || 4111}/swagger-ui`);
927
928
  }
928
929
  if (options?.playground) {
929
- console.log(`๐Ÿ‘จโ€๐Ÿ’ป Playground available at http://localhost:${process.env.PORT || 4111}/`);
930
+ logger.info(`๐Ÿ‘จโ€๐Ÿ’ป Playground available at http://localhost:${process.env.PORT || 4111}/`);
930
931
  }
931
932
  },
932
933
  );