Skip to content

chore(deps): pin prettier to an exact version - #26

Merged
Bccorb merged 1 commit into
mainfrom
chore/pin-prettier
Jul 31, 2026
Merged

chore(deps): pin prettier to an exact version#26
Bccorb merged 1 commit into
mainfrom
chore/pin-prettier

Conversation

@Bccorb

@Bccorb Bccorb commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #24, which fixed the symptom. This removes the cause.

What actually went wrong

prettier was ranged ^3.8.1. 3.9.6 treats code fences inside markdown differently, so when the lockfile moved to it, .github/ISSUE_TEMPLATE/ started failing format:check with nothing in the repository having changed. It surfaced as a CI failure on #23, a PR that touched only src/schemas/.

Worth being precise about the failure mode: CI was never nondeterministic. It runs npm ci against a committed lockfile. The hazard is that a local npm install or a dependency bump moves the lockfile, and a formatting-rule change then arrives as a CI failure on the next unrelated PR rather than as a diff someone reviewed.

The change

Pinned at 3.9.6, which is what the lockfile already resolved to. Nothing reformats. The only diff is the declared range and the matching lockfile entry.

An upgrade from here is a deliberate one-line change, and whatever reformatting it causes lands in the same diff as the version bump, where it can be reviewed on purpose.

No changeset: tooling only, and it does not touch the published package. Same call as #24.

Verification

npm run format:check, npm run lint, npm run typecheck, npm test (159 passing), npm run build all clean.

Not done here

Two sibling repos carry the same floating range and the same latent hazard:

Repo Range Currently resolves to
seamless-auth-api ^3.8.1 3.9.6
seamless-auth-react ^3.6.2 3.9.6

Both pass format:check today, so neither is broken, but both can go the way this one did. Left out of this PR because they are separate repositories rather than because they are fine. Happy to open the same change in each.

prettier was ranged ^3.8.1. That range is what let the format check start
failing on .github/ISSUE_TEMPLATE without anything in the repository changing:
3.9.6 treats code fences inside markdown differently, and the formatting rules
moved under the repo when the lockfile did.

CI runs npm ci, so it was never nondeterministic. The hazard is that a local
npm install or a dependency bump moves the lockfile, and a formatting rule
change arrives as a CI failure on the next unrelated pull request rather than
as a diff anyone reviewed.

Pinned at 3.9.6, which is what the lockfile already resolved to, so nothing
reformats here. An upgrade now shows up as a deliberate one-line change with
whatever reformatting it causes in the same diff.

No changeset: this is tooling only and does not touch the published package.

Verified with npm run format:check, npm run lint, npm run typecheck,
npm test (159 passing), and npm run build.
@Bccorb
Bccorb merged commit e964687 into main Jul 31, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant