Skip to content

Upgrade SvelteKit example to version 3 - #213

Open
niemyjski wants to merge 6 commits into
mainfrom
feature/sveltekit-3-migration
Open

niemyjski wants to merge 6 commits into
mainfrom
feature/sveltekit-3-migration

Conversation

@niemyjski

@niemyjski niemyjski commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

SvelteKit 3 moves adapter configuration and passes expected and unexpected errors through its error hooks. The example reports all hook errors to Exceptionless, using the SDK's unhandled context for unknown errors and preserving status on expected errors. The workspace dependency refresh addresses the reported npm and OSV advisories.

Validation: clean install, full build, 351 tests, lint, Svelte check, npm audit, and OSV passed locally. Local server checks queued a framework 404, application error, and unexpected 500. Hosted Node 24 build, lint, and tests passed on Linux, macOS, and Windows; CodeQL passed. Browser rendering and delivery to a live Exceptionless server were not verified in this session.

Verification and implementation details

SvelteKit's client hook is async and the example enables Svelte's experimental async compiler option so it can be awaited during rendering. Hooks preserve console diagnostics and catch reporting failures so the error hook does not throw. Client hooks do not receive errors already transformed by server hooks; global SDK error listeners can still capture errors outside SvelteKit.

The SDK's createUnhandledException sets a client-side context flag and submission method; the flag itself is not serialized. The README and dedicated SvelteKit skill reference describe this distinction and the experimental setting.

The original core console logger is unchanged. The pinned TypeScript ESLint package is restored to its original version, with a scoped patched minimatch override; npm audit and OSV both report zero known vulnerabilities. The explicit one-time cross-spawn release-age exception remains in the lockfile; the repository policy itself is unchanged. Expo's iOS fingerprint previously matched before and after its scoped minimatch override; native-device validation remains outstanding.

Copilot AI balanced review requested due to automatic review settings November 5, 2026 04:12
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-12-03T04:25:23.926554Z
We couldn’t complete this review. Comment @codex review to try again.
53539be New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 489867254a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread example/svelte-kit/package.json Resolved

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain for the SvelteKit 3 example upgrade.

No open issues 🎉

What changed in this PR

Upgrades the SvelteKit example to version 3, adapting its configuration and Exceptionless error hooks to the new framework contracts.

Changes:

  • Updates SvelteKit and adapter dependencies, adds compatible cookie resolution, and removes the obsolete override.
  • Moves adapter configuration into Vite and switches to SvelteKit’s new TypeScript configuration.
  • Updates error-hook types and client error handling for the new payload.
File Description
package.json Removes the SvelteKit-specific cookie override.
package-lock.json Records upgraded dependencies and compatible cookie versions.
example/​svelte-kit/​vite.config.js Configures the adapter through the SvelteKit Vite plugin.
example/​svelte-kit/​svelte.config.js Removes the obsolete configuration file.
example/​svelte-kit/​src/​hooks.server.js Updates the server error-hook type import and declaration.
example/​svelte-kit/​src/​hooks.client.js Adapts error reporting and status capture to the new hook payload.
example/​svelte-kit/​package.json Upgrades SvelteKit and its adapter; declares cookie explicitly.
example/​svelte-kit/​jsconfig.json Extends the new $app/tsconfig configuration.

Review effort: Balanced

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

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.

2 participants