Skip to content

Conversation

@nielsenko
Copy link
Collaborator

@nielsenko nielsenko commented Dec 9, 2025

Description

Restructures the repository into a multi-package workspace.

  • relic_core: Platform-agnostic core framework (body, context, headers, router, middleware)
  • relic_io: dart:io adapter, static file handler, and logger
  • relic: Main package that re-exports relic_core and relic_io
  • benchmark: Router benchmarks (moved to packages/)
  • examples: Example applications (moved to packages/)

Other changes:

  • Added workspace configuration using Dart's native workspace feature
  • Updated CI workflows for multi-package structure
  • Publish workflow now publishes packages in dependency order (relic_core → relic_io → relic)
  • Added symlinks for CHANGELOG.md, LICENSE, and README.md in published packages

Closes: #275

Pre-Launch Checklist

  • This update focuses on a single feature or bug fix.
  • I have read and followed the Dart Style Guide and formatted the code using dart format.
  • I have referenced at least one issue this PR fixes or is related to.
  • I have updated/added relevant documentation (doc comments with ///), ensuring consistency with existing project documentation.
  • I have added new tests to verify the changes.
  • All existing and new tests pass successfully.
  • I have documented any breaking changes below.

Breaking Changes

  • Includes breaking changes.
  • No breaking changes.

Breaking changes:

  • Users importing internal paths like package:relic/src/... will need to update imports
  • package:relic/io_adapter.dart is now package:relic_io/relic_io.dart

Additional Notes

This is a structural refactor only. No functional changes to the framework behavior. Users importing from package:relic/relic.dart should not need any code changes.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 9, 2025

Important

Review skipped

Auto reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov
Copy link

codecov bot commented Dec 9, 2025

Codecov Report

❌ Patch coverage is 0% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 27.95%. Comparing base (8898624) to head (7c2cc98).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
packages/relic_core/lib/src/logger/logger.dart 0.00% 13 Missing ⚠️

❗ There is a different number of reports uploaded between BASE (8898624) and HEAD (7c2cc98). Click for more details.

HEAD has 66 uploads less than BASE
Flag BASE (8898624) HEAD (7c2cc98)
67 1
Additional details and impacted files
@@             Coverage Diff             @@
##             main     #305       +/-   ##
===========================================
- Coverage   91.97%   27.95%   -64.03%     
===========================================
  Files          97       87       -10     
  Lines        3728     3291      -437     
  Branches     1904     1735      -169     
===========================================
- Hits         3429      920     -2509     
- Misses        299     2371     +2072     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@nielsenko nielsenko force-pushed the restructure-repo branch 2 times, most recently from cd07d89 to 3c44e45 Compare December 9, 2025 15:12
@nielsenko nielsenko marked this pull request as ready for review December 9, 2025 15:52
@nielsenko nielsenko marked this pull request as draft December 9, 2025 15:52
@nielsenko nielsenko force-pushed the restructure-repo branch 5 times, most recently from 0144273 to 1285f38 Compare December 14, 2025 12:43
@nielsenko nielsenko force-pushed the restructure-repo branch 2 times, most recently from 37ef978 to 19b14d4 Compare January 14, 2026 10:49
@nielsenko nielsenko self-assigned this Jan 14, 2026
Move from flat single-package structure to multi-package monorepo:
- packages/relic_core: Core framework (platform-agnostic)
- packages/relic_io: dart:io adapter and static file handler
- packages/relic: Main package that re-exports core and io
- packages/benchmark: Router benchmarks
- packages/examples: Example applications

Uses Dart workspace feature with melos for package management.
@nielsenko
Copy link
Collaborator Author

@CodeRabbit review

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 14, 2026

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@nielsenko nielsenko marked this pull request as ready for review January 14, 2026 11:19
@nielsenko
Copy link
Collaborator Author

@marcelomendoncasoares Disregard the coverage check. Codecov doesn't track this restructure correctly.

Copy link
Collaborator

@marcelomendoncasoares marcelomendoncasoares left a comment

Choose a reason for hiding this comment

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

Changes look good to me! Only two small suggestions/discussions about the best way to deal with documentation for the packages.

Copy link
Collaborator

@marcelomendoncasoares marcelomendoncasoares left a comment

Choose a reason for hiding this comment

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

Postponing the CHANGELOG and REDME separation, changes LGTM! 🚀

As a side note from the discussion, I would only suggest explaining the role of relic_core and relic_io on the README, so that contributors can easily know where is more appropriate for each kind of change.

@nielsenko nielsenko merged commit 4026b89 into serverpod:main Jan 15, 2026
53 of 56 checks passed
Copilot AI pushed a commit that referenced this pull request Jan 15, 2026
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.

Reorganize codebase into multi-package mono-repo

2 participants