Skip to content

Upgrade SvelteKit example to version 3 - #213

Open
niemyjski wants to merge 1 commit into
mainfrom
feature/sveltekit-3-migration
Open

niemyjski wants to merge 1 commit into
mainfrom
feature/sveltekit-3-migration

Conversation

@niemyjski

Copy link
Copy Markdown
Member

SvelteKit 3 rejects the example's old configuration and changes its error-hook contract. This updates the example, adapter, TypeScript configuration, and hook types, and fixes cookie resolution in the generated server output.

Validation: clean install with lifecycle scripts disabled; full build, 346 tests, lint, Svelte check, and local browser interactions passed. Browser testing did not verify delivery to an Exceptionless server.

Security: npm audit reports 33 affected packages (1 critical, 6 high) and OSV reports inherited advisories in the workspace lockfile. These remain open and are not introduced by this migration. Hosted CI is pending.

Verification and implementation details

The example declares the cookie version required by SvelteKit because its generated server resolves external imports from the example, while Express still requires cookie 0.7. The incompatible SvelteKit-specific override was removed. The grouped dependency PR overlaps this upgrade and will need reconciliation.

The local browser showed the expected message and handled-error states. The sample uses a local test endpoint, so event delivery was not verified. npm audit and osv-scanner both identified existing workspace dependency advisories.

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

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-05T04:14:00.942286Z 4898672 PR opened
ℹ️ 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 on lines +16 to +17
"@sveltejs/adapter-auto": "^8.0.0",
"@sveltejs/kit": "^3.1.0",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Document the SvelteKit 3 setup in the README and SDK skill

This migration changes framework setup and the error-hook contract, but neither example/svelte-kit/README.md nor .agents/skills/exceptionless-javascript/ is updated. Document the SvelteKit 3 requirements and integration changes, including the Vite-based adapter configuration and new hook imports, so developers and agents have guidance matching this example. AGENTS.md explicitly requires relevant documentation and SDK skill updates in the same change when framework setup changes.

AGENTS.md reference: AGENTS.md:L56-L56

Useful? React with 👍 / 👎.

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

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