Commit f3254ac
Merge branch 'master' into v2
Brings the upstream device registry and CORS fixes into the v2 branch:
- Seeed Wio Tracker L2 Pro (hwModel 137, esp32-s3, 16MB) added to the
device hardware registry -- 114 devices to 115.
- src/index.ts returns "" instead of throwing for a disallowed CORS
origin, which had been turning every non-whitelisted request into a
500. Affects only the legacy tinyhttp server; the Worker path uses the
static wildcard in worker/src/cors.ts and was never exposed to it.
One adaptation was required. tests/worker/router.test.ts asserted the
deviceHardware payload was exactly 38536 bytes, so the new entry broke the
four "serves the same bytes" cases. That test is about the router resolving
all four path spellings to one handler -- the byte count was incidental, and
would break again on every future device addition. It now compares against
DEVICE_HARDWARE.body from the generated module, which checks the actual
bytes rather than just their count.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>3 files changed
Lines changed: 27 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
57 | 66 | | |
58 | 67 | | |
59 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1381 | 1381 | | |
1382 | 1382 | | |
1383 | 1383 | | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
1384 | 1396 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
| |||
0 commit comments