Skip to content

[cli][build-utils] Rename variants to flags - #11121

Merged
kodiakhq[bot] merged 36 commits into
mainfrom
vercel-rename-variants-to-flags
Mar 8, 2024
Merged

kodiakhq[bot] merged 36 commits into
mainfrom
vercel-rename-variants-to-flags

Conversation

@AndyBitz

@AndyBitz AndyBitz commented Feb 3, 2024

Copy link
Copy Markdown
Contributor
  • Removes all the legacy flags
  • Renames the new variants to flags

Neither the legacy flags, nor the new variants were exposed to anyone, except for the type in build-utils, so there shouldn't be any issues removing/renaming them.

@changeset-bot

changeset-bot Bot commented Feb 3, 2024 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: d407ed0

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

This PR includes changesets to release 8 packages
Name Type
@vercel/build-utils Patch
@vercel/next Patch
vercel Patch
@vercel/client Patch
@vercel/gatsby-plugin-vercel-builder Patch
@vercel/node Patch
@vercel/static-build Patch
@vercel-internals/types 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

Comment thread packages/build-utils/src/types.ts Resolved
dferber90
dferber90 previously approved these changes Feb 5, 2024
EndangeredMassa
EndangeredMassa previously approved these changes Mar 5, 2024
});
});

it('should create symlinks for duplicate references to Lambda / EdgeFunction instances', async () => {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I moved this test into the describe block, since I assume this was the reason it failed sometimes.
Probably because the beforeEach in the describe block resets the env variable, which caused this test to appear as if it was running within vercel build, causing a failure.

metadata?: Record<string, unknown>;
}
>;
export type VariantsManifest = {

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.

Should this be called FlagsManifest

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@dferber90 that will depend on what Next.js will ultimately call it. Kept it like this to have a differnce between Next and the rest for now

@kodiakhq
kodiakhq Bot merged commit 908e783 into main Mar 8, 2024
@kodiakhq
kodiakhq Bot deleted the vercel-rename-variants-to-flags branch March 8, 2024 16:06
EndangeredMassa pushed a commit that referenced this pull request Mar 8, 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/[email protected]

### Minor Changes

- Remove `VERCEL_ENABLE_NPM_DEFAULT` env var check
([#11242](#11242))

### Patch Changes

- Rename variants to flags and remove legacy flags
([#11121](#11121))

## [email protected]

### Patch Changes

- Rename variants to flags and remove legacy flags
([#11121](#11121))

- fix vc with root dir issues
([#11243](#11243))

- Updated dependencies
\[[`908e7837d`](908e783),
[`5e3656ec1`](5e3656e),
[`a53d1b0d3`](a53d1b0)]:
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`908e7837d`](908e783),
[`5e3656ec1`](5e3656e)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`908e7837d`](908e783),
[`5e3656ec1`](5e3656e)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Rename variants to flags and remove legacy flags
([#11121](#11121))

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`908e7837d`](908e783),
[`5e3656ec1`](5e3656e)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Update `@remix-run/dev` fork to v2.8.1
([#11241](#11241))

## @vercel/[email protected]

### Patch Changes

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

## @vercel-internals/[email protected]

### Patch Changes

- Updated dependencies
\[[`908e7837d`](908e783),
[`5e3656ec1`](5e3656e)]:
    -   @vercel/[email protected]

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

This branch was successfully deployed

1 active deployment
Preview — d407ed0c Deployed Mar 8, 2024 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants