diff --git a/.changeset/vue-integration.md b/.changeset/vue-integration.md new file mode 100644 index 00000000..dcf32794 --- /dev/null +++ b/.changeset/vue-integration.md @@ -0,0 +1,5 @@ +--- +"@tryabby/vue": minor +--- + +Add `@tryabby/vue`, a Vue 3 / Nuxt integration with `useAbby`, `useFeatureFlag`, `useRemoteConfig` and an `AbbyPlugin` diff --git a/apps/docs/pages/integrations/_meta.json b/apps/docs/pages/integrations/_meta.json index 5cbf2999..8b9353d2 100644 --- a/apps/docs/pages/integrations/_meta.json +++ b/apps/docs/pages/integrations/_meta.json @@ -3,6 +3,7 @@ "react": "React", "remix": "Remix", "svelte": "Svelte", + "vue": "Vue / Nuxt", "angular": "Angular", "node": "Node", "express": "Express", diff --git a/apps/docs/pages/integrations/vue.mdx b/apps/docs/pages/integrations/vue.mdx new file mode 100644 index 00000000..135b94a6 --- /dev/null +++ b/apps/docs/pages/integrations/vue.mdx @@ -0,0 +1,209 @@ +import { Tab, Tabs, Callout } from "nextra-theme-docs"; + +# Vue + +Our Vue integration works with Vue 3.3 or later. It works with SPAs as well as server side rendered apps (e.g. Nuxt). + +## Installation + +To get started make sure to install the package using your favorite package manager. + + + + ```bash + npm i @tryabby/vue + ``` + + + ```bash + yarn add @tryabby/vue + ``` + + + ```bash + pnpm i @tryabby/vue + ``` + + + +### Create your config + +To use Abby you need to create your config first. You can do this by creating a file called `abby.config.ts` in your `root` folder. + +```ts +// abby.config.ts +import { defineConfig } from "@tryabby/vue"; + +export default defineConfig({ + projectId: "", + currentEnvironment: process.env.NODE_ENV, + environments: ["production", "development"], + tests: { + footer: { variants: ["dark", "orange", "green"] }, + }, + flags: ["darkMode", "newFeature"], + remoteConfig: { + customButtonText: "String", + }, +}); +``` + +### Create your Instance + +`createAbby` returns a typed Vue plugin and typed composables. + +```ts +// abby.ts +import { createAbby } from "@tryabby/vue"; +import abbyConfig from "../abby.config"; + +export const { + AbbyPlugin, + useAbby, + useFeatureFlag, + useRemoteConfig, + getInitialData, + withDevtools, +} = createAbby(abbyConfig); +``` + +### Install the plugin + +```ts +// main.ts +import { createApp } from "vue"; +import App from "./App.vue"; +import { AbbyPlugin } from "./abby"; + +createApp(App).use(AbbyPlugin).mount("#app"); +``` + +## Usage + +All composables return refs (`ComputedRef`), so they update automatically once the project data is loaded or changes. + +### useAbby + +`useAbby` returns an object with the following values: + +- `variant` - A ref with the variant that is currently active +- `onAct` - A function that you can call to trigger any kind of interaction with the tested component (will be used to track conversions) + +```vue + + + +``` + +Optionally, you can pass a lookup object to automatically map the selected variant to a custom value. + +```ts +const { variant, onAct } = useAbby("footer", { + dark: "bg-gray-900", + orange: "bg-orange-500", + green: "bg-green-500", +}); +``` + + + The variant is selected after the component is mounted (it's an empty string on the server), the same way the React integration avoids hydration mismatches. + + +### useFeatureFlag + +`useFeatureFlag` returns a boolean ref that indicates if the flag is active or not. + +```vue + + + +``` + +### useRemoteConfig + +`useRemoteConfig` returns a ref with the value of the given remote config variable. + +```vue + + + +``` + +`useFeatureFlags` and `useRemoteConfigVariables` return all flags / remote config variables, and +`getFeatureFlagValue`, `getRemoteConfig`, `getABTestValue`, `getVariants` and `getABResetFunction` can be used outside of components. + +## Nuxt + +Fetch the project data on the server with `getInitialData` and pass it to the plugin, so the page is rendered with the right flags and the client doesn't fetch the data again. + +```ts +// plugins/abby.ts +import { AbbyPlugin, getInitialData } from "~/abby"; + +export default defineNuxtPlugin(async (nuxtApp) => { + const { data } = await useAsyncData("abby", () => getInitialData()); + nuxtApp.vueApp.use(AbbyPlugin, { initialData: data.value ?? undefined }); +}); +``` + +## Devtools + +Install the devtools package. `@tryabby/vue` does not install it: + + + + ```bash + npm i @tryabby/devtools + ``` + + + ```bash + yarn add @tryabby/devtools + ``` + + + ```bash + pnpm i @tryabby/devtools + ``` + + + +```vue + + + +``` diff --git a/packages/core/src/helpers.ts b/packages/core/src/helpers.ts index c0b7f49a..28b14fca 100644 --- a/packages/core/src/helpers.ts +++ b/packages/core/src/helpers.ts @@ -6,7 +6,13 @@ export function parseCookies(cookieHeader: string) { // biome-ignore lint/suspicious/noImplicitAnyLet:> for (let m; (m = cookieRegexp.exec(cookieHeader)); ) { const [, cookieName, cookieValue] = m; - cookies[decodeURIComponent(cookieName)] = decodeURIComponent(cookieValue); + try { + cookies[decodeURIComponent(cookieName)] = decodeURIComponent(cookieValue); + } catch { + // Skip cookies that fail to decode (e.g. a value of "100%") so + // the remaining valid cookies can still be applied. + continue; + } } return cookies; diff --git a/packages/core/tests/helpers.test.ts b/packages/core/tests/helpers.test.ts new file mode 100644 index 00000000..b498ac7c --- /dev/null +++ b/packages/core/tests/helpers.test.ts @@ -0,0 +1,15 @@ +import { parseCookies } from "../src/helpers"; + +describe("parseCookies", () => { + it("skips cookies that fail to decode and keeps valid ones", () => { + const cookies = parseCookies("ok=hello; broken=100%; also=world"); + expect(cookies.ok).toBe("hello"); + expect(cookies.also).toBe("world"); + expect(cookies.broken).toBeUndefined(); + }); + + it("parses ordinary cookies", () => { + const cookies = parseCookies("foo=bar; baz=qux"); + expect(cookies).toEqual({ foo: "bar", baz: "qux" }); + }); +}); diff --git a/packages/vue/.gitignore b/packages/vue/.gitignore new file mode 100644 index 00000000..53c37a16 --- /dev/null +++ b/packages/vue/.gitignore @@ -0,0 +1 @@ +dist \ No newline at end of file diff --git a/packages/vue/README.md b/packages/vue/README.md new file mode 100644 index 00000000..5571a821 --- /dev/null +++ b/packages/vue/README.md @@ -0,0 +1,27 @@ +# @tryabby/vue + +Vue 3 (and Nuxt) integration for [Abby](https://www.tryabby.com): A/B tests, feature flags and remote config with full type inference. + +```ts +import { createAbby } from "@tryabby/vue"; + +export const { AbbyPlugin, useAbby, useFeatureFlag, useRemoteConfig } = + createAbby({ + projectId: "", + currentEnvironment: "development", + environments: ["development", "production"], + tests: { footer: { variants: ["dark", "light"] } }, + flags: ["newFeature"], + remoteConfig: { buttonText: "String" }, + }); + +// main.ts +createApp(App).use(AbbyPlugin).mount("#app"); + +// in a component +const { variant, onAct } = useAbby("footer"); // ComputedRef<"dark" | "light"> +const newFeature = useFeatureFlag("newFeature"); // ComputedRef +const buttonText = useRemoteConfig("buttonText"); // ComputedRef +``` + +See the [docs](https://docs.tryabby.com/integrations/vue) for SSR / Nuxt usage. diff --git a/packages/vue/package.json b/packages/vue/package.json new file mode 100644 index 00000000..4073419e --- /dev/null +++ b/packages/vue/package.json @@ -0,0 +1,47 @@ +{ + "name": "@tryabby/vue", + "version": "0.0.1", + "description": "Vue 3 integration for Abby (A/B tests, feature flags and remote config)", + "main": "dist/index.js", + "files": ["dist"], + "module": "dist/index.mjs", + "types": "dist/index.d.ts", + "exports": { + ".": { + "types": "./dist/index.d.ts", + "import": "./dist/index.mjs", + "require": "./dist/index.js" + } + }, + "scripts": { + "build": "tsup src/", + "dev": "pnpm run build --watch", + "test": "vitest", + "test:types": "tsc --noEmit" + }, + "homepage": "https://docs.tryabby.com", + "keywords": ["abby", "vue", "nuxt", "ab-testing", "feature-flags"], + "author": "", + "license": "ISC", + "devDependencies": { + "@tryabby/devtools": "workspace:*", + "@types/js-cookie": "^3.0.3", + "@vue/test-utils": "^2.4.6", + "jsdom": "^20.0.3", + "msw": "^0.49.1", + "node-fetch": "^3.3.0", + "tsconfig": "workspace:*", + "tsup": "^6.5.0", + "typescript": "5.5.4", + "vite": "5.4.0", + "vitest": "2.0.5", + "vue": "^3.4.0" + }, + "peerDependencies": { + "vue": "^3.3.0" + }, + "dependencies": { + "@tryabby/core": "workspace:*", + "js-cookie": "^3.0.1" + } +} diff --git a/packages/vue/src/StorageService.ts b/packages/vue/src/StorageService.ts new file mode 100644 index 00000000..5e9b785b --- /dev/null +++ b/packages/vue/src/StorageService.ts @@ -0,0 +1,74 @@ +import { + type IStorageService, + type StorageServiceOptions, + getABStorageKey, + getFFStorageKey, + getRCStorageKey, +} from "@tryabby/core"; +import Cookie from "js-cookie"; + +const DEFAULT_COOKIE_AGE = 365; + +class ABStorageService implements IStorageService { + get(projectId: string, testName: string): string | null { + const retrievedValue = Cookie.get(getABStorageKey(projectId, testName)); + if (!retrievedValue) return null; + + return retrievedValue; + } + + set( + projectId: string, + testName: string, + value: string, + options?: StorageServiceOptions + ): void { + Cookie.set(getABStorageKey(projectId, testName), value, { + expires: options?.expiresInDays ?? DEFAULT_COOKIE_AGE, + }); + } + + remove(projectId: string, testName: string): void { + Cookie.remove(getABStorageKey(projectId, testName)); + } +} + +class FFStorageService implements IStorageService { + get(projectId: string, flagName: string): string | null { + const retrievedValue = Cookie.get(getFFStorageKey(projectId, flagName)); + if (!retrievedValue) return null; + + return retrievedValue; + } + + set(projectId: string, flagName: string, value: string): void { + Cookie.set(getFFStorageKey(projectId, flagName), value, { + expires: DEFAULT_COOKIE_AGE, + }); + } + + remove(projectId: string, flagName: string): void { + Cookie.remove(getFFStorageKey(projectId, flagName)); + } +} + +class RCStorageService implements IStorageService { + get(projectId: string, key: string): string | null { + const retrievedValue = Cookie.get(getRCStorageKey(projectId, key)); + return retrievedValue ?? null; + } + + set(projectId: string, key: string, value: string): void { + Cookie.set(getRCStorageKey(projectId, key), value, { + expires: DEFAULT_COOKIE_AGE, + }); + } + + remove(projectId: string, key: string): void { + Cookie.remove(getRCStorageKey(projectId, key)); + } +} + +export const TestStorageService = new ABStorageService(); +export const FlagStorageService = new FFStorageService(); +export const RemoteConfigStorageService = new RCStorageService(); diff --git a/packages/vue/src/createAbby.ts b/packages/vue/src/createAbby.ts new file mode 100644 index 00000000..88320e37 --- /dev/null +++ b/packages/vue/src/createAbby.ts @@ -0,0 +1,571 @@ +import { + type ABConfig, + Abby, + type AbbyConfig, + type AbbyDataResponse, + AbbyEventType, + getDefaultRemoteConfigValue, + HttpService, + type RemoteConfigValueString, + type RemoteConfigValueStringToType, + type StorageServiceOptions, + type ValidatorType, +} from "@tryabby/core"; +import type { Infer } from "@tryabby/core/validation"; +import type { AbbyDevtoolProps, DevtoolsFactory } from "@tryabby/devtools"; +import { + type App, + type Component, + type ComputedRef, + type InjectionKey, + type Plugin, + type ShallowRef, + computed, + defineComponent, + getCurrentInstance, + hasInjectionContext, + inject, + onBeforeUnmount, + onMounted, + shallowRef, + watch, +} from "vue"; +import { + FlagStorageService, + RemoteConfigStorageService, + TestStorageService, +} from "./StorageService"; + +export type ABTestReturnValue = Lookup extends undefined + ? TestVariant + : TestVariant extends keyof Lookup + ? Lookup[TestVariant] + : never; + +export type AbbyPluginOptions = { + /** + * Project data that was already fetched (e.g. on the server with Nuxt). + * If it is passed, the plugin will not fetch the data again on the client. + */ + initialData?: AbbyDataResponse | null; +}; + +export type withDevtoolsFunction = ( + factory: DevtoolsFactory, + props: Omit & { + dangerouslyForceShow?: boolean; + } +) => Component; + +type AsyncLocalStorageLike = { + getStore(): T | undefined; + enterWith(value: T): void; +}; + +function getAsyncLocalStorageConstructor(): + | (new () => AsyncLocalStorageLike) + | undefined { + // Only available during SSR. Avoid a static `node:async_hooks` import so + // the browser bundle does not pull in a Node builtin. + if (typeof process === "undefined" || typeof window !== "undefined") { + return undefined; + } + try { + const proc = process as typeof process & { + getBuiltinModule?: (name: string) => { + AsyncLocalStorage: new () => AsyncLocalStorageLike; + }; + }; + return proc.getBuiltinModule?.("async_hooks")?.AsyncLocalStorage; + } catch { + return undefined; + } +} + +export function createAbby< + const FlagName extends string, + const TestName extends string, + const Tests extends Record, + const RemoteConfig extends Record, + const RemoteConfigName extends Extract, + const User extends Record = Record< + string, + ValidatorType + >, +>( + abbyConfig: AbbyConfig< + FlagName, + Tests, + string[], + RemoteConfigName, + RemoteConfig, + User + > +) { + type AbbyInstance = Abby< + FlagName, + TestName, + Tests, + RemoteConfig, + RemoteConfigName, + string[], + User + >; + + // we need to return the config as a const so that the types are narrowed + const config = abbyConfig; + + const testStorage = { + get: (key: string) => { + if (typeof window === "undefined") return null; + return TestStorageService.get(abbyConfig.projectId, key); + }, + set: (key: string, value: any, options?: StorageServiceOptions) => { + if (typeof window === "undefined" || config.cookies?.disableByDefault) + return; + TestStorageService.set(abbyConfig.projectId, key, value, options); + }, + }; + + const flagStorage = { + get: (key: string) => { + if (typeof window === "undefined") return null; + return FlagStorageService.get(abbyConfig.projectId, key); + }, + set: (key: string, value: any) => { + if (typeof window === "undefined") return; + FlagStorageService.set(abbyConfig.projectId, key, value); + }, + }; + + const remoteConfigStorage = { + get: (key: string) => { + if (typeof window === "undefined") return null; + return RemoteConfigStorageService.get(abbyConfig.projectId, key); + }, + set: (key: string, value: any) => { + if (typeof window === "undefined") return; + RemoteConfigStorageService.set(abbyConfig.projectId, key, value); + }, + }; + + const createAbbyInstance = (): AbbyInstance => + new Abby< + FlagName, + TestName, + Tests, + RemoteConfig, + RemoteConfigName, + string[], + User + >(abbyConfig, testStorage, flagStorage, remoteConfigStorage); + + const sharedAbby = createAbbyInstance(); + + const AsyncLocalStorageCtor = getAsyncLocalStorageConstructor(); + const requestAbby = AsyncLocalStorageCtor + ? new AsyncLocalStorageCtor() + : undefined; + + const currentAbby = (): AbbyInstance => + requestAbby?.getStore() ?? sharedAbby; + + const getProjectDataRequestOptions = () => ({ + projectId: config.projectId, + environment: config.currentEnvironment as string, + url: config.apiUrl, + fetch: config.fetch, + __experimentalCdnUrl: config.__experimentalCdnUrl + ? `${config.__experimentalCdnUrl}/${config.projectId}/${config.currentEnvironment}` + : undefined, + }); + + type AbbyProjectData = ReturnType; + + const AbbyInjectionKey: InjectionKey> = + Symbol("abby"); + + const useAbbyData = (): ShallowRef => { + const data = hasInjectionContext() ? inject(AbbyInjectionKey, null) : null; + + if (!data) { + throw new Error( + "useAbbyData must be used within an app that installed the Abby plugin. Call app.use(AbbyPlugin) to fix this error." + ); + } + + return data; + }; + + /** + * Vue plugin that makes the Abby data available to all composables. + * + * @example + * const app = createApp(App); + * app.use(AbbyPlugin); // or app.use(AbbyPlugin, { initialData }) + */ + const AbbyPlugin: Plugin<[AbbyPluginOptions?]> = { + install(app: App, options?: AbbyPluginOptions) { + const isServer = typeof window === "undefined"; + // Each server request gets an isolated instance so overlapping + // installs cannot leak flags, tests, remote config, user + // properties, or listeners. The client keeps the shared instance. + const instance = isServer ? createAbbyInstance() : sharedAbby; + if (isServer) { + requestAbby?.enterWith(instance); + } + + const data = shallowRef( + options?.initialData + ? instance.init(options.initialData) + : instance.getProjectData() + ); + + // subscribe to changes in the project data + const unsubscribe = instance.subscribe(() => { + data.value = instance.getProjectData(); + }); + + // load the project data if it hasn't been passed in + if (!options?.initialData && typeof window !== "undefined") { + instance.loadProjectData().then((newData) => { + if (!newData) return; + // Read live state so later user-property updates and cookie + // overrides are not overwritten by the snapshot init built. + data.value = instance.getProjectData(); + }); + } + + app.provide(AbbyInjectionKey, data); + + const originalUnmount = app.unmount.bind(app); + app.unmount = () => { + unsubscribe(); + originalUnmount(); + }; + }, + }; + + const useAbby = < + K extends keyof Tests, + TestVariant extends Tests[K]["variants"][number], + LookupValue, + const Lookup extends + | Record + | undefined = undefined, + >( + name: K, + lookupObject?: Lookup + ): { + variant: ComputedRef< + Lookup extends undefined + ? ABTestReturnValue | "" + : ABTestReturnValue | undefined + >; + onAct: () => void; + } => { + const data = useAbbyData(); + + // always render an empty string before mount to avoid SSR hydration + // mismatches because the server doesn't know which variant to render + const selectedVariant = shallowRef(""); + + const readVariant = () => + data.value.tests[name as unknown as TestName]?.selectedVariant; + + const syncVariant = () => { + const newVariant = + readVariant() ?? + currentAbby().getProjectData().tests[name as unknown as TestName] + ?.selectedVariant; + // should never be undefined after mount + if (newVariant !== undefined) { + selectedVariant.value = newVariant; + } + }; + + const sendPing = (variant: string) => { + if (!name || !variant) return; + HttpService.sendData({ + url: config.apiUrl, + type: AbbyEventType.PING, + data: { + projectId: config.projectId, + selectedVariant: variant, + testName: name as string, + }, + }); + }; + + let hasMounted = false; + + if (getCurrentInstance()) { + onMounted(() => { + const previous = selectedVariant.value; + syncVariant(); + hasMounted = true; + // If the variant was already chosen before mount, the watcher + // will not fire, so ping it here. A change from "" is pinged by + // the watcher after this hook, once hasMounted is true. + if (selectedVariant.value && selectedVariant.value === previous) { + sendPing(selectedVariant.value); + } + }); + } else { + syncVariant(); + } + + // listen to changes for the current variant + watch(readVariant, (newVariant) => { + if (newVariant !== undefined) { + selectedVariant.value = newVariant; + } + }); + + // send a ping whenever a variant is shown after mount + watch(selectedVariant, (variant, previous) => { + if (!hasMounted || !variant || variant === previous) return; + sendPing(variant); + }); + + /** + * This function can be called to indicate that something that + * uses the selected variant has been rendered. + * It will automatically send the selected variant to the server. + */ + const onAct = () => { + if (!selectedVariant.value) return; + + HttpService.sendData({ + url: config.apiUrl, + type: AbbyEventType.ACT, + data: { + projectId: config.projectId, + selectedVariant: selectedVariant.value, + testName: name as string, + }, + }); + }; + + const variant = computed(() => + lookupObject + ? lookupObject[selectedVariant.value as TestVariant] + : // Typescript fails here. If we cast selectedVariant to TestVariant + // it still assumes that it is a string. So we cast it to any instead + (selectedVariant.value as any) + ) as ComputedRef< + Lookup extends undefined + ? ABTestReturnValue | "" + : ABTestReturnValue | undefined + >; + + return { variant, onAct }; + }; + + const useFeatureFlag = (name: FlagName): ComputedRef => { + const data = useAbbyData(); + return computed(() => { + // Stay reactive to the snapshot, then resolve through core so a + // missing flag uses the configured fallback and a fetched `false` is kept. + void data.value.flags[name]; + return currentAbby().getFeatureFlag(name); + }); + }; + + /** + * Returns an Array of all flags with their name and value + */ + const useFeatureFlags = () => { + const data = useAbbyData(); + return computed(() => + (Object.keys(data.value.flags) as Array).map((flagName) => ({ + name: flagName, + value: data.value.flags[flagName].value, + })) + ); + }; + + const resolveRemoteConfig = < + T extends RemoteConfigName, + Config extends RemoteConfig[T], + >( + remoteConfigName: T, + snapshot: AbbyProjectData + ): RemoteConfigValueStringToType => { + const entry = snapshot.remoteConfig[remoteConfigName]; + if (entry !== undefined) { + return entry.value as RemoteConfigValueStringToType; + } + + const fallback = + config.settings?.remoteConfig?.fallbackValues?.[remoteConfigName]; + if (fallback !== undefined) { + return fallback as RemoteConfigValueStringToType; + } + + const configType = config.remoteConfig?.[remoteConfigName]; + const defaultValue = configType + ? config.settings?.remoteConfig?.defaultValues?.[configType] + : undefined; + if (defaultValue != null) { + return defaultValue as RemoteConfigValueStringToType; + } + + return getDefaultRemoteConfigValue( + configType ?? "String" + ) as RemoteConfigValueStringToType; + }; + + const useRemoteConfig = < + T extends RemoteConfigName, + Config extends RemoteConfig[T], + >( + remoteConfigName: T + ): ComputedRef> => { + const data = useAbbyData(); + return computed(() => resolveRemoteConfig(remoteConfigName, data.value)); + }; + + /** + * Returns an Array of all remote config variables with their name and value + */ + const useRemoteConfigVariables = () => { + const data = useAbbyData(); + return computed( + () => + (Object.keys(data.value.remoteConfig) as Array).map( + (configName) => ({ + name: configName, + value: data.value.remoteConfig[configName].value, + }) + ) as Array<{ + name: RemoteConfigName; + value: RemoteConfigValueStringToType; + }> + ); + }; + + const getFeatureFlagValue = (name: FlagName) => { + return currentAbby().getFeatureFlag(name); + }; + + const getRemoteConfig = < + T extends RemoteConfigName, + Config extends RemoteConfig[T], + >( + remoteConfigName: T + ): RemoteConfigValueStringToType => { + return resolveRemoteConfig( + remoteConfigName, + currentAbby().getProjectData() + ); + }; + + const getABTestValue = < + TestName extends keyof Tests, + TestVariant extends Tests[TestName]["variants"][number], + LookupValue, + const Lookup extends + | Record + | undefined = undefined, + >( + testName: TestName, + lookupObject?: Lookup + ): ABTestReturnValue => { + const variant = currentAbby().getTestVariant(testName); + // Typescript looses its typing here, so we cast as any in favor of having + // better type inference for the user + if (lookupObject === undefined) { + return variant as any; + } + + return lookupObject[variant as TestVariant] as any; + }; + + /** + * Returns a renderless component that mounts the Abby devtools + * (only in development unless `dangerouslyForceShow` is set) + */ + const withDevtools: withDevtoolsFunction = (factory, props) => { + return defineComponent({ + name: "AbbyDevtools", + setup() { + let destroy: (() => void) | undefined; + + onMounted(() => { + if ( + !props?.dangerouslyForceShow && + process.env.NODE_ENV !== "development" + ) { + return; + } + destroy = factory.create({ ...props, abby: currentAbby() }); + }); + + onBeforeUnmount(() => { + destroy?.(); + destroy = undefined; + }); + + return () => null; + }, + }); + }; + + /** + * Simple helper function create a function that resets an AB test + * @param name the name of the test + * @returns A function that can be called to reset the test + */ + const getABResetFunction = (name: T) => { + return () => { + TestStorageService.remove(config.projectId, name as string); + }; + }; + + /** + * Simple helper function to get a list of all variants for a given test + * @param name the name of the test + * @returns an array of all variants + */ + const getVariants = (name: T) => { + return currentAbby().getVariants(name); + }; + + /** + * Fetches the project data from the Abby API. Use this on the server + * (e.g. in a Nuxt plugin) and pass the result to the plugin as `initialData` + * so the client doesn't need to fetch it again. + */ + const getInitialData = () => { + return HttpService.getProjectData(getProjectDataRequestOptions()); + }; + + const updateUserProperties = ( + user: Partial<{ + -readonly [K in keyof User]: Infer; + }> + ) => { + currentAbby().updateUserProperties(user); + }; + + return { + AbbyPlugin, + useAbby, + useFeatureFlag, + useFeatureFlags, + useRemoteConfig, + useRemoteConfigVariables, + getFeatureFlagValue, + getRemoteConfig, + getABTestValue, + getABResetFunction, + getVariants, + updateUserProperties, + getInitialData, + withDevtools, + get __abby__() { + return currentAbby(); + }, + }; +} diff --git a/packages/vue/src/index.ts b/packages/vue/src/index.ts new file mode 100644 index 00000000..a62b597a --- /dev/null +++ b/packages/vue/src/index.ts @@ -0,0 +1,7 @@ +export { + createAbby, + type ABTestReturnValue, + type AbbyPluginOptions, + type withDevtoolsFunction, +} from "./createAbby"; +export { type ABConfig, type AbbyConfig, defineConfig } from "@tryabby/core"; diff --git a/packages/vue/tests/createAbby.test.ts b/packages/vue/tests/createAbby.test.ts new file mode 100644 index 00000000..8261139c --- /dev/null +++ b/packages/vue/tests/createAbby.test.ts @@ -0,0 +1,51 @@ +import { createAbby } from "../src"; +import { TestStorageService } from "../src/StorageService"; +import { withSetup } from "./utils"; + +describe("createAbby helpers", () => { + afterEach(() => { + vi.restoreAllMocks(); + }); + + it("getInitialData uses config.fetch and the CDN URL when configured", async () => { + const fetchImpl = vi.fn().mockResolvedValue({ + ok: true, + json: async () => ({ tests: [], flags: [], remoteConfig: [] }), + }); + + const { getInitialData } = createAbby({ + environments: ["production"], + currentEnvironment: "production", + projectId: "proj-1", + apiUrl: "https://api.example/", + fetch: fetchImpl, + __experimentalCdnUrl: "https://cdn.example", + }); + + await getInitialData(); + + expect(fetchImpl).toHaveBeenCalledTimes(1); + expect(fetchImpl).toHaveBeenCalledWith( + "https://cdn.example/proj-1/production" + ); + }); + + it("forwards expiresInDays, including an explicit zero, to TestStorageService", () => { + const getSpy = vi.spyOn(TestStorageService, "get").mockReturnValue(null); + const setSpy = vi.spyOn(TestStorageService, "set"); + const { AbbyPlugin, useAbby } = createAbby({ + environments: [""], + currentEnvironment: "", + projectId: "123", + tests: { test: { variants: ["A", "B"] } }, + cookies: { expiresInDays: 0 }, + }); + + withSetup(() => useAbby("test"), AbbyPlugin); + + expect(getSpy).toHaveBeenCalled(); + expect(setSpy).toHaveBeenCalled(); + const last = setSpy.mock.calls.at(-1); + expect(last?.[3]).toEqual({ expiresInDays: 0 }); + }); +}); diff --git a/packages/vue/tests/featureFlags.test.ts b/packages/vue/tests/featureFlags.test.ts new file mode 100644 index 00000000..93d0c2f2 --- /dev/null +++ b/packages/vue/tests/featureFlags.test.ts @@ -0,0 +1,148 @@ +import { flushPromises } from "@vue/test-utils"; +import { createAbby } from "../src"; +import { withSetup } from "./utils"; + +describe("useFeatureFlag", () => { + it("returns the default value before the data is loaded", () => { + const { AbbyPlugin, useFeatureFlag } = createAbby({ + environments: [""], + currentEnvironment: "", + projectId: "123", + flags: ["flag1", "flag2"], + }); + + const { result } = withSetup(() => useFeatureFlag("flag1"), AbbyPlugin); + expect(result.value).toBe(false); + }); + + it("updates reactively once the project data was fetched", async () => { + const { AbbyPlugin, useFeatureFlag, useFeatureFlags } = createAbby({ + environments: [""], + currentEnvironment: "", + projectId: "123", + flags: ["flag1", "flag2"], + }); + + const { result } = withSetup( + () => ({ flag1: useFeatureFlag("flag1"), all: useFeatureFlags() }), + AbbyPlugin + ); + + await vi.waitFor(() => expect(result.flag1.value).toBe(true)); + expect(result.all.value).toEqual([ + { name: "flag1", value: true }, + { name: "flag2", value: false }, + ]); + }); + + it("uses the initialData passed to the plugin without fetching", async () => { + const fetchSpy = vi.spyOn(global, "fetch"); + const { AbbyPlugin, useFeatureFlag, getFeatureFlagValue } = createAbby({ + environments: [""], + currentEnvironment: "", + projectId: "123", + flags: ["flag1", "flag2"], + }); + + const { result } = withSetup(() => useFeatureFlag("flag2"), AbbyPlugin, { + initialData: { + tests: [], + flags: [ + { name: "flag1", value: false }, + { name: "flag2", value: true }, + ], + remoteConfig: [], + }, + }); + + await flushPromises(); + expect(result.value).toBe(true); + expect(getFeatureFlagValue("flag2")).toBe(true); + expect(fetchSpy).not.toHaveBeenCalled(); + fetchSpy.mockRestore(); + }); + + it("reacts to local updates of a flag", async () => { + const { AbbyPlugin, useFeatureFlag, __abby__ } = createAbby({ + environments: [""], + currentEnvironment: "", + projectId: "123", + flags: ["flag1"], + }); + + const { result } = withSetup(() => useFeatureFlag("flag1"), AbbyPlugin, { + initialData: { + tests: [], + flags: [{ name: "flag1", value: false }], + remoteConfig: [], + }, + }); + expect(result.value).toBe(false); + + __abby__.updateFlag("flag1", true); + expect(result.value).toBe(true); + }); + + it("can be server-rendered with data from getInitialData()", async () => { + const { AbbyPlugin, useFeatureFlag, getInitialData } = createAbby({ + environments: [""], + currentEnvironment: "", + projectId: "123", + flags: ["flag1", "flag2"], + }); + + const initialData = await getInitialData(); + expect(initialData).not.toBeNull(); + + const { result } = withSetup(() => useFeatureFlag("flag1"), AbbyPlugin, { + initialData, + }); + expect(result.value).toBe(true); + }); +}); + + it("uses the configured fallback when a flag is omitted from the snapshot", () => { + const { AbbyPlugin, useFeatureFlag } = createAbby({ + environments: [""], + currentEnvironment: "", + projectId: "123", + flags: ["newFeature"], + settings: { + flags: { + fallbackValues: { newFeature: true }, + }, + }, + }); + + const { result } = withSetup(() => useFeatureFlag("newFeature"), AbbyPlugin, { + initialData: { + tests: [], + flags: [], + remoteConfig: [], + }, + }); + expect(result.value).toBe(true); + }); + + it("keeps a fetched false rather than falling back", () => { + const { AbbyPlugin, useFeatureFlag } = createAbby({ + environments: [""], + currentEnvironment: "", + projectId: "123", + flags: ["newFeature"], + settings: { + flags: { + fallbackValues: { newFeature: true }, + }, + }, + }); + + const { result } = withSetup(() => useFeatureFlag("newFeature"), AbbyPlugin, { + initialData: { + tests: [], + flags: [{ name: "newFeature", value: false }], + remoteConfig: [], + }, + }); + expect(result.value).toBe(false); + }); diff --git a/packages/vue/tests/mocks/handlers.ts b/packages/vue/tests/mocks/handlers.ts new file mode 100644 index 00000000..f2028cb7 --- /dev/null +++ b/packages/vue/tests/mocks/handlers.ts @@ -0,0 +1,42 @@ +import { ABBY_BASE_URL, type AbbyDataResponse } from "@tryabby/core"; +import { rest } from "msw"; + +const returnData: AbbyDataResponse = { + tests: [ + { + name: "test", + weights: [1, 1, 1, 1], + }, + { + name: "test2", + weights: [1, 0], + }, + ], + flags: [ + { + name: "flag1", + value: true, + }, + { + name: "flag2", + value: false, + }, + ], + remoteConfig: [ + { + name: "remoteConfig1", + value: "FooBar", + }, + ], +}; +export const handlers = [ + rest.get( + `${ABBY_BASE_URL}api/dashboard/:projectId/data`, + (_req, res, ctx) => { + return res(ctx.json(returnData)); + } + ), + rest.get(`${ABBY_BASE_URL}api/v2/data/:projectId`, (_req, res, ctx) => { + return res(ctx.json(returnData)); + }), +]; diff --git a/packages/vue/tests/mocks/server.ts b/packages/vue/tests/mocks/server.ts new file mode 100644 index 00000000..9bb8a870 --- /dev/null +++ b/packages/vue/tests/mocks/server.ts @@ -0,0 +1,5 @@ +import { setupServer } from "msw/node"; +import { handlers } from "./handlers"; + +// This configures a request mocking server with the given request handlers. +export const server = setupServer(...handlers); diff --git a/packages/vue/tests/remoteConfig.test.ts b/packages/vue/tests/remoteConfig.test.ts new file mode 100644 index 00000000..eca67c1b --- /dev/null +++ b/packages/vue/tests/remoteConfig.test.ts @@ -0,0 +1,99 @@ +import { createAbby } from "../src"; +import { withSetup } from "./utils"; + +describe("useRemoteConfig", () => { + it("returns the default value before the data is loaded", () => { + const { AbbyPlugin, useRemoteConfig } = createAbby({ + environments: [""], + currentEnvironment: "", + projectId: "123", + remoteConfig: { remoteConfig1: "String", count: "Number" }, + }); + + const { result } = withSetup( + () => ({ + str: useRemoteConfig("remoteConfig1"), + num: useRemoteConfig("count"), + }), + AbbyPlugin + ); + expect(result.str.value).toBe(""); + expect(result.num.value).toBe(0); + }); + + it("updates reactively once the project data was fetched", async () => { + const { AbbyPlugin, useRemoteConfig, useRemoteConfigVariables } = + createAbby({ + environments: [""], + currentEnvironment: "", + projectId: "123", + remoteConfig: { remoteConfig1: "String" }, + }); + + const { result } = withSetup( + () => ({ + value: useRemoteConfig("remoteConfig1"), + all: useRemoteConfigVariables(), + }), + AbbyPlugin + ); + + await vi.waitFor(() => expect(result.value.value).toBe("FooBar")); + expect(result.all.value).toEqual([ + { name: "remoteConfig1", value: "FooBar" }, + ]); + }); +}); + + it("uses the configured fallback when a remote config is omitted", () => { + const { AbbyPlugin, useRemoteConfig } = createAbby({ + environments: [""], + currentEnvironment: "", + projectId: "123", + remoteConfig: { buttonText: "String" }, + settings: { + remoteConfig: { + fallbackValues: { buttonText: "Buy now" }, + }, + }, + }); + + const { result } = withSetup( + () => useRemoteConfig("buttonText"), + AbbyPlugin, + { + initialData: { + tests: [], + flags: [], + remoteConfig: [], + }, + } + ); + expect(result.value).toBe("Buy now"); + }); + + it("uses the type default when a remote config is omitted without a fallback", () => { + const { AbbyPlugin, useRemoteConfig } = createAbby({ + environments: [""], + currentEnvironment: "", + projectId: "123", + remoteConfig: { buttonText: "String", count: "Number" }, + }); + + const { result } = withSetup( + () => ({ + str: useRemoteConfig("buttonText"), + num: useRemoteConfig("count"), + }), + AbbyPlugin, + { + initialData: { + tests: [], + flags: [], + remoteConfig: [], + }, + } + ); + expect(result.str.value).toBe(""); + expect(result.num.value).toBe(0); + }); diff --git a/packages/vue/tests/setup.ts b/packages/vue/tests/setup.ts new file mode 100644 index 00000000..5f0f9e44 --- /dev/null +++ b/packages/vue/tests/setup.ts @@ -0,0 +1,16 @@ +import fetch from "node-fetch"; +import { afterAll, afterEach, beforeAll } from "vitest"; +import { server } from "./mocks/server"; + +/// @ts-ignore +global.fetch = fetch; + +// Establish API mocking before all tests. +beforeAll(() => server.listen()); + +// Clean up after the tests are finished. +afterAll(() => server.close()); + +// Reset any request handlers that we may add during the tests, +// so they don't affect other tests. +afterEach(() => server.resetHandlers()); diff --git a/packages/vue/tests/ssr.test.ts b/packages/vue/tests/ssr.test.ts new file mode 100644 index 00000000..6c81f078 --- /dev/null +++ b/packages/vue/tests/ssr.test.ts @@ -0,0 +1,89 @@ +// @vitest-environment node +import { createSSRApp, defineComponent, h } from "vue"; +import { renderToString } from "vue/server-renderer"; +import { createAbby } from "../src"; + +describe("server side rendering", () => { + it("renders flags and remote config from initialData and no variant", async () => { + const { AbbyPlugin, useAbby, useFeatureFlag, useRemoteConfig } = createAbby( + { + environments: [""], + currentEnvironment: "", + projectId: "123", + tests: { footer: { variants: ["dark", "light"] } }, + flags: ["newFeature"], + remoteConfig: { buttonText: "String" }, + } + ); + + const app = createSSRApp( + defineComponent({ + setup() { + const { variant } = useAbby("footer"); + const newFeature = useFeatureFlag("newFeature"); + const buttonText = useRemoteConfig("buttonText"); + return () => + h("main", [ + h("span", { id: "variant" }, variant.value), + newFeature.value ? h("p", "new feature") : null, + h("button", buttonText.value), + ]); + }, + }) + ); + app.use(AbbyPlugin, { + initialData: { + tests: [{ name: "footer", weights: [1, 1] }], + flags: [{ name: "newFeature", value: true }], + remoteConfig: [{ name: "buttonText", value: "Buy now" }], + }, + }); + + const html = await renderToString(app); + // the variant is only selected on the client to avoid hydration mismatches + expect(html).toContain(''); + expect(html).toContain("

new feature

"); + expect(html).toContain(""); + }); +}); + + it("isolates Abby state across concurrent server requests", async () => { + const { AbbyPlugin, useFeatureFlag, getFeatureFlagValue } = + createAbby({ + environments: [""], + currentEnvironment: "", + projectId: "123", + flags: ["newFeature"], + }); + + const renderWith = async (enabled: boolean) => { + // Start each render in its own async context so enterWith stays isolated. + await Promise.resolve(); + const app = createSSRApp( + defineComponent({ + setup() { + const newFeature = useFeatureFlag("newFeature"); + const fromGetter = getFeatureFlagValue("newFeature"); + return () => + h("p", `${newFeature.value ? "on" : "off"}:${fromGetter ? "on" : "off"}`); + }, + }) + ); + app.use(AbbyPlugin, { + initialData: { + tests: [], + flags: [{ name: "newFeature", value: enabled }], + remoteConfig: [], + }, + }); + return renderToString(app); + }; + + const [on, off] = await Promise.all([ + Promise.resolve().then(() => renderWith(true)), + Promise.resolve().then(() => renderWith(false)), + ]); + + expect(on).toContain("on:on"); + expect(off).toContain("off:off"); + }); diff --git a/packages/vue/tests/types.test.ts b/packages/vue/tests/types.test.ts new file mode 100644 index 00000000..8d3bd102 --- /dev/null +++ b/packages/vue/tests/types.test.ts @@ -0,0 +1,105 @@ +import { createAbby } from "../src"; +import { withSetup } from "./utils"; + +const test2Variants = [ + "SimonsText", + "MatthiasText", + "TomsText", + "TimsText", +] as const; + +const { + AbbyPlugin, + useAbby, + useFeatureFlag, + useFeatureFlags, + useRemoteConfig, + getABTestValue, + getRemoteConfig, + getFeatureFlagValue, +} = createAbby({ + environments: [""], + currentEnvironment: "", + projectId: "123", + tests: { + test: { variants: ["ONLY_ONE_VARIANT"] }, + test2: { variants: test2Variants }, + }, + flags: ["flag1", "flag2"], + remoteConfig: { + stringConfig: "String", + numberConfig: "Number", + jsonConfig: "JSON", + }, +}); + +describe("useAbby types", () => { + it("narrows the variant", () => { + withSetup(() => { + expectTypeOf(useAbby("test").variant.value).toEqualTypeOf< + "ONLY_ONE_VARIANT" | "" + >(); + expectTypeOf(useAbby("test2").variant.value).toEqualTypeOf< + (typeof test2Variants)[number] | "" + >(); + expectTypeOf(useAbby("test2").onAct).toEqualTypeOf<() => void>(); + }, AbbyPlugin); + }); + + it("maps the lookup object", () => { + withSetup(() => { + const { variant } = useAbby("test2", { + SimonsText: 1, + MatthiasText: 2, + TomsText: 3, + TimsText: 4, + }); + expectTypeOf(variant.value).toEqualTypeOf<1 | 2 | 3 | 4 | undefined>(); + expectTypeOf( + getABTestValue("test", { ONLY_ONE_VARIANT: "x" }) + ).toEqualTypeOf<"x">(); + }, AbbyPlugin); + }); + + it("rejects unknown tests and incomplete lookups", () => { + withSetup(() => { + // @ts-expect-error unknown test + useAbby("unknownTest"); + // @ts-expect-error missing variants in lookup + useAbby("test2", { SimonsText: 1 }); + }, AbbyPlugin); + }); +}); + +describe("feature flag types", () => { + it("returns booleans", () => { + withSetup(() => { + expectTypeOf(useFeatureFlag("flag1").value).toEqualTypeOf(); + expectTypeOf(getFeatureFlagValue("flag2")).toEqualTypeOf(); + expectTypeOf(useFeatureFlags().value[0].name).toEqualTypeOf< + "flag1" | "flag2" + >(); + // @ts-expect-error unknown flag + useFeatureFlag("unknownFlag"); + }, AbbyPlugin); + }); +}); + +describe("remote config types", () => { + it("maps the config type to the value type", () => { + withSetup(() => { + expectTypeOf( + useRemoteConfig("stringConfig").value + ).toEqualTypeOf(); + expectTypeOf( + useRemoteConfig("numberConfig").value + ).toEqualTypeOf(); + expectTypeOf(getRemoteConfig("numberConfig")).toEqualTypeOf(); + expectTypeOf(useRemoteConfig("jsonConfig").value).toEqualTypeOf< + Record + >(); + // @ts-expect-error unknown remote config + useRemoteConfig("unknownConfig"); + }, AbbyPlugin); + }); +}); diff --git a/packages/vue/tests/useAbby.test.ts b/packages/vue/tests/useAbby.test.ts new file mode 100644 index 00000000..9cd343e5 --- /dev/null +++ b/packages/vue/tests/useAbby.test.ts @@ -0,0 +1,252 @@ +import { mount } from "@vue/test-utils"; +import { AbbyEventType, HttpService } from "@tryabby/core"; +import { defineComponent, h, nextTick } from "vue"; +import { createAbby } from "../src"; +import { TestStorageService } from "../src/StorageService"; +import { withSetup } from "./utils"; + +function clearCookies() { + for (const cookie of document.cookie.split(";")) { + const name = cookie.split("=")[0].trim(); + if (name) + document.cookie = `${name}=; expires=Thu, 01 Jan 1970 00:00:00 GMT`; + } +} + +beforeEach(() => { + clearCookies(); +}); + +afterEach(() => { + vi.restoreAllMocks(); +}); + +describe("useAbby", () => { + it("returns a variant of the test", () => { + const variants = ["OldFooter", "NewFooter"] as const; + const { AbbyPlugin, useAbby } = createAbby({ + environments: [""], + currentEnvironment: "", + projectId: "123", + tests: { test: { variants } }, + }); + + const { result } = withSetup(() => useAbby("test"), AbbyPlugin); + expect(variants).toContain(result.variant.value); + }); + + it("persists a newly selected variant", () => { + const spy = vi.spyOn(TestStorageService, "set"); + const { AbbyPlugin, useAbby } = createAbby({ + environments: [""], + currentEnvironment: "", + projectId: "123", + tests: { test: { variants: ["OldFooter", "NewFooter"] } }, + }); + + withSetup(() => useAbby("test"), AbbyPlugin); + expect(spy).toHaveBeenCalled(); + }); + + it("uses the persisted value", () => { + const persistedValue = "SimonsText"; + const getSpy = vi + .spyOn(TestStorageService, "get") + .mockReturnValue(persistedValue); + const setSpy = vi.spyOn(TestStorageService, "set"); + + const { AbbyPlugin, useAbby } = createAbby({ + environments: [""], + currentEnvironment: "", + projectId: "123", + tests: { + test: { + variants: ["SimonsText", "MatthiasText", "TomsText", "TimsText"], + }, + }, + }); + + const { result } = withSetup(() => useAbby("test"), AbbyPlugin); + + expect(getSpy).toHaveBeenCalled(); + // the stored value should not be overwritten + expect(setSpy).not.toHaveBeenCalled(); + expect(result.variant.value).toEqual(persistedValue); + }); + + it("returns the value of the lookup object", () => { + vi.spyOn(TestStorageService, "get").mockReturnValue("OldFooter"); + const { AbbyPlugin, useAbby } = createAbby({ + environments: [""], + currentEnvironment: "", + projectId: "123", + tests: { test: { variants: ["OldFooter", "NewFooter"] } }, + }); + + const { result } = withSetup( + () => useAbby("test", { OldFooter: "old", NewFooter: "new" }), + AbbyPlugin + ); + expect(result.variant.value).toBe("old"); + }); + + it("sends a ping when a variant is shown and an act on onAct()", () => { + vi.spyOn(TestStorageService, "get").mockReturnValue("NewFooter"); + const sendSpy = vi + .spyOn(HttpService, "sendData") + .mockImplementation(() => undefined as any); + + const { AbbyPlugin, useAbby } = createAbby({ + environments: [""], + currentEnvironment: "", + projectId: "123", + tests: { test: { variants: ["OldFooter", "NewFooter"] } }, + }); + + const { result } = withSetup(() => useAbby("test"), AbbyPlugin); + return nextTick().then(() => { + expect(sendSpy).toHaveBeenCalledWith( + expect.objectContaining({ + type: AbbyEventType.PING, + data: { + projectId: "123", + selectedVariant: "NewFooter", + testName: "test", + }, + }) + ); + + result.onAct(); + expect(sendSpy).toHaveBeenLastCalledWith( + expect.objectContaining({ + type: AbbyEventType.ACT, + data: { + projectId: "123", + selectedVariant: "NewFooter", + testName: "test", + }, + }) + ); + }); + }); + + it("renders the variant inside a template after mount", async () => { + vi.spyOn(TestStorageService, "get").mockReturnValue("NewFooter"); + const { AbbyPlugin, useAbby } = createAbby({ + environments: [""], + currentEnvironment: "", + projectId: "123", + tests: { test: { variants: ["OldFooter", "NewFooter"] } }, + }); + + const wrapper = mount( + defineComponent({ + setup() { + const { variant } = useAbby("test", { + OldFooter: "Old footer", + NewFooter: "New footer", + }); + return () => h("footer", variant.value); + }, + }), + { global: { plugins: [AbbyPlugin] } } + ); + + // nothing is rendered before mount to avoid SSR hydration mismatches + await nextTick(); + expect(wrapper.text()).toBe("New footer"); + }); + + it("does not send a PING before the component mounts", async () => { + vi.spyOn(TestStorageService, "get").mockReturnValue("NewFooter"); + const sendSpy = vi + .spyOn(HttpService, "sendData") + .mockImplementation(() => undefined as any); + + const { AbbyPlugin, useAbby, __abby__ } = createAbby({ + environments: [""], + currentEnvironment: "", + projectId: "123", + tests: { test: { variants: ["OldFooter", "NewFooter"] } }, + }); + + const { Suspense } = await import("vue"); + const { flushPromises } = await import("@vue/test-utils"); + + let releaseSetup!: () => void; + const setupReleased = new Promise((r) => { + releaseSetup = r; + }); + let setupRan!: () => void; + const setupStarted = new Promise((r) => { + setupRan = r; + }); + + const AsyncChild = defineComponent({ + async setup() { + const { variant } = useAbby("test"); + setupRan(); + await setupReleased; + return () => h("div", variant.value); + }, + }); + + mount( + defineComponent({ + setup() { + return () => h(Suspense, null, { default: () => h(AsyncChild) }); + }, + }), + { + global: { + plugins: [ + [ + AbbyPlugin, + { + initialData: { + tests: [{ name: "test", weights: [1, 1] }], + flags: [], + remoteConfig: [], + }, + }, + ], + ], + }, + } + ); + + await setupStarted; + // Project data arriving/changing before mount must not send a PING. + __abby__.init({ + tests: [{ name: "test", weights: [0, 1] }], + flags: [], + remoteConfig: [], + }); + await nextTick(); + expect(sendSpy).not.toHaveBeenCalled(); + + releaseSetup(); + await flushPromises(); + await vi.waitFor(() => expect(sendSpy).toHaveBeenCalled()); + expect(sendSpy).toHaveBeenCalledWith( + expect.objectContaining({ + type: AbbyEventType.PING, + data: { + projectId: "123", + selectedVariant: "NewFooter", + testName: "test", + }, + }) + ); + }); + + it("throws a helpful error without the plugin", () => { + const { useAbby } = createAbby({ + environments: [""], + currentEnvironment: "", + projectId: "123", + tests: { test: { variants: ["A", "B"] } }, + }); + expect(() => useAbby("test")).toThrowError(/Abby plugin/); + }); +}); diff --git a/packages/vue/tests/utils.ts b/packages/vue/tests/utils.ts new file mode 100644 index 00000000..6f1b7022 --- /dev/null +++ b/packages/vue/tests/utils.ts @@ -0,0 +1,24 @@ +import { mount } from "@vue/test-utils"; +import { type Plugin, defineComponent, h } from "vue"; + +/** + * Runs a composable inside the setup function of a mounted component + * that has the given plugin installed and returns its result. + */ +export function withSetup( + composable: () => T, + plugin: Plugin, + pluginOptions?: unknown +) { + let result!: T; + const wrapper = mount( + defineComponent({ + setup() { + result = composable(); + return () => h("div"); + }, + }), + { global: { plugins: [[plugin, pluginOptions]] } } + ); + return { result, wrapper }; +} diff --git a/packages/vue/tsconfig.json b/packages/vue/tsconfig.json new file mode 100644 index 00000000..6a8ad3d7 --- /dev/null +++ b/packages/vue/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "tsconfig/base.json", + "compilerOptions": { + "lib": ["ESNext", "DOM"], + "module": "ESNext", + "moduleResolution": "bundler", + "target": "es6", + "types": ["vitest/globals"] + }, + "include": ["src", "tests"] +} diff --git a/packages/vue/tsup.config.ts b/packages/vue/tsup.config.ts new file mode 100644 index 00000000..a765403f --- /dev/null +++ b/packages/vue/tsup.config.ts @@ -0,0 +1,12 @@ +import { defineConfig } from "tsup"; + +export default defineConfig({ + dts: true, + // we want to bundle the shared package because it's not published to npm + // it's hacky :) + noExternal: ["shared/src/types"], + clean: true, + format: ["cjs", "esm"], + sourcemap: true, + treeshake: true, +}); diff --git a/packages/vue/vite.config.ts b/packages/vue/vite.config.ts new file mode 100644 index 00000000..53133748 --- /dev/null +++ b/packages/vue/vite.config.ts @@ -0,0 +1,12 @@ +/// + +import { defineConfig } from "vite"; + +export default defineConfig({ + test: { + globals: true, + environment: "jsdom", + setupFiles: "./tests/setup.ts", + include: ["tests/**/*.test.ts"], + }, +}); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 69fa896e..e406ee9d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -620,7 +620,7 @@ importers: version: 2.4.2 tsup: specifier: ^6.5.0 - version: 6.7.0(postcss@8.4.41)(ts-node@10.9.1(@types/node@20.3.1)(typescript@5.5.4))(typescript@5.5.4) + version: 6.7.0(postcss@8.5.34)(ts-node@10.9.1(@types/node@20.3.1)(typescript@5.5.4))(typescript@5.5.4) unconfig: specifier: ^0.3.10 version: 0.3.10 @@ -681,7 +681,7 @@ importers: version: link:../tsconfig tsup: specifier: ^6.5.0 - version: 6.7.0(postcss@8.4.41)(ts-node@10.9.1(@types/node@22.1.0)(typescript@5.5.4))(typescript@5.5.4) + version: 6.7.0(postcss@8.5.34)(ts-node@10.9.1(@types/node@22.1.0)(typescript@5.5.4))(typescript@5.5.4) typescript: specifier: 5.5.4 version: 5.5.4 @@ -757,7 +757,7 @@ importers: version: 3.59.1 svelte-check: specifier: ^2.10.3 - version: 2.10.3(@babel/core@7.23.6)(less@4.2.0)(postcss-load-config@4.0.1(postcss@8.4.41)(ts-node@10.9.1(@types/node@22.1.0)(typescript@5.5.4)))(postcss@8.4.41)(sass@1.77.8)(svelte@3.59.1) + version: 2.10.3(@babel/core@7.23.6)(less@4.2.0)(postcss-load-config@4.0.1(postcss@8.5.34)(ts-node@10.9.1(@types/node@22.1.0)(typescript@5.5.4)))(postcss@8.5.34)(sass@1.77.8)(svelte@3.59.1) tslib: specifier: ^2.5.0 version: 2.5.3 @@ -827,7 +827,7 @@ importers: version: link:../tsconfig tsup: specifier: ^6.5.0 - version: 6.7.0(postcss@8.4.41)(ts-node@10.9.1(@types/node@22.1.0)(typescript@5.5.4))(typescript@5.5.4) + version: 6.7.0(postcss@8.5.34)(ts-node@10.9.1(@types/node@22.1.0)(typescript@5.5.4))(typescript@5.5.4) typescript: specifier: 5.5.4 version: 5.5.4 @@ -876,7 +876,7 @@ importers: version: link:../tsconfig tsup: specifier: ^6.5.0 - version: 6.7.0(postcss@8.4.41)(ts-node@10.9.1(@types/node@22.1.0)(typescript@5.5.4))(typescript@5.5.4) + version: 6.7.0(postcss@8.5.34)(ts-node@10.9.1(@types/node@22.1.0)(typescript@5.5.4))(typescript@5.5.4) typescript: specifier: 5.5.4 version: 5.5.4 @@ -940,7 +940,7 @@ importers: version: link:../tsconfig tsup: specifier: ^6.5.0 - version: 6.7.0(postcss@8.4.41)(ts-node@10.9.1(@types/node@22.1.0)(typescript@5.5.4))(typescript@5.5.4) + version: 6.7.0(postcss@8.5.34)(ts-node@10.9.1(@types/node@22.1.0)(typescript@5.5.4))(typescript@5.5.4) typescript: specifier: 5.5.4 version: 5.5.4 @@ -1004,7 +1004,7 @@ importers: version: link:../tsconfig tsup: specifier: ^6.5.0 - version: 6.7.0(postcss@8.4.41)(ts-node@10.9.1(@types/node@22.1.0)(typescript@5.5.4))(typescript@5.5.4) + version: 6.7.0(postcss@8.5.34)(ts-node@10.9.1(@types/node@22.1.0)(typescript@5.5.4))(typescript@5.5.4) typescript: specifier: 5.5.4 version: 5.5.4 @@ -1089,7 +1089,7 @@ importers: version: 3.59.1 svelte-check: specifier: ^2.10.3 - version: 2.10.3(@babel/core@7.24.9)(less@4.2.0)(postcss-load-config@4.0.1(postcss@8.4.41)(ts-node@10.9.1(@types/node@22.1.0)(typescript@5.5.4)))(postcss@8.4.41)(sass@1.77.8)(svelte@3.59.1) + version: 2.10.3(@babel/core@7.24.9)(less@4.2.0)(postcss-load-config@4.0.1(postcss@8.5.34)(ts-node@10.9.1(@types/node@22.1.0)(typescript@5.5.4)))(postcss@8.5.34)(sass@1.77.8)(svelte@3.59.1) tslib: specifier: ^2.5.0 version: 2.5.3 @@ -1108,6 +1108,52 @@ importers: packages/tsconfig: {} + packages/vue: + dependencies: + '@tryabby/core': + specifier: workspace:* + version: link:../core + js-cookie: + specifier: ^3.0.1 + version: 3.0.5 + devDependencies: + '@tryabby/devtools': + specifier: workspace:* + version: link:../devtools + '@types/js-cookie': + specifier: ^3.0.3 + version: 3.0.3 + '@vue/test-utils': + specifier: ^2.4.6 + version: 2.6.0(@vue/compiler-dom@3.5.47)(@vue/server-renderer@3.5.47)(vue@3.5.47(typescript@5.5.4)) + jsdom: + specifier: ^20.0.3 + version: 20.0.3 + msw: + specifier: ^0.49.1 + version: 0.49.3(encoding@0.1.13)(typescript@5.5.4) + node-fetch: + specifier: ^3.3.0 + version: 3.3.2 + tsconfig: + specifier: workspace:* + version: link:../tsconfig + tsup: + specifier: ^6.5.0 + version: 6.7.0(postcss@8.5.34)(ts-node@10.9.1(@types/node@22.1.0)(typescript@5.5.4))(typescript@5.5.4) + typescript: + specifier: 5.5.4 + version: 5.5.4 + vite: + specifier: 5.4.0 + version: 5.4.0(@types/node@22.1.0)(less@4.2.0)(sass@1.77.8)(terser@5.31.1) + vitest: + specifier: 2.0.5 + version: 2.0.5(@types/node@22.1.0)(jsdom@20.0.3)(less@4.2.0)(sass@1.77.8)(terser@5.31.1) + vue: + specifier: ^3.4.0 + version: 3.5.47(typescript@5.5.4) + packages: '@adobe/css-tools@4.2.0': @@ -1570,10 +1616,6 @@ packages: resolution: {integrity: sha512-oy5V7pD+UvfkEATUKvIjvIAH/xCzfsFVw7ygW2SI6NClZzquT+mwdTfgfdbUiceh6iQO0CHtCPsyze/MZ2YbAA==} engines: {node: '>=6.9.0'} - '@babel/helper-string-parser@7.23.4': - resolution: {integrity: sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==} - engines: {node: '>=6.9.0'} - '@babel/helper-string-parser@7.24.7': resolution: {integrity: sha512-7MbVt6xrwFQbunH2DNQsAP5sTGxfqQtErvBIvIMi6EQnbgUOuVYanvREcmFrOPhoXBrTtjhhP+lW+o5UfK+tDg==} engines: {node: '>=6.9.0'} @@ -1582,14 +1624,18 @@ packages: resolution: {integrity: sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ==} engines: {node: '>=6.9.0'} - '@babel/helper-validator-identifier@7.22.20': - resolution: {integrity: sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==} + '@babel/helper-string-parser@7.29.17': + resolution: {integrity: sha512-iY5lvqFhfgMXp4o4zWads4NvQZXizBxzCoADPOgFMcMwk1XefAdBJbc9i1y94aflY57lokjOjRTa3AOOW9R7BQ==} engines: {node: '>=6.9.0'} '@babel/helper-validator-identifier@7.24.7': resolution: {integrity: sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==} engines: {node: '>=6.9.0'} + '@babel/helper-validator-identifier@7.29.17': + resolution: {integrity: sha512-AG+olLB+teKhkQ2WYJeaZqJwNLjtWTz1waQIP/tEYITzVzpdHLP7IXx2c/bH2JTsNCgvWlkqdCv91xcb8lul8Q==} + engines: {node: '>=6.9.0'} + '@babel/helper-validator-option@7.22.5': resolution: {integrity: sha512-R3oB6xlIVKUnxNUxbmgq7pKjxpru24zlimpE8WK47fACIlM0II/Hm1RS8IaOI7NgCr6LNS+jl5l75m20npAziw==} engines: {node: '>=6.9.0'} @@ -1656,11 +1702,6 @@ packages: engines: {node: '>=6.0.0'} hasBin: true - '@babel/parser@7.24.4': - resolution: {integrity: sha512-zTvEBcghmeBma9QIGunWevvBAp4/Qu9Bdq+2k0Ot4fVMD6v3dsC9WOcRSKk7tRRyBM/53yKMJko9xOatGQAwSg==} - engines: {node: '>=6.0.0'} - hasBin: true - '@babel/parser@7.24.7': resolution: {integrity: sha512-9uUYRm6OqQrCqQdG1iCBwBPZgN8ciDBro2nIOFaiRz1/BCxaI7CNvQbDHvsArAC7Tw9Hda/B3U+6ui9u4HWXPw==} engines: {node: '>=6.0.0'} @@ -1671,6 +1712,11 @@ packages: engines: {node: '>=6.0.0'} hasBin: true + '@babel/parser@7.29.17': + resolution: {integrity: sha512-I+0olVqWMm9bimQJc/5B3jn1nivNDXtnMtDVs07XdHzZLcWa2N/mlCTPmAsQg95QcKoXSuFD2Yz4fwdtoyk7DQ==} + engines: {node: '>=6.0.0'} + hasBin: true + '@babel/plugin-bugfix-firefox-class-in-computed-class-key@7.25.3': resolution: {integrity: sha512-wUrcsxZg6rqBXG05HG1FPYgsP6EvwF4WpBbxIpWIIYnH8wG0gzx3yZY3dtEHas4sTAOGkbTsc9EGPxwff8lRoA==} engines: {node: '>=6.9.0'} @@ -2657,14 +2703,6 @@ packages: resolution: {integrity: sha512-m4AfNvVF2mVC/F7fDEdH2El3HzUg9It/XsCxZiOTTA3m3qYfcSVSbTfM6Q9xG+hYDniZssYhlXKKUMD5m8tF4Q==} engines: {node: '>=6.9.0'} - '@babel/types@7.23.6': - resolution: {integrity: sha512-+uarb83brBzPKN38NX1MkB6vb6+mwvR6amUulqAE7ccQw1pEl+bCia9TbdG1lsnFP7lZySvUn37CHyXQdfTwzg==} - engines: {node: '>=6.9.0'} - - '@babel/types@7.24.0': - resolution: {integrity: sha512-+j7a5c253RfKh8iABBhywc8NSfP5LURe7Uh4qpsh6jc+aLJguvmIUBdjSdEMQv2bENrCR5MfRdjGo7vzS/ob7w==} - engines: {node: '>=6.9.0'} - '@babel/types@7.24.7': resolution: {integrity: sha512-XEFXSlxiG5td2EJRe8vOmRbaXVgfcBlszKujvVmWIK/UpywWljQCfzAv3RQCGujWQ1RD4YYWEAqDXfuJiy8f5Q==} engines: {node: '>=6.9.0'} @@ -2673,6 +2711,10 @@ packages: resolution: {integrity: sha512-YTnYtra7W9e6/oAZEHj0bJehPRUlLH9/fbpT5LfB0NhQXyALCRkRs3zH9v07IYhkgpqX6Z78FnuccZr/l4Fs4Q==} engines: {node: '>=6.9.0'} + '@babel/types@7.29.17': + resolution: {integrity: sha512-kzo3lZUbI0gARA4QvhmOTH/aws2SrZ880ECQRIjPPSrdfBM0bZCkj1U7UN2fB0GNeXayqCiLVXa2+1jAhn377Q==} + engines: {node: '>=6.9.0'} + '@bcoe/v8-coverage@0.2.3': resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==} @@ -2892,7 +2934,7 @@ packages: '@emotion/use-insertion-effect-with-fallbacks@1.0.1': resolution: {integrity: sha512-jT/qyKZ9rzLErtrjGgdkMBn2OP8wl0G3sQlBb3YPryvKHsjvINUhVaPFfP+fpBcOkmrVOVEEHQFJ7nbj2TH2gw==} peerDependencies: - react: ^18.2.0 + react: '>=16.8.0' '@esbuild-plugins/node-globals-polyfill@0.2.3': resolution: {integrity: sha512-r3MIryXDeXDOZh7ih1l/yE9ZLORCd5e8vWg02azWRGj5SPTuoh69A2AIyn0Z31V/kHBfZ4HgWJ+OK3GTTwLmnw==} @@ -3750,6 +3792,9 @@ packages: '@jridgewell/sourcemap-codec@1.4.15': resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==} + '@jridgewell/sourcemap-codec@1.6.0': + resolution: {integrity: sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==} + '@jridgewell/trace-mapping@0.3.18': resolution: {integrity: sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA==} @@ -3845,7 +3890,7 @@ packages: '@mdx-js/react@2.3.0': resolution: {integrity: sha512-zQH//gdOmuu7nt2oJR29vFhDv88oGPmVw6BggmrHeMI+xgEkp1B2dX9/bMBSYtK0dyLX/aOmesKS09g222K1/g==} peerDependencies: - react: ^18.2.0 + react: '>=16' '@mdx-js/react@3.0.0': resolution: {integrity: sha512-nDctevR9KyYFyV+m+/+S4cpzCWHqj+iHDHq3QrsWezcC+B17uZdIWgCguESUkwFhM3n/56KxWVE3V6EokrmONQ==} @@ -4295,6 +4340,9 @@ packages: resolution: {integrity: sha512-TUkJLtI163Bz5+JK0O+zDkQpn4gKwN+BovclUvCj6pI/6RXrFqQvUMRS2M+Rt8Rv0qR3wjoMoOPmpJKeOh0nBg==} engines: {node: '>= 18'} + '@one-ini/wasm@0.2.1': + resolution: {integrity: sha512-TUqERXGNTifZ9y2g3wPxQrw3HpHv/02DsW3D90T9x0hhonrL1ZqpSmNrU2XkoIq0fP1N6gZfVQzy2Fw1ZvGBNg==} + '@open-draft/until@1.0.3': resolution: {integrity: sha512-Aq58f5HiWdyDlFffbbSjAlv596h/cOnt2DO1w3DOC7OJ5EHs0hd/nycJfiu9RJbT6Yk6F1knnRRXNSpxoIVZ9Q==} @@ -4671,8 +4719,8 @@ packages: '@radix-ui/react-direction@1.1.0': resolution: {integrity: sha512-BUuBvgThEiAXh2DWu93XsT+a3aWrGqolGlqqw5VU1kG7p/ZH2cuDlM1sRLNnY3QcBS69UIz2mcKhMxDsdewhjg==} peerDependencies: - '@types/react': 18.0.26 - react: ^18.2.0 + '@types/react': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc peerDependenciesMeta: '@types/react': optional: true @@ -5161,8 +5209,8 @@ packages: '@radix-ui/react-use-layout-effect@1.1.0': resolution: {integrity: sha512-+FPE0rOdziWSrH9athwI1R0HDVbWlEhd+FR+aSDk4uWGmSJ9Z54sdZVDQPZAinJhJXwfT+qnj969mCsT2gfm5w==} peerDependencies: - '@types/react': 18.0.26 - react: ^18.2.0 + '@types/react': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc peerDependenciesMeta: '@types/react': optional: true @@ -6690,9 +6738,21 @@ packages: '@vue/compiler-core@3.4.24': resolution: {integrity: sha512-vbW/tgbwJYj62N/Ww99x0zhFTkZDTcGh3uwJEuadZ/nF9/xuFMC4693P9r+3sxGXISABpDKvffY5ApH9pmdd1A==} + '@vue/compiler-core@3.5.47': + resolution: {integrity: sha512-xbUKXtPx9xM48gdpGatozxMydqwwCxwa3N3HRH2bsDwlwgwVPPAY5Of7Zjn9tRuf1bQi9IrNEUvfriA7xYALhA==} + '@vue/compiler-dom@3.4.24': resolution: {integrity: sha512-4XgABML/4cNndVsQndG6BbGN7+EoisDwi3oXNovqL/4jdNhwvP8/rfRMTb6FxkxIxUUtg6AI1/qZvwfSjxJiWA==} + '@vue/compiler-dom@3.5.47': + resolution: {integrity: sha512-FSRyMXkIo+qfYNAUFpPipSvXzsbH7uQ2cIcNIk4/kpcSwoy2osIIrVyuPNG1vW6Anvf6kU8Oib+iYs2hBRoikA==} + + '@vue/compiler-sfc@3.5.47': + resolution: {integrity: sha512-T2DRi7JtfgcHcrs8Anx3nR04DXmNvyQ63H6zAWCgKSybqZJFlH+U1A6tMwapFrxJLZC7fklLDP8C9BxIuLnHLQ==} + + '@vue/compiler-ssr@3.5.47': + resolution: {integrity: sha512-7Ck+2eIkftCCw/07GaGJhPoH5UB2GLmP4XQz5BjyVyuL0CEKw0WQvLVb0iTdhMsSdcvcWfKTC+/Tf/NJGOa27w==} + '@vue/language-core@1.8.27': resolution: {integrity: sha512-L8Kc27VdQserNaCUNiSFdDl9LWT24ly8Hpwf1ECy3aFb9m6bDhBGQYOujDm21N7EW3moKIOKEanQwe1q5BK+mA==} peerDependencies: @@ -6701,9 +6761,34 @@ packages: typescript: optional: true + '@vue/reactivity@3.5.47': + resolution: {integrity: sha512-6iuspHOyn9yenqhwELQiOeBa+JX3bpLVadwg8cwNkslqcOJZHuSUsbF7EUw92nV4ifKjZzF78EQnLThHwOnfAA==} + + '@vue/runtime-core@3.5.47': + resolution: {integrity: sha512-hd5oji/0YlB14d4kLvma8nj9q0ltYuWLS9Oi7IBNdqhNTPNxzmMRi4iRfI6X7I6uf6a7GtD7PZYdGZb/9fvixw==} + + '@vue/runtime-dom@3.5.47': + resolution: {integrity: sha512-uESQlsglAWF40lkSuO9Ymto+NCagWP1DbLpZpMvXNCV+AADqxuH5aaxJruy//Yuy0Vt2th/25PYcEawPl3YnBw==} + + '@vue/server-renderer@3.5.47': + resolution: {integrity: sha512-WoHtOIi0msvWk85150TcCEWdKfeEcPO2wo8yQ0lWi1UWiNjiVWi+5ZKYhO4gHe4D5Nb0uBVBzZJOtJfS+JAstA==} + '@vue/shared@3.4.24': resolution: {integrity: sha512-BW4tajrJBM9AGAknnyEw5tO2xTmnqgup0VTnDAMcxYmqOX0RG0b9aSUGAbEKolD91tdwpA6oCwbltoJoNzpItw==} + '@vue/shared@3.5.47': + resolution: {integrity: sha512-MrIBiAoWPEs9NBg2ZElTghaUMDfpVL+Zbogw31saY9vmHXShBncOAUzuYkAVASRWB3AsDhgCcn8L9LDG7Lez2Q==} + + '@vue/test-utils@2.6.0': + resolution: {integrity: sha512-kTB6s2p34cA/xXSpt17G0enU9A3F3pdm+o5GZgE3WGXXXpXJ5SVBsRhgCJNCc+ekGAzY0T7Hjyo5yEfwencBlg==} + peerDependencies: + '@vue/compiler-dom': 3.x + '@vue/server-renderer': 3.x + vue: 3.x + peerDependenciesMeta: + '@vue/server-renderer': + optional: true + '@web3-storage/multipart-parser@1.0.0': resolution: {integrity: sha512-BEO6al7BYqcnfX15W2cnGR+Q566ACXAT9UQykORCWW80lmkpWsnEob6zJS1ZVBKsSJC8+7vJkHwlp+lXG1UCdw==} @@ -6786,6 +6871,10 @@ packages: resolution: {integrity: sha512-6/mh1E2u2YgEsCHdY0Yx5oW+61gZU+1vXaoiHHrpKeuRNNgFvS+/jrwHiQhB5apAf5oB7UB7E19ol2R2LKH8hQ==} engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + abbrev@5.0.0: + resolution: {integrity: sha512-/XrFJgzQQQHpti1raDJC6m4ws6aNktmjBlhk8Fdlk7LwCEuDoieEJJY9OFHjfiFJFFRM2tK+Ky/IsfbbmlMu1w==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + abort-controller@3.0.0: resolution: {integrity: sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==} engines: {node: '>=6.5'} @@ -7141,6 +7230,10 @@ packages: balanced-match@1.0.2: resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} + balanced-match@4.0.4: + resolution: {integrity: sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==} + engines: {node: 18 || 20 || >=22} + base64-js@1.5.1: resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==} @@ -7206,6 +7299,10 @@ packages: brace-expansion@2.0.1: resolution: {integrity: sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==} + brace-expansion@5.1.2: + resolution: {integrity: sha512-ELhY3JEerIBbhgW+rh0/8glkZAaMqn1x3BAvp3yTULSEGozMK/5PT6WTdBgsdvJqwwmv7MAQNOydfYbvK1Vgfw==} + engines: {node: 20 || >=22} + braces@3.0.2: resolution: {integrity: sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==} engines: {node: '>=8'} @@ -7576,6 +7673,10 @@ packages: resolution: {integrity: sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==} engines: {node: '>=18'} + commander@14.0.3: + resolution: {integrity: sha512-H+y0Jo/T1RZ9qPP4Eh1pkcQcLRglraJaSLoyOtHxu6AapkjWVCy2Sit1QQ4x3Dng8qDlSsZEet7g5Pq06MvTgw==} + engines: {node: '>=20'} + commander@2.20.3: resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} @@ -7796,6 +7897,9 @@ packages: csstype@3.1.2: resolution: {integrity: sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==} + csstype@3.2.4: + resolution: {integrity: sha512-PoKaoPzQapnEoqUSnHx1u6W6ku8CVEgKsnpmmzU3m1nwkidpPBQ8V/Zq2+bWNrsOKoKLwTGdbx6xF7BXP1zLVQ==} + csv-generate@3.4.3: resolution: {integrity: sha512-w/T+rqR0vwvHqWs/1ZyMDWtHHSJaN06klRqJXBEpDJaM/+dZkso0OKh1VcuuYvK3XM53KysVNq8Ko/epCK8wOw==} @@ -8276,6 +8380,11 @@ packages: resolution: {integrity: sha512-M9wIMFx96vq0R4F+gRpY3o2exzb8hEj/n9S8unZtHSvYjibBp/iMufSzvmOcV/laG0ZtuTVGtiJggPOSW2r93g==} hasBin: true + editorconfig@3.0.2: + resolution: {integrity: sha512-T0ix8GhtxyKVfUFEcvdNDt3YGqlwkFHbD4/5bgFUDgFmxhI/cSRAeJ87/Sz//Cq8Eam6JX/e23RkoFO71P7aAA==} + engines: {node: '>=20'} + hasBin: true + ee-first@1.1.1: resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} @@ -8345,6 +8454,10 @@ packages: resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==} engines: {node: '>=0.12'} + entities@7.0.1: + resolution: {integrity: sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA==} + engines: {node: '>=0.12'} + env-paths@2.2.1: resolution: {integrity: sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==} engines: {node: '>=6'} @@ -8994,6 +9107,10 @@ packages: resolution: {integrity: sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==} hasBin: true + glob@13.0.7: + resolution: {integrity: sha512-wfsFgXQ8A3SEI9XGf7Nl3Y9l7ffSrGh7SUCT7vU/2CzYPep9kjxAn1S40F9OPKxAMGCVl7HtNlJhrCJUeUq83g==} + engines: {node: 18 || 20 || >=22} + glob@7.1.6: resolution: {integrity: sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==} deprecated: Glob versions prior to v9 are no longer supported @@ -9005,11 +9122,12 @@ packages: glob@8.1.0: resolution: {integrity: sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==} engines: {node: '>=12'} - deprecated: Glob versions prior to v9 are no longer supported + deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me glob@9.3.5: resolution: {integrity: sha512-e1LleDykUz2Iu+MTYdkSsuWX8lvAjAcs0Xef0lNIu0S2wOAzuTxCJtcd9S3cijlwYF18EsU3rzb8jPVobxDh9Q==} engines: {node: '>=16 || 14 >=14.17'} + deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me globals@11.12.0: resolution: {integrity: sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==} @@ -9349,6 +9467,7 @@ packages: image-size@0.5.5: resolution: {integrity: sha512-6TDAlDPZxUFCv+fuOkIoXT/V/f3Qbq8e37p+YOiYrUv3v9cc3/6x78VdfPgFVaB9dZYeLUfKgHRebpkm/oP2VQ==} engines: {node: '>=0.10.0'} + deprecated: Please migrate to image-size@2.x hasBin: true immer@9.0.21: @@ -9882,10 +10001,18 @@ packages: engines: {node: '>=12'} hasBin: true + js-beautify@2.0.3: + resolution: {integrity: sha512-cyFbh3tkPhknnTD/0bLf0T0yy2ZIbqL05mttzbt4y1Zfr7NxqXQZ62dkBLKs3oHH/lpjmDRAnciJiSUyOy8XwQ==} + engines: {node: '>=14'} + hasBin: true + js-cookie@3.0.5: resolution: {integrity: sha512-cEiJEAEoIbWfCZYKWhVwFuvPX1gETRYPw6LlaTKoxD3s2AkXzkCjnp6h0V77ozyqj0jakteJ4YqDJT830+lVGw==} engines: {node: '>=14'} + js-cookie@3.0.8: + resolution: {integrity: sha512-yeJd4aNAdYZQjaon2bpD/Gb0B/omw7HQOsynXXcOiWVCacbBcPlgn8S/d1X6blFSaHao7ozqtW7NZW19xpCtIw==} + js-levenshtein@1.1.6: resolution: {integrity: sha512-X2BB11YZtrRqY4EnQcLX5Rh373zbK4alC1FW7D7MBhL2gtcC17cTnr6DmfHZeS0s2rTHjUTMMHfG7gO8SSdw+g==} engines: {node: '>=0.10.0'} @@ -10220,6 +10347,10 @@ packages: lru-cache@10.4.3: resolution: {integrity: sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==} + lru-cache@11.5.4: + resolution: {integrity: sha512-B8nJCTi8JuSaDBg0tBdnImV6j5O2CXaqKfdj24ZTCFbyivN8KZ2Z+RL3aHjwJAfLutD9cNnObG4SIgW4gMufiw==} + engines: {node: 20 || >=22} + lru-cache@4.1.5: resolution: {integrity: sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==} @@ -10230,10 +10361,6 @@ packages: resolution: {integrity: sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==} engines: {node: '>=10'} - lru-cache@9.1.2: - resolution: {integrity: sha512-ERJq3FOzJTxBbFjZ7iDs+NiK4VI9Wz+RdrrAB8dio1oV+YvdPzUEE4QNiT2VD51DkIbCYRUUzCRkssXCHqSnKQ==} - engines: {node: 14 || >=16.14} - lucide-react@0.320.0: resolution: {integrity: sha512-HuMmfmFiWwctDkN27wklKVZr8UpwP2TTekLZ3xiLCEjx/STG1k0KLWMbBfIJ/lnNJQDfSjztDZSVU316xA+AQg==} peerDependencies: @@ -10261,6 +10388,9 @@ packages: magic-string@0.30.10: resolution: {integrity: sha512-iIRwTIf0QKV3UAnYK4PU8uiEc4SRh5jX0mwpIwETPpHdhVM4f53RSwS/vXvN1JhGX+Cs7B8qIq3d6AH49O5fAQ==} + magic-string@0.30.21: + resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==} + magic-string@0.30.8: resolution: {integrity: sha512-ISQTe55T2ao7XtlAStud6qwYPZjE4GK1S/BeVPus4jrq6JuOnQ00YKQC581RWhR122W7msZV263KzVeLoqidyQ==} engines: {node: '>=12'} @@ -10713,6 +10843,10 @@ packages: minimalistic-assert@1.0.1: resolution: {integrity: sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==} + minimatch@10.2.6: + resolution: {integrity: sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==} + engines: {node: 18 || 20 || >=22} + minimatch@3.0.8: resolution: {integrity: sha512-6FsRAQsxQ61mw+qP1ZzbL9Bc78x2p5OqNgNpnoAFLTrX8n5Kxph0CsnhmKKNXTWjXqU5L0pGPR7hYk+XWZr60Q==} @@ -10774,6 +10908,10 @@ packages: resolution: {integrity: sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==} engines: {node: '>=16 || 14 >=14.17'} + minipass@7.1.3: + resolution: {integrity: sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==} + engines: {node: '>=16 || 14 >=14.17'} + minizlib@2.1.2: resolution: {integrity: sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==} engines: {node: '>= 8'} @@ -10884,6 +11022,11 @@ packages: mz@2.7.0: resolution: {integrity: sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==} + nanoid@3.3.20: + resolution: {integrity: sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==} + engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} + hasBin: true + nanoid@3.3.6: resolution: {integrity: sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==} engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} @@ -11065,6 +11208,7 @@ packages: node-domexception@1.0.0: resolution: {integrity: sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==} engines: {node: '>=10.5.0'} + deprecated: Use your platform's native DOMException instead node-fetch-native@1.2.0: resolution: {integrity: sha512-5IAMBTl9p6PaAjYCnMv5FmqIF6GcZnawAVnzaCG0rX2aYZJ4CxEkZNtVPuTRug7fL7wyM5BQYTlAzcyMPi6oTQ==} @@ -11131,6 +11275,11 @@ packages: resolution: {integrity: sha512-NWmpvLSqUrgrAC9HCuxEvb+PSloHpqVu+FqcO4eeF2h5qYRhA7ev6KvelyQAKtegUbC6RypJnlEOhd8vloNKYg==} hasBin: true + nopt@10.0.1: + resolution: {integrity: sha512-df3sBr/6ax9hSGuC3CspvLlbnX8cP5L5nZwXF8cGN8l0zSWR6BvzmQ6jPUKjvo6+/xdpkNvEcucBNUdBeeV13g==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + hasBin: true + nopt@6.0.0: resolution: {integrity: sha512-ZwLpbTgdhuZUnZzjd7nb1ZV+4DoiC6/sfiVKok72ym/4Tlf+DFdlHYmT2JPmcNNWV6Pi3SDf1kT+A4r9RTuT9g==} engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} @@ -11512,9 +11661,9 @@ packages: resolution: {integrity: sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==} engines: {node: '>=16 || 14 >=14.18'} - path-scurry@1.9.2: - resolution: {integrity: sha512-qSDLy2aGFPm8i4rsbHd4MNyTcrzHFsLQykrtbuGRknZZCBBVXSv2tSCDN2Cg6Rt/GFRw8GoW9y9Ecw5rIPG1sg==} - engines: {node: '>=16 || 14 >=14.17'} + path-scurry@2.0.2: + resolution: {integrity: sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==} + engines: {node: 18 || 20 || >=22} path-to-regexp@0.1.7: resolution: {integrity: sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==} @@ -11569,6 +11718,9 @@ packages: picocolors@1.0.1: resolution: {integrity: sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==} + picocolors@1.1.1: + resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} + picomatch@2.3.1: resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} engines: {node: '>=8.6'} @@ -11735,6 +11887,10 @@ packages: resolution: {integrity: sha512-TesUflQ0WKZqAvg52PWL6kHgLKP6xB6heTOdoYM0Wt2UHyxNa4K25EZZMgKns3BH1RLVbZCREPpLY0rhnNoHVQ==} engines: {node: ^10 || ^12 || >=14} + postcss@8.5.34: + resolution: {integrity: sha512-P1Qzj0XXZjMda74C7qiVnBG90UKNbyNUAOeQRBW8X63RsIMV57gevRqjnkELdwtZ/S2/uQFksJhmwuN8xShLPw==} + engines: {node: ^10 || ^12 || >=14} + postgres-array@2.0.0: resolution: {integrity: sha512-VpZrUqU5A69eQyW2c5CA1jtLecCsN2U/bD6VilrFDWq5+5UIEVO7nazS3TEcHf1zuPYO/sqGvUvW62g86RXZuA==} engines: {node: '>=4'} @@ -12587,6 +12743,11 @@ packages: engines: {node: '>=10'} hasBin: true + semver@7.8.6: + resolution: {integrity: sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==} + engines: {node: '>=10'} + hasBin: true + send@0.18.0: resolution: {integrity: sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==} engines: {node: '>= 0.8.0'} @@ -12771,6 +12932,10 @@ packages: resolution: {integrity: sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==} engines: {node: '>=0.10.0'} + source-map-js@1.3.0: + resolution: {integrity: sha512-pdUVfIWcK0kCgK831ibqkZDcL7I9zljjOu0TQFnA+fiQ6y1CYqYB7RkTOHHO45FGMg5P/Mvk/+4ToQ7gAYAL5Q==} + engines: {node: '>=6.0.0'} + source-map-loader@5.0.0: resolution: {integrity: sha512-k2Dur7CbSLcAH73sBcIkV5xjPV4SzqO1NJ7+XaQl8if3VODDUj3FNchNGpqgJSKbvUfJuhVdv8K2Eu8/TNl2eA==} engines: {node: '>= 18.12.0'} @@ -13964,6 +14129,9 @@ packages: vscode-textmate@8.0.0: resolution: {integrity: sha512-AFbieoL7a5LMqcnOF04ji+rpXadgOXnZsxQr//r83kLPr7biP7am3g9zbaZIaBGwBRWeSvoMD4mgPdX3e4NWBg==} + vue-component-type-helpers@3.4.0: + resolution: {integrity: sha512-fhLDKk6EdiN0xDr8XBsA2ttK/hNjAGy7J7evAWF68/eWqDhYDuoqdnt3hZd6CCG7LWMfqElW2F3Qoqi7ZwAwyQ==} + vue-template-compiler@2.7.16: resolution: {integrity: sha512-AYbUWAJHLGGQM7+cNTELw+KsOG9nl2CnSv467WobS5Cv9uk3wFcnr1Etsz2sEIHEZvw1U+o9mRlEO6QbZvUPGQ==} @@ -13973,6 +14141,14 @@ packages: peerDependencies: typescript: '*' + vue@3.5.47: + resolution: {integrity: sha512-eb2WX28Y895u9wSVVDXr5pvipHb3U8wSvYqoT5UUqG5idmNjT169BDnhigOfkEP+zI6nDVnhHqZgrERpJ90M0w==} + peerDependencies: + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + w3c-keyname@2.2.8: resolution: {integrity: sha512-dpojBhNsCNN7T82Tm7k26A6G9ML3NkhDsnw9n/eoxSRlVBB4CEtIQ/KTCLI2Fwf3ataSXRhYFkQi3SlnFwPvPQ==} @@ -14046,7 +14222,7 @@ packages: engines: {node: '>= 18.12.0'} hasBin: true peerDependencies: - webpack: 5.93.0 + webpack: ^5.0.0 webpack-cli: '*' peerDependenciesMeta: webpack: @@ -14708,10 +14884,10 @@ snapshots: '@babel/helper-compilation-targets': 7.23.6 '@babel/helper-module-transforms': 7.23.3(@babel/core@7.21.8) '@babel/helpers': 7.24.4 - '@babel/parser': 7.24.7 + '@babel/parser': 7.25.3 '@babel/template': 7.24.0 '@babel/traverse': 7.24.1 - '@babel/types': 7.24.7 + '@babel/types': 7.25.2 convert-source-map: 1.9.0 debug: 4.3.5 gensync: 1.0.0-beta.2 @@ -14728,10 +14904,10 @@ snapshots: '@babel/helper-compilation-targets': 7.23.6 '@babel/helper-module-transforms': 7.23.3(@babel/core@7.23.6) '@babel/helpers': 7.23.6 - '@babel/parser': 7.24.7 + '@babel/parser': 7.25.3 '@babel/template': 7.22.15 '@babel/traverse': 7.23.6 - '@babel/types': 7.24.7 + '@babel/types': 7.25.2 convert-source-map: 2.0.0 debug: 4.3.5 gensync: 1.0.0-beta.2 @@ -14748,10 +14924,10 @@ snapshots: '@babel/helper-compilation-targets': 7.23.6 '@babel/helper-module-transforms': 7.23.3(@babel/core@7.24.4) '@babel/helpers': 7.24.4 - '@babel/parser': 7.24.4 + '@babel/parser': 7.25.3 '@babel/template': 7.24.0 '@babel/traverse': 7.24.1 - '@babel/types': 7.24.0 + '@babel/types': 7.25.2 convert-source-map: 2.0.0 debug: 4.3.5 gensync: 1.0.0-beta.2 @@ -14802,21 +14978,21 @@ snapshots: '@babel/generator@7.21.9': dependencies: - '@babel/types': 7.24.7 + '@babel/types': 7.25.2 '@jridgewell/gen-mapping': 0.3.3 '@jridgewell/trace-mapping': 0.3.20 jsesc: 2.5.2 '@babel/generator@7.23.6': dependencies: - '@babel/types': 7.24.7 + '@babel/types': 7.25.2 '@jridgewell/gen-mapping': 0.3.5 '@jridgewell/trace-mapping': 0.3.25 jsesc: 2.5.2 '@babel/generator@7.24.4': dependencies: - '@babel/types': 7.24.7 + '@babel/types': 7.25.2 '@jridgewell/gen-mapping': 0.3.5 '@jridgewell/trace-mapping': 0.3.25 jsesc: 2.5.2 @@ -14837,7 +15013,7 @@ snapshots: '@babel/helper-annotate-as-pure@7.22.5': dependencies: - '@babel/types': 7.24.7 + '@babel/types': 7.25.2 '@babel/helper-annotate-as-pure@7.24.7': dependencies: @@ -14845,12 +15021,12 @@ snapshots: '@babel/helper-builder-binary-assignment-operator-visitor@7.22.5': dependencies: - '@babel/types': 7.24.7 + '@babel/types': 7.25.2 '@babel/helper-builder-binary-assignment-operator-visitor@7.24.7': dependencies: '@babel/traverse': 7.24.7 - '@babel/types': 7.24.7 + '@babel/types': 7.25.2 transitivePeerDependencies: - supports-color @@ -15008,24 +15184,24 @@ snapshots: '@babel/helper-function-name@7.23.0': dependencies: '@babel/template': 7.24.7 - '@babel/types': 7.24.7 + '@babel/types': 7.25.2 '@babel/helper-function-name@7.24.7': dependencies: '@babel/template': 7.24.7 - '@babel/types': 7.24.7 + '@babel/types': 7.25.2 '@babel/helper-hoist-variables@7.22.5': dependencies: - '@babel/types': 7.24.7 + '@babel/types': 7.25.2 '@babel/helper-hoist-variables@7.24.7': dependencies: - '@babel/types': 7.24.7 + '@babel/types': 7.25.2 '@babel/helper-member-expression-to-functions@7.22.5': dependencies: - '@babel/types': 7.24.7 + '@babel/types': 7.25.2 '@babel/helper-member-expression-to-functions@7.24.8': dependencies: @@ -15036,11 +15212,11 @@ snapshots: '@babel/helper-module-imports@7.22.15': dependencies: - '@babel/types': 7.24.7 + '@babel/types': 7.25.2 '@babel/helper-module-imports@7.22.5': dependencies: - '@babel/types': 7.24.7 + '@babel/types': 7.25.2 '@babel/helper-module-imports@7.24.7': dependencies: @@ -15142,11 +15318,11 @@ snapshots: '@babel/helper-optimise-call-expression@7.22.5': dependencies: - '@babel/types': 7.24.7 + '@babel/types': 7.25.2 '@babel/helper-optimise-call-expression@7.24.7': dependencies: - '@babel/types': 7.24.7 + '@babel/types': 7.25.2 '@babel/helper-plugin-utils@7.22.5': {} @@ -15160,7 +15336,7 @@ snapshots: '@babel/helper-annotate-as-pure': 7.22.5 '@babel/helper-environment-visitor': 7.22.20 '@babel/helper-wrap-function': 7.22.5 - '@babel/types': 7.24.7 + '@babel/types': 7.25.2 transitivePeerDependencies: - supports-color @@ -15170,7 +15346,7 @@ snapshots: '@babel/helper-annotate-as-pure': 7.22.5 '@babel/helper-environment-visitor': 7.22.20 '@babel/helper-wrap-function': 7.22.5 - '@babel/types': 7.24.7 + '@babel/types': 7.25.2 transitivePeerDependencies: - supports-color @@ -15190,7 +15366,7 @@ snapshots: '@babel/helper-optimise-call-expression': 7.22.5 '@babel/template': 7.24.7 '@babel/traverse': 7.24.7 - '@babel/types': 7.24.7 + '@babel/types': 7.25.2 transitivePeerDependencies: - supports-color @@ -15205,44 +15381,44 @@ snapshots: '@babel/helper-simple-access@7.22.5': dependencies: - '@babel/types': 7.24.7 + '@babel/types': 7.25.2 '@babel/helper-simple-access@7.24.7': dependencies: '@babel/traverse': 7.24.7 - '@babel/types': 7.24.7 + '@babel/types': 7.25.2 transitivePeerDependencies: - supports-color '@babel/helper-skip-transparent-expression-wrappers@7.22.5': dependencies: - '@babel/types': 7.24.7 + '@babel/types': 7.25.2 '@babel/helper-skip-transparent-expression-wrappers@7.24.7': dependencies: '@babel/traverse': 7.24.7 - '@babel/types': 7.24.7 + '@babel/types': 7.25.2 transitivePeerDependencies: - supports-color '@babel/helper-split-export-declaration@7.22.6': dependencies: - '@babel/types': 7.24.7 + '@babel/types': 7.25.2 '@babel/helper-split-export-declaration@7.24.7': dependencies: '@babel/types': 7.24.7 - '@babel/helper-string-parser@7.23.4': {} - '@babel/helper-string-parser@7.24.7': {} '@babel/helper-string-parser@7.24.8': {} - '@babel/helper-validator-identifier@7.22.20': {} + '@babel/helper-string-parser@7.29.17': {} '@babel/helper-validator-identifier@7.24.7': {} + '@babel/helper-validator-identifier@7.29.17': {} + '@babel/helper-validator-option@7.22.5': {} '@babel/helper-validator-option@7.23.5': {} @@ -15256,7 +15432,7 @@ snapshots: '@babel/helper-function-name': 7.23.0 '@babel/template': 7.22.15 '@babel/traverse': 7.23.6 - '@babel/types': 7.24.7 + '@babel/types': 7.25.2 transitivePeerDependencies: - supports-color @@ -15272,7 +15448,7 @@ snapshots: dependencies: '@babel/template': 7.24.7 '@babel/traverse': 7.24.7 - '@babel/types': 7.24.7 + '@babel/types': 7.25.2 transitivePeerDependencies: - supports-color @@ -15280,7 +15456,7 @@ snapshots: dependencies: '@babel/template': 7.24.7 '@babel/traverse': 7.24.7 - '@babel/types': 7.24.7 + '@babel/types': 7.25.2 transitivePeerDependencies: - supports-color @@ -15296,22 +15472,22 @@ snapshots: '@babel/highlight@7.22.5': dependencies: - '@babel/helper-validator-identifier': 7.22.20 + '@babel/helper-validator-identifier': 7.24.7 chalk: 2.4.2 js-tokens: 4.0.0 '@babel/highlight@7.23.4': dependencies: - '@babel/helper-validator-identifier': 7.22.20 + '@babel/helper-validator-identifier': 7.24.7 chalk: 2.4.2 js-tokens: 4.0.0 '@babel/highlight@7.24.2': dependencies: - '@babel/helper-validator-identifier': 7.22.20 + '@babel/helper-validator-identifier': 7.24.7 chalk: 2.4.2 js-tokens: 4.0.0 - picocolors: 1.0.0 + picocolors: 1.0.1 '@babel/highlight@7.24.7': dependencies: @@ -15322,15 +15498,11 @@ snapshots: '@babel/parser@7.21.9': dependencies: - '@babel/types': 7.24.7 + '@babel/types': 7.25.2 '@babel/parser@7.23.6': dependencies: - '@babel/types': 7.23.6 - - '@babel/parser@7.24.4': - dependencies: - '@babel/types': 7.24.7 + '@babel/types': 7.25.2 '@babel/parser@7.24.7': dependencies: @@ -15340,6 +15512,10 @@ snapshots: dependencies: '@babel/types': 7.25.2 + '@babel/parser@7.29.17': + dependencies: + '@babel/types': 7.29.17 + '@babel/plugin-bugfix-firefox-class-in-computed-class-key@7.25.3(@babel/core@7.24.7)': dependencies: '@babel/core': 7.24.7 @@ -16539,7 +16715,7 @@ snapshots: '@babel/helper-module-imports': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 '@babel/plugin-syntax-jsx': 7.22.5(@babel/core@7.23.6) - '@babel/types': 7.24.7 + '@babel/types': 7.25.2 '@babel/plugin-transform-regenerator@7.22.5(@babel/core@7.21.8)': dependencies: @@ -16806,7 +16982,7 @@ snapshots: '@babel/plugin-transform-unicode-escapes': 7.22.5(@babel/core@7.21.8) '@babel/plugin-transform-unicode-regex': 7.22.5(@babel/core@7.21.8) '@babel/preset-modules': 0.1.5(@babel/core@7.21.8) - '@babel/types': 7.24.7 + '@babel/types': 7.25.2 babel-plugin-polyfill-corejs2: 0.3.3(@babel/core@7.21.8) babel-plugin-polyfill-corejs3: 0.6.0(@babel/core@7.21.8) babel-plugin-polyfill-regenerator: 0.4.1(@babel/core@7.21.8) @@ -16892,7 +17068,7 @@ snapshots: '@babel/plugin-transform-unicode-regex': 7.22.5(@babel/core@7.23.6) '@babel/plugin-transform-unicode-sets-regex': 7.22.5(@babel/core@7.23.6) '@babel/preset-modules': 0.1.5(@babel/core@7.23.6) - '@babel/types': 7.24.7 + '@babel/types': 7.25.2 babel-plugin-polyfill-corejs2: 0.4.3(@babel/core@7.23.6) babel-plugin-polyfill-corejs3: 0.8.1(@babel/core@7.23.6) babel-plugin-polyfill-regenerator: 0.5.0(@babel/core@7.23.6) @@ -17001,7 +17177,7 @@ snapshots: '@babel/helper-plugin-utils': 7.24.0 '@babel/plugin-proposal-unicode-property-regex': 7.18.6(@babel/core@7.21.8) '@babel/plugin-transform-dotall-regex': 7.22.5(@babel/core@7.21.8) - '@babel/types': 7.24.7 + '@babel/types': 7.25.2 esutils: 2.0.3 '@babel/preset-modules@0.1.5(@babel/core@7.23.6)': @@ -17010,7 +17186,7 @@ snapshots: '@babel/helper-plugin-utils': 7.24.0 '@babel/plugin-proposal-unicode-property-regex': 7.18.6(@babel/core@7.23.6) '@babel/plugin-transform-dotall-regex': 7.22.5(@babel/core@7.23.6) - '@babel/types': 7.24.7 + '@babel/types': 7.25.2 esutils: 2.0.3 '@babel/preset-modules@0.1.6-no-external-plugins(@babel/core@7.24.7)': @@ -17057,14 +17233,14 @@ snapshots: '@babel/template@7.22.15': dependencies: '@babel/code-frame': 7.24.7 - '@babel/parser': 7.24.7 - '@babel/types': 7.24.7 + '@babel/parser': 7.25.3 + '@babel/types': 7.25.2 '@babel/template@7.24.0': dependencies: '@babel/code-frame': 7.24.7 - '@babel/parser': 7.24.7 - '@babel/types': 7.24.7 + '@babel/parser': 7.25.3 + '@babel/types': 7.25.2 '@babel/template@7.24.7': dependencies: @@ -17086,8 +17262,8 @@ snapshots: '@babel/helper-function-name': 7.23.0 '@babel/helper-hoist-variables': 7.22.5 '@babel/helper-split-export-declaration': 7.22.6 - '@babel/parser': 7.24.7 - '@babel/types': 7.24.7 + '@babel/parser': 7.25.3 + '@babel/types': 7.25.2 debug: 4.3.5 globals: 11.12.0 transitivePeerDependencies: @@ -17101,8 +17277,8 @@ snapshots: '@babel/helper-function-name': 7.23.0 '@babel/helper-hoist-variables': 7.22.5 '@babel/helper-split-export-declaration': 7.22.6 - '@babel/parser': 7.24.7 - '@babel/types': 7.24.7 + '@babel/parser': 7.25.3 + '@babel/types': 7.25.2 debug: 4.3.5 globals: 11.12.0 transitivePeerDependencies: @@ -17116,8 +17292,8 @@ snapshots: '@babel/helper-function-name': 7.24.7 '@babel/helper-hoist-variables': 7.24.7 '@babel/helper-split-export-declaration': 7.24.7 - '@babel/parser': 7.24.7 - '@babel/types': 7.24.7 + '@babel/parser': 7.25.3 + '@babel/types': 7.25.2 debug: 4.3.5 globals: 11.12.0 transitivePeerDependencies: @@ -17152,19 +17328,7 @@ snapshots: '@babel/types@7.21.5': dependencies: - '@babel/helper-string-parser': 7.24.7 - '@babel/helper-validator-identifier': 7.24.7 - to-fast-properties: 2.0.0 - - '@babel/types@7.23.6': - dependencies: - '@babel/helper-string-parser': 7.23.4 - '@babel/helper-validator-identifier': 7.22.20 - to-fast-properties: 2.0.0 - - '@babel/types@7.24.0': - dependencies: - '@babel/helper-string-parser': 7.24.7 + '@babel/helper-string-parser': 7.24.8 '@babel/helper-validator-identifier': 7.24.7 to-fast-properties: 2.0.0 @@ -17180,6 +17344,11 @@ snapshots: '@babel/helper-validator-identifier': 7.24.7 to-fast-properties: 2.0.0 + '@babel/types@7.29.17': + dependencies: + '@babel/helper-string-parser': 7.29.17 + '@babel/helper-validator-identifier': 7.29.17 + '@bcoe/v8-coverage@0.2.3': {} '@biomejs/biome@1.9.4': @@ -18088,6 +18257,8 @@ snapshots: '@jridgewell/sourcemap-codec@1.4.15': {} + '@jridgewell/sourcemap-codec@1.6.0': {} + '@jridgewell/trace-mapping@0.3.18': dependencies: '@jridgewell/resolve-uri': 3.1.0 @@ -18691,6 +18862,8 @@ snapshots: '@octokit/request-error': 6.1.4 '@octokit/webhooks-methods': 5.1.0 + '@one-ini/wasm@0.2.1': {} + '@open-draft/until@1.0.3': {} '@openpanel/nextjs@1.0.3(next@14.1.1(@babel/core@7.24.7)(@opentelemetry/api@1.9.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(sass@1.77.8))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': @@ -21291,8 +21464,8 @@ snapshots: '@types/babel__core@7.20.1': dependencies: - '@babel/parser': 7.24.7 - '@babel/types': 7.24.7 + '@babel/parser': 7.25.3 + '@babel/types': 7.25.2 '@types/babel__generator': 7.6.4 '@types/babel__template': 7.4.1 '@types/babel__traverse': 7.20.1 @@ -21307,7 +21480,7 @@ snapshots: '@types/babel__generator@7.6.4': dependencies: - '@babel/types': 7.24.7 + '@babel/types': 7.25.2 '@types/babel__generator@7.6.8': dependencies: @@ -21315,8 +21488,8 @@ snapshots: '@types/babel__template@7.4.1': dependencies: - '@babel/parser': 7.24.7 - '@babel/types': 7.24.7 + '@babel/parser': 7.25.3 + '@babel/types': 7.25.2 '@types/babel__template@7.4.4': dependencies: @@ -21325,7 +21498,7 @@ snapshots: '@types/babel__traverse@7.20.1': dependencies: - '@babel/types': 7.24.7 + '@babel/types': 7.25.2 '@types/babel__traverse@7.20.5': dependencies: @@ -21841,17 +22014,47 @@ snapshots: '@vue/compiler-core@3.4.24': dependencies: - '@babel/parser': 7.24.7 + '@babel/parser': 7.25.3 '@vue/shared': 3.4.24 entities: 4.5.0 estree-walker: 2.0.2 source-map-js: 1.2.0 + '@vue/compiler-core@3.5.47': + dependencies: + '@babel/parser': 7.29.17 + '@vue/shared': 3.5.47 + entities: 7.0.1 + estree-walker: 2.0.2 + source-map-js: 1.3.0 + '@vue/compiler-dom@3.4.24': dependencies: '@vue/compiler-core': 3.4.24 '@vue/shared': 3.4.24 + '@vue/compiler-dom@3.5.47': + dependencies: + '@vue/compiler-core': 3.5.47 + '@vue/shared': 3.5.47 + + '@vue/compiler-sfc@3.5.47': + dependencies: + '@babel/parser': 7.29.17 + '@vue/compiler-core': 3.5.47 + '@vue/compiler-dom': 3.5.47 + '@vue/compiler-ssr': 3.5.47 + '@vue/shared': 3.5.47 + estree-walker: 2.0.2 + magic-string: 0.30.21 + postcss: 8.5.34 + source-map-js: 1.3.0 + + '@vue/compiler-ssr@3.5.47': + dependencies: + '@vue/compiler-dom': 3.5.47 + '@vue/shared': 3.5.47 + '@vue/language-core@1.8.27(typescript@5.5.4)': dependencies: '@volar/language-core': 1.11.1 @@ -21866,8 +22069,41 @@ snapshots: optionalDependencies: typescript: 5.5.4 + '@vue/reactivity@3.5.47': + dependencies: + '@vue/shared': 3.5.47 + + '@vue/runtime-core@3.5.47': + dependencies: + '@vue/reactivity': 3.5.47 + '@vue/shared': 3.5.47 + + '@vue/runtime-dom@3.5.47': + dependencies: + '@vue/reactivity': 3.5.47 + '@vue/runtime-core': 3.5.47 + '@vue/shared': 3.5.47 + csstype: 3.2.4 + + '@vue/server-renderer@3.5.47': + dependencies: + '@vue/compiler-ssr': 3.5.47 + '@vue/runtime-dom': 3.5.47 + '@vue/shared': 3.5.47 + '@vue/shared@3.4.24': {} + '@vue/shared@3.5.47': {} + + '@vue/test-utils@2.6.0(@vue/compiler-dom@3.5.47)(@vue/server-renderer@3.5.47)(vue@3.5.47(typescript@5.5.4))': + dependencies: + '@vue/compiler-dom': 3.5.47 + js-beautify: 2.0.3 + vue: 3.5.47(typescript@5.5.4) + vue-component-type-helpers: 3.4.0 + optionalDependencies: + '@vue/server-renderer': 3.5.47 + '@web3-storage/multipart-parser@1.0.0': {} '@webassemblyjs/ast@1.12.1': @@ -21968,6 +22204,8 @@ snapshots: abbrev@2.0.0: {} + abbrev@5.0.0: {} + abort-controller@3.0.0: dependencies: event-target-shim: 5.0.1 @@ -22327,6 +22565,8 @@ snapshots: balanced-match@1.0.2: {} + balanced-match@4.0.4: {} + base64-js@1.5.1: {} base64id@2.0.0: {} @@ -22407,6 +22647,10 @@ snapshots: dependencies: balanced-match: 1.0.2 + brace-expansion@5.1.2: + dependencies: + balanced-match: 4.0.4 + braces@3.0.2: dependencies: fill-range: 7.0.1 @@ -22798,6 +23042,8 @@ snapshots: commander@12.1.0: {} + commander@14.0.3: {} + commander@2.20.3: {} commander@4.1.1: {} @@ -23018,6 +23264,8 @@ snapshots: csstype@3.1.2: {} + csstype@3.2.4: {} + csv-generate@3.4.3: {} csv-parse@4.16.3: {} @@ -23508,6 +23756,13 @@ snapshots: semver: 5.7.1 sigmund: 1.0.1 + editorconfig@3.0.2: + dependencies: + '@one-ini/wasm': 0.2.1 + commander: 14.0.3 + minimatch: 10.2.6 + semver: 7.8.6 + ee-first@1.1.1: {} ejs@3.1.9: @@ -23575,6 +23830,8 @@ snapshots: entities@4.5.0: {} + entities@7.0.1: {} + env-paths@2.2.1: {} envinfo@7.8.1: {} @@ -24449,7 +24706,7 @@ snapshots: jackspeak: 2.2.1 minimatch: 9.0.4 minipass: 5.0.0 - path-scurry: 1.9.2 + path-scurry: 1.11.1 glob@10.4.5: dependencies: @@ -24460,6 +24717,12 @@ snapshots: package-json-from-dist: 1.0.0 path-scurry: 1.11.1 + glob@13.0.7: + dependencies: + minimatch: 10.2.6 + minipass: 7.1.3 + path-scurry: 2.0.2 + glob@7.1.6: dependencies: fs.realpath: 1.0.0 @@ -25507,8 +25770,18 @@ snapshots: glob: 8.1.0 nopt: 6.0.0 + js-beautify@2.0.3: + dependencies: + config-chain: 1.1.13 + editorconfig: 3.0.2 + glob: 13.0.7 + js-cookie: 3.0.8 + nopt: 10.0.1 + js-cookie@3.0.5: {} + js-cookie@3.0.8: {} + js-levenshtein@1.1.6: {} js-tokens@4.0.0: {} @@ -25527,7 +25800,7 @@ snapshots: jscodeshift@0.14.0(@babel/preset-env@7.21.5(@babel/core@7.21.8)): dependencies: '@babel/core': 7.24.4 - '@babel/parser': 7.24.7 + '@babel/parser': 7.25.3 '@babel/plugin-proposal-class-properties': 7.18.6(@babel/core@7.24.4) '@babel/plugin-proposal-nullish-coalescing-operator': 7.18.6(@babel/core@7.24.4) '@babel/plugin-proposal-optional-chaining': 7.21.0(@babel/core@7.24.4) @@ -25552,7 +25825,7 @@ snapshots: jscodeshift@0.14.0(@babel/preset-env@7.22.5(@babel/core@7.23.6)): dependencies: '@babel/core': 7.24.4 - '@babel/parser': 7.24.7 + '@babel/parser': 7.25.3 '@babel/plugin-proposal-class-properties': 7.18.6(@babel/core@7.24.4) '@babel/plugin-proposal-nullish-coalescing-operator': 7.18.6(@babel/core@7.24.4) '@babel/plugin-proposal-optional-chaining': 7.21.0(@babel/core@7.24.4) @@ -25961,6 +26234,8 @@ snapshots: lru-cache@10.4.3: {} + lru-cache@11.5.4: {} + lru-cache@4.1.5: dependencies: pseudomap: 1.0.2 @@ -25974,8 +26249,6 @@ snapshots: dependencies: yallist: 4.0.0 - lru-cache@9.1.2: {} - lucide-react@0.320.0(react@18.2.0): dependencies: react: 18.2.0 @@ -26000,6 +26273,10 @@ snapshots: dependencies: '@jridgewell/sourcemap-codec': 1.4.15 + magic-string@0.30.21: + dependencies: + '@jridgewell/sourcemap-codec': 1.6.0 + magic-string@0.30.8: dependencies: '@jridgewell/sourcemap-codec': 1.4.15 @@ -26948,6 +27225,10 @@ snapshots: minimalistic-assert@1.0.1: {} + minimatch@10.2.6: + dependencies: + brace-expansion: 5.1.2 + minimatch@3.0.8: dependencies: brace-expansion: 1.1.11 @@ -27010,6 +27291,8 @@ snapshots: minipass@7.1.2: {} + minipass@7.1.3: {} + minizlib@2.1.2: dependencies: minipass: 3.3.6 @@ -27150,6 +27433,8 @@ snapshots: object-assign: 4.1.1 thenify-all: 1.6.0 + nanoid@3.3.20: {} + nanoid@3.3.6: {} nanoid@3.3.7: {} @@ -27475,6 +27760,10 @@ snapshots: dependencies: abbrev: 1.1.1 + nopt@10.0.1: + dependencies: + abbrev: 5.0.0 + nopt@6.0.0: dependencies: abbrev: 1.1.1 @@ -27917,10 +28206,10 @@ snapshots: lru-cache: 10.4.3 minipass: 7.1.2 - path-scurry@1.9.2: + path-scurry@2.0.2: dependencies: - lru-cache: 9.1.2 - minipass: 5.0.0 + lru-cache: 11.5.4 + minipass: 7.1.3 path-to-regexp@0.1.7: {} @@ -27968,6 +28257,8 @@ snapshots: picocolors@1.0.1: {} + picocolors@1.1.1: {} + picomatch@2.3.1: {} picomatch@4.0.2: {} @@ -28033,20 +28324,20 @@ snapshots: camelcase-css: 2.0.1 postcss: 8.4.24 - postcss-load-config@3.1.4(postcss@8.4.41)(ts-node@10.9.1(@types/node@20.3.1)(typescript@5.5.4)): + postcss-load-config@3.1.4(postcss@8.5.34)(ts-node@10.9.1(@types/node@20.3.1)(typescript@5.5.4)): dependencies: lilconfig: 2.1.0 yaml: 1.10.2 optionalDependencies: - postcss: 8.4.41 + postcss: 8.5.34 ts-node: 10.9.1(@types/node@20.3.1)(typescript@5.5.4) - postcss-load-config@3.1.4(postcss@8.4.41)(ts-node@10.9.1(@types/node@22.1.0)(typescript@5.5.4)): + postcss-load-config@3.1.4(postcss@8.5.34)(ts-node@10.9.1(@types/node@22.1.0)(typescript@5.5.4)): dependencies: lilconfig: 2.1.0 yaml: 1.10.2 optionalDependencies: - postcss: 8.4.41 + postcss: 8.5.34 ts-node: 10.9.1(@types/node@22.1.0)(typescript@5.5.4) postcss-load-config@4.0.1(postcss@8.4.24)(ts-node@10.9.1(@types/node@18.16.17)(typescript@5.5.4)): @@ -28066,12 +28357,12 @@ snapshots: ts-node: 10.9.1(@types/node@20.3.1)(typescript@5.5.4) optional: true - postcss-load-config@4.0.1(postcss@8.4.41)(ts-node@10.9.1(@types/node@22.1.0)(typescript@5.5.4)): + postcss-load-config@4.0.1(postcss@8.5.34)(ts-node@10.9.1(@types/node@22.1.0)(typescript@5.5.4)): dependencies: lilconfig: 2.1.0 yaml: 2.3.1 optionalDependencies: - postcss: 8.4.41 + postcss: 8.5.34 ts-node: 10.9.1(@types/node@22.1.0)(typescript@5.5.4) optional: true @@ -28156,6 +28447,12 @@ snapshots: picocolors: 1.0.1 source-map-js: 1.2.0 + postcss@8.5.34: + dependencies: + nanoid: 3.3.20 + picocolors: 1.1.1 + source-map-js: 1.3.0 + postgres-array@2.0.0: {} postgres-bytea@1.0.0: {} @@ -29118,6 +29415,8 @@ snapshots: semver@7.6.2: {} + semver@7.8.6: {} + send@0.18.0: dependencies: debug: 2.6.9 @@ -29393,6 +29692,8 @@ snapshots: source-map-js@1.2.0: {} + source-map-js@1.3.0: {} + source-map-loader@5.0.0(webpack@5.92.1(esbuild@0.21.5)): dependencies: iconv-lite: 0.6.3 @@ -29689,7 +29990,7 @@ snapshots: supports-preserve-symlinks-flag@1.0.0: {} - svelte-check@2.10.3(@babel/core@7.23.6)(less@4.2.0)(postcss-load-config@4.0.1(postcss@8.4.41)(ts-node@10.9.1(@types/node@22.1.0)(typescript@5.5.4)))(postcss@8.4.41)(sass@1.77.8)(svelte@3.59.1): + svelte-check@2.10.3(@babel/core@7.23.6)(less@4.2.0)(postcss-load-config@4.0.1(postcss@8.5.34)(ts-node@10.9.1(@types/node@22.1.0)(typescript@5.5.4)))(postcss@8.5.34)(sass@1.77.8)(svelte@3.59.1): dependencies: '@jridgewell/trace-mapping': 0.3.18 chokidar: 3.5.3 @@ -29698,7 +29999,7 @@ snapshots: picocolors: 1.0.0 sade: 1.8.1 svelte: 3.59.1 - svelte-preprocess: 4.10.7(@babel/core@7.23.6)(less@4.2.0)(postcss-load-config@4.0.1(postcss@8.4.41)(ts-node@10.9.1(@types/node@22.1.0)(typescript@5.5.4)))(postcss@8.4.41)(sass@1.77.8)(svelte@3.59.1)(typescript@5.5.4) + svelte-preprocess: 4.10.7(@babel/core@7.23.6)(less@4.2.0)(postcss-load-config@4.0.1(postcss@8.5.34)(ts-node@10.9.1(@types/node@22.1.0)(typescript@5.5.4)))(postcss@8.5.34)(sass@1.77.8)(svelte@3.59.1)(typescript@5.5.4) typescript: 5.5.4 transitivePeerDependencies: - '@babel/core' @@ -29712,7 +30013,7 @@ snapshots: - stylus - sugarss - svelte-check@2.10.3(@babel/core@7.24.9)(less@4.2.0)(postcss-load-config@4.0.1(postcss@8.4.41)(ts-node@10.9.1(@types/node@22.1.0)(typescript@5.5.4)))(postcss@8.4.41)(sass@1.77.8)(svelte@3.59.1): + svelte-check@2.10.3(@babel/core@7.24.9)(less@4.2.0)(postcss-load-config@4.0.1(postcss@8.5.34)(ts-node@10.9.1(@types/node@22.1.0)(typescript@5.5.4)))(postcss@8.5.34)(sass@1.77.8)(svelte@3.59.1): dependencies: '@jridgewell/trace-mapping': 0.3.18 chokidar: 3.5.3 @@ -29721,7 +30022,7 @@ snapshots: picocolors: 1.0.0 sade: 1.8.1 svelte: 3.59.1 - svelte-preprocess: 4.10.7(@babel/core@7.24.9)(less@4.2.0)(postcss-load-config@4.0.1(postcss@8.4.41)(ts-node@10.9.1(@types/node@22.1.0)(typescript@5.5.4)))(postcss@8.4.41)(sass@1.77.8)(svelte@3.59.1)(typescript@5.5.4) + svelte-preprocess: 4.10.7(@babel/core@7.24.9)(less@4.2.0)(postcss-load-config@4.0.1(postcss@8.5.34)(ts-node@10.9.1(@types/node@22.1.0)(typescript@5.5.4)))(postcss@8.5.34)(sass@1.77.8)(svelte@3.59.1)(typescript@5.5.4) typescript: 5.5.4 transitivePeerDependencies: - '@babel/core' @@ -29739,7 +30040,7 @@ snapshots: dependencies: svelte: 3.59.1 - svelte-preprocess@4.10.7(@babel/core@7.23.6)(less@4.2.0)(postcss-load-config@4.0.1(postcss@8.4.41)(ts-node@10.9.1(@types/node@22.1.0)(typescript@5.5.4)))(postcss@8.4.41)(sass@1.77.8)(svelte@3.59.1)(typescript@5.5.4): + svelte-preprocess@4.10.7(@babel/core@7.23.6)(less@4.2.0)(postcss-load-config@4.0.1(postcss@8.5.34)(ts-node@10.9.1(@types/node@22.1.0)(typescript@5.5.4)))(postcss@8.5.34)(sass@1.77.8)(svelte@3.59.1)(typescript@5.5.4): dependencies: '@types/pug': 2.0.6 '@types/sass': 1.45.0 @@ -29751,12 +30052,12 @@ snapshots: optionalDependencies: '@babel/core': 7.23.6 less: 4.2.0 - postcss: 8.4.41 - postcss-load-config: 4.0.1(postcss@8.4.41)(ts-node@10.9.1(@types/node@22.1.0)(typescript@5.5.4)) + postcss: 8.5.34 + postcss-load-config: 4.0.1(postcss@8.5.34)(ts-node@10.9.1(@types/node@22.1.0)(typescript@5.5.4)) sass: 1.77.8 typescript: 5.5.4 - svelte-preprocess@4.10.7(@babel/core@7.24.9)(less@4.2.0)(postcss-load-config@4.0.1(postcss@8.4.41)(ts-node@10.9.1(@types/node@22.1.0)(typescript@5.5.4)))(postcss@8.4.41)(sass@1.77.8)(svelte@3.59.1)(typescript@5.5.4): + svelte-preprocess@4.10.7(@babel/core@7.24.9)(less@4.2.0)(postcss-load-config@4.0.1(postcss@8.5.34)(ts-node@10.9.1(@types/node@22.1.0)(typescript@5.5.4)))(postcss@8.5.34)(sass@1.77.8)(svelte@3.59.1)(typescript@5.5.4): dependencies: '@types/pug': 2.0.6 '@types/sass': 1.45.0 @@ -29768,8 +30069,8 @@ snapshots: optionalDependencies: '@babel/core': 7.24.9 less: 4.2.0 - postcss: 8.4.41 - postcss-load-config: 4.0.1(postcss@8.4.41)(ts-node@10.9.1(@types/node@22.1.0)(typescript@5.5.4)) + postcss: 8.5.34 + postcss-load-config: 4.0.1(postcss@8.5.34)(ts-node@10.9.1(@types/node@22.1.0)(typescript@5.5.4)) sass: 1.77.8 typescript: 5.5.4 @@ -30151,7 +30452,7 @@ snapshots: tsscmp@1.0.6: {} - tsup@6.7.0(postcss@8.4.41)(ts-node@10.9.1(@types/node@20.3.1)(typescript@5.5.4))(typescript@5.5.4): + tsup@6.7.0(postcss@8.5.34)(ts-node@10.9.1(@types/node@20.3.1)(typescript@5.5.4))(typescript@5.5.4): dependencies: bundle-require: 4.0.1(esbuild@0.17.19) cac: 6.7.14 @@ -30161,20 +30462,20 @@ snapshots: execa: 5.1.1 globby: 11.1.0 joycon: 3.1.1 - postcss-load-config: 3.1.4(postcss@8.4.41)(ts-node@10.9.1(@types/node@20.3.1)(typescript@5.5.4)) + postcss-load-config: 3.1.4(postcss@8.5.34)(ts-node@10.9.1(@types/node@20.3.1)(typescript@5.5.4)) resolve-from: 5.0.0 rollup: 3.25.0 source-map: 0.8.0-beta.0 sucrase: 3.32.0 tree-kill: 1.2.2 optionalDependencies: - postcss: 8.4.41 + postcss: 8.5.34 typescript: 5.5.4 transitivePeerDependencies: - supports-color - ts-node - tsup@6.7.0(postcss@8.4.41)(ts-node@10.9.1(@types/node@22.1.0)(typescript@5.5.4))(typescript@5.5.4): + tsup@6.7.0(postcss@8.5.34)(ts-node@10.9.1(@types/node@22.1.0)(typescript@5.5.4))(typescript@5.5.4): dependencies: bundle-require: 4.0.1(esbuild@0.17.19) cac: 6.7.14 @@ -30184,14 +30485,14 @@ snapshots: execa: 5.1.1 globby: 11.1.0 joycon: 3.1.1 - postcss-load-config: 3.1.4(postcss@8.4.41)(ts-node@10.9.1(@types/node@22.1.0)(typescript@5.5.4)) + postcss-load-config: 3.1.4(postcss@8.5.34)(ts-node@10.9.1(@types/node@22.1.0)(typescript@5.5.4)) resolve-from: 5.0.0 rollup: 3.25.0 source-map: 0.8.0-beta.0 sucrase: 3.32.0 tree-kill: 1.2.2 optionalDependencies: - postcss: 8.4.41 + postcss: 8.5.34 typescript: 5.5.4 transitivePeerDependencies: - supports-color @@ -30905,6 +31206,8 @@ snapshots: vscode-textmate@8.0.0: {} + vue-component-type-helpers@3.4.0: {} + vue-template-compiler@2.7.16: dependencies: de-indent: 1.0.2 @@ -30917,6 +31220,16 @@ snapshots: semver: 7.6.0 typescript: 5.5.4 + vue@3.5.47(typescript@5.5.4): + dependencies: + '@vue/compiler-dom': 3.5.47 + '@vue/compiler-sfc': 3.5.47 + '@vue/runtime-dom': 3.5.47 + '@vue/server-renderer': 3.5.47 + '@vue/shared': 3.5.47 + optionalDependencies: + typescript: 5.5.4 + w3c-keyname@2.2.8: {} w3c-xmlserializer@4.0.0: