Skip to content

chore: compat sweep for #11 (Astro 7, Preact 11, RR8, Kit 3 handleError) - #157

Merged
krassx merged 4 commits into
mainfrom
fix/issue-11
Oct 29, 2026
Merged

krassx merged 4 commits into
mainfrom
fix/issue-11

Conversation

@krassx

@krassx krassx commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Refs #11

Remaining items from the compat watch, verified against current main.

Done

  • Astro 7: astro ^7 / @astrojs/node ^11 for @bugsee/astro and astro-e2e (e2e green on astro 7.4.2). CI node-version is now >=22.23.4 <23 in both jobs (Astro 7's engine floor); root engines and scripts/ci-local.sh follow.
  • Preact 11 smoke: packages/react/vitest.preact.config.ts aliases react to preact/compat; BugseeErrorBoundary and the HOC catch, report and render the fallback. Run by the react test and test:coverage scripts (what CI calls).
  • React Router 8: server HandleErrorFunction is unchanged. The client onError passes { location, params, pattern, errorInfo }, so bugseeOnError was silently dropping the component stack; it now reads info.errorInfo. It also skips thrown Response/data() control flow.
  • SvelteKit 3 handleError: Kit 3 no longer passes a top-level status (input is { kind, error, issues? }; the top-level status is a warning getter in dev). In production builds every 404 / error(4xx) would have been reported. @bugsee/sveltekit (server) and @bugsee/svelte (client) now read the status from error for non-unknown kinds, kind first so the deprecated getter is never touched.
  • Doc nits: Svelte READMEs point to the Kit 3 vite.config.ts setup (matches sveltekit(config?: Config) types in Kit 3.1.0); remix README mentions v8.

Left out

  • Rollup 5.0.0-0: prerelease, no changelog; nothing actionable. Keep watching.

Design note: Kit 3 reports deliberate 5xx error() throws (Kit 2 never called the hook for them), as a plain body without a stack.

Gates: typecheck, cycles, per-package coverage (react, remix, sveltekit, svelte, astro), astro-e2e and sveltekit-e2e green. pnpm lint has pre-existing errors on main outside these files; biome is clean on touched packages. Three fresh Opus review rounds; the last found no real bugs.

🤖 Generated with Claude Code

krassx and others added 4 commits October 29, 2026 18:19
…oke, RR8 onError info shape, Kit 3 handleError status test

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… smoke into CI scripts; ci-local Node floor check

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…tus read, RR onError control flow

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 29, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 48 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 40e43bdc-c223-4c0a-a4c9-7064010ba1ca
Commits

Reviewing files that changed from the base of the PR and between 4d3cb27 and ea2b426.

Files ignored due to path filters: 1
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
Files selected for processing: 20
  • .github/workflows/ci.yml
  • docs/PROGRESS.md
  • docs/dev-environment.md
  • package.json
  • packages/astro-e2e/package.json
  • packages/astro/package.json
  • packages/react/package.json
  • packages/react/src/preact-compat.preact.test.ts
  • packages/react/vitest.config.ts
  • packages/react/vitest.preact.config.ts
  • packages/remix/README.md
  • packages/remix/src/client.test.ts
  • packages/remix/src/client.ts
  • packages/svelte-plugin-component-annotate/README.md
  • packages/svelte/README.md
  • packages/svelte/src/error.test.ts
  • packages/svelte/src/error.ts
  • packages/sveltekit/src/handle-error.test.ts
  • packages/sveltekit/src/handle-error.ts
  • scripts/ci-local.sh
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@claude

claude Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Claude finished @krassx's task in 38s —— View job


Review of PR #157 (compat sweep for #11)

I found no real bugs. I read the diff with the surrounding code, but I did not install dependencies or run tests, typecheck or e2e. I'm relying on your stated gate results for those. I found no inline-worthy findings, so there are no inline comments.

What I checked

  • @bugsee/remix bugseeOnError (packages/remix/src/client.ts): it reads info.errorInfo.componentStack first and falls back to the bare info.componentStack. It skips thrown Response objects and the structural route-error-response shape, which matches the existing captureRemixErrorBoundaryError. The tests cover nested, top-level and null stacks, and the control-flow skip.
  • SvelteKit 3 status read (packages/sveltekit/src/handle-error.ts, packages/svelte/src/error.ts): the check is kind first, so the deprecated top-level status getter is never touched on Kit 3. unknown is never trusted, since a thrown value's own status is unrelated. Kit 2 (no kind) behaves as before. The tests assert that the getters are not read.
  • Preact smoke (packages/react/vitest.preact.config.ts, vitest.config.ts): the *.preact.test.ts suffix is excluded from the main config, so the real-React coverage gate is unaffected. The first test asserts that react resolves to Preact, so a silently broken alias would fail the suite.
  • Node floor: the CI range >=22.23.4 <23, root engines ^22.23.4, and the ci-local.sh version check agree. The ci-local.sh comparison is correct for 22.23.3, 22.23.4 and 22.24.x. release.yml uses Node 24, so it is unaffected.
  • Astro 7: the packages only list astro as a dev dependency, so there is no peer-range impact.

P3, optional (not blocking)

  • kind typing in @bugsee/svelte: HandleErrorInput.kind is 'app' | 'framework' | 'unknown', while @bugsee/sveltekit also lists 'validation'. If Kit 3's client HandleClientError input type can include 'validation' (remote-function validation), assigning the hook could fail under strictFunctionTypes. I couldn't check this because Kit 3 isn't installed here, and your sveltekit-e2e and typecheck gates would likely have caught it. Widening the union costs nothing.
  • Design note, already flagged in the PR body: Kit 3 now reports deliberate 5xx error() throws, as a plain body without a stack. That seems fine as documented.
  • pnpm-lock.yaml shows -2312/+870. This is plausible for dropping the Astro 5 and older @astrojs/node trees, but it's worth confirming that only the intended majors moved.

Summary

  1. Overall risk: Low.
  2. Merge recommendation: Approve and merge, with the optional kind union check above.
  3. Most important issues to fix: none blocking.
  4. Positives:
    • The fixes are narrowly scoped and the tests assert behaviour: the Kit 3 deprecated-getter tests, and the check that the alias is live.
    • Gating on kind first avoids dev-mode warning spam.
    • The docs and PROGRESS.md are updated alongside the code.

@krassx
krassx merged commit 47d218a into main Oct 29, 2026
8 checks passed
@krassx
krassx deleted the fix/issue-11 branch October 29, 2026 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant