@critical-path/server 0.23.2 → 0.23.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/CHANGELOG.md +7 -0
- package/README.md +4 -8
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -22,17 +22,13 @@ File: `app/api/critical-path/[...path]/route.ts`
|
|
|
22
22
|
|
|
23
23
|
```ts
|
|
24
24
|
import { createNextHandler } from '@critical-path/server';
|
|
25
|
+
import { SQLiteStore } from '@critical-path/core';
|
|
25
26
|
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
projects: [{ id: 'p1', key: 'PROJ', name: 'Product Roadmap' }]
|
|
29
|
-
}
|
|
27
|
+
export const { GET, POST, PUT, PATCH, DELETE, OPTIONS } = createNextHandler({
|
|
28
|
+
store: new SQLiteStore({ filename: 'critical-path.db' })
|
|
30
29
|
});
|
|
31
30
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
// Equivalent: the handler also exposes one property per method
|
|
35
|
-
// export const { GET, POST, PUT, PATCH, DELETE, OPTIONS } = createNextHandler({ ... });
|
|
31
|
+
// Equivalent: the handler is also callable, so `export { handler as GET, ... }` works too.
|
|
36
32
|
```
|
|
37
33
|
|
|
38
34
|
---
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@critical-path/server",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.3",
|
|
4
4
|
"description": "Web Fetch API compatible server router and adapters for Next.js App Router, SvelteKit, and Express",
|
|
5
5
|
"author": "Jack James",
|
|
6
6
|
"license": "MIT",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"zod-to-json-schema": "^3.25.2",
|
|
30
|
-
"@critical-path/core": "0.
|
|
30
|
+
"@critical-path/core": "0.34.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/node": "^24.0.0",
|