Skip to content

chore(deps): bump preact from 10.29.8 to 11.0.0 - #524

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/preact-11.0.0
Closed

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/preact-11.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

Bumps preact from 10.29.8 to 11.0.0.

Release notes

Sourced from preact's releases.

11.0.0

https://preactjs.com/blog/preact-11

Read the upgrade-guide over at https://preactjs.com/guide/v11/upgrade-guide

All other release notes can be seen at

Fixes

Performance

Maintenance

11.0.0-rc.2

Notable

Types

Fixes

... (truncated)

Commits
  • e6ec2da Merge pull request #5266 from preactjs/11.0.0
  • 0e84b2c Merge branch 'main' into 11.0.0
  • 553b3fe Merge pull request #5286 from preactjs/JoviDeCroock/compat-extract-5269
  • 0ebd1b6 Make PureComponent tree-shakeable and fix the _unmounted mangle collision
  • db5d280 Merge pull request #5285 from gengjiawen/fix/rethrown-boundary-error
  • fa56cce fix: pass errors rethrown by componentDidCatch to the next real boundary
  • 1485848 Merge pull request #5281 from preactjs/JoviDeCroock/compat-element-props-ref
  • 1dcda7d Merge branch 'main' into JoviDeCroock/compat-element-props-ref
  • ed6d8cb Merge pull request #5283 from preactjs/JoviDeCroock/hydrate-any-child
  • c2cbc3e Apply suggestion from @​JoviDeCroock
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Oct 4, 2026
@github-actions github-actions Bot added area:cli Touches the cli area size:s Under 100 changed lines labels Oct 4, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/preact-11.0.0 branch from ff64d87 to e773b4f Compare October 4, 2026 19:53
@dependabot @github

dependabot Bot commented on behalf of github Oct 5, 2026

Copy link
Copy Markdown
Contributor Author

Dependabot tried to update this pull request, but something went wrong. We're looking into it, but in the meantime you can retry the update by commenting @dependabot recreate.

@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/preact-11.0.0 branch 3 times, most recently from 4ea32c1 to ef9ff78 Compare October 7, 2026 01:14
Bumps [preact](https://github.com/preactjs/preact) from 10.29.8 to 11.0.0.
- [Release notes](https://github.com/preactjs/preact/releases)
- [Commits](preactjs/preact@10.29.8...11.0.0)

---
updated-dependencies:
- dependency-name: preact
  dependency-version: 11.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/preact-11.0.0 branch from ef9ff78 to eb0abea Compare October 7, 2026 14:54
@allisonmahmood allisonmahmood mentioned this pull request Oct 28, 2026
1 of 2 tasks
allisonmahmood added a commit that referenced this pull request Oct 31, 2026
## What changed

Patches get Preact 11.1.0 (with `@preact/signals` 2.11.4 and
`@preact/signals-core` 1.14.5) through `patchy/preact`. This replaces
Dependabot's #524. Its `test (24)` failure was a `Fleet.test.ts`
timeout, not Preact. Preact 11.1.1 came out today; the 24-hour
release-age rule holds it until tomorrow, so it can follow as a patch
bump.

Preact 11 moved its attribute and event types (`HTMLAttributes`,
`TargetedEvent`, `CSSProperties` and 139 others) out of `JSX` and into
the `preact` module. Patches can't import `preact`, so `patchy/preact`
now re-exports Preact's types with `export type *`, which keeps
runtime-only exports such as `options` out of pages.

Supersedes #524.

## Look at

**What existing patches see.** Pages already published keep running
untouched, because each page carries its own Preact. A patch moves to
Preact 11 at its next publish, since publishing requires the current
release. **Publish runs `tsc --noEmit` and refuses on failure**, and
Preact 11's types are stricter.

Runtime behaviour holds. Compat still sizes numeric styles in pixels and
keeps `defaultProps` and `onChange`, because `patchy/preact` loads
compat before any render. The packed e2e now asserts a numeric `width`
renders as `240px` and a `defaultProps` value renders, in dev and in the
single-file build.

Typecheck on copies of the 16 patch repos we run ourselves, with
TypeScript 7.0.2 as publish now requires, against main's package (Preact
10) and this branch's (Preact 11). Some older repos also show errors
from a stale generated client or the tier fold. Those are identical on
both sides, so the table counts only what Preact 11 adds:

| Patch repos | Errors Preact 11 adds |
| --- | --- |
| 13 others (tiers 1 and 2) | 0 |
| largest tier 2 repo | 14 |
| tier 2 dashboard | 2 |
| tier 1 workspace | 4 |

All 16 build with Vite on Preact 11. The new errors fall into four
kinds:

1. **Moved types.** `JSX.HTMLAttributes` or `JSX.TargetedPointerEvent`
becomes `HTMLAttributes` or `TargetedPointerEvent` from `patchy/preact`,
a one-line import change.
2. **ARIA roles per element.** `<aside role="dialog">` and `<button
role="row">` no longer typecheck; `<div>` does.
3. **`useRef<T>()` needs an argument**, for example
`useRef<T>(undefined)`.
4. **Wrapper components.** `<a>`, `<input>` and `<select>` attributes
are unions keyed by `href`, `type` and `role`, so
`Omit<JSX.IntrinsicElements["input"], …>` drops `list` and the spread no
longer fits. The fix is a distributive `Omit`: 9 lines across 3 files in
the largest repo.

Our three affected repos already carry these fixes, written to typecheck
on Preact 10 and 11 alike, and add zero errors on Preact 11. The
`patchy-preact` skill, which refresh ships to every repo, now states
these facts. On tiers 1 and 2, publish's typecheck refusal now names
that skill, so an agent meeting it knows where to look:

```
Typecheck failed. Run `pnpm exec tsc --noEmit` and fix the errors before publishing. `.agents/skills/patchy-preact/SKILL.md` says where Preact's types live.
```

Two scenario patches hit kinds 1 and 2 and are fixed here. Brightline
New Business imports `TargetedDragEvent` and its deal drawer is a `div`.
Brightline Spend rows are focusable `div role="row"`s with Enter and
Space, instead of `<button role="row">`.

<!-- patchy-dev:compare:allison -->

#### Before and after, as Allison Mahmood (admin)

Before is `1d7eca8` (where this branch left main) and after is `a34fa83`
(deps/preact-11), both on the `brightline` scenario, from `pnpm dev
compare`.

Every page answered 200 with no browser errors.

##### `/brightline/new-business`

**1280px, after**

![After: /brightline/new-business at
1280px](https://github.com/user-attachments/assets/9ad5419d-59da-4013-bd8c-d96df4fba2f1)

No visible change at 1280px.

| Width | Before | After |
| --- | --- | --- |
| 390px | No visible change | ![After: /brightline/new-business at
390px](https://github.com/user-attachments/assets/03fb417d-d3e9-401f-8bdd-ab28c3f182fa)
|

##### `/brightline/spend`

**1280px, after**

![After: /brightline/spend at
1280px](https://github.com/user-attachments/assets/19ab7250-6156-4ce2-9123-6517c4674618)

No visible change at 1280px.

| Width | Before | After |
| --- | --- | --- |
| 390px | No visible change | ![After: /brightline/spend at
390px](https://github.com/user-attachments/assets/5cc6a505-07cc-47d7-b0ea-5073a4cf6237)
|

##### `/brightline/kudos`

**1280px, after**

![After: /brightline/kudos at
1280px](https://github.com/user-attachments/assets/642f1d77-cd90-4a2c-8bed-b74543f904e0)

<details><summary>1280px, before</summary>

![Before: /brightline/kudos at
1280px](https://github.com/user-attachments/assets/f01c31db-26e5-4222-aaac-033a85962dfc)

</details>

| Width | Before | After |
| --- | --- | --- |
| 390px | ![Before: /brightline/kudos at
390px](https://github.com/user-attachments/assets/6214fefb-db76-4ea7-8f41-5ca83c10d3c1)
| ![After: /brightline/kudos at
390px](https://github.com/user-attachments/assets/1439ad10-fae6-4396-a0d7-2e6f36eba08f)
|

<!-- /patchy-dev:compare:allison -->

The Kudos differences at both widths are one card's relative time, "42
min ago" before and "43 min ago" after.

## How it was verified

- `pnpm typecheck` (24/24) and `pnpm lint` (Oxlint) on the rebased head.
- `pnpm test:packed-preact-e2e`: the installed tarball holds Preact
11.1.0, signals 2.11.4 and signals-core 1.14.5, one copy each. It
typechecks `TargetedEvent`, `CSSProperties` and a compat
`FunctionComponent` with `defaultProps` from `patchy/preact`, rejects
`options` and `toChildArray` as value imports, and passes in Chromium in
optimized dev and the single-file build.
- `pnpm dev up` for brightline, attio and pidgeon on this head. Every
scenario patch inits, typechecks on TypeScript 7 and publishes.
Brightline's pages render as Allison with no browser errors.
- `pnpm verify` on the final head (`d221d8b`): 9 of 10 suites pass,
including the packed CLI, Preact and tier 2 smokes and the browser suite
(74). `test` failed 43 of 2,619 under a load average of 17. Rerun alone,
the 19 files left 11 failures. Ten are a stray request from another
local process reaching a test's stub server (nine CLI tests and
`LocalTaskProvider`). The eleventh, a `Supervisor` timeout, passed 32/32
twice alone. CI's `test (22)`, `test (24)` and `test (26)` pass on this
head.

## Release impact

- [x] **Breaking** — requires action from anyone already running this
- [ ] **Not breaking** — no action required

Existing patch repos whose code hits one of the four kinds above can't
publish after refreshing to this release until their types are fixed.
Nothing changes for published pages or anyone using them. Upgrade path:
refresh, run `pnpm exec tsc --noEmit`, fix the errors; the
`patchy-preact` skill says where each type went. A repo that hasn't
published since TypeScript 7 (release 22) meets that gate first; this
typecheck comes after it.

**For the release's What's new** (the deploying agent writes it):
patches move to Preact 11 at their next publish; your agent may need to
fix a few type errors first.

- **What does a revert leave behind?** Patches published on this
release, each carrying Preact 11 inside its own HTML. Patch repos whose
types were fixed for Preact 11. No schema, rows or wire changes.
- **Does the release before it still work with that?** Not for every
repo, hence `one-way`. It serves every published page, since each is
self-contained. But a repo whose source imports a moved type from
`patchy/preact` (such as `TargetedDragEvent` or `CSSProperties`) fails
that release's publish typecheck until the import goes back to `JSX.*`.
The other fixes typecheck on both. Rolling back past this PR means
fixing forward instead, or reverting those imports in any repo that must
publish meanwhile.

Built by Claude Opus 5.5 (xhigh) in Claude Code on T3 Code; reviewed and
accepted by GPT-6.1-Sol (xhigh).

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
@dependabot @github

dependabot Bot commented on behalf of github Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #1223.

@dependabot dependabot Bot closed this Nov 3, 2026
@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/preact-11.0.0 branch November 3, 2026 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:cli Touches the cli area dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code size:s Under 100 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants