@platformatic/tanstack 4.0.0-new-config.2 → 4.0.0-new-config.6
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/config.d.ts +664 -668
- package/index.d.ts +8 -1
- package/index.js +7 -9
- package/package.json +7 -7
- package/schema.json +71 -40
package/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseCapability, BaseContext, BaseOptions } from '@platformatic/basic'
|
|
1
|
+
import { ApplicationDefinition, BaseCapability, BaseContext, BaseOptions, CapabilityFactoryOptions, ConfigContext, DeferredApplicationDefinition } from '@platformatic/basic'
|
|
2
2
|
import { Configuration, ConfigurationOptions } from '@platformatic/foundation'
|
|
3
3
|
import { JSONSchemaType } from 'ajv'
|
|
4
4
|
import type { PlatformaticTanStackConfig } from './config.d.ts'
|
|
@@ -33,3 +33,10 @@ export declare const schema: JSONSchemaType<PlatformaticTanStackConfig>
|
|
|
33
33
|
export declare const schemaComponents: {}
|
|
34
34
|
export declare const version: string
|
|
35
35
|
export declare const supportedVersions: string
|
|
36
|
+
|
|
37
|
+
export type TanstackConfigOptions = CapabilityFactoryOptions<PlatformaticTanStackConfig, 'vite', never>
|
|
38
|
+
|
|
39
|
+
export declare function tanstack (options?: TanstackConfigOptions): ApplicationDefinition
|
|
40
|
+
export declare function tanstack (
|
|
41
|
+
callback: (context: ConfigContext) => TanstackConfigOptions | Promise<TanstackConfigOptions>
|
|
42
|
+
): DeferredApplicationDefinition
|
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { kMetadata
|
|
1
|
+
import { loadCapabilityConfiguration, validationOptions } from '@platformatic/basic'
|
|
2
|
+
import { kMetadata } from '@platformatic/foundation'
|
|
3
3
|
import { TanstackCapability } from './lib/capability.js'
|
|
4
4
|
import { schema } from './lib/schema.js'
|
|
5
5
|
|
|
@@ -11,14 +11,12 @@ import { schema } from './lib/schema.js'
|
|
|
11
11
|
// }
|
|
12
12
|
|
|
13
13
|
export async function loadConfiguration (configOrRoot, sourceOrConfig, context) {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
return loadCapabilityConfiguration(configOrRoot, sourceOrConfig, context, {
|
|
15
|
+
schema,
|
|
16
|
+
scope: import.meta.filename,
|
|
17
|
+
suffixes: 'application',
|
|
17
18
|
validationOptions,
|
|
18
|
-
// transform
|
|
19
|
-
replaceEnv: true,
|
|
20
|
-
root,
|
|
21
|
-
...context
|
|
19
|
+
// transform
|
|
22
20
|
})
|
|
23
21
|
}
|
|
24
22
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/tanstack",
|
|
3
|
-
"version": "4.0.0-new-config.
|
|
3
|
+
"version": "4.0.0-new-config.6",
|
|
4
4
|
"description": "Platformatic TanStack Capability",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
"homepage": "https://github.com/platformatic/platformatic#readme",
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"semver": "^7.6.3",
|
|
25
|
-
"@platformatic/
|
|
26
|
-
"@platformatic/
|
|
27
|
-
"@platformatic/
|
|
28
|
-
"@platformatic/
|
|
25
|
+
"@platformatic/foundation": "4.0.0-new-config.6",
|
|
26
|
+
"@platformatic/vite": "4.0.0-new-config.6",
|
|
27
|
+
"@platformatic/globals": "4.0.0-new-config.6",
|
|
28
|
+
"@platformatic/basic": "4.0.0-new-config.6"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@tanstack/react-router": "^1.139.7",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"vite-plugin-solid": "^2.11.10",
|
|
46
46
|
"vite-tsconfig-paths": "^5.1.4",
|
|
47
47
|
"ws": "^8.18.0",
|
|
48
|
-
"@platformatic/
|
|
49
|
-
"@platformatic/
|
|
48
|
+
"@platformatic/gateway": "4.0.0-new-config.6",
|
|
49
|
+
"@platformatic/service": "4.0.0-new-config.6"
|
|
50
50
|
},
|
|
51
51
|
"engines": {
|
|
52
52
|
"node": ">=22.19.0"
|
package/schema.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://schemas.platformatic.dev/@platformatic/tanstack/4.0.0-new-config.
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/tanstack/4.0.0-new-config.6.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Platformatic TanStack Config",
|
|
5
5
|
"type": "object",
|
|
@@ -178,7 +178,8 @@
|
|
|
178
178
|
}
|
|
179
179
|
},
|
|
180
180
|
"default": {},
|
|
181
|
-
"additionalProperties": true
|
|
181
|
+
"additionalProperties": true,
|
|
182
|
+
"title": "AppLoggerOptions"
|
|
182
183
|
},
|
|
183
184
|
"server": {
|
|
184
185
|
"type": "object",
|
|
@@ -302,10 +303,12 @@
|
|
|
302
303
|
"required": [
|
|
303
304
|
"key",
|
|
304
305
|
"cert"
|
|
305
|
-
]
|
|
306
|
+
],
|
|
307
|
+
"title": "HttpsOptions"
|
|
306
308
|
}
|
|
307
309
|
},
|
|
308
|
-
"additionalProperties": false
|
|
310
|
+
"additionalProperties": false,
|
|
311
|
+
"title": "AppServerOptions"
|
|
309
312
|
},
|
|
310
313
|
"watch": {
|
|
311
314
|
"anyOf": [
|
|
@@ -341,7 +344,8 @@
|
|
|
341
344
|
"default": null
|
|
342
345
|
}
|
|
343
346
|
},
|
|
344
|
-
"additionalProperties": false
|
|
347
|
+
"additionalProperties": false,
|
|
348
|
+
"title": "WatchOptions"
|
|
345
349
|
},
|
|
346
350
|
{
|
|
347
351
|
"type": "boolean"
|
|
@@ -390,9 +394,6 @@
|
|
|
390
394
|
"default": {},
|
|
391
395
|
"additionalProperties": false
|
|
392
396
|
},
|
|
393
|
-
"entrypointPort": {
|
|
394
|
-
"type": "number"
|
|
395
|
-
},
|
|
396
397
|
"changeDirectoryBeforeExecution": {
|
|
397
398
|
"type": "boolean",
|
|
398
399
|
"default": false
|
|
@@ -407,7 +408,8 @@
|
|
|
407
408
|
},
|
|
408
409
|
"additionalProperties": false,
|
|
409
410
|
"required": [],
|
|
410
|
-
"default": {}
|
|
411
|
+
"default": {},
|
|
412
|
+
"title": "BuildableApplicationOptions"
|
|
411
413
|
},
|
|
412
414
|
"runtime": {
|
|
413
415
|
"type": "object",
|
|
@@ -452,7 +454,8 @@
|
|
|
452
454
|
"type": "boolean",
|
|
453
455
|
"default": false
|
|
454
456
|
}
|
|
455
|
-
}
|
|
457
|
+
},
|
|
458
|
+
"title": "ExtensionEntry"
|
|
456
459
|
},
|
|
457
460
|
{
|
|
458
461
|
"type": "array",
|
|
@@ -481,7 +484,8 @@
|
|
|
481
484
|
"type": "boolean",
|
|
482
485
|
"default": false
|
|
483
486
|
}
|
|
484
|
-
}
|
|
487
|
+
},
|
|
488
|
+
"title": "ExtensionEntry"
|
|
485
489
|
}
|
|
486
490
|
]
|
|
487
491
|
}
|
|
@@ -548,6 +552,9 @@
|
|
|
548
552
|
"url": {
|
|
549
553
|
"type": "string"
|
|
550
554
|
},
|
|
555
|
+
"module": {
|
|
556
|
+
"type": "string"
|
|
557
|
+
},
|
|
551
558
|
"gitBranch": {
|
|
552
559
|
"type": "string",
|
|
553
560
|
"default": "main"
|
|
@@ -589,7 +596,8 @@
|
|
|
589
596
|
"minimum": 0,
|
|
590
597
|
"maximum": 1
|
|
591
598
|
}
|
|
592
|
-
}
|
|
599
|
+
},
|
|
600
|
+
"title": "ApplicationWorkersOptions"
|
|
593
601
|
}
|
|
594
602
|
]
|
|
595
603
|
},
|
|
@@ -742,7 +750,8 @@
|
|
|
742
750
|
]
|
|
743
751
|
}
|
|
744
752
|
},
|
|
745
|
-
"additionalProperties": false
|
|
753
|
+
"additionalProperties": false,
|
|
754
|
+
"title": "ApplicationHealthOptions"
|
|
746
755
|
},
|
|
747
756
|
"restartOnError": {
|
|
748
757
|
"description": "Overrides the runtime-level restartOnError for this application. Set to false or 0 to never restart the application when it crashes, a positive number to wait that amount of milliseconds between restarts, or true to use the default delay.",
|
|
@@ -841,14 +850,15 @@
|
|
|
841
850
|
"additionalProperties": false
|
|
842
851
|
}
|
|
843
852
|
},
|
|
844
|
-
"additionalProperties": false
|
|
853
|
+
"additionalProperties": false,
|
|
854
|
+
"title": "PermissionsOptions"
|
|
845
855
|
},
|
|
846
|
-
"
|
|
856
|
+
"tracing": {
|
|
847
857
|
"type": "object",
|
|
848
858
|
"properties": {
|
|
849
859
|
"instrumentations": {
|
|
850
860
|
"type": "array",
|
|
851
|
-
"description": "An array of instrumentations loaded if
|
|
861
|
+
"description": "An array of instrumentations loaded if tracing is enabled",
|
|
852
862
|
"items": {
|
|
853
863
|
"oneOf": [
|
|
854
864
|
{
|
|
@@ -875,7 +885,8 @@
|
|
|
875
885
|
]
|
|
876
886
|
}
|
|
877
887
|
}
|
|
878
|
-
}
|
|
888
|
+
},
|
|
889
|
+
"title": "ApplicationTelemetryOverrides"
|
|
879
890
|
},
|
|
880
891
|
"compileCache": {
|
|
881
892
|
"anyOf": [
|
|
@@ -895,7 +906,8 @@
|
|
|
895
906
|
"description": "Directory to store compile cache. Defaults to .plt/compile-cache in app root"
|
|
896
907
|
}
|
|
897
908
|
},
|
|
898
|
-
"additionalProperties": false
|
|
909
|
+
"additionalProperties": false,
|
|
910
|
+
"title": "CompileCacheOptions"
|
|
899
911
|
}
|
|
900
912
|
]
|
|
901
913
|
},
|
|
@@ -922,7 +934,8 @@
|
|
|
922
934
|
}
|
|
923
935
|
]
|
|
924
936
|
}
|
|
925
|
-
}
|
|
937
|
+
},
|
|
938
|
+
"title": "ApplicationEntry"
|
|
926
939
|
}
|
|
927
940
|
},
|
|
928
941
|
"workers": {
|
|
@@ -979,7 +992,8 @@
|
|
|
979
992
|
"minimum": 0,
|
|
980
993
|
"maximum": 1
|
|
981
994
|
}
|
|
982
|
-
}
|
|
995
|
+
},
|
|
996
|
+
"title": "WorkersOptions"
|
|
983
997
|
}
|
|
984
998
|
]
|
|
985
999
|
},
|
|
@@ -1163,7 +1177,8 @@
|
|
|
1163
1177
|
}
|
|
1164
1178
|
},
|
|
1165
1179
|
"default": {},
|
|
1166
|
-
"additionalProperties": true
|
|
1180
|
+
"additionalProperties": true,
|
|
1181
|
+
"title": "AppLoggerOptions"
|
|
1167
1182
|
},
|
|
1168
1183
|
"reuseTcpPorts": {
|
|
1169
1184
|
"type": "boolean",
|
|
@@ -1235,7 +1250,8 @@
|
|
|
1235
1250
|
"runtime",
|
|
1236
1251
|
"application"
|
|
1237
1252
|
],
|
|
1238
|
-
"additionalProperties": false
|
|
1253
|
+
"additionalProperties": false,
|
|
1254
|
+
"title": "GracefulShutdownOptions"
|
|
1239
1255
|
},
|
|
1240
1256
|
"health": {
|
|
1241
1257
|
"type": "object",
|
|
@@ -1397,7 +1413,8 @@
|
|
|
1397
1413
|
"default": 262144
|
|
1398
1414
|
}
|
|
1399
1415
|
},
|
|
1400
|
-
"additionalProperties": false
|
|
1416
|
+
"additionalProperties": false,
|
|
1417
|
+
"title": "HealthOptions"
|
|
1401
1418
|
},
|
|
1402
1419
|
"healthProbes": {
|
|
1403
1420
|
"anyOf": [
|
|
@@ -1514,7 +1531,8 @@
|
|
|
1514
1531
|
]
|
|
1515
1532
|
}
|
|
1516
1533
|
},
|
|
1517
|
-
"additionalProperties": false
|
|
1534
|
+
"additionalProperties": false,
|
|
1535
|
+
"title": "HealthProbesOptions"
|
|
1518
1536
|
}
|
|
1519
1537
|
],
|
|
1520
1538
|
"default": true
|
|
@@ -1611,7 +1629,8 @@
|
|
|
1611
1629
|
}
|
|
1612
1630
|
]
|
|
1613
1631
|
}
|
|
1614
|
-
}
|
|
1632
|
+
},
|
|
1633
|
+
"title": "UndiciOptions"
|
|
1615
1634
|
},
|
|
1616
1635
|
"httpCache": {
|
|
1617
1636
|
"oneOf": [
|
|
@@ -1667,7 +1686,8 @@
|
|
|
1667
1686
|
"default": "shared",
|
|
1668
1687
|
"description": "Cache type. \"shared\" caches may be shared between users, \"private\" caches are user-specific."
|
|
1669
1688
|
}
|
|
1670
|
-
}
|
|
1689
|
+
},
|
|
1690
|
+
"title": "HttpCacheOptions"
|
|
1671
1691
|
}
|
|
1672
1692
|
]
|
|
1673
1693
|
},
|
|
@@ -1708,7 +1728,8 @@
|
|
|
1708
1728
|
"description": "Custom path for the control socket. If not specified, uses the default platform-specific location."
|
|
1709
1729
|
}
|
|
1710
1730
|
},
|
|
1711
|
-
"additionalProperties": false
|
|
1731
|
+
"additionalProperties": false,
|
|
1732
|
+
"title": "ManagementApiOptions"
|
|
1712
1733
|
}
|
|
1713
1734
|
],
|
|
1714
1735
|
"default": true
|
|
@@ -1861,7 +1882,8 @@
|
|
|
1861
1882
|
"required": [
|
|
1862
1883
|
"key",
|
|
1863
1884
|
"cert"
|
|
1864
|
-
]
|
|
1885
|
+
],
|
|
1886
|
+
"title": "HttpsOptions"
|
|
1865
1887
|
},
|
|
1866
1888
|
"auth": {
|
|
1867
1889
|
"type": "object",
|
|
@@ -2140,11 +2162,13 @@
|
|
|
2140
2162
|
}
|
|
2141
2163
|
}
|
|
2142
2164
|
},
|
|
2143
|
-
"additionalProperties": false
|
|
2165
|
+
"additionalProperties": false,
|
|
2166
|
+
"title": "MetricsOptions"
|
|
2144
2167
|
}
|
|
2145
|
-
]
|
|
2168
|
+
],
|
|
2169
|
+
"default": false
|
|
2146
2170
|
},
|
|
2147
|
-
"
|
|
2171
|
+
"tracing": {
|
|
2148
2172
|
"type": "object",
|
|
2149
2173
|
"properties": {
|
|
2150
2174
|
"enabled": {
|
|
@@ -2315,7 +2339,8 @@
|
|
|
2315
2339
|
"required": [
|
|
2316
2340
|
"applicationName"
|
|
2317
2341
|
],
|
|
2318
|
-
"additionalProperties": false
|
|
2342
|
+
"additionalProperties": false,
|
|
2343
|
+
"title": "TelemetryOptions"
|
|
2319
2344
|
},
|
|
2320
2345
|
"verticalScaler": {
|
|
2321
2346
|
"type": "object",
|
|
@@ -2571,7 +2596,8 @@
|
|
|
2571
2596
|
"description": "Directory to store compile cache. Defaults to .plt/compile-cache in app root"
|
|
2572
2597
|
}
|
|
2573
2598
|
},
|
|
2574
|
-
"additionalProperties": false
|
|
2599
|
+
"additionalProperties": false,
|
|
2600
|
+
"title": "CompileCacheOptions"
|
|
2575
2601
|
}
|
|
2576
2602
|
]
|
|
2577
2603
|
},
|
|
@@ -2615,7 +2641,8 @@
|
|
|
2615
2641
|
"minimum": 0,
|
|
2616
2642
|
"maximum": 1
|
|
2617
2643
|
}
|
|
2618
|
-
}
|
|
2644
|
+
},
|
|
2645
|
+
"title": "ApplicationWorkersOptions"
|
|
2619
2646
|
}
|
|
2620
2647
|
]
|
|
2621
2648
|
},
|
|
@@ -2768,7 +2795,8 @@
|
|
|
2768
2795
|
]
|
|
2769
2796
|
}
|
|
2770
2797
|
},
|
|
2771
|
-
"additionalProperties": false
|
|
2798
|
+
"additionalProperties": false,
|
|
2799
|
+
"title": "ApplicationHealthOptions"
|
|
2772
2800
|
},
|
|
2773
2801
|
"restartOnError": {
|
|
2774
2802
|
"description": "Overrides the runtime-level restartOnError for this application. Set to false or 0 to never restart the application when it crashes, a positive number to wait that amount of milliseconds between restarts, or true to use the default delay.",
|
|
@@ -2860,14 +2888,15 @@
|
|
|
2860
2888
|
"additionalProperties": false
|
|
2861
2889
|
}
|
|
2862
2890
|
},
|
|
2863
|
-
"additionalProperties": false
|
|
2891
|
+
"additionalProperties": false,
|
|
2892
|
+
"title": "PermissionsOptions"
|
|
2864
2893
|
},
|
|
2865
|
-
"
|
|
2894
|
+
"tracing": {
|
|
2866
2895
|
"type": "object",
|
|
2867
2896
|
"properties": {
|
|
2868
2897
|
"instrumentations": {
|
|
2869
2898
|
"type": "array",
|
|
2870
|
-
"description": "An array of instrumentations loaded if
|
|
2899
|
+
"description": "An array of instrumentations loaded if tracing is enabled",
|
|
2871
2900
|
"items": {
|
|
2872
2901
|
"oneOf": [
|
|
2873
2902
|
{
|
|
@@ -2894,7 +2923,8 @@
|
|
|
2894
2923
|
]
|
|
2895
2924
|
}
|
|
2896
2925
|
}
|
|
2897
|
-
}
|
|
2926
|
+
},
|
|
2927
|
+
"title": "ApplicationTelemetryOverrides"
|
|
2898
2928
|
},
|
|
2899
2929
|
"compileCache": {
|
|
2900
2930
|
"anyOf": [
|
|
@@ -2914,7 +2944,8 @@
|
|
|
2914
2944
|
"description": "Directory to store compile cache. Defaults to .plt/compile-cache in app root"
|
|
2915
2945
|
}
|
|
2916
2946
|
},
|
|
2917
|
-
"additionalProperties": false
|
|
2947
|
+
"additionalProperties": false,
|
|
2948
|
+
"title": "CompileCacheOptions"
|
|
2918
2949
|
}
|
|
2919
2950
|
]
|
|
2920
2951
|
}
|