Skip to content

feat: Export everything under a single module name#176

Merged
webJose merged 2 commits intomainfrom
JP/Exports
Dec 10, 2025
Merged

feat: Export everything under a single module name#176
webJose merged 2 commits intomainfrom
JP/Exports

Conversation

@webJose
Copy link
Contributor

@webJose webJose commented Dec 10, 2025

This PR repeats all exports from the @svelte-router/core/kernel sub-module in the main module, @svelte-router/core. This is to allow externalizing the entire library in one go when doing micro-frontends.

From now on, don't consume the submodule @svelte-router/core/kernel.

@github-actions
Copy link

github-actions bot commented Dec 10, 2025

🚀 Preview deployment ready! (2 deployments)

📍 Preview URL: https://preview-176.svelte-router.pages.dev

This preview updates automatically when you push new commits to this PR.

@webJose webJose requested a review from Copilot December 10, 2025 02:29
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR consolidates all exports from the @svelte-router/core/kernel sub-module into the main @svelte-router/core module to simplify library consumption in micro-frontend scenarios where the entire library needs to be externalized. The sub-module is deprecated as of v1.0.4 and will be removed in v2.0.

Key changes:

  • Re-exported all kernel module functions and classes through the main module index
  • Updated all documentation and code examples to import from @svelte-router/core instead of @svelte-router/core/kernel
  • Added deprecation warnings in API documentation about the kernel sub-module

Reviewed changes

Copilot reviewed 13 out of 14 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/lib/index.ts Added exports for 11 items previously only available from kernel sub-module
src/lib/index.test.ts Updated test to verify all newly exported items are accessible from main module
playground/src/App.svelte Consolidated imports from both modules into single import from main module
src/routes/docs/routing-with-javascript/+page.md Updated import examples to use main module instead of kernel sub-module
src/routes/docs/routing-with-components/+page.md Consolidated imports in component examples
src/routes/docs/redirecting/+page.md Updated imports for calculateHref and calculateMultiHashFragment
src/routes/docs/reactive-data/+page.md Combined type import with component imports
src/routes/docs/navigating-with-javascript/+page.md Reformatted imports as multi-line single import statement
src/routes/docs/library-modes/+page.md Updated isConformantState import source
src/routes/api/kit/functions/+page.md Removed redundant import source annotations
src/routes/api/core/objects-and-classes/+page.md Added deprecation warning and removed kernel sub-module references
src/routes/api/core/functions/+page.md Added deprecation warning and removed import annotations
src/routes/docs/loc/+page.md Added version history entries for 1.0.2, 1.0.3, and 1.0.4

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@webJose webJose merged commit 60e5afe into main Dec 10, 2025
2 checks passed
@webJose webJose deleted the JP/Exports branch December 10, 2025 02:31
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