@objectstack/nextjs 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.
- package/.turbo/turbo-build.log +6 -6
- package/CHANGELOG.md +35 -0
- package/package.json +5 -5
- package/tsconfig.json +16 -3
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @objectstack/nextjs@
|
|
2
|
+
> @objectstack/nextjs@4.0.0 build /home/runner/work/spec/spec/packages/adapters/nextjs
|
|
3
3
|
> tsup --config ../../../tsup.config.ts
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
[34mCLI[39m Cleaning output folder
|
|
11
11
|
[34mESM[39m Build start
|
|
12
12
|
[34mCJS[39m Build start
|
|
13
|
-
[32mESM[39m [1mdist/index.mjs [22m[32m7.52 KB[39m
|
|
14
|
-
[32mESM[39m [1mdist/index.mjs.map [22m[32m16.55 KB[39m
|
|
15
|
-
[32mESM[39m ⚡️ Build success in 79ms
|
|
16
13
|
[32mCJS[39m [1mdist/index.js [22m[32m8.76 KB[39m
|
|
17
14
|
[32mCJS[39m [1mdist/index.js.map [22m[32m16.60 KB[39m
|
|
18
|
-
[32mCJS[39m ⚡️ Build success in
|
|
15
|
+
[32mCJS[39m ⚡️ Build success in 68ms
|
|
16
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m7.52 KB[39m
|
|
17
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m16.55 KB[39m
|
|
18
|
+
[32mESM[39m ⚡️ Build success in 69ms
|
|
19
19
|
[34mDTS[39m Build start
|
|
20
|
-
[32mDTS[39m ⚡️ Build success in
|
|
20
|
+
[32mDTS[39m ⚡️ Build success in 13720ms
|
|
21
21
|
[32mDTS[39m [1mdist/index.d.mts [22m[32m2.63 KB[39m
|
|
22
22
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m2.63 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,40 @@
|
|
|
1
1
|
# @objectstack/nextjs
|
|
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/nextjs",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -8,15 +8,15 @@
|
|
|
8
8
|
"next": "^16.2.1",
|
|
9
9
|
"react": "^19.2.4",
|
|
10
10
|
"react-dom": "^19.2.4",
|
|
11
|
-
"@objectstack/runtime": "^
|
|
11
|
+
"@objectstack/runtime": "^4.0.0"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"next": "^16.2.1",
|
|
15
15
|
"react": "^19.2.4",
|
|
16
16
|
"react-dom": "^19.2.4",
|
|
17
|
-
"typescript": "^
|
|
18
|
-
"vitest": "^4.1.
|
|
19
|
-
"@objectstack/runtime": "
|
|
17
|
+
"typescript": "^6.0.2",
|
|
18
|
+
"vitest": "^4.1.2",
|
|
19
|
+
"@objectstack/runtime": "4.0.0"
|
|
20
20
|
},
|
|
21
21
|
"scripts": {
|
|
22
22
|
"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": [
|
|
12
|
-
|
|
19
|
+
"include": [
|
|
20
|
+
"src/**/*"
|
|
21
|
+
],
|
|
22
|
+
"exclude": [
|
|
23
|
+
"node_modules",
|
|
24
|
+
"dist"
|
|
25
|
+
]
|
|
13
26
|
}
|