Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[client] Always use v13 of create deployment API endpoint #11351

Merged
merged 8 commits into from Apr 10, 2024

Conversation

TooTallNate
Copy link
Member

@TooTallNate TooTallNate commented Mar 29, 2024

Updates @vercel/client to always use the v13 create-deployment endpoint, even when builds is present. This allows for projectSettings.nodeVersion to be passed when builds is present.

Copy link

changeset-bot bot commented Mar 29, 2024

🦋 Changeset detected

Latest commit: 56af103

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

This PR includes changesets to release 2 packages
Name Type
vercel Patch
@vercel/client Minor

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

@TooTallNate TooTallNate closed this Apr 2, 2024
@TooTallNate TooTallNate deleted the create-deployment-v13-always branch April 2, 2024 22:50
@TooTallNate TooTallNate restored the create-deployment-v13-always branch April 9, 2024 21:31
@TooTallNate TooTallNate reopened this Apr 9, 2024
Comment on lines +585 to +587
if (error instanceof Error) {
output.warn(error.message);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

suggestion (soft-blocking): log other values

If for some reason this variable isn't an instance of Error, we should still log it.

Suggested change
if (error instanceof Error) {
output.warn(error.message);
}
if (error instanceof Error) {
output.warn(error.message);
} else {
output.warn(error.toString());
}

@TooTallNate TooTallNate added the pr: automerge Automatically merge the PR when checks pass label Apr 10, 2024
@kodiakhq kodiakhq bot merged commit 627b79f into main Apr 10, 2024
111 checks passed
@kodiakhq kodiakhq bot deleted the create-deployment-v13-always branch April 10, 2024 20:55
TooTallNate added a commit that referenced this pull request Apr 10, 2024
Updates `@vercel/client` to always use the v13 create-deployment endpoint, even when `builds` is present. This allows for `projectSettings.nodeVersion` to be passed when `builds` is present.
EndangeredMassa pushed a commit that referenced this pull request Apr 11, 2024
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@34.0.0

### Major Changes

- Disables promotion of preview deployments
([#11411](#11411))

### Patch Changes

- Always set `projectSettings.nodeVersion` in `vc deploy`
([#11351](#11351))

- [cli] optional override of existing environment variables with --force
([#11348](#11348))

## @vercel/client@13.2.0

### Minor Changes

- Always use v13 of create deployment API endpoint
([#11351](#11351))

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: automerge Automatically merge the PR when checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants