Sort migration output by filename and bump version to 0.11.2#4
Merged
Conversation
The build-db-migrations command printed the built migrations in Bun's bundler output order, which is not guaranteed to be sorted. Since migrations apply in lexicographic filename order, the unsorted summary could misrepresent the actual apply order. Sort a copy of the build outputs by filename before printing so the summary is deterministic and reflects apply order. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012Y2mvzwhEWcWZxiHMTsrW8
Bump the package version following the addition of sorted CLI migration output, and update the README body copy so the documented npm package / ws-proxy image version matches package.json. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012Y2mvzwhEWcWZxiHMTsrW8
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
This release sorts the migration summary output by filename to match the order in which migrations are applied, and bumps the package version to 0.11.2.
Changes
buildDbMigrationsto sort the printed migration summary by filename (usingbasenameandlocaleCompare). This ensures the console output reflects the actual order migrations are applied in, improving clarity for users.package.jsonand corresponding Docker image reference inREADME.md.Implementation Details
The migration outputs are now sorted before printing by creating a shallow copy of
migrationsResult.outputsand sorting it by the basename of each migration's path. This preserves the original array order while displaying migrations in the order they execute.https://claude.ai/code/session_012Y2mvzwhEWcWZxiHMTsrW8