@platformatic/foundation 3.0.1 → 3.0.3

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
@@ -22,10 +22,10 @@ export interface ValidationError {
22
22
  message: string
23
23
  }
24
24
 
25
- export type ConfigurationOptions = Partial<{
25
+ export type ConfigurationOptions<T = {}> = Partial<{
26
26
  validate: boolean
27
27
  validationOptions: object
28
- transform: (config: RawConfiguration) => Promise<RawConfiguration> | RawConfiguration
28
+ transform: (config: Configuration<T>) => Promise<Configuration<T>> | Configuration<T>
29
29
  upgrade: (logger: Logger, config: RawConfiguration, version: string) => Promise<RawConfiguration> | RawConfiguration
30
30
  env: Record<string, string>
31
31
  ignoreProcessEnv: boolean
package/lib/node.js CHANGED
@@ -16,9 +16,9 @@ export function checkNodeVersionForApplications () {
16
16
 
17
17
  export const features = {
18
18
  node: {
19
- reusePort: satisfies(process.version, '^22.12.0 || ^23.1.0') && !['win32', 'darwin'].includes(currentPlatform),
19
+ reusePort: satisfies(process.version, '^22.12.0 || ^23.1.0 || >=24.0.0') && !['win32', 'darwin'].includes(currentPlatform),
20
20
  worker: {
21
- getHeapStatistics: satisfies(process.version, '^22.18.0')
21
+ getHeapStatistics: satisfies(process.version, '^22.16.0 || >=24.0.0')
22
22
  }
23
23
  }
24
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/foundation",
3
- "version": "3.0.1",
3
+ "version": "3.0.3",
4
4
  "description": "Platformatic Foundation",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",