Repository navigation
chore(deps): bump preact from 10.29.8 to 11.0.0 - #524
Closed
dependabot[bot] wants to merge 1 commit into
Closed
dependabot[bot] wants to merge 1 commit into
dependabot[bot] wants to merge 1 commit into
Conversation
dependabot
Bot
force-pushed
the
dependabot/npm_and_yarn/preact-11.0.0
branch
from
October 4, 2026 19:53
ff64d87 to
e773b4f
Compare
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
Bot
force-pushed
the
dependabot/npm_and_yarn/preact-11.0.0
branch
3 times, most recently
from
October 7, 2026 01:14
4ea32c1 to
ef9ff78
Compare
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
Bot
force-pushed
the
dependabot/npm_and_yarn/preact-11.0.0
branch
from
October 7, 2026 14:54
ef9ff78 to
eb0abea
Compare
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**  No visible change at 1280px. | Width | Before | After | | --- | --- | --- | | 390px | No visible change |  | ##### `/brightline/spend` **1280px, after**  No visible change at 1280px. | Width | Before | After | | --- | --- | --- | | 390px | No visible change |  | ##### `/brightline/kudos` **1280px, after**  <details><summary>1280px, before</summary>  </details> | Width | Before | After | | --- | --- | --- | | 390px |  |  | <!-- /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]>
Contributor
Author
|
Superseded by #1223. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps preact from 10.29.8 to 11.0.0.
Release notes
Sourced from preact's releases.
... (truncated)
Commits
e6ec2daMerge pull request #5266 from preactjs/11.0.00e84b2cMerge branch 'main' into 11.0.0553b3feMerge pull request #5286 from preactjs/JoviDeCroock/compat-extract-52690ebd1b6Make PureComponent tree-shakeable and fix the _unmounted mangle collisiondb5d280Merge pull request #5285 from gengjiawen/fix/rethrown-boundary-errorfa56ccefix: pass errors rethrown by componentDidCatch to the next real boundary1485848Merge pull request #5281 from preactjs/JoviDeCroock/compat-element-props-ref1dcda7dMerge branch 'main' into JoviDeCroock/compat-element-props-refed6d8cbMerge pull request #5283 from preactjs/JoviDeCroock/hydrate-any-childc2cbc3eApply suggestion from@JoviDeCroock