Description
sql-formatter
released a fix for handling the UUID type last week. The fix is good, but the version update silently broke our build, because the checked-in SQL files were no longer formatted correctly.
We expect a formatter’s output not to change as long as we don’t update its version. But here, the formatter’s output changed silently, breaking our build, and leaving us with no clue as to why it happened.
This happened because the sql-formatter
dependency accepts any new version with the same major version. We can debate whether sql-formatter
shouldn’t have marked its release as a breaking change by increasing the major version. Nevertheless, we think that this plugin should pin the version of sql-formatter
to ensure that the output never changes without a version update.