@critical-path/react 0.14.0 → 0.14.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@critical-path/react",
3
- "version": "0.14.0",
3
+ "version": "0.14.2",
4
4
  "description": "React Context Provider and Hooks for Critical Path headless project management framework",
5
5
  "author": "Jack James",
6
6
  "license": "MIT",
@@ -13,14 +13,14 @@
13
13
  "types": "./dist/index.d.ts",
14
14
  "exports": {
15
15
  ".": {
16
- "import": "./dist/index.js",
17
- "types": "./dist/index.d.ts"
16
+ "types": "./dist/index.d.ts",
17
+ "import": "./dist/index.js"
18
18
  }
19
19
  },
20
20
  "dependencies": {
21
- "@critical-path/client": "0.20.5",
22
- "@critical-path/core": "0.36.0",
23
- "@critical-path/mcp": "0.11.7"
21
+ "@critical-path/client": "0.20.7",
22
+ "@critical-path/core": "0.37.0",
23
+ "@critical-path/mcp": "0.11.9"
24
24
  },
25
25
  "peerDependencies": {
26
26
  "react": "^18.0.0 || ^19.0.0"
@@ -39,6 +39,10 @@
39
39
  "engines": {
40
40
  "node": ">=24.0.0"
41
41
  },
42
+ "files": [
43
+ "dist",
44
+ "!dist/**/*.test.*"
45
+ ],
42
46
  "scripts": {
43
47
  "build": "tsc --build",
44
48
  "test": "vitest run",
package/CHANGELOG.md DELETED
@@ -1,629 +0,0 @@
1
- # @critical-path/react
2
-
3
- ## 0.14.0
4
-
5
- ### Minor Changes
6
-
7
- - dbe7073: Cancel stale requests in UI data hooks.
8
-
9
- - **@critical-path/react:** data hooks abort their in-flight request when inputs change or the component unmounts, and ignore any response that arrives afterwards. Previously, switching from project A to project B could show A's tasks if A's request finished last. The package now ships with a `'use client'` directive, for Next.js App Router.
10
- - **@critical-path/svelte:** state classes abort the previous request when a fetch method is called again, and gain `destroy()` to cancel in-flight requests (call it from `onDestroy`). Duck-typed clients without `with()` keep working; their requests just aren't cancelled.
11
-
12
- ### Patch Changes
13
-
14
- - Updated dependencies [810d8d1]
15
- - @critical-path/core@0.36.0
16
- - @critical-path/client@0.20.5
17
- - @critical-path/mcp@0.11.7
18
-
19
- ## 0.13.11
20
-
21
- ### Patch Changes
22
-
23
- - Updated dependencies [b13f7c4]
24
- - @critical-path/core@0.35.0
25
- - @critical-path/client@0.20.4
26
- - @critical-path/mcp@0.11.6
27
-
28
- ## 0.13.10
29
-
30
- ### Patch Changes
31
-
32
- - Updated dependencies [1cc0d4c]
33
- - @critical-path/core@0.34.0
34
- - @critical-path/client@0.20.3
35
- - @critical-path/mcp@0.11.5
36
-
37
- ## 0.13.9
38
-
39
- ### Patch Changes
40
-
41
- - Updated dependencies [aa94129]
42
- - @critical-path/core@0.33.0
43
- - @critical-path/client@0.20.2
44
- - @critical-path/mcp@0.11.4
45
-
46
- ## 0.13.8
47
-
48
- ### Patch Changes
49
-
50
- - Updated dependencies [a3fe03d]
51
- - @critical-path/core@0.32.0
52
- - @critical-path/client@0.20.1
53
- - @critical-path/mcp@0.11.3
54
-
55
- ## 0.13.7
56
-
57
- ### Patch Changes
58
-
59
- - Updated dependencies [40e5958]
60
- - @critical-path/core@0.31.0
61
- - @critical-path/client@0.20.0
62
- - @critical-path/mcp@0.11.2
63
-
64
- ## 0.13.6
65
-
66
- ### Patch Changes
67
-
68
- - Updated dependencies [b453472]
69
- - @critical-path/client@0.19.0
70
- - @critical-path/mcp@0.11.1
71
-
72
- ## 0.13.5
73
-
74
- ### Patch Changes
75
-
76
- - Updated dependencies [cdb300a]
77
- - @critical-path/core@0.30.0
78
- - @critical-path/client@0.18.0
79
- - @critical-path/mcp@0.11.0
80
-
81
- ## 0.13.4
82
-
83
- ### Patch Changes
84
-
85
- - Updated dependencies [a019d37]
86
- - @critical-path/core@0.29.0
87
- - @critical-path/client@0.17.0
88
- - @critical-path/mcp@0.10.4
89
-
90
- ## 0.13.3
91
-
92
- ### Patch Changes
93
-
94
- - Updated dependencies [4fbbc40]
95
- - @critical-path/core@0.28.0
96
- - @critical-path/mcp@0.10.3
97
- - @critical-path/client@0.16.1
98
-
99
- ## 0.13.2
100
-
101
- ### Patch Changes
102
-
103
- - Updated dependencies [1a516bd]
104
- - @critical-path/core@0.27.0
105
- - @critical-path/client@0.16.0
106
- - @critical-path/mcp@0.10.2
107
-
108
- ## 0.13.1
109
-
110
- ### Patch Changes
111
-
112
- - Updated dependencies [719e844]
113
- - @critical-path/core@0.26.0
114
- - @critical-path/client@0.15.1
115
- - @critical-path/mcp@0.10.1
116
-
117
- ## 0.13.0
118
-
119
- ### Minor Changes
120
-
121
- - fd79762: **BREAKING:** strict request bodies, no identity in payloads, and CORS off by default.
122
-
123
- **@critical-path/core**
124
- - Request schemas are strict: unknown keys, server-assigned fields and identity fields are rejected instead of stripped.
125
- - Identity is never read from payloads. `updateTask` no longer reads `actorId`/`actorName`/`actorType`/`actor` from the update object; pass them as the third `options` argument or use `withActor`. `addComment`, `addCommentReaction`, `removeCommentReaction` and `createAttachment` take the actor from `withActor`, falling back to an optional `authorId`/`userId`/`uploaderId`, then `'system'`.
126
- - Schemas export request body types (`CreateTaskBody`, `UpdateTaskBody`, ...).
127
-
128
- **@critical-path/server**
129
- - Bodies containing unknown, server-assigned or identity fields return `400`.
130
- - Every request runs as the `getContext` user, or `ANONYMOUS_ACTOR` (`anonymous`). Authors of comments, reactions, attachments and time entries are no longer accepted from bodies.
131
- - `DELETE /comments/:id/reactions` takes `?emoji=` only.
132
- - CORS is off by default (`cors: false`). Pass `cors: { origins: [...] }` to allow cross-origin browsers.
133
-
134
- **@critical-path/client**
135
- - Method parameters use the server's body types, so identity fields no longer type-check. `addCommentReaction`/`removeCommentReaction` take `{ emoji }`; `addTodo`/`toggleTodo` drop the actor options argument.
136
- - New `updateProject`, `deleteProject` and `addDependency`. `uploadAttachmentFile` base64-encodes binary data (previously it sent unusable JSON for `Uint8Array`/`ArrayBuffer`).
137
- - CLI: `--author`, `--actor-id`, `--actor-name`, `--agent-name` and `CRITICAL_PATH_AUTHOR_ID`/`ACTOR_ID`/`AGENT_NAME` are removed; identity comes from the `--key` token via the server's `getContext`.
138
-
139
- **@critical-path/mcp**
140
- - Tool arguments are strict: undeclared arguments return an `isError` result.
141
- - `add_comment` no longer takes `authorId`. With an `engine`, writes are attributed to the new `actor` server option (default `DEFAULT_MCP_ACTOR`).
142
-
143
- **@critical-path/react / @critical-path/svelte**
144
- - `addReaction`/`removeReaction` take `(commentId, emoji)`; comment and attachment inputs no longer accept `authorId`/`uploaderId`. Task, comment and deliverable update parameters use the schema body types.
145
-
146
- ### Patch Changes
147
-
148
- - Updated dependencies [fd79762]
149
- - @critical-path/core@0.25.0
150
- - @critical-path/client@0.15.0
151
- - @critical-path/mcp@0.10.0
152
-
153
- ## 0.12.3
154
-
155
- ### Patch Changes
156
-
157
- - Updated dependencies [b54e22c]
158
- - @critical-path/core@0.24.0
159
- - @critical-path/mcp@0.9.0
160
- - @critical-path/client@0.14.9
161
-
162
- ## 0.12.2
163
-
164
- ### Patch Changes
165
-
166
- - Updated dependencies [6dd5529]
167
- - @critical-path/core@0.23.0
168
- - @critical-path/mcp@0.8.0
169
- - @critical-path/client@0.14.8
170
-
171
- ## 0.12.1
172
-
173
- ### Patch Changes
174
-
175
- - Updated dependencies [b243a37]
176
- - @critical-path/core@0.22.0
177
- - @critical-path/mcp@0.7.0
178
- - @critical-path/client@0.14.7
179
-
180
- ## 0.12.0
181
-
182
- ### Minor Changes
183
-
184
- - f3301bf: - Added comprehensive task lifecycle and semantic status predicates (`isDraftTask`, `isArchivedTask`, `isTrashedTask`, `isTrashedOrArchivedTask`, `isWorkflowTask`, `getTaskSemanticStatus`, `isTaskCompleted`, `isTaskInProgress`, `isTaskNotStarted`, `isTaskCanceled`, `isTaskActive`, `isTaskUnassigned`).
185
- - Hardened mention extraction with markdown code suppression (`stripMarkdownCode`) to prevent code blocks, inline code, HTML elements, and URLs from triggering false positive mentions while preserving rich-text mention nodes.
186
- - Added Base-62 fractional indexing utilities (`generateKeyBetween`, `generateNKeysBetween`) for zero-cost lexical task/item reordering without array shifting or bulk database rewrites.
187
- - Added `completedAt` lifecycle timestamp tracking alongside `actualEndDate`, automatic timestamp assignment upon entering `completed` or `canceled`, and timestamp + progress reset upon reopening to `not_started` or `in_progress`.
188
- - Added `isTempTaskId` utility and hardened optimistic temporary task handling in `@critical-path/svelte` (`TaskState`) and `@critical-path/react` (`useTasks`) with in-flight creation resolution and ID mapping to prevent 404 errors during rapid optimistic updates and deletions.
189
-
190
- ### Patch Changes
191
-
192
- - Updated dependencies [f3301bf]
193
- - @critical-path/core@0.21.0
194
- - @critical-path/client@0.14.6
195
- - @critical-path/mcp@0.6.9
196
-
197
- ## 0.11.9
198
-
199
- ### Patch Changes
200
-
201
- - Updated dependencies [8acf018]
202
- - @critical-path/client@0.14.5
203
- - @critical-path/mcp@0.6.8
204
-
205
- ## 0.11.8
206
-
207
- ### Patch Changes
208
-
209
- - Updated dependencies [b8a68dd]
210
- - @critical-path/core@0.20.2
211
- - @critical-path/client@0.14.4
212
- - @critical-path/mcp@0.6.7
213
-
214
- ## 0.11.7
215
-
216
- ### Patch Changes
217
-
218
- - Updated dependencies [500b353]
219
- - @critical-path/core@0.20.1
220
- - @critical-path/client@0.14.3
221
- - @critical-path/mcp@0.6.6
222
-
223
- ## 0.11.6
224
-
225
- ### Patch Changes
226
-
227
- - Updated dependencies [c83235b]
228
- - @critical-path/core@0.20.0
229
- - @critical-path/client@0.14.2
230
- - @critical-path/mcp@0.6.5
231
-
232
- ## 0.11.5
233
-
234
- ### Patch Changes
235
-
236
- - Updated dependencies [f816145]
237
- - @critical-path/core@0.19.1
238
- - @critical-path/client@0.14.1
239
- - @critical-path/mcp@0.6.4
240
-
241
- ## 0.11.4
242
-
243
- ### Patch Changes
244
-
245
- - Updated dependencies [f539a11]
246
- - @critical-path/client@0.14.0
247
- - @critical-path/mcp@0.6.3
248
-
249
- ## 0.11.3
250
-
251
- ### Patch Changes
252
-
253
- - Updated dependencies [1c85472]
254
- - @critical-path/client@0.13.1
255
- - @critical-path/mcp@0.6.2
256
-
257
- ## 0.11.2
258
-
259
- ### Patch Changes
260
-
261
- - Updated dependencies [b86b6fc]
262
- - @critical-path/client@0.13.0
263
- - @critical-path/mcp@0.6.1
264
-
265
- ## 0.11.1
266
-
267
- ### Patch Changes
268
-
269
- - Updated dependencies [31a6dde]
270
- - Updated dependencies [31a6dde]
271
- - @critical-path/core@0.19.0
272
- - @critical-path/mcp@0.6.0
273
- - @critical-path/client@0.12.1
274
-
275
- ## 0.11.0
276
-
277
- ### Minor Changes
278
-
279
- - adf44f6: Add headless workload and capacity distribution engine for streamgraphs, stacked area charts, and team capacity planning. Features include contiguous calendar bucketing (`day`, `week`, `month`), multi-dimension grouping (`assignee`, `team`, `taskType`, `priority`, `status`), effort metric distribution (`scheduled`, `logged`, `remaining`, `blended`), tabular zero-filled series matrix for D3 stack layouts, and capacity/utilization thresholds.
280
-
281
- ### Patch Changes
282
-
283
- - Updated dependencies [adf44f6]
284
- - @critical-path/core@0.18.0
285
- - @critical-path/client@0.12.0
286
- - @critical-path/mcp@0.5.0
287
-
288
- ## 0.10.0
289
-
290
- ### Minor Changes
291
-
292
- - 9c31e8d: Introduce comprehensive Task Metrics, Inferred Actuals, Progress Inference, Earned Value Management (EVM), and Time-Series Progress History Curve Profiling.
293
- - **Inferred Actuals**: Automatic start/completion auto-stamping on workflow transitions with fallback inference from activity logs, plus automatic completion timestamp clearing on task re-open.
294
- - **Reality Delta**: Multi-dimensional variance analysis comparing planned estimates to logged hours (`effortVarianceHours`, `durationVarianceHours`, `accuracyRatio`, `isOverdue`, `isOverEstimate`).
295
- - **Progress Inference**: Deterministic priority waterfall resolving completion progress across explicit values, checklist/todo completion ratios, logged effort, and elapsed schedule time.
296
- - **Earned Value Management (EVM)**: Task-level PV, EV, AC, CV, SV, CPI, and SPI calculations.
297
- - **Time-Series History & Curve Shapes**: Historical timeline reconstruction from activity logs with piecewise interpolation curve classification (`linear`, `s_curve`, `early_surge`, `late_rush`, `stalled`).
298
- - **Full-Stack Integration**: REST endpoints (`/tasks/:id/metrics`, `/tasks/:id/progress-history`), Client SDK methods, React `useTaskMetrics` hook, Svelte 5 `TaskMetricsState`, and MCP tools (`get_task_metrics`, `get_task_progress_history`).
299
-
300
- ### Patch Changes
301
-
302
- - Updated dependencies [9c31e8d]
303
- - @critical-path/core@0.17.0
304
- - @critical-path/client@0.11.0
305
- - @critical-path/mcp@0.4.0
306
-
307
- ## 0.9.1
308
-
309
- ### Patch Changes
310
-
311
- - Updated dependencies [b4b2c98]
312
- - @critical-path/mcp@0.3.1
313
-
314
- ## 0.9.0
315
-
316
- ### Minor Changes
317
-
318
- - e2a7eef: Introduce Ladder of Abstraction and Critical Path Method (CPM) timeline synthesis to the framework data model:
319
- - **Core Domain**: Multi-scale timeline synthesis model across Macro phase rollups, Standard CPM Gantt schedule (early/late bounds, float/slack calculation, bottleneck identification), and Concrete grounding (deliverables, file attachments, daily effort distribution, and reality deltas). Added `calculateCriticalPath`, `getTimelineLadder`, and `getTaskLadder` to `CriticalPathEngine`.
320
- - **Server Router**: HTTP endpoints `GET /projects/:id/critical-path`, `GET /projects/:id/ladder`, and `GET /tasks/:id/ladder`.
321
- - **Client SDK**: `CriticalPathClient` methods `calculateCriticalPath`, `getTimelineLadder`, and `getTaskLadder`.
322
- - **MCP**: New AI tools `calculate_critical_path`, `get_timeline_ladder`, and `get_task_ladder`.
323
- - **React**: Custom hooks `useTimelineLadder`, `useCriticalPath`, and `useTaskLadder`.
324
- - **Svelte 5**: Svelte 5 Runes state classes `TimelineLadderState` and `CriticalPathState`.
325
-
326
- ### Patch Changes
327
-
328
- - Updated dependencies [e2a7eef]
329
- - @critical-path/core@0.16.0
330
- - @critical-path/client@0.10.0
331
- - @critical-path/mcp@0.3.0
332
-
333
- ## 0.8.0
334
-
335
- ### Minor Changes
336
-
337
- - 105f3d3: Synchronize feature parity between `@critical-path/react` and `@critical-path/svelte`:
338
- - `@critical-path/react`: Added `updateTask` with optimistic updates and rollback to `useTasks`, and introduced `useTaskActivity` hook for unified threaded discussions and attachments.
339
- - `@critical-path/svelte`: Added `KanbanState` (`createKanbanState`), `TaskTransitionsState` (`createTaskTransitionsState`), and `DeliverableSummaryState` (`createDeliverableSummaryState`) using native Svelte 5 runes.
340
-
341
- ## 0.7.0
342
-
343
- ### Minor Changes
344
-
345
- - ed51060: Add Model Context Protocol (MCP) server and client-side WebMCP support:
346
- - New `@critical-path/mcp` package providing standard MCP server (`createCriticalPathMcpServer`, stdio transport, resources, prompts) and CLI (`npx @critical-path/mcp`).
347
- - Client-side WebMCP browser integration (`registerWebMcpTools`) adhering to W3C WebML CG specification with ambient project scoping.
348
- - First-class React hook `useWebMCP` in `@critical-path/react`.
349
- - First-class Svelte 5 runes state `WebMcpState` and `createWebMcpState` in `@critical-path/svelte`.
350
-
351
- ### Patch Changes
352
-
353
- - Updated dependencies [ed51060]
354
- - @critical-path/mcp@0.2.0
355
-
356
- ## 0.6.2
357
-
358
- ### Patch Changes
359
-
360
- - Updated dependencies [dbd2072]
361
- - @critical-path/core@0.15.2
362
- - @critical-path/client@0.9.2
363
-
364
- ## 0.6.1
365
-
366
- ### Patch Changes
367
-
368
- - Updated dependencies [f53afab]
369
- - @critical-path/core@0.15.1
370
- - @critical-path/client@0.9.1
371
-
372
- ## 0.6.0
373
-
374
- ### Minor Changes
375
-
376
- - 21eb85c: Implement Universal Semantic Statuses & System-Derived Implied Statuses (3-Tier Status Architecture)
377
-
378
- - **Tier 1 (Universal Semantic Statuses)**: Defined canonical status enum `SemanticStatus = 'not_started' | 'in_progress' | 'completed' | 'canceled'` providing universal semantic meaning across any industry domain.
379
- - **Tier 2 (Workflow-Defined Statuses)**: Updated `StatusDefinition` to map domain-specific statuses to a semantic `category`. Updated built-in workflows (Software, Creative, VFX, Simple) to classify statuses by category.
380
- - **Tier 3 (System-Derived Implied Statuses)**: Added `deriveTaskLifecycleState` and `engine.getTaskLifecycleState(taskId)` returning dynamic indicators:
381
- - Dependency: `isReady`, `isBlocked`, `blockingTaskIds`
382
- - Schedule: `isOverdue`, `isUpcoming`, `isUnplanned`
383
- - Ownership: `isUnassigned`, `isStalled`
384
- - Estimate/Pace: `isOverEstimate`, `isPaceWarning`
385
- - Convenience flags: `isDone`, `isActive`, `isCancelled`
386
- - **Domain Entities & Engine**: Added automatic timestamp progression (`actualStartDate`, `actualEndDate`), progress completion, and event emission driven by semantic status categories.
387
- - **React UI Hooks**: Updated `useKanban` to support dynamic custom workflow columns without dropping tasks, plus added `groupBy: 'semantic' | 'workflow'` option.
388
- - **Client SDK**: Added `client.getTaskLifecycleState(taskId)`.
389
-
390
- ### Patch Changes
391
-
392
- - Updated dependencies [21eb85c]
393
- - @critical-path/core@0.15.0
394
- - @critical-path/client@0.9.0
395
-
396
- ## 0.5.5
397
-
398
- ### Patch Changes
399
-
400
- - Updated dependencies [3dc2798]
401
- - @critical-path/core@0.14.0
402
- - @critical-path/client@0.8.4
403
-
404
- ## 0.5.4
405
-
406
- ### Patch Changes
407
-
408
- - Updated dependencies [573a4fa]
409
- - @critical-path/core@0.13.3
410
- - @critical-path/client@0.8.3
411
-
412
- ## 0.5.3
413
-
414
- ### Patch Changes
415
-
416
- - Updated dependencies [03d269c]
417
- - @critical-path/core@0.13.2
418
- - @critical-path/client@0.8.2
419
-
420
- ## 0.5.2
421
-
422
- ### Patch Changes
423
-
424
- - Updated dependencies [a7d17c0]
425
- - @critical-path/core@0.13.1
426
- - @critical-path/client@0.8.1
427
-
428
- ## 0.5.1
429
-
430
- ### Patch Changes
431
-
432
- - Updated dependencies [a4a464b]
433
- - @critical-path/core@0.13.0
434
- - @critical-path/client@0.8.0
435
-
436
- ## 0.5.0
437
-
438
- ### Minor Changes
439
-
440
- - 5a5930f: Add first-class Deliverable entity, Creative Workflow presets, and reactive UI bindings:
441
- - `@critical-path/core`: Added `Deliverable` entity, `DeliverableSummary` rollup computation, `DEFAULT_CREATIVE_WORKFLOW` preset, `deliverableId` on tasks, store implementations (InMemory, SQLite, Firebase), domain events, and webhook integration.
442
- - `@critical-path/server`: Added RESTful API endpoints for `/deliverables` and `/deliverables/:id/summary`.
443
- - `@critical-path/client`: Added deliverable management and summary methods to `CriticalPathClient`.
444
- - `@critical-path/react`: Added `useDeliverables` and `useDeliverableSummary` React hooks.
445
- - `@critical-path/svelte`: Added `DeliverableState` and `createDeliverableState` Svelte 5 Runes state management.
446
-
447
- ### Patch Changes
448
-
449
- - Updated dependencies [5a5930f]
450
- - @critical-path/core@0.12.0
451
- - @critical-path/client@0.7.0
452
-
453
- ## 0.4.1
454
-
455
- ### Patch Changes
456
-
457
- - Updated dependencies [55549e9]
458
- - @critical-path/core@0.11.0
459
- - @critical-path/client@0.6.0
460
-
461
- ## 0.4.0
462
-
463
- ### Minor Changes
464
-
465
- - e9003d3: Add emoji reactions support for comment conversations with domain events, deduplication, REST endpoints, client SDK, and React/Svelte state integrations.
466
-
467
- ### Patch Changes
468
-
469
- - Updated dependencies [e9003d3]
470
- - @critical-path/core@0.10.0
471
- - @critical-path/client@0.5.0
472
-
473
- ## 0.3.5
474
-
475
- ### Patch Changes
476
-
477
- - Updated dependencies [e983557]
478
- - @critical-path/core@0.9.0
479
- - @critical-path/client@0.4.4
480
-
481
- ## 0.3.4
482
-
483
- ### Patch Changes
484
-
485
- - 2d5ff04: fix(core): decode base64 strings and data URIs into binary Uint8Array in storage adapters
486
- - Updated dependencies [2d5ff04]
487
- - @critical-path/core@0.8.3
488
- - @critical-path/client@0.4.3
489
-
490
- ## 0.3.3
491
-
492
- ### Patch Changes
493
-
494
- - fix(core): decode base64 strings and data URIs into binary Uint8Array in storage adapters
495
- - Updated dependencies
496
- - @critical-path/core@0.8.2
497
- - @critical-path/client@0.4.2
498
-
499
- ## 0.3.2
500
-
501
- ### Patch Changes
502
-
503
- - 315425c: fix(core): generate Firebase Storage download tokens and construct valid public URLs
504
- - Updated dependencies [315425c]
505
- - @critical-path/core@0.8.1
506
- - @critical-path/client@0.4.1
507
-
508
- ## 0.3.1
509
-
510
- ### Patch Changes
511
-
512
- - Updated dependencies [1811922]
513
- - @critical-path/core@0.8.0
514
- - @critical-path/client@0.4.0
515
-
516
- ## 0.3.0
517
-
518
- ### Minor Changes
519
-
520
- - a48a04a: Add threaded conversations, attachment metadata management, and storage adapters (S3 & Firebase Storage):
521
-
522
- - **`@critical-path/core`**:
523
- - Added `Attachment` entity, `CreateAttachmentInput`, `UploadFileInput`, and `FileStorageAdapter` contracts.
524
- - Added `InMemoryFileStore`, duck-typed `S3StorageAdapter` (compatible with AWS SDK v3, v2, MinIO, and Cloudflare R2), and `FirebaseStorageAdapter` (compatible with Google Cloud Storage and Firebase Admin SDK).
525
- - Extended `Comment` with `authorType` (`user`, `agent`, `system`) and `parentId` for threaded discussions.
526
- - Implemented full comment and attachment repository methods across `InMemoryStore`, `SQLiteStore`, and `FirebaseStore`.
527
- - Added engine operations for upload, presigning, and deleting attachments with domain events (`comment.*`, `attachment.*`) and webhooks.
528
-
529
- - **`@critical-path/server`**:
530
- - Added RESTful routes for comments (`GET/POST /tasks/:taskId/comments`, `GET/POST /comments`, `GET/PATCH/DELETE /comments/:id`).
531
- - Added RESTful routes for attachments (`GET/POST /tasks/:taskId/attachments`, `GET/POST /attachments`, `GET/DELETE /attachments/:id`, `POST /attachments/presign`).
532
-
533
- - **`@critical-path/client`**:
534
- - Added SDK methods `getComments`, `getComment`, `addComment`, `updateComment`, `deleteComment`.
535
- - Added SDK methods `getAttachments`, `getAttachment`, `createAttachment`, `deleteAttachment`, and `getPresignedAttachmentUploadUrl`.
536
-
537
- - **`@critical-path/react`**:
538
- - Added `useComments(taskId)` with reactive thread tree derivation (`threads` containing nested `replies`) and comment mutations.
539
- - Added `useAttachments(filter)` with attachment creation and deletion.
540
-
541
- - **`@critical-path/svelte`**:
542
- - Added Svelte 5 Rune-based `CommentState` / `createCommentState(client, taskId)` with derived threaded hierarchy.
543
- - Added Svelte 5 Rune-based `AttachmentState` / `createAttachmentState(client, filter)`.
544
-
545
- ### Patch Changes
546
-
547
- - Updated dependencies [a48a04a]
548
- - @critical-path/core@0.7.0
549
- - @critical-path/client@0.3.0
550
-
551
- ## 0.2.4
552
-
553
- ### Patch Changes
554
-
555
- - Updated dependencies [6e9dece]
556
- - @critical-path/core@0.6.0
557
- - @critical-path/client@0.2.4
558
-
559
- ## 0.2.3
560
-
561
- ### Patch Changes
562
-
563
- - Updated dependencies [c24b76c]
564
- - @critical-path/core@0.5.2
565
- - @critical-path/client@0.2.3
566
-
567
- ## 0.2.2
568
-
569
- ### Patch Changes
570
-
571
- - Updated dependencies [34067fd]
572
- - @critical-path/core@0.5.1
573
- - @critical-path/client@0.2.2
574
-
575
- ## 0.2.1
576
-
577
- ### Patch Changes
578
-
579
- - Updated dependencies [83a5c17]
580
- - @critical-path/core@0.5.0
581
- - @critical-path/client@0.2.1
582
-
583
- ## 0.2.0
584
-
585
- ### Minor Changes
586
-
587
- - 35576a6: Introduce Workflow concept to the project management model with status definitions, allowed transition validation, task types, webhook events (workflow.created, workflow.updated, workflow.deleted), server routes, SDK methods, and React/Svelte state hooks.
588
-
589
- ### Patch Changes
590
-
591
- - Updated dependencies [35576a6]
592
- - @critical-path/core@0.4.0
593
- - @critical-path/client@0.2.0
594
-
595
- ## 0.1.6
596
-
597
- ### Patch Changes
598
-
599
- - Updated dependencies [4b92228]
600
- - @critical-path/core@0.3.0
601
- - @critical-path/client@0.1.5
602
-
603
- ## 0.1.5
604
-
605
- ### Patch Changes
606
-
607
- - 3470b61: add optimistic updates with error rollback to Svelte state classes and React hooks
608
-
609
- ## 0.1.4
610
-
611
- ### Patch Changes
612
-
613
- - Updated dependencies [df22aad]
614
- - @critical-path/core@0.2.1
615
- - @critical-path/client@0.1.4
616
-
617
- ## 0.1.3
618
-
619
- ### Patch Changes
620
-
621
- - Updated dependencies [755286a]
622
- - @critical-path/core@0.2.0
623
- - @critical-path/client@0.1.3
624
-
625
- ## 0.1.2
626
-
627
- ### Patch Changes
628
-
629
- - Initial open-source release of React context provider (`CriticalPathProvider`) and hooks (`useKanban`, `useTasks`, `useProjects`).
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=cancellation.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cancellation.test.d.ts","sourceRoot":"","sources":["../src/cancellation.test.tsx"],"names":[],"mappings":""}