Commit 6505c56
committed
Extend the Temporal banner fix to @fedify/mysql
`@fedify/mysql` was added on the `2.1-maintenance` branch after PR
issue carried into this package. Its `pollInterval` and
`handlerTimeout` options take a `Temporal.Duration` or
`Temporal.DurationLike`, and the generated `.d.ts` imported
`Temporal` from `@js-temporal/polyfill`, binding the parameter
types to the polyfill's nominal classes. Users on Node.js 26+
would hit the same nominal mismatch when passing native
`Temporal.Duration` values that PR #768 fixed for the sibling
adapters.
Apply the same `banner.js`/`banner.dts` split as the sibling
adapters: keep the runtime polyfill import in the JS output so
Node.js 22-25 keeps working, and emit
`/// <reference lib="esnext.temporal" />` in the `.d.ts` so the
ambient `Temporal` namespace from `lib.esnext.temporal` resolves
the declared types.
Add a matching `@fedify/mysql` entry to the `Version 2.1.13`
section of the changelog.
`@fedify/astro`, the other new 2.1-only package, doesn't
reference `Temporal` in its source, so no change is needed there.
#767
#768
Assisted-by: Claude Code:claude-opus-4-71 parent 3e07b80 commit 6505c56
3 files changed
Lines changed: 18 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
71 | 80 | | |
72 | 81 | | |
73 | 82 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
24 | 21 | | |
25 | 22 | | |
0 commit comments