@platformatic/basic 2.5.5-alpha.3 → 2.5.6-alpha.2

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/base.js CHANGED
@@ -12,6 +12,8 @@ import { NonZeroExitCode } from './errors.js'
12
12
  import { cleanBasePath } from './utils.js'
13
13
  import { ChildManager } from './worker/child-manager.js'
14
14
 
15
+ const kITC = Symbol.for('plt.runtime.itc')
16
+
15
17
  export class BaseStackable {
16
18
  childManager
17
19
  #subprocess
@@ -49,7 +51,8 @@ export class BaseStackable {
49
51
  this.registerGlobals({
50
52
  setOpenapiSchema: this.setOpenapiSchema.bind(this),
51
53
  setGraphqlSchema: this.setGraphqlSchema.bind(this),
52
- setBasePath: this.setBasePath.bind(this)
54
+ setBasePath: this.setBasePath.bind(this),
55
+ invalidateHttpCache: this.#invalidateHttpCache.bind(this)
53
56
  })
54
57
  }
55
58
 
@@ -312,4 +315,8 @@ export class BaseStackable {
312
315
  ? await this.metricsRegistry.getMetricsAsJSON()
313
316
  : await this.metricsRegistry.metrics()
314
317
  }
318
+
319
+ async #invalidateHttpCache (opts = {}) {
320
+ await globalThis[kITC].send('invalidateHttpCache', opts)
321
+ }
315
322
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/basic",
3
- "version": "2.5.5-alpha.3",
3
+ "version": "2.5.6-alpha.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -23,14 +23,14 @@
23
23
  "split2": "^4.2.0",
24
24
  "undici": "^6.19.5",
25
25
  "ws": "^8.18.0",
26
- "@platformatic/telemetry": "2.5.5-alpha.3",
27
- "@platformatic/config": "2.5.5-alpha.3",
28
- "@platformatic/metrics": "2.5.5-alpha.3",
29
- "@platformatic/itc": "2.5.5-alpha.3",
30
- "@platformatic/utils": "2.5.5-alpha.3"
26
+ "@platformatic/config": "2.5.6-alpha.2",
27
+ "@platformatic/itc": "2.5.6-alpha.2",
28
+ "@platformatic/telemetry": "2.5.6-alpha.2",
29
+ "@platformatic/metrics": "2.5.6-alpha.2",
30
+ "@platformatic/utils": "2.5.6-alpha.2"
31
31
  },
32
32
  "devDependencies": {
33
- "borp": "^0.17.0",
33
+ "borp": "^0.18.0",
34
34
  "eslint": "9",
35
35
  "express": "^4.19.2",
36
36
  "fastify": "^5.0.0",
package/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/basic/2.5.5-alpha.3.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/basic/2.5.6-alpha.2.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Stackable",
5
5
  "type": "object",