Repository navigation
Publish the MySQL migrations and restore resetInteractidonsByIds() - #9
Merged
Merged
Conversation
@cuecue/store-mysql only published dist, so apps couldn't run the migrations (the 0.0.45 extra column) from node_modules. The package now ships migrations/, with a README that gives the settings and the db-migrate command an app runs. test/packages.test.js checks that npm pack includes every migration. 0.0.45 renamed Application#resetInteractidonsByIds() to resetInteractionsByIds(), which broke apps that call the old name. It comes back as a deprecated alias that warns once with logger.warn(). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Two problems of 0.0.45 that apps hit when updating (seen on lni-votes).
@cuecue/store-mysqlships its migrations"files": ["dist"]leftmigrations/out of the npm package, so apps couldn't run20261117120000-extra.js(theextraJSON column) fromnode_modules, and the 0.0.45 changelog's "db-migrate upwith the package's migrations" didn't work.filesis now["dist", "migrations"].npm pack --dry-run -w @cuecue/store-mysqllists the 4 migrations andconfig.json;test/packages.test.jschecks that every file ofmigrations/and the README are packed.New
packages/store-mysql/README.md: settings (options andMYSQL_*variables) and migrations. An app runs:Checked locally: packed the package, installed the tarball in an empty app with a
.env(MYSQL_*), ran that command against a temporary MySQL: the 4 migrations ran andcues.extrais a JSON column.resetInteractidonsByIds()is back, deprecated0.0.45 renamed it to
resetInteractionsByIds(); lni-votes called the old name twice. The alias calls the new method and warns once per app withlogger.warn()(skipped if the logger has nowarn). Tested inApplication.test.js.Release
Two patch changesets. Merging the "Version packages" PR that follows publishes 0.0.46.
npm run format:check,npm run lint,npm run build,npm testpass locally (144 passed, 6 skipped: MySQL/Pingpong).🤖 Generated with Claude Code