Skip to content

[pull] main from lynx-family:main#352

Merged
pull[bot] merged 2 commits intocolinaaa:mainfrom
lynx-family:main
Sep 23, 2025
Merged

[pull] main from lynx-family:main#352
pull[bot] merged 2 commits intocolinaaa:mainfrom
lynx-family:main

Conversation

@pull
Copy link

@pull pull bot commented Sep 23, 2025

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 : )

colinaaa and others added 2 commits September 23, 2025 11:39
## 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).
@pull pull bot locked and limited conversation to collaborators Sep 23, 2025
@pull pull bot requested a review from colinaaa as a code owner September 23, 2025 09:37
@pull pull bot added the ⤵️ pull label Sep 23, 2025
@pull pull bot merged commit 69e0dc4 into colinaaa:main Sep 23, 2025
1 of 9 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants