Closed minetoblend closed 8 months ago
The update introduces dynamic version handling for beatmaps, streamlines the editor room service, enhances command context flexibility, and introduces a new NestJS module. By dynamically determining versions, refining service dependencies, and optimizing command handling, it simplifies development and maintenance. The introduction of BeatmapMigrator
and adjustments in beatmap services underscore a shift towards more adaptable and scalable codebase management.
File Path | Change Summary |
---|---|
.../src/protocol/command.ts |
Changed version property from readonly to public in CommandContext . |
.../src/beatmap/beatmap-export.service.ts .../src/beatmap/beatmap-import.service.ts |
Dynamically determines version based on migrations in BeatmapMigrator . |
.../src/beatmap/beatmap-migrator.ts .../src/beatmap/beatmap.module.ts |
Introduced BeatmapMigrator class; added to BeatmapModule imports and exports. |
.../src/beatmap/beatmap-snapshot.service.ts |
Added method to create a snapshot from a BeatmapEntity and Beatmap object. |
.../src/editor/editor-room.module.ts .../src/editor/editor-room.service.ts .../src/editor/editor-room.ts .../src/editor/handlers/beatmapHandler.ts |
Refactored editor room service, constructor, properties, and command handling for efficiency. Introduced EditorRoomModule . |
🐰✨
In the land of code, where changes abound,
A rabbit hopped, leaving updates all around.
With every leap, a new version took flight,
Streamlining services, making them just right.
"To dynamic versions and simpler days!" it cheered,
As into the sunset, the CodeRabbit disappeared.
🌟🐾
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
EditorRoomModule
for better organization and management of editor rooms.EditorRoomService
andEditorRoom
for more efficient room management and initialization, including snapshot migration and room entity setup.BeatmapHandler
for more efficient command handling.Refactor
version
property access level inCommandContext
for broader usability.BeatmapImportService
to dynamically assign version numbers, aligning with the new versioning strategy.BeatmapMigrator
intoBeatmapModule
, streamlining beatmap migration processes.Chores