@platformatic/service 1.28.1 → 1.29.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.
@@ -13,20 +13,23 @@ class ServiceGenerator extends BaseGenerator {
13
13
  }
14
14
 
15
15
  async _beforePrepare () {
16
- if (!this.config.isRuntimeContext) {
16
+ // if we are NOT updating, create env and files, otherwise leave as it is
17
+ if (!this.config.isUpdating) {
18
+ if (!this.config.isRuntimeContext) {
19
+ this.addEnvVars({
20
+ PLT_SERVER_HOSTNAME: this.config.hostname,
21
+ PLT_SERVER_LOGGER_LEVEL: 'info',
22
+ PORT: 3042
23
+ }, { overwrite: false })
24
+ }
25
+
17
26
  this.addEnvVars({
18
- PLT_SERVER_HOSTNAME: this.config.hostname,
19
- PLT_SERVER_LOGGER_LEVEL: 'info',
20
- PORT: 3042
27
+ PLT_TYPESCRIPT: this.config.typescript
21
28
  }, { overwrite: false })
22
- }
23
29
 
24
- this.addEnvVars({
25
- PLT_TYPESCRIPT: this.config.typescript
26
- }, { overwrite: false })
27
-
28
- this.config.dependencies = {
29
- '@platformatic/service': `^${this.platformaticVersion}`
30
+ this.config.dependencies = {
31
+ '@platformatic/service': `^${this.platformaticVersion}`
32
+ }
30
33
  }
31
34
  }
32
35
 
@@ -60,7 +63,9 @@ class ServiceGenerator extends BaseGenerator {
60
63
  }
61
64
 
62
65
  async _afterPrepare () {
63
- const GLOBAL_TYPES_TEMPLATE = `
66
+ // if we are NOT updating, create env and files, otherwise leave as it is
67
+ if (!this.config.isUpdating) {
68
+ const GLOBAL_TYPES_TEMPLATE = `
64
69
  import { FastifyInstance } from 'fastify'
65
70
  import { PlatformaticApp, PlatformaticServiceConfig } from '@platformatic/service'
66
71
 
@@ -70,8 +75,9 @@ declare module 'fastify' {
70
75
  }
71
76
  }
72
77
  `
73
- this.addFile({ path: '', file: 'global.d.ts', contents: GLOBAL_TYPES_TEMPLATE })
74
- this.addFile({ path: '', file: 'README.md', contents: await readFile(join(__dirname, 'README.md')) })
78
+ this.addFile({ path: '', file: 'global.d.ts', contents: GLOBAL_TYPES_TEMPLATE })
79
+ this.addFile({ path: '', file: 'README.md', contents: await readFile(join(__dirname, 'README.md')) })
80
+ }
75
81
  }
76
82
 
77
83
  async _getConfigFileContents () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/service",
3
- "version": "1.28.1",
3
+ "version": "1.29.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -48,7 +48,7 @@
48
48
  "@fastify/static": "^7.0.1",
49
49
  "@fastify/swagger": "^8.14.0",
50
50
  "@fastify/under-pressure": "^8.3.0",
51
- "@mercuriusjs/federation": "^2.0.0",
51
+ "@mercuriusjs/federation": "^3.0.0",
52
52
  "@scalar/fastify-api-reference": "^1.19.5",
53
53
  "@types/ws": "^8.5.10",
54
54
  "ajv": "^8.12.0",
@@ -68,7 +68,7 @@
68
68
  "fastify-plugin": "^4.5.1",
69
69
  "graphql": "^16.8.1",
70
70
  "help-me": "^5.0.0",
71
- "mercurius": "^13.4.0",
71
+ "mercurius": "^14.0.0",
72
72
  "minimist": "^1.2.8",
73
73
  "openapi-schema-diff": "^0.0.1",
74
74
  "ora": "^6.3.1",
@@ -78,13 +78,13 @@
78
78
  "semgrator": "^0.3.0",
79
79
  "ua-parser-js": "^1.0.37",
80
80
  "undici": "^6.9.0",
81
- "@platformatic/authenticate": "1.28.1",
82
- "@platformatic/client": "1.28.1",
83
- "@platformatic/config": "1.28.1",
84
- "@platformatic/telemetry": "1.28.1",
85
- "@platformatic/scalar-theme": "1.28.1",
86
- "@platformatic/generators": "1.28.1",
87
- "@platformatic/utils": "1.28.1"
81
+ "@platformatic/authenticate": "1.29.0",
82
+ "@platformatic/config": "1.29.0",
83
+ "@platformatic/client": "1.29.0",
84
+ "@platformatic/scalar-theme": "1.29.0",
85
+ "@platformatic/generators": "1.29.0",
86
+ "@platformatic/telemetry": "1.29.0",
87
+ "@platformatic/utils": "1.29.0"
88
88
  },
89
89
  "standard": {
90
90
  "ignore": [
package/schema.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
- "$id": "https://platformatic.dev/schemas/v1.28.1/service",
3
- "version": "1.28.1",
2
+ "$id": "https://platformatic.dev/schemas/v1.29.0/service",
3
+ "version": "1.29.0",
4
4
  "title": "Platformatic Service",
5
5
  "type": "object",
6
6
  "properties": {