mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
### What does this PR do? Sometimes packages will use very large numbers exceeding max u32 for major/minor/patch (usually patch). This pr changes each core number in bun to u64. Because we serialize package information to disk for the binary lockfile and package manifests, this pr bumps the version of each. We don't need to change anything other than the version for serialized package manifests because they will invalidate and save the new version. For old binary lockfiles, this pr adds logic for migrating to the new version. Even if there are no changes, migrating will always save the new lockfile. Unfortunately means there will be a one time invisible diff for binary lockfile users, but this is better than installs failing to work. fixes #22881 fixes #21793 fixes #16041 fixes #22891 resolves BUN-7MX, BUN-R4Q, BUN-WRB ### How did you verify your code works? Manually, and added a test for migrating from an older binary lockfile. --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2.9 KiB
Executable File
2.9 KiB
Executable File