Skip to content

fix: pin package.json dependencies instead of using latest (#48) - #49

Open
erhnysr wants to merge 1 commit into
circlefin:masterfrom
erhnysr:fix/pin-package-versions
Open

fix: pin package.json dependencies instead of using latest (#48)#49
erhnysr wants to merge 1 commit into
circlefin:masterfrom
erhnysr:fix/pin-package-versions

Conversation

@erhnysr

@erhnysr erhnysr commented Jul 26, 2026

Copy link
Copy Markdown

Problem

package.json used the mutable latest tag for three production dependencies:

"@supabase/ssr": "latest",
"@supabase/supabase-js": "latest",
"next": "latest",

latest makes builds non-reproducible: the installed version depends on the npm registry state at install time rather than on the repository revision, so two checkouts of the same commit can resolve to different (and potentially breaking) versions.

Fix

Pins each of the three to the exact version already recorded in package-lock.json as the currently resolved version:

Package Was Now
@supabase/ssr latest 0.8.0
@supabase/supabase-js latest 2.93.3
next latest 16.1.6

No behavior change — these are the versions the lockfile already resolves to today. The only effect is that builds become deterministic. The matching spec strings in package-lock.json are updated so the manifest and lockfile stay in sync.

Closes #48

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.

Build: Replace mutable latest dependencies with explicit versions

1 participant