[pull] main from lynx-family:main#352
Merged
pull[bot] merged 2 commits intocolinaaa:mainfrom Sep 23, 2025
Merged
Conversation
## Summary - rely on the cors option type exported by `@rsbuild/core` instead of duplicating local helpers in the Rspeedy server config - stop re-exporting the removed helper types from the package entry point and refresh the published API report - update validation snapshots to reflect the refined type strings emitted by Typia when invalid CORS values are supplied ## Testing - pnpm biome check - pnpm dprint fmt *(fails: dockerfile plugin download is blocked in this environment)* ------ https://chatgpt.com/codex/tasks/task_e_68d12ccc8ca4832ea4dec7be287f21ef <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - New Features - Added server.cors configuration support for the dev/preview server, including boolean, object-based options (e.g., origin, credentials), and function-based origin callbacks. Integrated into Rsbuild server settings. - Documentation - Documented CORS configuration with examples to guide setup. - Tests - Expanded validation and type tests for server.cors, covering valid (true/false, string/RegExp origin, function) and invalid cases (null, number, incorrect types). <!-- end of auto-generated comment: release notes by coderabbit.ai -->
<!-- Thank you for submitting a pull request! We appreciate the time and effort you have invested in making these changes. Please ensure that you provide enough information to allow others to review your pull request. Upon submission, your pull request will be automatically assigned with reviewers. If you want to learn more about contributing to this project, please visit: https://github.com/lynx-family/lynx-stack/blob/main/CONTRIBUTING.md. --> <!-- The AI summary below will be auto-generated - feel free to replace it with your own. --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - New Features - Introduced a Node.js API bridge for the React transform, enabling configuration from JavaScript (e.g., target selection, component package settings, optional dark mode, and component element controls). - Adds a visitor wrapper to improve interoperability without changing existing behavior. - Refactor - Reorganized internal modules and updated import paths to use the new bridge, with no breaking changes. - Chores - Added a minimal changeset entry. - Updated internal dependencies to support the new compatibility layer. <!-- end of auto-generated comment: release notes by coderabbit.ai --> ## Checklist <!--- Check and mark with an "x" --> - [ ] Tests updated (or not required). - [ ] Documentation updated (or not required). - [ ] Changeset added, and when a BREAKING CHANGE occurs, it needs to be clearly marked (or not required).
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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )