@platformatic/nest 3.5.0 → 3.6.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/config.d.ts +1 -0
- package/lib/capability.js +1 -2
- package/package.json +6 -6
- package/schema.json +13 -1
package/config.d.ts
CHANGED
|
@@ -118,6 +118,7 @@ export interface PlatformaticNestJSConfig {
|
|
|
118
118
|
[k: string]: unknown;
|
|
119
119
|
}[];
|
|
120
120
|
workers?: number | string;
|
|
121
|
+
workersRestartDelay?: number | string;
|
|
121
122
|
logger?: {
|
|
122
123
|
level: (
|
|
123
124
|
| ("fatal" | "error" | "warn" | "info" | "debug" | "trace" | "silent")
|
package/lib/capability.js
CHANGED
|
@@ -16,7 +16,6 @@ import { pinoHttp } from 'pino-http'
|
|
|
16
16
|
import { satisfies } from 'semver'
|
|
17
17
|
import { version } from './schema.js'
|
|
18
18
|
|
|
19
|
-
const kITC = Symbol.for('plt.runtime.itc')
|
|
20
19
|
const supportedVersions = '^11.0.0'
|
|
21
20
|
|
|
22
21
|
export class NestCapability extends BaseCapability {
|
|
@@ -76,7 +75,7 @@ export class NestCapability extends BaseCapability {
|
|
|
76
75
|
|
|
77
76
|
// We use url changing as a way to notify restarts
|
|
78
77
|
this.childManager.on('url', () => {
|
|
79
|
-
globalThis
|
|
78
|
+
globalThis.platformatic.events.emitAndNotify('url', this.url)
|
|
80
79
|
})
|
|
81
80
|
} else {
|
|
82
81
|
return this.#startProduction(listen)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/nest",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0",
|
|
4
4
|
"description": "Platformatic Nest.js Capability",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"get-port": "^7.1.0",
|
|
19
19
|
"light-my-request": "^6.0.0",
|
|
20
20
|
"pino-http": "^10.2.0",
|
|
21
|
-
"@platformatic/basic": "3.
|
|
22
|
-
"@platformatic/foundation": "3.
|
|
23
|
-
"@platformatic/generators": "3.
|
|
21
|
+
"@platformatic/basic": "3.6.0",
|
|
22
|
+
"@platformatic/foundation": "3.6.0",
|
|
23
|
+
"@platformatic/generators": "3.6.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@nestjs/cli": "^11.0.7",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"neostandard": "^0.12.0",
|
|
34
34
|
"tsx": "^4.19.0",
|
|
35
35
|
"typescript": "^5.5.4",
|
|
36
|
-
"@platformatic/
|
|
37
|
-
"@platformatic/
|
|
36
|
+
"@platformatic/service": "3.6.0",
|
|
37
|
+
"@platformatic/gateway": "3.6.0"
|
|
38
38
|
},
|
|
39
39
|
"engines": {
|
|
40
40
|
"node": ">=22.19.0"
|
package/schema.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://schemas.platformatic.dev/@platformatic/nest/3.
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/nest/3.6.0.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Platformatic NestJS Config",
|
|
5
5
|
"type": "object",
|
|
@@ -634,6 +634,18 @@
|
|
|
634
634
|
],
|
|
635
635
|
"default": 1
|
|
636
636
|
},
|
|
637
|
+
"workersRestartDelay": {
|
|
638
|
+
"anyOf": [
|
|
639
|
+
{
|
|
640
|
+
"type": "number",
|
|
641
|
+
"minimum": 0
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
"type": "string"
|
|
645
|
+
}
|
|
646
|
+
],
|
|
647
|
+
"default": 0
|
|
648
|
+
},
|
|
637
649
|
"logger": {
|
|
638
650
|
"type": "object",
|
|
639
651
|
"properties": {
|