@platformatic/service 2.18.0 → 2.19.0-alpha.10

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 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
@@ -48,7 +50,8 @@ class ServiceStackable {
48
50
  setOpenapiSchema: this.setOpenapiSchema.bind(this),
49
51
  setGraphqlSchema: this.setGraphqlSchema.bind(this),
50
52
  setBasePath: this.setBasePath.bind(this),
51
- runtimeBasePath: this.runtimeConfig?.basePath ?? null
53
+ runtimeBasePath: this.runtimeConfig?.basePath ?? null,
54
+ invalidateHttpCache: this.#invalidateHttpCache.bind(this)
52
55
  })
53
56
  }
54
57
 
@@ -232,6 +235,10 @@ class ServiceStackable {
232
235
  globalThis.platformatic = Object.assign(globalThis.platformatic ?? {}, globals)
233
236
  }
234
237
 
238
+ async #invalidateHttpCache (opts = {}) {
239
+ await globalThis[kITC].send('invalidateHttpCache', opts)
240
+ }
241
+
235
242
  #setHttpMetrics () {
236
243
  this.app.register(httpMetrics, {
237
244
  registry: this.metricsRegistry,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/service",
3
- "version": "2.18.0",
3
+ "version": "2.19.0-alpha.10",
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": "^6.0.0",
34
+ "undici": "7.0.0",
35
35
  "vscode-json-languageservice": "^5.3.9",
36
36
  "why-is-node-running": "^2.2.2",
37
37
  "yaml": "^2.4.1"
@@ -75,15 +75,15 @@
75
75
  "prom-client": "^15.1.2",
76
76
  "rfdc": "^1.3.1",
77
77
  "semgrator": "^0.3.0",
78
- "undici": "^6.9.0",
79
- "@platformatic/client": "2.18.0",
80
- "@platformatic/metrics": "2.18.0",
81
- "@platformatic/config": "2.18.0",
82
- "@platformatic/generators": "2.18.0",
83
- "@platformatic/scalar-theme": "2.18.0",
84
- "@platformatic/telemetry": "2.18.0",
85
- "@platformatic/utils": "2.18.0",
86
- "@platformatic/ts-compiler": "2.18.0"
78
+ "undici": "^7.0.0",
79
+ "@platformatic/client": "2.19.0-alpha.10",
80
+ "@platformatic/metrics": "2.19.0-alpha.10",
81
+ "@platformatic/config": "2.19.0-alpha.10",
82
+ "@platformatic/generators": "2.19.0-alpha.10",
83
+ "@platformatic/telemetry": "2.19.0-alpha.10",
84
+ "@platformatic/utils": "2.19.0-alpha.10",
85
+ "@platformatic/ts-compiler": "2.19.0-alpha.10",
86
+ "@platformatic/scalar-theme": "2.19.0-alpha.10"
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.18.0.json",
3
- "version": "2.18.0",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/service/2.19.0-alpha.10.json",
3
+ "version": "2.19.0-alpha.10",
4
4
  "title": "Platformatic Service",
5
5
  "type": "object",
6
6
  "properties": {