@critical-path/server 0.23.1 → 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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # @critical-path/server
2
2
 
3
+ ## 0.23.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [1cc0d4c]
8
+ - @critical-path/core@0.34.0
9
+
10
+ ## 0.23.2
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [aa94129]
15
+ - @critical-path/core@0.33.0
16
+
3
17
  ## 0.23.1
4
18
 
5
19
  ### Patch Changes
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 handler = createNextHandler({
27
- initialData: {
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
- export { handler as GET, handler as POST, handler as PUT, handler as PATCH, handler as DELETE, handler as OPTIONS };
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.1",
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.32.0"
30
+ "@critical-path/core": "0.34.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/node": "^24.0.0",