@platformatic/service 2.35.0 → 2.36.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/lib/compile.js CHANGED
@@ -13,7 +13,7 @@ function buildCompileCmd (app) {
13
13
 
14
14
  try {
15
15
  const { configManager } = await loadConfig({}, _args, app, {
16
- watch: false,
16
+ watch: false
17
17
  })
18
18
  await configManager.parseAndValidate()
19
19
  config = configManager.current
@@ -27,18 +27,19 @@ function buildCompileCmd (app) {
27
27
  const logger = pino(
28
28
  pretty({
29
29
  translateTime: 'SYS:HH:MM:ss',
30
- ignore: 'hostname,pid',
30
+ ignore: 'hostname,pid'
31
31
  })
32
32
  )
33
33
 
34
- const compileOptions = {
35
- ...extractTypeScriptCompileOptionsFromConfig(config),
36
- cwd: fullPath,
37
- logger,
38
- clean: _args.includes('--clean'),
39
- }
40
-
41
- if (!await compile(compileOptions)) {
34
+ try {
35
+ await compile({
36
+ ...extractTypeScriptCompileOptionsFromConfig(config),
37
+ cwd: fullPath,
38
+ logger,
39
+ clean: _args.includes('--clean')
40
+ })
41
+ } catch (e) {
42
+ logger.error(e.message)
42
43
  process.exit(1)
43
44
  }
44
45
  }
@@ -49,7 +50,7 @@ module.exports.buildCompileCmd = buildCompileCmd
49
50
  function extractTypeScriptCompileOptionsFromConfig (config) {
50
51
  return {
51
52
  tsConfig: config.plugins?.typescript?.tsConfig,
52
- flags: config.plugins?.typescript?.flags,
53
+ flags: config.plugins?.typescript?.flags
53
54
  }
54
55
  }
55
56
 
package/lib/stackable.js CHANGED
@@ -91,9 +91,8 @@ class ServiceStackable {
91
91
  cwd,
92
92
  logger: this.logger
93
93
  }
94
- if (!(await compile(compileOptions))) {
95
- throw new Error(`Failed to compile ${cwd}`)
96
- }
94
+
95
+ await compile(compileOptions)
97
96
  }
98
97
 
99
98
  getUrl () {
@@ -299,8 +298,12 @@ class ServiceStackable {
299
298
  registers: [registry]
300
299
  })
301
300
 
302
- globalThis.platformatic.onHttpCacheHit = () => { cacheHitMetric.inc() }
303
- globalThis.platformatic.onHttpCacheMiss = () => { cacheMissMetric.inc() }
301
+ globalThis.platformatic.onHttpCacheHit = () => {
302
+ cacheHitMetric.inc()
303
+ }
304
+ globalThis.platformatic.onHttpCacheMiss = () => {
305
+ cacheMissMetric.inc()
306
+ }
304
307
  }
305
308
 
306
309
  #updateConfig () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/service",
3
- "version": "2.35.0",
3
+ "version": "2.36.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -31,7 +31,7 @@
31
31
  "strip-ansi": "^7.1.0",
32
32
  "tsd": "^0.31.0",
33
33
  "typescript": "^5.5.4",
34
- "undici": "7.2.0",
34
+ "undici": "7.2.1",
35
35
  "vscode-json-languageservice": "^5.3.9",
36
36
  "why-is-node-running": "^2.2.2",
37
37
  "yaml": "^2.4.1"
@@ -46,7 +46,7 @@
46
46
  "@fastify/static": "^8.0.0",
47
47
  "@fastify/swagger": "^9.0.0",
48
48
  "@fastify/under-pressure": "^9.0.0",
49
- "@mercuriusjs/federation": "^4.0.0",
49
+ "@mercuriusjs/federation": "^5.0.0",
50
50
  "@platformatic/fastify-http-metrics": "^0.2.0",
51
51
  "@scalar/fastify-api-reference": "^1.19.5",
52
52
  "@types/ws": "^8.5.10",
@@ -67,7 +67,7 @@
67
67
  "fastify-plugin": "^5.0.0",
68
68
  "graphql": "^16.9.0",
69
69
  "help-me": "^5.0.0",
70
- "mercurius": "^15.0.0",
70
+ "mercurius": "^16.0.0",
71
71
  "minimist": "^1.2.8",
72
72
  "my-ua-parser": "^2.0.2",
73
73
  "ora": "^6.3.1",
@@ -77,14 +77,14 @@
77
77
  "rfdc": "^1.3.1",
78
78
  "semgrator": "^0.3.0",
79
79
  "undici": "^7.0.0",
80
- "@platformatic/config": "2.35.0",
81
- "@platformatic/client": "2.35.0",
82
- "@platformatic/generators": "2.35.0",
83
- "@platformatic/metrics": "2.35.0",
84
- "@platformatic/scalar-theme": "2.35.0",
85
- "@platformatic/utils": "2.35.0",
86
- "@platformatic/telemetry": "2.35.0",
87
- "@platformatic/ts-compiler": "2.35.0"
80
+ "@platformatic/config": "2.36.1",
81
+ "@platformatic/client": "2.36.1",
82
+ "@platformatic/generators": "2.36.1",
83
+ "@platformatic/scalar-theme": "2.36.1",
84
+ "@platformatic/telemetry": "2.36.1",
85
+ "@platformatic/metrics": "2.36.1",
86
+ "@platformatic/utils": "2.36.1",
87
+ "@platformatic/ts-compiler": "2.36.1"
88
88
  },
89
89
  "scripts": {
90
90
  "test": "pnpm run lint && borp -T --concurrency=1 --timeout=300000 && tsd",
package/schema.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/service/2.35.0.json",
3
- "version": "2.35.0",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/service/2.36.1.json",
3
+ "version": "2.36.1",
4
4
  "title": "Platformatic Service",
5
5
  "type": "object",
6
6
  "properties": {