@platformatic/service 2.8.1 → 2.8.2-alpha.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/stackable.js +8 -1
- package/package.json +9 -9
- package/schema.json +2 -2
package/lib/stackable.js
CHANGED
|
@@ -12,6 +12,8 @@ const { extractTypeScriptCompileOptionsFromConfig } = require('./compile')
|
|
|
12
12
|
const { compile } = require('@platformatic/ts-compiler')
|
|
13
13
|
const { deepmerge } = require('@platformatic/utils')
|
|
14
14
|
|
|
15
|
+
const kITC = Symbol.for('plt.runtime.itc')
|
|
16
|
+
|
|
15
17
|
class ServiceStackable {
|
|
16
18
|
constructor (options) {
|
|
17
19
|
this.app = null
|
|
@@ -51,7 +53,8 @@ class ServiceStackable {
|
|
|
51
53
|
setOpenapiSchema: this.setOpenapiSchema.bind(this),
|
|
52
54
|
setGraphqlSchema: this.setGraphqlSchema.bind(this),
|
|
53
55
|
setBasePath: this.setBasePath.bind(this),
|
|
54
|
-
runtimeBasePath: this.runtimeConfig?.basePath ?? null
|
|
56
|
+
runtimeBasePath: this.runtimeConfig?.basePath ?? null,
|
|
57
|
+
invalidateHttpCache: this.#invalidateHttpCache.bind(this)
|
|
55
58
|
})
|
|
56
59
|
}
|
|
57
60
|
|
|
@@ -231,6 +234,10 @@ class ServiceStackable {
|
|
|
231
234
|
globalThis.platformatic = Object.assign(globalThis.platformatic ?? {}, globals)
|
|
232
235
|
}
|
|
233
236
|
|
|
237
|
+
async #invalidateHttpCache (opts = {}) {
|
|
238
|
+
await globalThis[kITC].send('invalidateHttpCache', opts)
|
|
239
|
+
}
|
|
240
|
+
|
|
234
241
|
#setHttpMetrics () {
|
|
235
242
|
this.app.register(httpMetrics, {
|
|
236
243
|
registry: this.metricsRegistry,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/service",
|
|
3
|
-
"version": "2.8.1",
|
|
3
|
+
"version": "2.8.2-alpha.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -76,14 +76,14 @@
|
|
|
76
76
|
"rfdc": "^1.3.1",
|
|
77
77
|
"semgrator": "^0.3.0",
|
|
78
78
|
"undici": "^6.9.0",
|
|
79
|
-
"@platformatic/
|
|
80
|
-
"@platformatic/
|
|
81
|
-
"@platformatic/
|
|
82
|
-
"@platformatic/
|
|
83
|
-
"@platformatic/scalar-theme": "2.8.1",
|
|
84
|
-
"@platformatic/telemetry": "2.8.1",
|
|
85
|
-
"@platformatic/ts-compiler": "2.8.1",
|
|
86
|
-
"@platformatic/utils": "2.8.1"
|
|
79
|
+
"@platformatic/client": "2.8.2-alpha.1",
|
|
80
|
+
"@platformatic/config": "2.8.2-alpha.1",
|
|
81
|
+
"@platformatic/metrics": "2.8.2-alpha.1",
|
|
82
|
+
"@platformatic/generators": "2.8.2-alpha.1",
|
|
83
|
+
"@platformatic/scalar-theme": "2.8.2-alpha.1",
|
|
84
|
+
"@platformatic/telemetry": "2.8.2-alpha.1",
|
|
85
|
+
"@platformatic/ts-compiler": "2.8.2-alpha.1",
|
|
86
|
+
"@platformatic/utils": "2.8.2-alpha.1"
|
|
87
87
|
},
|
|
88
88
|
"scripts": {
|
|
89
89
|
"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.8.1.json",
|
|
3
|
-
"version": "2.8.1",
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/service/2.8.2-alpha.1.json",
|
|
3
|
+
"version": "2.8.2-alpha.1",
|
|
4
4
|
"title": "Platformatic Service",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|