Skip to content

Commit 422435c

Browse files
authored
rename (#68)
* @vercel-flags » flags * update lockfile * fix name
1 parent 6a05c04 commit 422435c

File tree

83 files changed

+162
-174
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+162
-174
lines changed

examples/snippets/app/.well-known/vercel/flags/route.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { NextResponse, type NextRequest } from 'next/server';
2-
import { verifyAccess, type ApiData } from '@vercel/flags';
3-
import { getProviderData } from '@vercel/flags/next';
2+
import { verifyAccess, type ApiData } from 'flags';
3+
import { getProviderData } from 'flags/next';
44
// The @/ import is not working in the ".well-known" folder due do the dot in the path.
55
// We need to use relative paths instead. This seems like a TypeScript issue.
66
import * as marketingFlags from '../../../examples/marketing-pages/flags';

examples/snippets/app/concepts/adapters/edge-config-adapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Adapter } from '@vercel/flags';
1+
import type { Adapter } from 'flags';
22
import { createClient, type EdgeConfigClient } from '@vercel/edge-config';
33

44
/**

examples/snippets/app/concepts/adapters/flags.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { flag } from '@vercel/flags/next';
1+
import { flag } from 'flags/next';
22
import { createEdgeConfigAdapter } from './edge-config-adapter';
33

44
const edgeConfigAdapter = createEdgeConfigAdapter(process.env.EDGE_CONFIG!);

examples/snippets/app/concepts/dedupe/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { dedupe } from '@vercel/flags/next';
1+
import { dedupe } from 'flags/next';
22

33
const dedupeExample = dedupe(() => {
44
return Math.random().toString().substring(0, 8);

examples/snippets/app/concepts/identify/basic/flags.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { ReadonlyRequestCookies } from '@vercel/flags';
2-
import { dedupe, flag } from '@vercel/flags/next';
1+
import type { ReadonlyRequestCookies } from 'flags';
2+
import { dedupe, flag } from 'flags/next';
33

44
interface Entities {
55
user?: { id: string };

examples/snippets/app/concepts/identify/full/flags.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { ReadonlyRequestCookies } from '@vercel/flags';
2-
import { dedupe, flag } from '@vercel/flags/next';
1+
import type { ReadonlyRequestCookies } from 'flags';
2+
import { dedupe, flag } from 'flags/next';
33

44
interface Entities {
55
user?: { id: string };

examples/snippets/app/concepts/precompute/automatic/[code]/flags.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { flag } from '@vercel/flags/next';
1+
import { flag } from 'flags/next';
22

33
export const firstPrecomputedFlag = flag<boolean>({
44
key: 'first-precomputed-flag',

examples/snippets/app/concepts/precompute/automatic/[code]/middleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { precompute } from '@vercel/flags/next';
1+
import { precompute } from 'flags/next';
22
import { type NextRequest, NextResponse } from 'next/server';
33
import { marketingFlags } from './flags';
44

examples/snippets/app/concepts/precompute/manual/flags.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { flag } from '@vercel/flags/next';
1+
import { flag } from 'flags/next';
22

33
export const manualPrecomputeFlag = flag<boolean>({
44
key: 'manual-precompute-flag',

examples/snippets/app/examples/dashboard-pages/flags.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { ReadonlyRequestCookies } from '@vercel/flags';
2-
import { flag, dedupe } from '@vercel/flags/next';
1+
import type { ReadonlyRequestCookies } from 'flags';
2+
import { flag, dedupe } from 'flags/next';
33

44
interface Entities {
55
user?: { id: string };

0 commit comments

Comments
 (0)