Skip to content

Commit 952f053

Browse files
authored
Add svelte kit routing provider (#632)
* feat: ✨ create new svelte-kit routing provider * docs: 📝 add documentation * add unit tests * test: 🧪 add svelte-kit end to end tests * refactor: ♻️ refactor resolveRoute to return the current route * test: ✅ use SPA mode for dynamic routes * refactor: ♻️ use defaultRouteResolver instead of / as fallback * pass initialRoute to plugin * skip tests on browsers that don't support ES Modules * test: add svelte-kit package to change aware build script * update README
1 parent 463e34a commit 952f053

33 files changed

+1913
-27
lines changed

.buildkite/scripts/packages.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"packages/angular",
1313
"packages/react-router",
1414
"packages/vue",
15-
"packages/plugin-react-performance"
15+
"packages/plugin-react-performance",
16+
"packages/svelte-kit"
1617
]
1718
},
1819
{

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
### Added
66

77
- (core) Added `onSpanStart` callbacks config option to allow spans to be inspected and modified on creation. [#631](https://github.com/bugsnag/bugsnag-js-performance/pull/631)
8+
- (svelte-kit-performance) Added new routing provider for instrumenting route change spans with [SvelteKit](https://svelte.dev/docs/kit/introduction) [#632](https://github.com/bugsnag/bugsnag-js-performance/pull/632)
89

910
## [v2.13.0] (2025-05-15)
1011

jest.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ module.exports = {
6969
testMatch: ['<rootDir>/packages/react-router/**/*.test.ts'],
7070
...defaultModuleConfig
7171
},
72+
{
73+
displayName: 'svelte-kit',
74+
testMatch: ['<rootDir>/packages/svelte-kit/**/*.test.ts'],
75+
...defaultModuleConfig
76+
},
7277
{
7378
displayName: 'plugin-react-performance',
7479
testEnvironment: 'jsdom',

0 commit comments

Comments
 (0)