Commit 1a1de0d
committed
Note compat Router shim breaking changes in changelog
PR #758 review surfaced two compat-shim behaviour changes that are
breaking versus the previous `@fedify/fedify` `Router` and were not
called out in the changelog: `Router#route()` now calls `assertPath()`
and throws `RouterError` for non-path inputs (previously returned
`null`), and `trailingSlashInsensitive` is fixed at construction time
(post-construction assignments create an inert own property on the
wrapper). Both are intentional — the shim is deprecated and its
surface is intentionally constrained — but they need a migration
note so consumers can either pass options at the constructor or move
to `Router` from `@fedify/uri-template`.
#758 (comment)
#758 (comment)
Assisted-by: Claude Code:claude-opus-4-71 parent 679f2c9 commit 1a1de0d
1 file changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
58 | 67 | | |
59 | 68 | | |
60 | 69 | | |
| |||
66 | 75 | | |
67 | 76 | | |
68 | 77 | | |
| 78 | + | |
69 | 79 | | |
70 | 80 | | |
71 | 81 | | |
| |||
85 | 95 | | |
86 | 96 | | |
87 | 97 | | |
88 | | - | |
89 | | - | |
90 | 98 | | |
91 | 99 | | |
92 | 100 | | |
| |||
0 commit comments