refactor: Improve the code separation (#109)

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Marcelo Mendonça Soares 2026-08-07 13:01:29 -03:00 • committed by GitHub
commit 1ddfef2988
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -178,7 +178,6 @@ The package is functionally in a production-ready state, but some APIs need to i
- **Require that all foreign-key relations are declared deferrable**. Because the package does not store a copy of the data with the metadata, there are some scenarios in which the stored data might violate the causal order of the foreign-key constraints and a merge can fail irreversibly. To prevent this, all foreign-key constraints must be deferrable, which will be enabled by Serverpod's issue #5338.
- **Rename the `scope` name for data isolation to `space`**. This is a small refactor to avoid confusion with the `scope` keyword used in the Serverpod Auth modules. Using `space` is also clearer for usage on an application level.
- **Reorganize the package structure to facilitate the review**. The package is currently organized in a way that does not facilitate the review process. The `recorder.dart` file is extended through part files, sharing a too many private properties and methods. The resolver must be split into smaller, scoped files, as well as its unique and foreign-key resolver utils.
### Post-integration UX improvements