Skip to content

Conversation

@webJose
Copy link
Contributor

@webJose webJose commented Sep 11, 2025

Fixes #63.

@webJose webJose requested a review from Copilot September 11, 2025 03:56
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 adds the initFull() function to provide a more explicit way to initialize the routing library with full features, replacing the previous options.full flag approach.

  • Moves initialization logic from index.ts to a dedicated init.ts file
  • Adds comprehensive test coverage for both init() and initFull() functions
  • Updates type definitions and documentation references to use the new initFull() function

Reviewed Changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/lib/init.ts New file containing init() and initFull() functions with shared internal logic
src/lib/init.test.ts Comprehensive test suite for both initialization functions
src/lib/index.ts Refactored to export from init.ts instead of containing initialization logic
src/lib/types.ts Moved type definitions from other files and updated documentation references
src/lib/core/options.ts Removed full option from routing options
src/testing/test-utils.ts Updated import to consolidate type imports
package.json Minor URL correction for repository field

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@webJose webJose merged commit 8c1946d into main Sep 11, 2025
1 check passed
@webJose webJose deleted the JP/initFull branch September 11, 2025 04:25
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.

Create the initFull() function to initialize in Full library mode in order to improve tree-shaking

2 participants