@critical-path/svelte 0.16.2 → 0.16.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 +25 -0
- package/dist/index.js +1342 -795
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @critical-path/svelte
|
|
2
2
|
|
|
3
|
+
## 0.16.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b54e22c: Validate request bodies with shared zod schemas and publish an OpenAPI document.
|
|
8
|
+
|
|
9
|
+
**@critical-path/core**
|
|
10
|
+
- New `@critical-path/core/schemas` subpath with create/update schemas for every resource and `parsePayload(schema, data)`. Kept off the package root so browser bundles do not include zod. `zod` is now a dependency of core.
|
|
11
|
+
- `ValidationError` carries an optional `issues: { path, message }[]`.
|
|
12
|
+
|
|
13
|
+
**@critical-path/server**
|
|
14
|
+
- All request bodies are validated. Invalid bodies return `400` with `issues`. Server-assigned fields (`id`, `createdAt`, `updatedAt`, task `key`, owning `projectId` on updates) and unknown keys are stripped, so a `PATCH` can no longer move a task to another project.
|
|
15
|
+
- Comments, reactions and attachments require an author unless `getContext` resolves the caller. Attachment `mimeType` and `sizeBytes` default to `application/octet-stream` and `0` for linked files.
|
|
16
|
+
- New `GET /openapi.json` and `buildOpenApiDocument()` (OpenAPI 3.1, request bodies generated from the validation schemas).
|
|
17
|
+
|
|
18
|
+
**@critical-path/mcp**
|
|
19
|
+
- Tool `inputSchema`s are generated from their zod schemas via the new `defineTool`, removing the hand-written JSON copies.
|
|
20
|
+
|
|
21
|
+
**@critical-path/svelte**
|
|
22
|
+
- Rebuilt with the bundled `@critical-path/mcp` changes.
|
|
23
|
+
- Updated dependencies [b54e22c]
|
|
24
|
+
- @critical-path/core@0.24.0
|
|
25
|
+
- @critical-path/mcp@0.9.0
|
|
26
|
+
- @critical-path/client@0.14.9
|
|
27
|
+
|
|
3
28
|
## 0.16.2
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|