@platformatic/nest 3.55.0 → 3.56.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.
package/lib/capability.js CHANGED
@@ -9,6 +9,7 @@ import {
9
9
  importFile,
10
10
  resolvePackageViaCJS
11
11
  } from '@platformatic/basic'
12
+ import { getEvents } from '@platformatic/globals'
12
13
  import getPort from 'get-port'
13
14
  import inject from 'light-my-request'
14
15
  import { readFile } from 'node:fs/promises'
@@ -78,7 +79,8 @@ export class NestCapability extends BaseCapability {
78
79
 
79
80
  // We use url changing as a way to notify restarts
80
81
  this.childManager.on('url', () => {
81
- globalThis.platformatic.events.emitAndNotify('url', this.url)
82
+ const events = getEvents()
83
+ events.emitAndNotify('url', this.url)
82
84
  })
83
85
  } else {
84
86
  return this.#startProduction(listen)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/nest",
3
- "version": "3.55.0",
3
+ "version": "3.56.0",
4
4
  "description": "Platformatic Nest.js Capability",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -18,9 +18,10 @@
18
18
  "get-port": "^7.1.0",
19
19
  "light-my-request": "^6.0.0",
20
20
  "pino-http": "^10.2.0",
21
- "@platformatic/foundation": "3.55.0",
22
- "@platformatic/basic": "3.55.0",
23
- "@platformatic/generators": "3.55.0"
21
+ "@platformatic/basic": "3.56.0",
22
+ "@platformatic/generators": "3.56.0",
23
+ "@platformatic/globals": "3.56.0",
24
+ "@platformatic/foundation": "3.56.0"
24
25
  },
25
26
  "devDependencies": {
26
27
  "@nestjs/cli": "^11.0.7",
@@ -34,8 +35,8 @@
34
35
  "tstyche": "^6.2.0",
35
36
  "tsx": "^4.19.0",
36
37
  "typescript": "^5.5.4",
37
- "@platformatic/gateway": "3.55.0",
38
- "@platformatic/service": "3.55.0"
38
+ "@platformatic/gateway": "3.56.0",
39
+ "@platformatic/service": "3.56.0"
39
40
  },
40
41
  "engines": {
41
42
  "node": ">=22.19.0"
package/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/nest/3.55.0.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/nest/3.56.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic NestJS Config",
5
5
  "type": "object",