Commit 48c3784
fix(ci): extend gate to cover all published downstream packages (#130)
* fix(ci): extend gate to cover all published downstream packages
The CI gate only checked @adobe/data; data-lit's type error introduced
in #127 was invisible to CI and reached main undetected.
Two jobs now:
- data: existing @adobe/data typecheck + lint + test (unchanged)
- packages: depends on data; rebuilds @adobe/data for dist/, then
builds (tsc -b) and tests all @adobe/data-* packages. data-persistence
uses test:node to avoid the Playwright browser requirement in CI.
Also fixes the latent data-lit error: useDragTransaction<T> now
constrains T extends {} | null to satisfy withFilter's U bound
(tightened in #127).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* fix(data-persistence): open node-fs files with O_RDWR|O_CREAT, not a+
"a+" (append+read) ignores the position argument on writes — every
handle.write() lands at EOF regardless of the offset passed. This made
writeAt semantically equivalent to appendAt, so all conformance tests
that write at a non-zero offset failed.
O_RDWR|O_CREAT (read+write, create-if-missing, never truncate) is the
correct flag set: positions are honoured on write, the file is created
on first open, and existing content is never clobbered.
These tests were never run in CI before the packages job was added in
this branch, so the bug went undetected since #102.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent b848a61 commit 48c3784
2 files changed
Lines changed: 44 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
0 commit comments