You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This pull request includes various updates to configuration files, build scripts, and dependencies. The most important changes are grouped into themes such as build system updates, dependency updates, and configuration updates.
This PR also significantly adds to the unit tests, increasing code coverage by ~40%.
Build System Updates:
Replaced Rollup with Vite for building the project and updated related scripts in package.json.
Updated the run-tests.yml workflow to use Bun instead of npm for installing dependencies and running tests.
Dependency Updates:
Updated dependencies in package.json to their latest versions and switched from Jest to Vitest for testing.
Configuration Updates:
Migrated ESLint config file from .eslintrc.js to eslint.config.js and updated the configuration format to the v9 format.
Updated .github/codecov.yml to adjust the coverage range and ignored files .
These changes aim to modernize the build and testing processes, update dependencies, and improve configuration management.
Refactored Type Declarations in AlpineRay.ts
The code has been updated to allow the use of both Window types and null, improving code flexibility and safety.
Enhanced Safety in AlpineRayMagicMethod.ts
The code is now safer as it can handle undefined values better. This means that the program can now potentially avoid unexpected crashes.
Simplified 'ray' function in AlpineRay.ts
The 'ray' function code has been condensed, making it easier to read and manage.
Introduced a New Global Declaration File 'globals.d.ts'
Introduced a file called 'globals.d.ts' which includes type definitions related to the global Window object. This will make the code more consistent and easier to work with.
Improved Type Handling in 'utils.ts'
Refactored code for specific types, such as Window or null, which makes it more clear about what type of data the functions in this file are working with. Added detailed comments to explain what each function does.
Streamlined Version Comparison Logic
Improved the way version numbers are compared in the code by simplifying array handling, making the code better to understand and manage.
Enhanced Null-checks
The system is now more robust in handling 'null' values. This means functions can handle missing information more gracefully and reduce the risk of crashes.
Removed Redundant Comments and To-dos
The removal of unneeded comments and To-dos makes the code cleaner and easier to navigate.
Trimmed Unnecessary Imports
Code is streamlined by removing ineffective imports, accelerating the speed of the application.
❌ Patch coverage is 92.30769% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 74.86%. Comparing base (8fd9f20) to head (71a7ca9). ⚠️ Report is 44 commits behind head on main.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request includes various updates to configuration files, build scripts, and dependencies. The most important changes are grouped into themes such as build system updates, dependency updates, and configuration updates.
This PR also significantly adds to the unit tests, increasing code coverage by ~40%.
Build System Updates:
package.json.run-tests.ymlworkflow to use Bun instead of npm for installing dependencies and running tests.Dependency Updates:
package.jsonto their latest versions and switched from Jest to Vitest for testing.Configuration Updates:
.eslintrc.jstoeslint.config.jsand updated the configuration format to the v9 format..github/codecov.ymlto adjust the coverage range and ignored files .These changes aim to modernize the build and testing processes, update dependencies, and improve configuration management.