@platformatic/tanstack 3.45.0 → 3.47.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/config.d.ts CHANGED
@@ -7,6 +7,7 @@
7
7
 
8
8
  export interface PlatformaticTanStackConfig {
9
9
  $schema?: string;
10
+ module?: string;
10
11
  logger?: {
11
12
  level?: (
12
13
  | ("fatal" | "error" | "warn" | "info" | "debug" | "trace" | "silent")
package/index.d.ts ADDED
@@ -0,0 +1,35 @@
1
+ import { BaseCapability, BaseContext, BaseOptions } from '@platformatic/basic'
2
+ import { Configuration, ConfigurationOptions } from '@platformatic/foundation'
3
+ import { JSONSchemaType } from 'ajv'
4
+ import type { PlatformaticTanStackConfig } from './config.d.ts'
5
+
6
+ export type { PlatformaticTanStackConfig } from './config.d.ts'
7
+
8
+ export interface TanstackContext extends BaseContext {}
9
+
10
+ export type TanstackConfiguration = Configuration<PlatformaticTanStackConfig>
11
+
12
+ export declare function loadConfiguration (
13
+ root: string | PlatformaticTanStackConfig,
14
+ source?: string | PlatformaticTanStackConfig,
15
+ context?: ConfigurationOptions
16
+ ): Promise<TanstackConfiguration>
17
+
18
+ export declare function create (
19
+ configOrRoot: string | PlatformaticTanStackConfig,
20
+ sourceOrConfig?: string | PlatformaticTanStackConfig,
21
+ context?: ConfigurationOptions
22
+ ): Promise<TanstackCapability>
23
+
24
+ export declare class TanstackCapability extends BaseCapability<
25
+ PlatformaticTanStackConfig,
26
+ BaseOptions<TanstackContext>
27
+ > {
28
+ constructor (root: string, config: PlatformaticTanStackConfig, context?: object)
29
+ }
30
+
31
+ export declare const packageJson: Record<string, unknown>
32
+ export declare const schema: JSONSchemaType<PlatformaticTanStackConfig>
33
+ export declare const schemaComponents: {}
34
+ export declare const version: string
35
+ export declare const supportedVersions: string
package/lib/capability.js CHANGED
@@ -14,7 +14,7 @@ import { dirname, resolve } from 'node:path'
14
14
  import { satisfies } from 'semver'
15
15
  import { packageJson } from './schema.js'
16
16
 
17
- const supportedVersions = '^1.0.0'
17
+ export const supportedVersions = '^1.0.0'
18
18
 
19
19
  export class TanstackCapability extends ViteCapability {
20
20
  #tanstack
package/lib/schema.js CHANGED
@@ -18,6 +18,9 @@ export const schema = {
18
18
  $schema: {
19
19
  type: 'string'
20
20
  },
21
+ module: {
22
+ type: 'string'
23
+ },
21
24
  logger: utilsSchemaComponents.logger,
22
25
  server: utilsSchemaComponents.server,
23
26
  watch: basicSchemaComponents.watch,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/tanstack",
3
- "version": "3.45.0",
3
+ "version": "3.47.0",
4
4
  "description": "Platformatic TanStack Capability",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -16,9 +16,9 @@
16
16
  "homepage": "https://github.com/platformatic/platformatic#readme",
17
17
  "dependencies": {
18
18
  "semver": "^7.6.3",
19
- "@platformatic/basic": "3.45.0",
20
- "@platformatic/vite": "3.45.0",
21
- "@platformatic/foundation": "3.45.0"
19
+ "@platformatic/basic": "3.47.0",
20
+ "@platformatic/foundation": "3.47.0",
21
+ "@platformatic/vite": "3.47.0"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@tanstack/react-router": "^1.139.7",
@@ -32,19 +32,21 @@
32
32
  "nitro": "3.0.1-alpha.2",
33
33
  "react": "^19.1.0",
34
34
  "react-dom": "^19.1.0",
35
+ "tstyche": "^6.2.0",
35
36
  "typescript": "^5.5.4",
36
37
  "vite": "^7.2.4",
37
38
  "vite-plugin-solid": "^2.11.10",
38
39
  "vite-tsconfig-paths": "^5.1.4",
39
40
  "ws": "^8.18.0",
40
- "@platformatic/gateway": "3.45.0",
41
- "@platformatic/service": "3.45.0"
41
+ "@platformatic/gateway": "3.47.0",
42
+ "@platformatic/service": "3.47.0"
42
43
  },
43
44
  "engines": {
44
45
  "node": ">=22.19.0"
45
46
  },
46
47
  "scripts": {
47
- "test": "node --test --test-reporter=cleaner-spec-reporter --test-concurrency=1 --test-timeout=2000000 test/*.test.js test/**/*.test.js",
48
+ "test": "npm run test:types && node --test --test-reporter=cleaner-spec-reporter --test-concurrency=1 --test-timeout=2000000 test/*.test.js test/**/*.test.js",
49
+ "test:types": "tstyche",
48
50
  "gen-schema": "node lib/schema.js > schema.json",
49
51
  "gen-types": "json2ts > config.d.ts < schema.json",
50
52
  "build": "npm run gen-schema && npm run gen-types",
package/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/tanstack/3.45.0.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/tanstack/3.47.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic TanStack Config",
5
5
  "type": "object",
@@ -7,6 +7,9 @@
7
7
  "$schema": {
8
8
  "type": "string"
9
9
  },
10
+ "module": {
11
+ "type": "string"
12
+ },
10
13
  "logger": {
11
14
  "type": "object",
12
15
  "properties": {