@platformatic/foundation 3.66.0 → 3.68.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/index.d.ts CHANGED
@@ -3,6 +3,7 @@ import { JSONSchemaType } from 'ajv'
3
3
  import { EventEmitter } from 'node:events'
4
4
  import { ParseArgsOptionsConfig } from 'node:util'
5
5
  import { LevelWithSilentOrString, Logger } from 'pino'
6
+ import type debug from 'debug';
6
7
 
7
8
  // Symbols
8
9
  export declare const kCanceled: unique symbol
package/lib/schema.js CHANGED
@@ -111,6 +111,10 @@ const extension = {
111
111
  options: {
112
112
  type: 'object',
113
113
  additionalProperties: true
114
+ },
115
+ build: {
116
+ type: 'boolean',
117
+ default: false
114
118
  }
115
119
  }
116
120
  }
@@ -635,7 +639,15 @@ export const fastifyServer = {
635
639
  },
636
640
  http2: server.properties.http2,
637
641
  https: server.properties.https,
638
- cors
642
+ cors,
643
+ errorHandler: {
644
+ description:
645
+ 'Path to a file or name of a package whose default export is a Fastify error handler. It is installed on the root instance before any route is registered, so it also covers the routes registered by the capability itself, such as the auto generated CRUD routes of @platformatic/db. Plugins can still override it for their own encapsulation context.',
646
+ anyOf: [
647
+ { type: 'string', resolveModule: true },
648
+ { type: 'string', resolvePath: true }
649
+ ]
650
+ }
639
651
  },
640
652
  additionalProperties: false
641
653
  }
@@ -895,6 +907,9 @@ export const application = {
895
907
  useHttp: {
896
908
  type: 'boolean'
897
909
  },
910
+ websocket: {
911
+ type: 'boolean'
912
+ },
898
913
  reuseTcpPorts: {
899
914
  type: 'boolean',
900
915
  default: true
@@ -1633,6 +1648,7 @@ export const applicationsUnwrappablePropertiesList = [
1633
1648
  'gitBranch',
1634
1649
  'dependencies',
1635
1650
  'useHttp',
1651
+ 'websocket',
1636
1652
  'management'
1637
1653
  ]
1638
1654
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/foundation",
3
- "version": "3.66.0",
3
+ "version": "3.68.0",
4
4
  "description": "Platformatic Foundation",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -30,10 +30,11 @@
30
30
  "pino": "^9.9.0",
31
31
  "pino-pretty": "^13.0.0",
32
32
  "semver": "^7.6.3",
33
- "undici": "7.28.0",
33
+ "undici": "^7.28.0",
34
34
  "yaml": "^2.4.1"
35
35
  },
36
36
  "devDependencies": {
37
+ "@types/debug": "^4.0.0",
37
38
  "c8": "^11.0.0",
38
39
  "cleaner-spec-reporter": "^0.5.0",
39
40
  "eslint": "9",
@@ -42,7 +43,7 @@
42
43
  "pino": "^9.9.0",
43
44
  "pino-test": "^1.0.1",
44
45
  "tstyche": "^6.2.0",
45
- "typescript": "^5.9.3"
46
+ "typescript": "~6.0.3"
46
47
  },
47
48
  "engines": {
48
49
  "node": ">=22.19.0"