@objectstack/sveltekit 3.3.0 → 4.0.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @objectstack/sveltekit@3.3.0 build /home/runner/work/spec/spec/packages/adapters/sveltekit
2
+ > @objectstack/sveltekit@4.0.0 build /home/runner/work/spec/spec/packages/adapters/sveltekit
3
3
  > tsup --config ../../../tsup.config.ts
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -12,11 +12,11 @@
12
12
  CJS Build start
13
13
  ESM dist/index.mjs 4.50 KB
14
14
  ESM dist/index.mjs.map 10.35 KB
15
- ESM ⚡️ Build success in 73ms
15
+ ESM ⚡️ Build success in 65ms
16
16
  CJS dist/index.js 5.56 KB
17
17
  CJS dist/index.js.map 10.39 KB
18
- CJS ⚡️ Build success in 79ms
18
+ CJS ⚡️ Build success in 65ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 13264ms
20
+ DTS ⚡️ Build success in 13611ms
21
21
  DTS dist/index.d.mts 1.65 KB
22
22
  DTS dist/index.d.ts 1.65 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,40 @@
1
1
  # @objectstack/sveltekit
2
2
 
3
+ ## 4.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - f08ffc3: Fix discovery API endpoint routing and protocol consistency.
8
+
9
+ **Discovery route standardization:**
10
+
11
+ - All adapters (Express, Fastify, Hono, NestJS, Next.js, Nuxt, SvelteKit) now mount the discovery endpoint at `{prefix}/discovery` instead of `{prefix}` root.
12
+ - `.well-known/objectstack` redirects now point to `{prefix}/discovery`.
13
+ - Client `connect()` fallback URL changed from `/api/v1` to `/api/v1/discovery`.
14
+ - Runtime dispatcher handles both `/discovery` (standard) and `/` (legacy) for backward compatibility.
15
+
16
+ **Schema & route alignment:**
17
+
18
+ - Added `storage` (service: `file-storage`) and `feed` (service: `data`) routes to `DEFAULT_DISPATCHER_ROUTES`.
19
+ - Added `feed` and `discovery` fields to `ApiRoutesSchema`.
20
+ - Unified `GetDiscoveryResponseSchema` with `DiscoverySchema` as single source of truth.
21
+ - Client `getRoute('feed')` fallback updated from `/api/v1/data` to `/api/v1/feed`.
22
+
23
+ **Type safety:**
24
+
25
+ - Extracted `ApiRouteType` from `ApiRoutes` keys for type-safe client route resolution.
26
+ - Removed `as any` type casting in client route access.
27
+
28
+ - Updated dependencies [f08ffc3]
29
+ - Updated dependencies [e0b0a78]
30
+ - @objectstack/runtime@4.0.0
31
+
32
+ ## 3.3.1
33
+
34
+ ### Patch Changes
35
+
36
+ - @objectstack/runtime@3.3.1
37
+
3
38
  ## 3.3.0
4
39
 
5
40
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@objectstack/sveltekit",
3
- "version": "3.3.0",
3
+ "version": "4.0.0",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -13,13 +13,13 @@
13
13
  },
14
14
  "peerDependencies": {
15
15
  "@sveltejs/kit": "^2.55.0",
16
- "@objectstack/runtime": "^3.3.0"
16
+ "@objectstack/runtime": "^4.0.0"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@sveltejs/kit": "^2.55.0",
20
- "typescript": "^5.0.0",
21
- "vitest": "^4.1.0",
22
- "@objectstack/runtime": "3.3.0"
20
+ "typescript": "^6.0.2",
21
+ "vitest": "^4.1.2",
22
+ "@objectstack/runtime": "4.0.0"
23
23
  },
24
24
  "scripts": {
25
25
  "build": "tsup --config ../../../tsup.config.ts",
package/tsconfig.json CHANGED
@@ -6,8 +6,21 @@
6
6
  "module": "NodeNext",
7
7
  "moduleResolution": "NodeNext",
8
8
  "esModuleInterop": true,
9
- "skipLibCheck": true
9
+ "skipLibCheck": true,
10
+ "lib": [
11
+ "ES2020",
12
+ "DOM",
13
+ "DOM.Iterable"
14
+ ],
15
+ "types": [
16
+ "node"
17
+ ]
10
18
  },
11
- "include": ["src/**/*"],
12
- "exclude": ["node_modules", "dist"]
19
+ "include": [
20
+ "src/**/*"
21
+ ],
22
+ "exclude": [
23
+ "node_modules",
24
+ "dist"
25
+ ]
13
26
  }