Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github Feb 20, 2025

Bumps @vercel/flags from 2.6.3 to 3.1.1.

Release notes

Sourced from @​vercel/flags's releases.

@​vercel/flags@​3.1.1

Patch Changes

  • 6955b68: emit reduced console info when falling back to defaultValue during development
  • cf532da: Update package.json and tsup.config.js for flags package

@​vercel/flags@​3.1.0

Minor Changes

  • 76feb16: Add mergeProviderData function to @vercel/flags.

    This function allows merging ProviderData from multiple sources.

    This is handy when you declare feature flags in code, and want to extend those definitions with data loaded from your feature flag provider.

    import { verifyAccess, mergeProviderData, type ApiData } from '@vercel/flags';
    import { getProviderData } from '@vercel/flags/next';
    import { NextResponse, type NextRequest } from 'next/server';
    import { getProviderData as getStatsigProviderData } from '@flags-sdk/statsig';
    import * as flagsA from '../../../../flags-a'; // your feature flags file(s)
    import * as flagsB from '../../../../flags-b'; // your feature flags file(s)
    export async function GET(request: NextRequest) {
    const access = await verifyAccess(request.headers.get('Authorization'));
    if (!access) return NextResponse.json(null, { status: 401 });
    const providerData = await mergeProviderData([
    // expose flags declared in code first
    getProviderData({ ...flagsA, ...flagsB }),
    // then enhance them with metadata from your flag provider
    getStatsigProviderData({ consoleApiKey: '', projectId: '' }),
    ]);
    return NextResponse.json<ApiData>(providerData);
    }

Patch Changes

  • 2713ea7: Handle undefined values

    • fix: Fall back to defaultValue when a feature flag returns undefined
    • fix: Throw error when a flag resolves to undefined and no defaultValue is present

    The value undefined can not be serialized so feature flags should never resolve to undefined. Use null instead.

    Fix exports

    • fix: Export Identify and Decide types

... (truncated)

Commits

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Feb 20, 2025
@vercel
Copy link

vercel bot commented Feb 20, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
openstudio-beta 🛑 Canceled (Inspect) Mar 14, 2025 9:58am
openstudio-beta-api 🛑 Canceled (Inspect) Mar 14, 2025 9:58am
openstudio-beta-landing 🛑 Canceled (Inspect) Mar 14, 2025 9:58am

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/vercel/flags-3.1.1 branch from 06557ff to 84e680a Compare February 21, 2025 11:25
@vercel vercel bot temporarily deployed to Preview – openstudio-beta February 21, 2025 11:32 Inactive
@vercel vercel bot temporarily deployed to Preview – openstudio-beta-landing February 21, 2025 11:33 Inactive
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/vercel/flags-3.1.1 branch from 84e680a to a41b9b3 Compare March 1, 2025 15:00
@vercel vercel bot temporarily deployed to Preview – openstudio-beta March 1, 2025 15:08 Inactive
@vercel vercel bot temporarily deployed to Preview – openstudio-beta-api March 1, 2025 15:08 Inactive
@vercel vercel bot temporarily deployed to Preview – openstudio-beta-landing March 1, 2025 15:09 Inactive
Bumps [@vercel/flags](https://github.com/vercel/flags) from 2.6.3 to 3.1.1.
- [Release notes](https://github.com/vercel/flags/releases)
- [Commits](https://github.com/vercel/flags/commits/@vercel/flags@3.1.1)

---
updated-dependencies:
- dependency-name: "@vercel/flags"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/vercel/flags-3.1.1 branch from a41b9b3 to cedcd11 Compare March 14, 2025 09:49
@vercel vercel bot temporarily deployed to Preview – openstudio-beta March 14, 2025 09:57 Inactive
@vercel vercel bot temporarily deployed to Preview – openstudio-beta-api March 14, 2025 09:58 Inactive
@vercel vercel bot temporarily deployed to Preview – openstudio-beta-landing March 14, 2025 09:58 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.