Skip to content

[build-utils] support pnpm@10 - #12852

Merged
onsclom merged 6 commits into
mainfrom
smassa/support-pnpm-10
Feb 13, 2025
Merged

onsclom merged 6 commits into
mainfrom
smassa/support-pnpm-10

Conversation

@EndangeredMassa

@EndangeredMassa EndangeredMassa commented Jan 13, 2025 •

Copy link
Copy Markdown
Contributor

Updates build-utils to use pnpm@10 for v9 pnpm-lock.yaml lockfiles instead of pnpm@9. v7 pnpm lock files should still use pnpm@9.

@changeset-bot

changeset-bot Bot commented Jan 13, 2025 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 83ec02b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages
Name Type
@vercel/build-utils Major
vercel Patch
@vercel/client Patch
@vercel/gatsby-plugin-vercel-builder Patch
@vercel/node Patch
@vercel/static-build Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

},
{
name: 'should set path if pnpm 8 is detected',
name: 'should set path if pnpm 9 is detected',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was incorrectly named before. Fixed naming now since lockfile v7.0 should setup path for pnpm@9.

@onsclom

onsclom commented Feb 11, 2025

Copy link
Copy Markdown
Contributor

Detected pnpm-lock.yaml version 9 generated by [email protected]

Remaining test failures are projects trying to use pnpm@10, and it is not yet rolled out in the build container.

@onsclom
onsclom marked this pull request as ready for review February 11, 2025 22:09
@onsclom
onsclom added this pull request to the merge queue Feb 13, 2025
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Feb 13, 2025
@onsclom
onsclom added this pull request to the merge queue Feb 13, 2025
Merged via the queue into main with commit e4972fa Feb 13, 2025
@onsclom
onsclom deleted the smassa/support-pnpm-10 branch February 13, 2025 17:28
onsclom pushed a commit that referenced this pull request Feb 13, 2025
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @vercel/[email protected]

### Major Changes

- Detect v9 pnpm lockfiles as pnpm 10 generated
([#12852](#12852))

## [email protected]

### Patch Changes

- Updated dependencies
\[[`e4972fa9adbecd19687aff71ec22b46ce0f3a4fb`](e4972fa)]:
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`e4972fa9adbecd19687aff71ec22b46ce0f3a4fb`](e4972fa)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`e4972fa9adbecd19687aff71ec22b46ce0f3a4fb`](e4972fa)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`e4972fa9adbecd19687aff71ec22b46ce0f3a4fb`](e4972fa)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/[email protected]

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
onsclom added a commit that referenced this pull request Feb 20, 2025
Reintroduces #12852, but with a new
strategy:
```
if `pnpm-lock.yaml` v9 is found:
	if project was created before 2025-02-24T20:00:00Z:
		use pnpm 9
	else:
		use pnpm 10
```
This will avoid breaking old projects, and will add zero configuration
pnpm 10 support for new projects.

---------

Co-authored-by: Sean Massa <[email protected]>
QuietCraftsmanship pushed a commit to QuietCraftsmanship/Vercel that referenced this pull request Jul 6, 2025
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @vercel/[email protected]

### Major Changes

- Detect v9 pnpm lockfiles as pnpm 10 generated
([#12852](vercel/vercel#12852))

## [email protected]

### Patch Changes

- Updated dependencies
\[[`566ba4ee383420d4edc900521749d72b2f129903`](vercel/vercel@566ba4e)]:
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`566ba4ee383420d4edc900521749d72b2f129903`](vercel/vercel@566ba4e)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`566ba4ee383420d4edc900521749d72b2f129903`](vercel/vercel@566ba4e)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`566ba4ee383420d4edc900521749d72b2f129903`](vercel/vercel@566ba4e)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/[email protected]

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
QuietCraftsmanship pushed a commit to QuietCraftsmanship/Vercel that referenced this pull request Jul 6, 2025
Reintroduces vercel/vercel#12852, but with a new
strategy:
```
if `pnpm-lock.yaml` v9 is found:
	if project was created before 2025-02-24T20:00:00Z:
		use pnpm 9
	else:
		use pnpm 10
```
This will avoid breaking old projects, and will add zero configuration
pnpm 10 support for new projects.

---------

Co-authored-by: Sean Massa <[email protected]>

This branch was successfully deployed

1 active deployment
Preview — 83ec02b9 Deployed Feb 11, 2025 by vercel[bot]
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.

2 participants