diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts index e47e6657..bd991dee 100644 --- a/packages/core/src/index.ts +++ b/packages/core/src/index.ts @@ -1,980 +1,985 @@ -import { parseCookies } from "./helpers"; -import { - getVariantWithHeighestWeightOrFirst, - getWeightedRandomVariant, -} from "./mathHelpers"; -import { type FlagRuleSet, HttpService, type SubFlagRule } from "./shared"; -import { - ABBY_AB_STORAGE_PREFIX, - ABBY_FF_STORAGE_PREFIX, - ABBY_RC_STORAGE_PREFIX, - ABBY_WINDOW_KEY, - type AbbyDataResponse, - DEFAULT_FEATURE_FLAG_VALUE, - type RemoteConfigValue, - type RemoteConfigValueString, - type RemoteConfigValueStringToType, - type StorageServiceOptions, - getDefaultRemoteConfigValue, - remoteConfigStringToType, - stringifyRemoteConfigValue, -} from "./shared/"; -import * as validation from "./validation"; - -export * from "./shared/index"; -export { - defineConfig, - type DynamicConfigKeys, - DYNAMIC_ABBY_CONFIG_KEYS, -} from "./defineConfig"; - -export type ABConfig = { - variants: ReadonlyArray; -}; - -type Settings< - FlagName extends string, - RemoteConfigName extends string = string, - RemoteConfig extends Record< - RemoteConfigName, - RemoteConfigValueString - > = Record, -> = { - flags?: { - defaultValue?: boolean; - devOverrides?: { - [K in FlagName]?: boolean; - }; - fallbackValues?: { - [K in FlagName]?: boolean; - }; - }; - remoteConfig?: { - defaultValues?: { - [K in RemoteConfigValueString]?: RemoteConfigValueStringToType; - }; - devOverrides?: { - [K in keyof RemoteConfig]: RemoteConfigValueStringToType; - }; - fallbackValues?: { - [K in keyof RemoteConfig]?: RemoteConfigValueStringToType< - RemoteConfig[K] - >; - }; - }; -}; - -type LocalData< - FlagName extends string = string, - TestName extends string = string, - RemoteConfigName extends string = string, -> = { - tests: Record< - TestName, - ABConfig & { - weights?: Array; - selectedVariant?: string; - } - >; - flags: Record; - remoteConfig: Record< - RemoteConfigName, - { value: RemoteConfigValue; ruleSet?: FlagRuleSet } - >; -}; - -interface PersistentStorage { - get: (key: string) => string | null; - set: (key: string, value: string, options?: StorageServiceOptions) => void; -} - -export type AbbyConfig< - FlagName extends string = string, - Tests extends Record = Record, - Environments extends Array = Array, - RemoteConfigName extends string = string, - RemoteConfig extends Record< - RemoteConfigName, - RemoteConfigValueString - > = Record, - User extends Record = Record< - string, - validation.ValidatorType - >, -> = { - projectId: string; - apiUrl?: string; - currentEnvironment: Environments[number]; - environments: Environments; - tests?: Tests; - flags?: FlagName[]; - remoteConfig?: RemoteConfig; - settings?: Settings; - debug?: boolean; - fetch?: (typeof globalThis)["fetch"]; - cookies?: { - disableByDefault?: boolean; - expiresInDays?: number; - }; - __experimentalCdnUrl?: string; - user?: User; -}; - -export class Abby< - const FlagName extends string, - const TestName extends string, - const Tests extends Record, - const RemoteConfig extends Record, - const RemoteConfigName extends Extract, - const Environments extends Array = Array, - const User extends Record = Record< - string, - validation.ValidatorType - >, -> { - private log = (...args: any[]) => - this.config.debug ? console.log("core.Abby", ...args) : () => {}; - - #data: LocalData = { - tests: {} as any, - flags: {} as any, - remoteConfig: {} as any, - }; - - private listeners = new Set< - (newData: LocalData) => void - >(); - - private _cfg: AbbyConfig; - - private dataInitialized = false; - - private flagOverrides = new Map(); - private testOverrides: Map< - keyof Tests, - Tests[keyof Tests]["variants"][number] - > = new Map(); - private remoteConfigOverrides = new Map(); - - private COOKIE_CONSENT_KEY = "$_abcc_$"; - private user = {} as { - -readonly [K in keyof User]: validation.Infer; - }; - - constructor( - private config: AbbyConfig< - FlagName, - Tests, - Environments, - RemoteConfigName, - RemoteConfig, - User - >, - private persistantTestStorage?: PersistentStorage, - private persistantFlagStorage?: PersistentStorage, - private persistentRemoteConfigStorage?: PersistentStorage - ) { - this._cfg = config as AbbyConfig; - this.#data.flags = Object.values(this._cfg.flags ?? {}).reduce( - (acc, flagName) => { - acc[flagName as FlagName] = { - value: DEFAULT_FEATURE_FLAG_VALUE, - }; - return acc; - }, - {} as LocalData["flags"] - ); - this.#data.tests = config.tests ?? ({} as any); - this.#data.remoteConfig = Object.keys(config.remoteConfig ?? {}).reduce( - (acc, remoteConfigName) => { - acc[remoteConfigName as RemoteConfigName] = { - value: this.getDefaultRemoteConfigValue( - remoteConfigName, - config.remoteConfig as any - ), - }; - - return acc; - }, - {} as LocalData["remoteConfig"] - ); - - if (persistantTestStorage) { - this.persistantTestStorage = { - get: (...args) => persistantTestStorage.get(...args), - set: (...args) => { - if (config.cookies?.disableByDefault) return; - const [key, value] = args; - persistantTestStorage.set(key, value, { - expiresInDays: config.cookies?.expiresInDays, - }); - }, - }; - } - } - - /** - * Helper function to load the projects data from the Abby API - * and init the local data - */ - async loadProjectData() { - this.log("loadProjectData()"); - const start = Date.now(); - - // browser environments can load the abby data from the window object - // when the script is loaded from the server - if ( - typeof window !== "undefined" && - ABBY_WINDOW_KEY in window && - window[ABBY_WINDOW_KEY] != null - ) { - this.log("loadProjectData() => using window data"); - return this.init(window[ABBY_WINDOW_KEY] as AbbyDataResponse); - } - const data = await HttpService.getProjectData({ - projectId: this.config.projectId, - environment: this.config.currentEnvironment as string, - url: this.config.apiUrl, - fetch: this._cfg.fetch, - __experimentalCdnUrl: this._cfg.__experimentalCdnUrl - ? `${this._cfg.__experimentalCdnUrl}/${this.config.projectId}/${this.config.currentEnvironment}` - : undefined, - }); - if (!data) { - this.log("loadProjectData() => no data"); - return; - } - this.log("loadProjectData() => finished. Elapsed: ", Date.now() - start); - return this.init(data); - } - - async getProjectDataAsync(): Promise< - LocalData - > { - this.log("getProjectDataAsync()"); - - if (!this.dataInitialized) { - await this.loadProjectData(); - this.dataInitialized = true; - } - return this.getProjectData(); - } - - /** - * Helper function to transform the data which is fetched from the server - * to the local data structure - */ - private responseToLocalData( - data: AbbyDataResponse - ): LocalData { - return { - tests: data.tests.reduce( - (acc, { name, weights }) => { - if (!acc[name as keyof Tests]) { - return acc; - } - - // assigned the fetched weights to the initial config - acc[name as keyof Tests] = { - ...acc[name as keyof Tests], - weights, - }; - return acc; - }, - (this.config.tests ?? {}) as any - ), - flags: data.flags.reduce( - (acc, { name, value, ruleSet }) => { - const evaluatedValue = ruleSet - ? this.evaluateUserProperties(ruleSet) - : value; - acc[name] = { - value: evaluatedValue ?? value, - ruleSet, - }; - return acc; - }, - {} as LocalData["flags"] - ), - remoteConfig: (data.remoteConfig ?? []).reduce( - (acc, { name, value, ruleSet }) => { - const evaluatedValue = ruleSet - ? this.evaluateUserProperties(ruleSet) - : value; - acc[name] = { - value: evaluatedValue ?? value, - ruleSet, - }; - return acc; - }, - {} as LocalData["remoteConfig"] - ), - }; - } - - /** - * Function to get the locally stored information about A/B tests, feature flags and remote config - * This also includes the overrides from the dev tools and the local overrides - * @returns the local data - */ - getProjectData(): LocalData { - this.log("getProjectData()"); - - return { - tests: Object.entries(this.#data.tests).reduce( - (acc, [testName, test]) => { - acc[testName as TestName] = { - ...(test as Tests[TestName]), - selectedVariant: this.getTestVariant(testName as TestName), - }; - return acc; - }, - this.#data.tests - ), - flags: Object.keys(this.#data.flags).reduce((acc, flagName) => { - acc[flagName as FlagName] = { - value: this.getFeatureFlag(flagName as FlagName), - ruleSet: this.#data.flags[flagName as FlagName].ruleSet, - }; - return acc; - }, this.#data.flags), - remoteConfig: Object.keys(this.#data.remoteConfig).reduce( - (acc, remoteConfigName) => { - acc[remoteConfigName as RemoteConfigName] = { - value: this.getRemoteConfig(remoteConfigName as RemoteConfigName), - ruleSet: - this.#data.remoteConfig[remoteConfigName as RemoteConfigName] - .ruleSet, - }; - return acc; - }, - this.#data.remoteConfig - ), - }; - } - - /** - * Function to init the local data with the data from the server as well as - * potentially setting the local overrides which are read from document.cookie if - * we are in a browser environment - * @param data - * @returns - */ - init(data: AbbyDataResponse) { - this.log("init()", data); - - this.#data = this.responseToLocalData(data); - this.notifyListeners(); - - if (typeof window !== "undefined" && typeof document !== "undefined") { - this.setLocalOverrides(document.cookie); - } - - return this.getProjectData(); - } - - /** - * Function to get the value of a feature flag. This includes - * the overrides from the dev tools and the local overrides if in development mode - * otherwise it will return the value retrieved from the server - * @param key the name of the feature flag - * @returns the value of the feature flag - */ - getFeatureFlag(key: FlagName): boolean { - this.log("getFeatureFlag()", key); - - const storedValue = this.#data.flags[key]; - - const localOverride = this.flagOverrides?.get(key as unknown as FlagName); - - if (localOverride != null) { - return localOverride; - } - - /** - * in development mode, we can override the flag values - * in the following priority - * 1. DevTools - * 2. DevOverrides from config - * 3. DevDefault from config - */ - if (process.env.NODE_ENV === "development") { - const devOverride = (this.config.settings?.flags?.devOverrides as any)?.[ - key - ]; - if (devOverride != null) { - return devOverride; - } - } - - const defaultValue = this._cfg.settings?.flags?.defaultValue; - - if (storedValue !== undefined) { - this.log("getFeatureFlag() => storedValue:", storedValue); - - const evaluatedValue = storedValue.ruleSet - ? this.evaluateUserProperties(storedValue.ruleSet) - : storedValue.value; - - return evaluatedValue ?? storedValue.value; - } - // before we return the default value we check if there is a fallback value set - const hasFallbackValue = - key in (this._cfg.settings?.flags?.fallbackValues ?? {}); - - if (hasFallbackValue) { - const fallbackValue = - this._cfg.settings?.flags?.fallbackValues?.[key as FlagName]; - if (fallbackValue !== undefined) { - if (typeof fallbackValue === "boolean") { - this.log("getFeatureFlag() => fallbackValue:", fallbackValue); - return fallbackValue; - } - const envFallbackValue = - fallbackValue[this._cfg.currentEnvironment as string]; - - if (envFallbackValue !== undefined) { - this.log("getFeatureFlag() => envFallbackValue:", envFallbackValue); - return envFallbackValue; - } - } - } - - this.log("getFeatureFlag() => defaultValue:", defaultValue ?? false); - return defaultValue ?? false; - } - - /** - * Function to get the value of a remote config. This includes - * the overrides from the dev tools and the local overrides if in development mode - * otherwise it will return the value retrieved from the server - * @param key the name of the remote config - * @returns the value of the remote config - */ - getRemoteConfig< - T extends RemoteConfigName, - Curr extends RemoteConfig[T] = RemoteConfig[T], - >(key: T): RemoteConfigValueStringToType { - this.log("getRemoteConfig()", key); - - const storedValue = this.#data.remoteConfig[key]; - const localOverride = this.remoteConfigOverrides?.get(key); - - if (localOverride !== undefined) { - return localOverride as RemoteConfigValueStringToType< - RemoteConfig[RemoteConfigName] - >; - } - - if (process.env.NODE_ENV === "development") { - const devOverride = ( - this.config.settings?.remoteConfig?.devOverrides as any - )?.[key]; - if (devOverride != null) { - return devOverride; - } - } - - const defaultValue = this._cfg.remoteConfig?.[key] - ? this._cfg.settings?.remoteConfig?.defaultValues?.[ - this._cfg.remoteConfig?.[key] - ] - : null; - - if (storedValue === undefined) { - // before we return the default value we check if there is a fallback value set - const fallbackValue = - key in (this._cfg.settings?.remoteConfig?.fallbackValues ?? {}); - if (fallbackValue) { - return this._cfg.settings?.remoteConfig?.fallbackValues?.[ - key - ] as RemoteConfigValueStringToType; - } - - if (defaultValue != null) { - return defaultValue as RemoteConfigValueStringToType< - RemoteConfig[RemoteConfigName] - >; - } - } - - this.log("getRemoteConfig() => storedValue:", storedValue); - - const evaluatedValue = storedValue.ruleSet - ? this.evaluateUserProperties< - RemoteConfigValueStringToType - >(storedValue.ruleSet) - : (storedValue.value as RemoteConfigValueStringToType< - RemoteConfig[RemoteConfigName] - >); - - return ( - evaluatedValue ?? - (storedValue.value as RemoteConfigValueStringToType< - RemoteConfig[RemoteConfigName] - >) - ); - } - - /** - * Function to get the value of a test variant. This includes - * the overrides from the dev tools and the local overrides if in development mode - * if there is no override or a stored variant we generate a new one and store it - * @param key The name of the test - * @returns the value of the test variant - */ - getTestVariant(key: T): Tests[T]["variants"][number] { - this.log("getTestVariant()", key); - - const { variants, weights } = (this.#data.tests as LocalData["tests"])[ - key as keyof LocalData["tests"] - ]; - - const override = this.testOverrides.get(key); - - if (process.env.NODE_ENV === "development" && override != null) { - return override; - } - - const persistedValue = this.persistantTestStorage?.get(key as string); - - if (persistedValue != null) { - this.log("getTestVariant() => persistedValue:", persistedValue); - - return persistedValue; - } - if (this.config.cookies?.disableByDefault) { - return getVariantWithHeighestWeightOrFirst(variants, weights); - } - const weightedVariant = getWeightedRandomVariant(variants, weights); - this.persistantTestStorage?.set(key as string, weightedVariant); - - this.log("getTestVariant() => weightedVariant:", weightedVariant); - - return weightedVariant; - } - - /** - * Helper function update the locally stored variant for a test - * @param key the name of the test - * @param override the value to override the test variant with - */ - updateLocalVariant( - key: T, - override: Tests[T]["variants"][number] - ) { - this.testOverrides.set(key, override); - this.persistantTestStorage?.set(key as string, override); - - this.notifyListeners(); - } - - /** - * Helper function to update the locally stored value of a feature flag - * @param name the name of the feature flag - * @param value the value to override the feature flag with - */ - updateFlag(name: FlagName, value: boolean) { - this.flagOverrides.set(name, value); - if (process.env.NODE_ENV === "development") { - this.persistantFlagStorage?.set(name, this.stringifiedValue(value)); - } - this.notifyListeners(); - } - - /** - * Helper function to update the locally stored value of a remote config - * @param name the name of the remote config - * @param value the value to override the remote config with - */ - updateRemoteConfig( - name: RemoteConfigName, - value: RemoteConfigValueStringToType - ) { - this.remoteConfigOverrides.set(name, value); - if (process.env.NODE_ENV === "development") { - this.persistentRemoteConfigStorage?.set( - name, - this.stringifiedValue(value) - ); - } - this.notifyListeners(); - } - - /** - * Function to subscribe to changes in the local data - * @param listener the function to call when the local data changes - * @returns the unsubscribe function - */ - subscribe(listener: (newValue: LocalData) => void) { - this.listeners.add(listener); - - return () => { - this.listeners.delete(listener); - }; - } - - /** - * Function to notify all listeners that the local data has changed - */ - private notifyListeners() { - this.listeners.forEach((listener) => listener(this.getProjectData())); - } - - /** - * Function to get the config passed to the Abby class - */ - getConfig() { - return this.config; - } - - /** - * Function to get all variants for a test - */ - getVariants(testName: T): Tests[T]["variants"] { - return this.#data.tests[testName as unknown as TestName].variants; - } - - /** - * Function to initially set the local overrides from the cookies - * this can be either a cookie from `document.cookie` or a cookie header. - * This should be called after the init function - * @param cookies the cookie string - */ - setLocalOverrides(cookies: string) { - const parsedCookies = parseCookies(cookies); - - Object.entries(parsedCookies).forEach(([cookieName, cookieValue]) => { - // this happens if there are multiple abby instances. We only want to use the cookies for this instance - if (!cookieName.includes(`${this.config.projectId}_`)) { - return; - } - - if (cookieName.startsWith(ABBY_AB_STORAGE_PREFIX)) { - // A/B testing cookie - const testName = cookieName.replace( - `${ABBY_AB_STORAGE_PREFIX}${this.config.projectId}_`, - "" - ); - - // special case for the cookie consent - if (testName === this.COOKIE_CONSENT_KEY) { - this.config.cookies ??= {}; - this.config.cookies.disableByDefault = cookieValue !== "true"; - return; - } - - this.testOverrides.set(testName as TestName, cookieValue); - this.persistantTestStorage?.set(testName as TestName, cookieValue); - } - // FF testing cookie - if (cookieName.startsWith(ABBY_FF_STORAGE_PREFIX)) { - const flagName = cookieName.replace( - `${ABBY_FF_STORAGE_PREFIX}${this.config.projectId}_`, - "" - ); - - const flagValue = cookieValue === "true"; - this.flagOverrides.set(flagName, flagValue); - } - - if ( - cookieName.startsWith(ABBY_RC_STORAGE_PREFIX) && - this._cfg.remoteConfig - ) { - const remoteConfigName = cookieName.replace( - `${ABBY_RC_STORAGE_PREFIX}${this.config.projectId}_`, - "" - ); - - const remoteConfigValue = remoteConfigStringToType({ - remoteConfigType: this._cfg.remoteConfig[remoteConfigName], - stringifiedValue: cookieValue, - }); - this.remoteConfigOverrides.set(remoteConfigName, remoteConfigValue); - } - }); - } - - private getDefaultRemoteConfigValue( - remoteConfigName: RemoteConfigName, - remoteConfig: RemoteConfig - ): RemoteConfigValue { - const remoteConfigType = - remoteConfig[remoteConfigName as unknown as keyof RemoteConfig]; - - const defaultValue = - this.config.settings?.remoteConfig?.defaultValues?.[remoteConfigType]; - - if (defaultValue !== undefined) { - return defaultValue as RemoteConfigValue; - } - - return getDefaultRemoteConfigValue(remoteConfigType); - } - - private stringifiedValue(value: RemoteConfigValue | boolean): string { - if (typeof value === "boolean") { - return value.toString(); - } - return stringifyRemoteConfigValue(value); - } - - /** - * Retruns an Array of all flags with their name and value - */ - getFeatureFlags() { - return (Object.keys(this.#data.flags) as Array).map( - (flagName) => ({ - name: flagName, - value: this.getFeatureFlag(flagName), - }) - ); - } - - /** - * Retruns an Array of all remote config variables with their name and value - */ - getRemoteConfigVariables() { - return ( - Object.keys(this.#data.remoteConfig) as Array - ).map((configName) => ({ - name: configName, - value: this.getRemoteConfig(configName), - })) as Array<{ - name: RemoteConfigName; - value: RemoteConfigValueStringToType; - }>; - } - - /** - * Enables the usage of cookies for the storage of user data - * and also sets the cookies if possible - */ - enableCookies() { - this.config.cookies ??= {}; - this.config.cookies.disableByDefault = false; - this.persistantTestStorage?.set(this.COOKIE_CONSENT_KEY, "true"); - - Object.keys(this.#data.tests).forEach((testName) => { - this.persistantTestStorage?.set( - testName, - this.getTestVariant(testName as TestName) - ); - }); - } - - /** - * Disables the usage of cookies for storage of user data - * and also removes all set cookies if possible - */ - disableCookies() { - this.config.cookies ??= {}; - this.config.cookies.disableByDefault = true; - this.persistantTestStorage?.set(this.COOKIE_CONSENT_KEY, "false"); - - Object.keys(this.#data.tests).forEach((testName) => { - this.persistantTestStorage?.set( - testName, - this.getTestVariant(testName as TestName) - ); - }); - } - - updateUserProperties( - user: Partial<{ - -readonly [K in keyof User]: validation.Infer; - }> - ) { - if (!this.config.user) { - throw new Error("User properties are not defined in the config"); - } - - const validationErrors: validation.ValidationErrors = []; - // validate only the properties that are given as an argument - for (const [key, value] of Object.entries(user)) { - const validationErrorMessage = validation.validateProperty( - this.config.user[key], - value - ); - if (validationErrorMessage) { - validationErrors.push({ - property: key, - message: validationErrorMessage, - }); - } - } - if (validationErrors.length > 0) { - throw new Error( - validationErrors.map((e) => `[${e.property}]: ${e.message}`).join(", ") - ); - } - - const oldUser = { ...this.user }; - this.user = { - ...this.user, - ...user, - }; - - // Only notify if user properties actually changed - if (JSON.stringify(oldUser) !== JSON.stringify(this.user)) { - this.log("updateUserProperties()", this.user); - this.notifyListeners(); - } - } - - private evaluateUserProperties( - rules: FlagRuleSet - ): T | null { - const evaluateRule = (rule: T): T | null => { - if (!(rule.propertyName in this.user)) return null; - - const userPropertyValue = this.user[rule.propertyName]; - switch (rule.propertyType) { - case "boolean": { - if (typeof userPropertyValue !== "boolean") return null; - switch (rule.operator) { - case "eq": { - if (userPropertyValue === rule.value) { - return rule; - } - break; - } - } - break; - } - case "string": { - if (typeof userPropertyValue !== "string") return null; - switch (rule.operator) { - case "eq": { - if (userPropertyValue === rule.value) { - return rule; - } - break; - } - case "neq": { - if (userPropertyValue !== rule.value) { - return rule; - } - break; - } - case "contains": { - if (userPropertyValue.includes(rule.value)) { - return rule; - } - break; - } - case "notContains": { - if (!userPropertyValue.includes(rule.value)) { - return rule; - } - break; - } - case "startsWith": { - if (userPropertyValue.startsWith(rule.value)) { - return rule; - } - break; - } - case "endsWith": { - if (userPropertyValue.endsWith(rule.value)) { - return rule; - } - break; - } - case "regex": { - if (new RegExp(rule.value).test(userPropertyValue)) { - return rule; - } - break; - } - } - break; - } - case "number": { - if (typeof userPropertyValue !== "number") return null; - switch (rule.operator) { - case "eq": { - if (userPropertyValue === rule.value) { - return rule; - } - break; - } - case "neq": { - if (userPropertyValue !== rule.value) { - return rule; - } - break; - } - case "gt": { - if (userPropertyValue > rule.value) { - return rule; - } - break; - } - case "gte": { - if (userPropertyValue >= rule.value) { - return rule; - } - break; - } - case "lt": { - if (userPropertyValue < rule.value) { - return rule; - } - break; - } - case "lte": { - if (userPropertyValue <= rule.value) { - return rule; - } - break; - } - } - break; - } - default: { - throw new Error("Unsupported property type"); - } - } - return null; - }; - for (const rule of rules) { - if ("rules" in rule) { - switch (rule.operator) { - // this means every rule in the array has to be true - case "and": { - let matches = true; - for (const subRule of rule.rules) { - if (!evaluateRule(subRule)) { - matches = false; - break; - } - } - if (matches) { - return rule.thenValue as T; - } - continue; - } - case "or": { - let matches = false; - for (const subRule of rule.rules) { - if (evaluateRule(subRule)) { - matches = true; - break; - } - } - if (matches) { - return rule.thenValue as T; - } - continue; - } - } - } - const result = evaluateRule(rule); - if (!result) continue; - return result.thenValue as T; - } - return null; - } -} +import { parseCookies } from "./helpers"; +import { + getVariantWithHeighestWeightOrFirst, + getWeightedRandomVariant, +} from "./mathHelpers"; +import { type FlagRuleSet, HttpService, type SubFlagRule } from "./shared"; +import { + ABBY_AB_STORAGE_PREFIX, + ABBY_FF_STORAGE_PREFIX, + ABBY_RC_STORAGE_PREFIX, + ABBY_WINDOW_KEY, + type AbbyDataResponse, + DEFAULT_FEATURE_FLAG_VALUE, + type RemoteConfigValue, + type RemoteConfigValueString, + type RemoteConfigValueStringToType, + type StorageServiceOptions, + getDefaultRemoteConfigValue, + remoteConfigStringToType, + stringifyRemoteConfigValue, +} from "./shared/"; +import * as validation from "./validation"; + +export * from "./shared/index"; +export { + defineConfig, + type DynamicConfigKeys, + DYNAMIC_ABBY_CONFIG_KEYS, +} from "./defineConfig"; + +export type ABConfig = { + variants: ReadonlyArray; +}; + +type Settings< + FlagName extends string, + RemoteConfigName extends string = string, + RemoteConfig extends Record< + RemoteConfigName, + RemoteConfigValueString + > = Record, +> = { + flags?: { + defaultValue?: boolean; + devOverrides?: { + [K in FlagName]?: boolean; + }; + fallbackValues?: { + [K in FlagName]?: boolean; + }; + }; + remoteConfig?: { + defaultValues?: { + [K in RemoteConfigValueString]?: RemoteConfigValueStringToType; + }; + devOverrides?: { + [K in keyof RemoteConfig]: RemoteConfigValueStringToType; + }; + fallbackValues?: { + [K in keyof RemoteConfig]?: RemoteConfigValueStringToType< + RemoteConfig[K] + >; + }; + }; +}; + +type LocalData< + FlagName extends string = string, + TestName extends string = string, + RemoteConfigName extends string = string, +> = { + tests: Record< + TestName, + ABConfig & { + weights?: Array; + selectedVariant?: string; + } + >; + flags: Record; + remoteConfig: Record< + RemoteConfigName, + { value: RemoteConfigValue; ruleSet?: FlagRuleSet } + >; +}; + +interface PersistentStorage { + get: (key: string) => string | null; + set: (key: string, value: string, options?: StorageServiceOptions) => void; +} + +export type AbbyConfig< + FlagName extends string = string, + Tests extends Record = Record, + Environments extends Array = Array, + RemoteConfigName extends string = string, + RemoteConfig extends Record< + RemoteConfigName, + RemoteConfigValueString + > = Record, + User extends Record = Record< + string, + validation.ValidatorType + >, +> = { + projectId: string; + apiUrl?: string; + currentEnvironment: Environments[number]; + environments: Environments; + tests?: Tests; + flags?: FlagName[]; + remoteConfig?: RemoteConfig; + settings?: Settings; + debug?: boolean; + fetch?: (typeof globalThis)["fetch"]; + cookies?: { + disableByDefault?: boolean; + expiresInDays?: number; + }; + __experimentalCdnUrl?: string; + user?: User; +}; + +export class Abby< + const FlagName extends string, + const TestName extends string, + const Tests extends Record, + const RemoteConfig extends Record, + const RemoteConfigName extends Extract, + const Environments extends Array = Array, + const User extends Record = Record< + string, + validation.ValidatorType + >, +> { + private log = (...args: any[]) => + this.config.debug ? console.log("core.Abby", ...args) : () => {}; + + #data: LocalData = { + tests: {} as any, + flags: {} as any, + remoteConfig: {} as any, + }; + + private listeners = new Set< + (newData: LocalData) => void + >(); + + private _cfg: AbbyConfig; + + private dataInitialized = false; + + private flagOverrides = new Map(); + private testOverrides: Map< + keyof Tests, + Tests[keyof Tests]["variants"][number] + > = new Map(); + private remoteConfigOverrides = new Map(); + + private COOKIE_CONSENT_KEY = "$_abcc_$"; + private user = {} as { + -readonly [K in keyof User]: validation.Infer; + }; + + constructor( + private config: AbbyConfig< + FlagName, + Tests, + Environments, + RemoteConfigName, + RemoteConfig, + User + >, + private persistantTestStorage?: PersistentStorage, + private persistantFlagStorage?: PersistentStorage, + private persistentRemoteConfigStorage?: PersistentStorage + ) { + this._cfg = config as AbbyConfig; + this.#data.flags = Object.values(this._cfg.flags ?? {}).reduce( + (acc, flagName) => { + acc[flagName as FlagName] = { + value: DEFAULT_FEATURE_FLAG_VALUE, + }; + return acc; + }, + {} as LocalData["flags"] + ); + this.#data.tests = config.tests ?? ({} as any); + this.#data.remoteConfig = Object.keys(config.remoteConfig ?? {}).reduce( + (acc, remoteConfigName) => { + acc[remoteConfigName as RemoteConfigName] = { + value: this.getDefaultRemoteConfigValue( + remoteConfigName, + config.remoteConfig as any + ), + }; + + return acc; + }, + {} as LocalData["remoteConfig"] + ); + + if (persistantTestStorage) { + this.persistantTestStorage = { + get: (...args) => persistantTestStorage.get(...args), + set: (...args) => { + if (config.cookies?.disableByDefault) return; + const [key, value] = args; + persistantTestStorage.set(key, value, { + expiresInDays: config.cookies?.expiresInDays, + }); + }, + }; + } + } + + /** + * Helper function to load the projects data from the Abby API + * and init the local data + */ + async loadProjectData() { + this.log("loadProjectData()"); + const start = Date.now(); + + // browser environments can load the abby data from the window object + // when the script is loaded from the server + if ( + typeof window !== "undefined" && + ABBY_WINDOW_KEY in window && + window[ABBY_WINDOW_KEY] != null + ) { + this.log("loadProjectData() => using window data"); + return this.init(window[ABBY_WINDOW_KEY] as AbbyDataResponse); + } + const data = await HttpService.getProjectData({ + projectId: this.config.projectId, + environment: this.config.currentEnvironment as string, + url: this.config.apiUrl, + fetch: this._cfg.fetch, + __experimentalCdnUrl: this._cfg.__experimentalCdnUrl + ? `${this._cfg.__experimentalCdnUrl}/${this.config.projectId}/${this.config.currentEnvironment}` + : undefined, + }); + if (!data) { + this.log("loadProjectData() => no data"); + return; + } + this.log("loadProjectData() => finished. Elapsed: ", Date.now() - start); + return this.init(data); + } + + async getProjectDataAsync(): Promise< + LocalData + > { + this.log("getProjectDataAsync()"); + + if (!this.dataInitialized) { + await this.loadProjectData(); + this.dataInitialized = true; + } + return this.getProjectData(); + } + + /** + * Helper function to transform the data which is fetched from the server + * to the local data structure + */ + private responseToLocalData( + data: AbbyDataResponse + ): LocalData { + return { + tests: data.tests.reduce( + (acc, { name, weights }) => { + if (!acc[name as keyof Tests]) { + return acc; + } + + // assigned the fetched weights to the initial config + acc[name as keyof Tests] = { + ...acc[name as keyof Tests], + weights, + }; + return acc; + }, + (this.config.tests ?? {}) as any + ), + flags: data.flags.reduce( + (acc, { name, value, ruleSet }) => { + const evaluatedValue = ruleSet + ? this.evaluateUserProperties(ruleSet) + : value; + acc[name] = { + value: evaluatedValue ?? value, + ruleSet, + }; + return acc; + }, + {} as LocalData["flags"] + ), + remoteConfig: (data.remoteConfig ?? []).reduce( + (acc, { name, value, ruleSet }) => { + const evaluatedValue = ruleSet + ? this.evaluateUserProperties(ruleSet) + : value; + acc[name] = { + value: evaluatedValue ?? value, + ruleSet, + }; + return acc; + }, + {} as LocalData["remoteConfig"] + ), + }; + } + + /** + * Function to get the locally stored information about A/B tests, feature flags and remote config + * This also includes the overrides from the dev tools and the local overrides + * @returns the local data + */ + getProjectData(): LocalData { + this.log("getProjectData()"); + + return { + tests: Object.entries(this.#data.tests).reduce( + (acc, [testName, test]) => { + acc[testName as TestName] = { + ...(test as Tests[TestName]), + selectedVariant: this.getTestVariant(testName as TestName), + }; + return acc; + }, + this.#data.tests + ), + flags: Object.keys(this.#data.flags).reduce((acc, flagName) => { + acc[flagName as FlagName] = { + value: this.getFeatureFlag(flagName as FlagName), + ruleSet: this.#data.flags[flagName as FlagName].ruleSet, + }; + return acc; + }, this.#data.flags), + remoteConfig: Object.keys(this.#data.remoteConfig).reduce( + (acc, remoteConfigName) => { + acc[remoteConfigName as RemoteConfigName] = { + value: this.getRemoteConfig(remoteConfigName as RemoteConfigName), + ruleSet: + this.#data.remoteConfig[remoteConfigName as RemoteConfigName] + .ruleSet, + }; + return acc; + }, + this.#data.remoteConfig + ), + }; + } + + /** + * Function to init the local data with the data from the server as well as + * potentially setting the local overrides which are read from document.cookie if + * we are in a browser environment + * @param data + * @returns + */ + init(data: AbbyDataResponse) { + this.log("init()", data); + + this.#data = this.responseToLocalData(data); + this.notifyListeners(); + + if (typeof window !== "undefined" && typeof document !== "undefined") { + this.setLocalOverrides(document.cookie); + } + + return this.getProjectData(); + } + + /** + * Function to get the value of a feature flag. This includes + * the overrides from the dev tools and the local overrides if in development mode + * otherwise it will return the value retrieved from the server + * @param key the name of the feature flag + * @returns the value of the feature flag + */ + getFeatureFlag(key: FlagName): boolean { + this.log("getFeatureFlag()", key); + + const storedValue = this.#data.flags[key]; + + const localOverride = this.flagOverrides?.get(key as unknown as FlagName); + + if (localOverride != null) { + return localOverride; + } + + /** + * in development mode, we can override the flag values + * in the following priority + * 1. DevTools + * 2. DevOverrides from config + * 3. DevDefault from config + */ + if (process.env.NODE_ENV === "development") { + const devOverride = (this.config.settings?.flags?.devOverrides as any)?.[ + key + ]; + if (devOverride != null) { + return devOverride; + } + } + + const defaultValue = this._cfg.settings?.flags?.defaultValue; + + if (storedValue !== undefined) { + this.log("getFeatureFlag() => storedValue:", storedValue); + + const evaluatedValue = storedValue.ruleSet + ? this.evaluateUserProperties(storedValue.ruleSet) + : storedValue.value; + + return evaluatedValue ?? storedValue.value; + } + // before we return the default value we check if there is a fallback value set + const hasFallbackValue = + key in (this._cfg.settings?.flags?.fallbackValues ?? {}); + + if (hasFallbackValue) { + const fallbackValue = + this._cfg.settings?.flags?.fallbackValues?.[key as FlagName]; + if (fallbackValue !== undefined) { + if (typeof fallbackValue === "boolean") { + this.log("getFeatureFlag() => fallbackValue:", fallbackValue); + return fallbackValue; + } + const envFallbackValue = + fallbackValue[this._cfg.currentEnvironment as string]; + + if (envFallbackValue !== undefined) { + this.log("getFeatureFlag() => envFallbackValue:", envFallbackValue); + return envFallbackValue; + } + } + } + + this.log("getFeatureFlag() => defaultValue:", defaultValue ?? false); + return defaultValue ?? false; + } + + /** + * Function to get the value of a remote config. This includes + * the overrides from the dev tools and the local overrides if in development mode + * otherwise it will return the value retrieved from the server + * @param key the name of the remote config + * @returns the value of the remote config + */ + getRemoteConfig< + T extends RemoteConfigName, + Curr extends RemoteConfig[T] = RemoteConfig[T], + >(key: T): RemoteConfigValueStringToType { + this.log("getRemoteConfig()", key); + + const storedValue = this.#data.remoteConfig[key]; + const localOverride = this.remoteConfigOverrides?.get(key); + + if (localOverride !== undefined) { + return localOverride as RemoteConfigValueStringToType< + RemoteConfig[RemoteConfigName] + >; + } + + if (process.env.NODE_ENV === "development") { + const devOverride = ( + this.config.settings?.remoteConfig?.devOverrides as any + )?.[key]; + if (devOverride != null) { + return devOverride; + } + } + + const defaultValue = this._cfg.remoteConfig?.[key] + ? this._cfg.settings?.remoteConfig?.defaultValues?.[ + this._cfg.remoteConfig?.[key] + ] + : null; + + if (storedValue === undefined) { + // before we return the default value we check if there is a fallback value set + const fallbackValue = + key in (this._cfg.settings?.remoteConfig?.fallbackValues ?? {}); + if (fallbackValue) { + return this._cfg.settings?.remoteConfig?.fallbackValues?.[ + key + ] as RemoteConfigValueStringToType; + } + + if (defaultValue != null) { + return defaultValue as RemoteConfigValueStringToType< + RemoteConfig[RemoteConfigName] + >; + } + + const configuredType = this._cfg.remoteConfig?.[key]; + return ( + configuredType ? getDefaultRemoteConfigValue(configuredType) : "" + ) as RemoteConfigValueStringToType; + } + + this.log("getRemoteConfig() => storedValue:", storedValue); + + const evaluatedValue = storedValue.ruleSet + ? this.evaluateUserProperties< + RemoteConfigValueStringToType + >(storedValue.ruleSet) + : (storedValue.value as RemoteConfigValueStringToType< + RemoteConfig[RemoteConfigName] + >); + + return ( + evaluatedValue ?? + (storedValue.value as RemoteConfigValueStringToType< + RemoteConfig[RemoteConfigName] + >) + ); + } + + /** + * Function to get the value of a test variant. This includes + * the overrides from the dev tools and the local overrides if in development mode + * if there is no override or a stored variant we generate a new one and store it + * @param key The name of the test + * @returns the value of the test variant + */ + getTestVariant(key: T): Tests[T]["variants"][number] { + this.log("getTestVariant()", key); + + const { variants, weights } = (this.#data.tests as LocalData["tests"])[ + key as keyof LocalData["tests"] + ]; + + const override = this.testOverrides.get(key); + + if (process.env.NODE_ENV === "development" && override != null) { + return override; + } + + const persistedValue = this.persistantTestStorage?.get(key as string); + + if (persistedValue != null) { + this.log("getTestVariant() => persistedValue:", persistedValue); + + return persistedValue; + } + if (this.config.cookies?.disableByDefault) { + return getVariantWithHeighestWeightOrFirst(variants, weights); + } + const weightedVariant = getWeightedRandomVariant(variants, weights); + this.persistantTestStorage?.set(key as string, weightedVariant); + + this.log("getTestVariant() => weightedVariant:", weightedVariant); + + return weightedVariant; + } + + /** + * Helper function update the locally stored variant for a test + * @param key the name of the test + * @param override the value to override the test variant with + */ + updateLocalVariant( + key: T, + override: Tests[T]["variants"][number] + ) { + this.testOverrides.set(key, override); + this.persistantTestStorage?.set(key as string, override); + + this.notifyListeners(); + } + + /** + * Helper function to update the locally stored value of a feature flag + * @param name the name of the feature flag + * @param value the value to override the feature flag with + */ + updateFlag(name: FlagName, value: boolean) { + this.flagOverrides.set(name, value); + if (process.env.NODE_ENV === "development") { + this.persistantFlagStorage?.set(name, this.stringifiedValue(value)); + } + this.notifyListeners(); + } + + /** + * Helper function to update the locally stored value of a remote config + * @param name the name of the remote config + * @param value the value to override the remote config with + */ + updateRemoteConfig( + name: RemoteConfigName, + value: RemoteConfigValueStringToType + ) { + this.remoteConfigOverrides.set(name, value); + if (process.env.NODE_ENV === "development") { + this.persistentRemoteConfigStorage?.set( + name, + this.stringifiedValue(value) + ); + } + this.notifyListeners(); + } + + /** + * Function to subscribe to changes in the local data + * @param listener the function to call when the local data changes + * @returns the unsubscribe function + */ + subscribe(listener: (newValue: LocalData) => void) { + this.listeners.add(listener); + + return () => { + this.listeners.delete(listener); + }; + } + + /** + * Function to notify all listeners that the local data has changed + */ + private notifyListeners() { + this.listeners.forEach((listener) => listener(this.getProjectData())); + } + + /** + * Function to get the config passed to the Abby class + */ + getConfig() { + return this.config; + } + + /** + * Function to get all variants for a test + */ + getVariants(testName: T): Tests[T]["variants"] { + return this.#data.tests[testName as unknown as TestName].variants; + } + + /** + * Function to initially set the local overrides from the cookies + * this can be either a cookie from `document.cookie` or a cookie header. + * This should be called after the init function + * @param cookies the cookie string + */ + setLocalOverrides(cookies: string) { + const parsedCookies = parseCookies(cookies); + + Object.entries(parsedCookies).forEach(([cookieName, cookieValue]) => { + // this happens if there are multiple abby instances. We only want to use the cookies for this instance + if (!cookieName.includes(`${this.config.projectId}_`)) { + return; + } + + if (cookieName.startsWith(ABBY_AB_STORAGE_PREFIX)) { + // A/B testing cookie + const testName = cookieName.replace( + `${ABBY_AB_STORAGE_PREFIX}${this.config.projectId}_`, + "" + ); + + // special case for the cookie consent + if (testName === this.COOKIE_CONSENT_KEY) { + this.config.cookies ??= {}; + this.config.cookies.disableByDefault = cookieValue !== "true"; + return; + } + + this.testOverrides.set(testName as TestName, cookieValue); + this.persistantTestStorage?.set(testName as TestName, cookieValue); + } + // FF testing cookie + if (cookieName.startsWith(ABBY_FF_STORAGE_PREFIX)) { + const flagName = cookieName.replace( + `${ABBY_FF_STORAGE_PREFIX}${this.config.projectId}_`, + "" + ); + + const flagValue = cookieValue === "true"; + this.flagOverrides.set(flagName, flagValue); + } + + if ( + cookieName.startsWith(ABBY_RC_STORAGE_PREFIX) && + this._cfg.remoteConfig + ) { + const remoteConfigName = cookieName.replace( + `${ABBY_RC_STORAGE_PREFIX}${this.config.projectId}_`, + "" + ); + + const remoteConfigValue = remoteConfigStringToType({ + remoteConfigType: this._cfg.remoteConfig[remoteConfigName], + stringifiedValue: cookieValue, + }); + this.remoteConfigOverrides.set(remoteConfigName, remoteConfigValue); + } + }); + } + + private getDefaultRemoteConfigValue( + remoteConfigName: RemoteConfigName, + remoteConfig: RemoteConfig + ): RemoteConfigValue { + const remoteConfigType = + remoteConfig[remoteConfigName as unknown as keyof RemoteConfig]; + + const defaultValue = + this.config.settings?.remoteConfig?.defaultValues?.[remoteConfigType]; + + if (defaultValue !== undefined) { + return defaultValue as RemoteConfigValue; + } + + return getDefaultRemoteConfigValue(remoteConfigType); + } + + private stringifiedValue(value: RemoteConfigValue | boolean): string { + if (typeof value === "boolean") { + return value.toString(); + } + return stringifyRemoteConfigValue(value); + } + + /** + * Retruns an Array of all flags with their name and value + */ + getFeatureFlags() { + return (Object.keys(this.#data.flags) as Array).map( + (flagName) => ({ + name: flagName, + value: this.getFeatureFlag(flagName), + }) + ); + } + + /** + * Retruns an Array of all remote config variables with their name and value + */ + getRemoteConfigVariables() { + return ( + Object.keys(this.#data.remoteConfig) as Array + ).map((configName) => ({ + name: configName, + value: this.getRemoteConfig(configName), + })) as Array<{ + name: RemoteConfigName; + value: RemoteConfigValueStringToType; + }>; + } + + /** + * Enables the usage of cookies for the storage of user data + * and also sets the cookies if possible + */ + enableCookies() { + this.config.cookies ??= {}; + this.config.cookies.disableByDefault = false; + this.persistantTestStorage?.set(this.COOKIE_CONSENT_KEY, "true"); + + Object.keys(this.#data.tests).forEach((testName) => { + this.persistantTestStorage?.set( + testName, + this.getTestVariant(testName as TestName) + ); + }); + } + + /** + * Disables the usage of cookies for storage of user data + * and also removes all set cookies if possible + */ + disableCookies() { + this.config.cookies ??= {}; + this.config.cookies.disableByDefault = true; + this.persistantTestStorage?.set(this.COOKIE_CONSENT_KEY, "false"); + + Object.keys(this.#data.tests).forEach((testName) => { + this.persistantTestStorage?.set( + testName, + this.getTestVariant(testName as TestName) + ); + }); + } + + updateUserProperties( + user: Partial<{ + -readonly [K in keyof User]: validation.Infer; + }> + ) { + if (!this.config.user) { + throw new Error("User properties are not defined in the config"); + } + + const validationErrors: validation.ValidationErrors = []; + // validate only the properties that are given as an argument + for (const [key, value] of Object.entries(user)) { + const validationErrorMessage = validation.validateProperty( + this.config.user[key], + value + ); + if (validationErrorMessage) { + validationErrors.push({ + property: key, + message: validationErrorMessage, + }); + } + } + if (validationErrors.length > 0) { + throw new Error( + validationErrors.map((e) => `[${e.property}]: ${e.message}`).join(", ") + ); + } + + const oldUser = { ...this.user }; + this.user = { + ...this.user, + ...user, + }; + + // Only notify if user properties actually changed + if (JSON.stringify(oldUser) !== JSON.stringify(this.user)) { + this.log("updateUserProperties()", this.user); + this.notifyListeners(); + } + } + + private evaluateUserProperties( + rules: FlagRuleSet + ): T | null { + const evaluateRule = (rule: T): T | null => { + if (!(rule.propertyName in this.user)) return null; + + const userPropertyValue = this.user[rule.propertyName]; + switch (rule.propertyType) { + case "boolean": { + if (typeof userPropertyValue !== "boolean") return null; + switch (rule.operator) { + case "eq": { + if (userPropertyValue === rule.value) { + return rule; + } + break; + } + } + break; + } + case "string": { + if (typeof userPropertyValue !== "string") return null; + switch (rule.operator) { + case "eq": { + if (userPropertyValue === rule.value) { + return rule; + } + break; + } + case "neq": { + if (userPropertyValue !== rule.value) { + return rule; + } + break; + } + case "contains": { + if (userPropertyValue.includes(rule.value)) { + return rule; + } + break; + } + case "notContains": { + if (!userPropertyValue.includes(rule.value)) { + return rule; + } + break; + } + case "startsWith": { + if (userPropertyValue.startsWith(rule.value)) { + return rule; + } + break; + } + case "endsWith": { + if (userPropertyValue.endsWith(rule.value)) { + return rule; + } + break; + } + case "regex": { + if (new RegExp(rule.value).test(userPropertyValue)) { + return rule; + } + break; + } + } + break; + } + case "number": { + if (typeof userPropertyValue !== "number") return null; + switch (rule.operator) { + case "eq": { + if (userPropertyValue === rule.value) { + return rule; + } + break; + } + case "neq": { + if (userPropertyValue !== rule.value) { + return rule; + } + break; + } + case "gt": { + if (userPropertyValue > rule.value) { + return rule; + } + break; + } + case "gte": { + if (userPropertyValue >= rule.value) { + return rule; + } + break; + } + case "lt": { + if (userPropertyValue < rule.value) { + return rule; + } + break; + } + case "lte": { + if (userPropertyValue <= rule.value) { + return rule; + } + break; + } + } + break; + } + default: { + throw new Error("Unsupported property type"); + } + } + return null; + }; + for (const rule of rules) { + if ("rules" in rule) { + switch (rule.operator) { + // this means every rule in the array has to be true + case "and": { + let matches = true; + for (const subRule of rule.rules) { + if (!evaluateRule(subRule)) { + matches = false; + break; + } + } + if (matches) { + return rule.thenValue as T; + } + continue; + } + case "or": { + let matches = false; + for (const subRule of rule.rules) { + if (evaluateRule(subRule)) { + matches = true; + break; + } + } + if (matches) { + return rule.thenValue as T; + } + continue; + } + } + } + const result = evaluateRule(rule); + if (!result) continue; + return result.thenValue as T; + } + return null; + } +} diff --git a/packages/vue/.gitignore b/packages/vue/.gitignore new file mode 100644 index 00000000..007ea8a7 --- /dev/null +++ b/packages/vue/.gitignore @@ -0,0 +1,3 @@ +dist +node_modules +coverage diff --git a/packages/vue/README.md b/packages/vue/README.md new file mode 100644 index 00000000..8c7f76ca --- /dev/null +++ b/packages/vue/README.md @@ -0,0 +1,93 @@ +# `@tryabby/vue` + +Vue 3 and Nuxt integration for [Abby](https://tryabby.com) built on top of `@tryabby/core`. + +## Installation + +```bash +pnpm add @tryabby/vue +``` + +## Quick Start (Vue 3) + +Create your typed Abby instance once (e.g. `src/abby.ts`): + +```ts +import { createAbby, defineConfig } from "@tryabby/vue"; + +const abbyConfig = defineConfig( + { + projectId: "your-project-id", + currentEnvironment: "production", + }, + { + environments: ["development", "production"], + tests: { + ctaColor: { variants: ["blue", "green"] }, + }, + flags: ["newNavbar"], + remoteConfig: { + heroTitle: "String", + maxItems: "Number", + }, + } +); + +export const { + AbbyPlugin, + AbbyProvider, + useAbby, + useFeatureFlag, + useFeatureFlags, + useRemoteConfig, + useRemoteConfigVariables, + getFeatureFlagValue, + getRemoteConfig, + getABTestValue, + getABResetFunction, + getVariants, + updateUserProperties, + withDevtools, +} = createAbby(abbyConfig); +``` + +Install the plugin in `src/main.ts` (or wrap your tree in ``): + +```ts +import { createApp } from "vue"; +import App from "./App.vue"; +import { AbbyPlugin } from "./abby"; + +createApp(App).use(AbbyPlugin).mount("#app"); +``` + +Use composables inside any component: + +```vue + + + +``` + +## Nuxt 3 Usage + +Register `AbbyPlugin` inside `plugins/abby.ts`: + +```ts +import { AbbyPlugin } from "~/abby"; + +export default defineNuxtPlugin((nuxtApp) => { + nuxtApp.vueApp.use(AbbyPlugin); +}); +``` + +> **SSR note:** A module-level `createAbby(...)` instance exported from `~/abby` is shared across server requests in Node/Nitro. This works for anonymous/static evaluations, but if your app uses per-request user targeting with `updateUserProperties(...)`, create a fresh `createAbby(...)` instance per request inside `defineNuxtPlugin` so user state is not shared across requests. diff --git a/packages/vue/package.json b/packages/vue/package.json new file mode 100644 index 00000000..782f7036 --- /dev/null +++ b/packages/vue/package.json @@ -0,0 +1,44 @@ +{ + "name": "@tryabby/vue", + "version": "0.1.0", + "description": "Vue 3 and Nuxt integration for Abby", + "main": "dist/index.js", + "module": "dist/index.mjs", + "types": "dist/index.d.ts", + "files": ["dist"], + "exports": { + ".": { + "types": "./dist/index.d.ts", + "import": "./dist/index.mjs", + "require": "./dist/index.js" + } + }, + "scripts": { + "build": "tsup src/index.ts", + "dev": "pnpm run build --watch", + "typecheck": "tsc --noEmit", + "test": "node -e \"const fs=require('fs'),p=require('path'),cp=require('child_process');const req=['../core/dist/index.mjs','../core/dist/index.js','../core/dist/index.d.ts','../core/dist/validation/index.d.ts'];const maxM=d=>fs.readdirSync(d,{withFileTypes:true}).reduce((m,e)=>{const f=p.join(d,e.name);return Math.max(m,e.isDirectory()?maxM(f):fs.statSync(f).mtimeMs)},0);const stale=!req.every(f=>fs.existsSync(f))||maxM('../core/src')>Math.min(...req.map(f=>fs.statSync(f).mtimeMs));if(stale)cp.execSync('pnpm --filter @tryabby/core build',{stdio:'inherit'})\" && vitest run --typecheck" + }, + "homepage": "https://docs.tryabby.com", + "keywords": ["abby", "vue", "nuxt", "ab-testing", "feature-flags", "remote-config"], + "author": "", + "license": "ISC", + "peerDependencies": { + "vue": "^3.3.0" + }, + "dependencies": { + "@tryabby/core": "workspace:*", + "js-cookie": "^3.0.5" + }, + "devDependencies": { + "@types/js-cookie": "^3.0.3", + "@vue/test-utils": "^2.4.6", + "jsdom": "^20.0.3", + "tsconfig": "workspace:*", + "tsup": "^6.5.0", + "typescript": "5.5.4", + "vite": "5.4.0", + "vitest": "2.0.5", + "vue": "^3.4.38" + } +} diff --git a/packages/vue/src/StorageService.ts b/packages/vue/src/StorageService.ts new file mode 100644 index 00000000..7633105e --- /dev/null +++ b/packages/vue/src/StorageService.ts @@ -0,0 +1,76 @@ +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 + ? 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..9c361326 --- /dev/null +++ b/packages/vue/src/createAbby.ts @@ -0,0 +1,499 @@ +import { + type ABConfig, + Abby, + type AbbyConfig, + type AbbyDataResponse, + AbbyEventType, + HttpService, + type RemoteConfigValueString, + type RemoteConfigValueStringToType, + type StorageServiceOptions, + type ValidatorType, +} from "@tryabby/core"; +import type { Infer } from "@tryabby/core/validation"; +import { + type App, + type ComputedRef, + type DefineComponent, + type InjectionKey, + type Plugin, + type PropType, + type ShallowRef, + computed, + defineComponent, + inject, + onMounted, + onUnmounted, + provide, + ref, + 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 UseAbbyVariantValue = Lookup extends undefined + ? TestVariant | "" + : ABTestReturnValue | undefined; + +export type AbbyPluginOptions = { + initialData?: AbbyDataResponse; +}; + +export type AbbyDevtoolProps = { + abby: Abby; + [key: string]: unknown; +}; + +export type AbbyDevtoolsFactory = { + create: (props: AbbyDevtoolProps) => () => void; +}; + +export type withDevtoolsFunction = ( + factory: AbbyDevtoolsFactory, + props?: Omit & { + dangerouslyForceShow?: boolean; + } +) => DefineComponent; + +export const isDevEnvironment = (env?: { + nodeEnv?: string; + metaEnv?: { DEV?: boolean; MODE?: string }; +}): boolean => { + const nodeEnv = + env !== undefined + ? env.nodeEnv + : typeof process !== "undefined" + ? process.env?.NODE_ENV + : undefined; + if (nodeEnv) { + return nodeEnv === "development"; + } + const metaEnv = + env !== undefined + ? env.metaEnv + : (import.meta as { env?: { DEV?: boolean; MODE?: string } }).env; + if (metaEnv) { + if (typeof metaEnv.MODE === "string") { + return metaEnv.MODE === "development"; + } + if (typeof metaEnv.DEV === "boolean") { + return metaEnv.DEV; + } + } + return false; +}; + +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 + > +) { + const config = abbyConfig; + + const abby = new Abby< + FlagName, + TestName, + Tests, + RemoteConfig, + RemoteConfigName, + string[], + User + >( + abbyConfig, + { + get: (key: string) => { + if (typeof window === "undefined") return null; + return TestStorageService.get(abbyConfig.projectId, key); + }, + set: (key: string, value: string, options?: StorageServiceOptions) => { + if (typeof window === "undefined" || config.cookies?.disableByDefault) + return; + TestStorageService.set(abbyConfig.projectId, key, value, options); + }, + }, + { + 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); + }, + }, + { + 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); + }, + } + ); + + type AbbyProjectData = ReturnType; + + const abbyInjectionKey: InjectionKey> = Symbol( + `abby:${abbyConfig.projectId}` + ); + + const useAbbyData = (): ShallowRef => { + const data = inject(abbyInjectionKey, null); + + if (!data) { + throw new Error( + "useAbbyData must be used within an AbbyProvider or an app with AbbyPlugin installed." + ); + } + + return data; + }; + + const createReactiveState = (initialData?: AbbyDataResponse) => { + const initial = initialData + ? abby.init(initialData) + : abby.getProjectData(); + const dataRef = shallowRef(initial); + + const unsubscribe = + typeof window === "undefined" + ? () => {} + : abby.subscribe((nextData) => { + dataRef.value = nextData; + }); + + const loadIfNeeded = () => { + if (initialData || typeof window === "undefined") return; + abby + .loadProjectData() + .then((loaded) => { + if (!loaded) return; + dataRef.value = loaded; + }) + .catch(() => { + // Keep existing defaults/cached project data when network fetch fails. + }); + }; + + return { dataRef, unsubscribe, loadIfNeeded }; + }; + + const AbbyProvider = defineComponent({ + name: "AbbyProvider", + props: { + initialData: { + type: Object as PropType, + required: false, + default: undefined, + }, + }, + setup(props, { slots }) { + const { dataRef, unsubscribe, loadIfNeeded } = createReactiveState( + props.initialData + ); + + provide(abbyInjectionKey, dataRef); + + onMounted(() => { + loadIfNeeded(); + }); + + onUnmounted(() => { + unsubscribe(); + }); + + return () => (slots.default ? slots.default() : null); + }, + }); + + const AbbyPlugin: Plugin<[AbbyPluginOptions?]> = { + install(app: App, options?: AbbyPluginOptions) { + const { dataRef, unsubscribe, loadIfNeeded } = createReactiveState( + options?.initialData + ); + + app.provide(abbyInjectionKey, dataRef); + loadIfNeeded(); + + let cleanedUp = false; + const cleanup = () => { + if (cleanedUp) return; + cleanedUp = true; + unsubscribe(); + }; + + const appWithUnmount = app as App & { + onUnmount?: (cb: () => void) => void; + }; + if (typeof appWithUnmount.onUnmount === "function") { + appWithUnmount.onUnmount(cleanup); + } else if (typeof app.unmount === "function") { + const originalUnmount = app.unmount.bind(app); + app.unmount = () => { + cleanup(); + return originalUnmount(); + }; + } + }, + }; + + const useAbby = < + K extends keyof Tests, + TestVariant extends Tests[K]["variants"][number], + const Lookup extends Record | undefined = undefined, + >( + name: K, + lookupObject?: Lookup + ): { + variant: ComputedRef>; + onAct: () => void; + } => { + const dataRef = useAbbyData(); + + // Render an empty string during SSR/first paint to avoid hydration mismatches. + const selectedVariant = ref(""); + let lastPingedVariant = ""; + + const sendPing = (variantValue: string) => { + if (!name || !variantValue || variantValue === lastPingedVariant) return; + lastPingedVariant = variantValue; + + HttpService.sendData({ + url: config.apiUrl, + type: AbbyEventType.PING, + data: { + projectId: config.projectId, + selectedVariant: variantValue, + testName: name as string, + }, + }); + }; + + const syncVariant = () => { + const nextVariant = + dataRef.value.tests[name as unknown as TestName]?.selectedVariant ?? + abby.getProjectData().tests[name as unknown as TestName] + ?.selectedVariant ?? + ""; + selectedVariant.value = nextVariant; + if (typeof window !== "undefined") { + sendPing(nextVariant); + } + }; + + onMounted(() => { + syncVariant(); + }); + + watch( + () => dataRef.value.tests[name as unknown as TestName]?.selectedVariant, + (nextVariant) => { + if (nextVariant === undefined || typeof window === "undefined") return; + selectedVariant.value = nextVariant; + sendPing(nextVariant); + } + ); + + const onAct = () => { + const currentVariant = selectedVariant.value; + if (!currentVariant) return; + + HttpService.sendData({ + url: config.apiUrl, + type: AbbyEventType.ACT, + data: { + projectId: config.projectId, + selectedVariant: currentVariant, + testName: name as string, + }, + }); + }; + + const variant = computed>(() => { + const current = selectedVariant.value; + if (lookupObject) { + return ( + current ? lookupObject[current as TestVariant] : undefined + ) as UseAbbyVariantValue; + } + return current as UseAbbyVariantValue; + }); + + return { + variant, + onAct, + }; + }; + + const useFeatureFlag = (name: FlagName): ComputedRef => { + const dataRef = useAbbyData(); + return computed(() => { + void dataRef.value; + return abby.getFeatureFlag(name); + }); + }; + + const useFeatureFlags = (): ComputedRef< + Array<{ name: FlagName; value: boolean }> + > => { + const dataRef = useAbbyData(); + return computed(() => + (Object.keys(dataRef.value.flags) as Array).map((flagName) => ({ + name: flagName, + value: abby.getFeatureFlag(flagName), + })) + ); + }; + + const useRemoteConfig = < + T extends RemoteConfigName, + Config extends RemoteConfig[T], + >( + remoteConfigName: T + ): ComputedRef> => { + const dataRef = useAbbyData(); + return computed(() => { + void dataRef.value; + return abby.getRemoteConfig( + remoteConfigName + ) as RemoteConfigValueStringToType; + }); + }; + + const useRemoteConfigVariables = (): ComputedRef< + Array<{ + name: RemoteConfigName; + value: RemoteConfigValueStringToType; + }> + > => { + const dataRef = useAbbyData(); + return computed( + () => + (Object.keys(dataRef.value.remoteConfig) as Array).map( + (configName) => ({ + name: configName, + value: abby.getRemoteConfig(configName), + }) + ) as Array<{ + name: RemoteConfigName; + value: RemoteConfigValueStringToType; + }> + ); + }; + + const getFeatureFlagValue = (name: FlagName) => { + return abby.getFeatureFlag(name); + }; + + const getRemoteConfig = < + T extends RemoteConfigName, + Config extends RemoteConfig[T], + >( + remoteConfigName: T + ): RemoteConfigValueStringToType => { + return abby.getRemoteConfig(remoteConfigName); + }; + + const getABTestValue = < + K extends keyof Tests, + TestVariant extends Tests[K]["variants"][number], + const Lookup extends Record | undefined = undefined, + >( + testName: K, + lookupObject?: Lookup + ): ABTestReturnValue => { + const variant = abby.getTestVariant(testName); + if (lookupObject === undefined) { + return variant as any; + } + + return lookupObject[variant as TestVariant] as any; + }; + + const withDevtools: withDevtoolsFunction = (factory, props) => { + return defineComponent({ + name: "AbbyDevtools", + setup() { + let destroy: (() => void) | null = null; + + onMounted(() => { + if (!props?.dangerouslyForceShow && !isDevEnvironment()) { + return; + } + + destroy = factory.create({ ...(props ?? {}), abby }); + }); + + onUnmounted(() => { + destroy?.(); + destroy = null; + }); + + return () => null; + }, + }); + }; + + const getABResetFunction = (name: T) => { + return () => { + TestStorageService.remove(config.projectId, name as string); + }; + }; + + const getVariants = (name: T) => { + return abby.getVariants(name); + }; + + const updateUserProperties = ( + user: Partial<{ + -readonly [K in keyof User]: Infer; + }> + ) => { + abby.updateUserProperties(user); + }; + + return { + useAbby, + AbbyProvider, + AbbyPlugin, + useFeatureFlag, + getFeatureFlagValue, + useRemoteConfig, + getRemoteConfig, + getABTestValue, + __abby__: abby, + withDevtools, + getABResetFunction, + getVariants, + useFeatureFlags, + useRemoteConfigVariables, + updateUserProperties, + }; +} diff --git a/packages/vue/src/index.ts b/packages/vue/src/index.ts new file mode 100644 index 00000000..fa137841 --- /dev/null +++ b/packages/vue/src/index.ts @@ -0,0 +1,10 @@ +export { + createAbby, + type ABTestReturnValue, + type AbbyDevtoolProps, + type AbbyDevtoolsFactory, + type AbbyPluginOptions, + type UseAbbyVariantValue, + type withDevtoolsFunction, +} from "./createAbby"; +export { type ABConfig, type AbbyConfig, defineConfig } from "@tryabby/core"; diff --git a/packages/vue/tests/setup.ts b/packages/vue/tests/setup.ts new file mode 100644 index 00000000..bcf5fec6 --- /dev/null +++ b/packages/vue/tests/setup.ts @@ -0,0 +1,5 @@ +import { afterEach, vi } from "vitest"; + +afterEach(() => { + vi.restoreAllMocks(); +}); diff --git a/packages/vue/tests/types.test.ts b/packages/vue/tests/types.test.ts new file mode 100644 index 00000000..67e6e12f --- /dev/null +++ b/packages/vue/tests/types.test.ts @@ -0,0 +1,142 @@ +import { mount } from "@vue/test-utils"; +import { assertType, describe, expect, expectTypeOf, it } from "vitest"; +import { type ComputedRef, defineComponent, h } from "vue"; +import { createAbby } from "../src"; + +describe("useAbby types", () => { + it("infers variant union types and lookup return types", () => { + const test2Variants = [ + "SimonsText", + "MatthiasText", + "TomsText", + "TimsText", + ] as const; + + const { AbbyProvider, useAbby, getABTestValue, getVariants } = createAbby({ + environments: [""], + currentEnvironment: "", + projectId: "123", + tests: { + test: { variants: ["ONLY_ONE_VARIANT"] }, + test2: { variants: test2Variants }, + }, + }); + + expectTypeOf(getVariants("test")).toEqualTypeOf< + readonly ["ONLY_ONE_VARIANT"] + >(); + + expectTypeOf( + getABTestValue("test", { ONLY_ONE_VARIANT: 42 as const }) + ).toEqualTypeOf<42>(); + + const Child = defineComponent({ + setup() { + const test1 = useAbby("test"); + assertType>(test1.variant); + assertType<() => void>(test1.onAct); + + const test2 = useAbby("test2"); + assertType>( + test2.variant + ); + + const mapped = useAbby("test", { ONLY_ONE_VARIANT: 42 as const }); + assertType>(mapped.variant); + + const mappedStrings = useAbby("test2", { + SimonsText: "a", + MatthiasText: "b", + TomsText: "c", + TimsText: "d", + }); + assertType>( + mappedStrings.variant + ); + + return () => h("div"); + }, + }); + + const Wrapper = defineComponent({ + setup() { + return () => h(AbbyProvider, null, { default: () => h(Child) }); + }, + }); + + const wrapper = mount(Wrapper); + expect(wrapper.exists()).toBe(true); + }); +}); + +describe("useFeatureFlag types", () => { + it("constrains flag names and returns ComputedRef", () => { + const { AbbyProvider, useFeatureFlag } = createAbby({ + environments: [""], + currentEnvironment: "", + projectId: "123", + flags: ["darkMode", "betaCheckout"], + }); + + expectTypeOf(useFeatureFlag) + .parameter(0) + .toEqualTypeOf<"darkMode" | "betaCheckout">(); + + const Child = defineComponent({ + setup() { + const flag = useFeatureFlag("darkMode"); + expectTypeOf(flag).toEqualTypeOf>(); + return () => h("div"); + }, + }); + + const Wrapper = defineComponent({ + setup() { + return () => h(AbbyProvider, null, { default: () => h(Child) }); + }, + }); + + const wrapper = mount(Wrapper); + expect(wrapper.exists()).toBe(true); + }); +}); + +describe("useRemoteConfig types", () => { + it("maps String, Number, and JSON config values to their TypeScript types", () => { + const { AbbyProvider, useRemoteConfig } = createAbby({ + environments: [""], + currentEnvironment: "", + projectId: "123", + remoteConfig: { + stringRc: "String", + numberRc: "Number", + jsonRc: "JSON", + }, + }); + + expectTypeOf(useRemoteConfig) + .parameter(0) + .toEqualTypeOf<"stringRc" | "numberRc" | "jsonRc">(); + + const Child = defineComponent({ + setup() { + const s = useRemoteConfig("stringRc"); + const n = useRemoteConfig("numberRc"); + const j = useRemoteConfig("jsonRc"); + expectTypeOf(s).toEqualTypeOf>(); + expectTypeOf(n).toEqualTypeOf>(); + expectTypeOf(j).toEqualTypeOf>>(); + return () => h("div"); + }, + }); + + const Wrapper = defineComponent({ + setup() { + return () => h(AbbyProvider, null, { default: () => h(Child) }); + }, + }); + + const wrapper = mount(Wrapper); + expect(wrapper.exists()).toBe(true); + }); +}); diff --git a/packages/vue/tests/useAbby.test.ts b/packages/vue/tests/useAbby.test.ts new file mode 100644 index 00000000..8860d2e6 --- /dev/null +++ b/packages/vue/tests/useAbby.test.ts @@ -0,0 +1,340 @@ +import { + type AbbyDataResponse, + AbbyEventType, + HttpService, +} from "@tryabby/core"; +import { mount } from "@vue/test-utils"; +import { describe, expect, it, vi } from "vitest"; +import { defineComponent, h, nextTick } from "vue"; +import { createAbby } from "../src"; +import { isDevEnvironment } from "../src/createAbby"; + +const mockInitialData: AbbyDataResponse = { + tests: [ + { + name: "ctaColor", + weights: [1, 0], + }, + ], + flags: [ + { name: "newNavbar", value: true }, + { name: "betaFeature", value: false }, + ], + remoteConfig: [ + { name: "heroTitle", value: "Welcome" }, + { name: "maxItems", value: 25 }, + ], +}; + +describe("@tryabby/vue composables", () => { + it("provides reactive variant, fires PING on mount, and sends ACT on onAct", async () => { + const sendSpy = vi + .spyOn(HttpService, "sendData") + .mockImplementation(() => Promise.resolve() as any); + + const { AbbyProvider, useAbby } = createAbby({ + projectId: "proj-vue-1", + environments: ["prod"], + currentEnvironment: "prod", + tests: { + ctaColor: { variants: ["blue", "green"] }, + }, + flags: ["newNavbar", "betaFeature"], + remoteConfig: { + heroTitle: "String", + maxItems: "Number", + }, + }); + + let triggerAct: (() => void) | undefined; + + const Child = defineComponent({ + setup() { + const { variant, onAct } = useAbby("ctaColor"); + triggerAct = onAct; + return () => h("button", { "data-testid": "btn" }, variant.value); + }, + }); + + const wrapper = mount( + defineComponent({ + setup() { + return () => + h( + AbbyProvider, + { initialData: mockInitialData }, + { default: () => h(Child) } + ); + }, + }) + ); + + await nextTick(); + expect(wrapper.find('[data-testid="btn"]').text()).toBe("blue"); + + expect(sendSpy).toHaveBeenCalledWith( + expect.objectContaining({ + type: AbbyEventType.PING, + data: expect.objectContaining({ + projectId: "proj-vue-1", + selectedVariant: "blue", + testName: "ctaColor", + }), + }) + ); + + triggerAct?.(); + expect(sendSpy).toHaveBeenCalledWith( + expect.objectContaining({ + type: AbbyEventType.ACT, + data: expect.objectContaining({ + projectId: "proj-vue-1", + selectedVariant: "blue", + testName: "ctaColor", + }), + }) + ); + }); + + it("supports lookupObject mapping, feature flags, and remote config via AbbyPlugin", async () => { + vi.spyOn(HttpService, "sendData").mockImplementation( + () => Promise.resolve() as any + ); + + const { + AbbyPlugin, + useAbby, + useFeatureFlag, + useFeatureFlags, + useRemoteConfig, + useRemoteConfigVariables, + } = createAbby({ + projectId: "proj-vue-2", + environments: ["prod"], + currentEnvironment: "prod", + tests: { + ctaColor: { variants: ["blue", "green"] }, + }, + flags: ["newNavbar", "betaFeature"], + remoteConfig: { + heroTitle: "String", + maxItems: "Number", + }, + }); + + const Consumer = defineComponent({ + setup() { + const { variant } = useAbby("ctaColor", { + blue: "Buy Now", + green: "Get Started", + }); + const newNavbar = useFeatureFlag("newNavbar"); + const allFlags = useFeatureFlags(); + const heroTitle = useRemoteConfig("heroTitle"); + const maxItems = useRemoteConfig("maxItems"); + const allConfigs = useRemoteConfigVariables(); + return () => + h("div", [ + h("span", { "data-testid": "label" }, variant.value), + h("span", { "data-testid": "flag" }, String(newNavbar.value)), + h( + "span", + { "data-testid": "rc" }, + `${heroTitle.value}:${maxItems.value}` + ), + h( + "span", + { "data-testid": "counts" }, + `${allFlags.value.length}/${allConfigs.value.length}` + ), + ]); + }, + }); + + const wrapper = mount(Consumer, { + global: { + plugins: [[AbbyPlugin, { initialData: mockInitialData }]], + }, + }); + + await nextTick(); + expect(wrapper.find('[data-testid="label"]').text()).toBe("Buy Now"); + expect(wrapper.find('[data-testid="flag"]').text()).toBe("true"); + expect(wrapper.find('[data-testid="rc"]').text()).toBe("Welcome:25"); + expect(wrapper.find('[data-testid="counts"]').text()).toBe("2/2"); + }); + + it("throws a helpful error when composables are called outside AbbyProvider or AbbyPlugin", () => { + const { useFeatureFlag } = createAbby({ + projectId: "proj-vue-3", + environments: ["prod"], + currentEnvironment: "prod", + flags: ["newNavbar"], + }); + + const Orphan = defineComponent({ + setup() { + useFeatureFlag("newNavbar"); + return () => h("div"); + }, + }); + + expect(() => mount(Orphan)).toThrow(/AbbyProvider|AbbyPlugin/); + }); + + it("resolves configured fallbackValues when snapshot omits a flag or remote config key", async () => { + const { AbbyPlugin, useFeatureFlag, useRemoteConfig } = createAbby({ + projectId: "proj-vue-fallback", + environments: ["prod"], + currentEnvironment: "prod", + flags: ["missingFlag"], + remoteConfig: { + missingTitle: "String", + }, + settings: { + flags: { + fallbackValues: { missingFlag: true }, + }, + remoteConfig: { + fallbackValues: { missingTitle: "Fallback Hero" }, + }, + }, + }); + + const Consumer = defineComponent({ + setup() { + const flag = useFeatureFlag("missingFlag"); + const title = useRemoteConfig("missingTitle"); + return () => + h("div", { "data-testid": "fb" }, `${flag.value}:${title.value}`); + }, + }); + + const wrapper = mount(Consumer, { + global: { + plugins: [ + [ + AbbyPlugin, + { initialData: { tests: [], flags: [], remoteConfig: [] } }, + ], + ], + }, + }); + + await nextTick(); + expect(wrapper.find('[data-testid="fb"]').text()).toBe( + "true:Fallback Hero" + ); + }); + + it("cleans up subscription on app.unmount() even when app.onUnmount is unavailable (Vue 3.3/3.4)", () => { + const { AbbyPlugin, __abby__ } = createAbby({ + projectId: "proj-vue-unmount", + environments: ["prod"], + currentEnvironment: "prod", + flags: ["newNavbar"], + }); + + const unsubSpy = vi.fn(); + vi.spyOn(__abby__, "subscribe").mockReturnValue(unsubSpy); + + const origUnmount = vi.fn(); + const fakeApp: any = { + provide: vi.fn(), + unmount: origUnmount, + }; + + AbbyPlugin.install?.(fakeApp, { + initialData: { tests: [], flags: [], remoteConfig: [] }, + }); + expect(unsubSpy).not.toHaveBeenCalled(); + + fakeApp.unmount(); + expect(unsubSpy).toHaveBeenCalledTimes(1); + expect(origUnmount).toHaveBeenCalledTimes(1); + }); + + it("returns type defaults when remoteConfig snapshot omits a key without fallback settings", async () => { + const { AbbyProvider, useRemoteConfig } = createAbby({ + projectId: "proj-vue-rc-default", + environments: ["prod"], + currentEnvironment: "prod", + remoteConfig: { + heroTitle: "String", + maxItems: "Number", + layout: "JSON", + }, + }); + + const Consumer = defineComponent({ + setup() { + const title = useRemoteConfig("heroTitle"); + const maxItems = useRemoteConfig("maxItems"); + const layout = useRemoteConfig("layout"); + return () => + h( + "div", + `${JSON.stringify(title.value)}|${maxItems.value}|${JSON.stringify(layout.value)}` + ); + }, + }); + + const wrapper = mount(AbbyProvider, { + props: { + initialData: { tests: [], flags: [], remoteConfig: [] }, + }, + slots: { default: () => h(Consumer) }, + }); + await nextTick(); + expect(wrapper.text()).toBe('""|0|{}'); + }); + + it("hides devtools outside development unless dangerouslyForceShow is set", async () => { + expect(isDevEnvironment({ nodeEnv: undefined, metaEnv: undefined })).toBe( + false + ); + expect( + isDevEnvironment({ + nodeEnv: undefined, + metaEnv: { MODE: "production", DEV: false }, + }) + ).toBe(false); + expect( + isDevEnvironment({ + nodeEnv: undefined, + metaEnv: { MODE: "development", DEV: true }, + }) + ).toBe(true); + expect(isDevEnvironment({ nodeEnv: "production" })).toBe(false); + expect(isDevEnvironment({ nodeEnv: "development" })).toBe(true); + + const { withDevtools } = createAbby({ + projectId: "proj-vue-devtools", + environments: ["prod"], + currentEnvironment: "prod", + }); + + const destroyFn = vi.fn(); + const factory = { create: vi.fn(() => destroyFn) }; + + const origNodeEnv = process.env.NODE_ENV; + process.env.NODE_ENV = "production"; + try { + const HiddenDevtools = withDevtools(factory); + mount(HiddenDevtools); + await nextTick(); + expect(factory.create).not.toHaveBeenCalled(); + + const ForcedDevtools = withDevtools(factory, { + dangerouslyForceShow: true, + }); + const w = mount(ForcedDevtools); + await nextTick(); + expect(factory.create).toHaveBeenCalledTimes(1); + w.unmount(); + expect(destroyFn).toHaveBeenCalledTimes(1); + } finally { + process.env.NODE_ENV = origNodeEnv; + } + }); +}); diff --git a/packages/vue/tsconfig.json b/packages/vue/tsconfig.json new file mode 100644 index 00000000..4db54a56 --- /dev/null +++ b/packages/vue/tsconfig.json @@ -0,0 +1,12 @@ +{ + "extends": "tsconfig/base.json", + "compilerOptions": { + "lib": ["ESNext", "DOM"], + "module": "ESNext", + "moduleResolution": "Bundler", + "target": "ES2020", + "strict": true, + "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..cec42a1a --- /dev/null +++ b/packages/vue/tsup.config.ts @@ -0,0 +1,12 @@ +import { defineConfig } from "tsup"; + +export default defineConfig({ + entry: ["src/index.ts"], + dts: true, + external: ["vue"], + 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..0d410ea5 --- /dev/null +++ b/packages/vue/vite.config.ts @@ -0,0 +1,15 @@ +/// + +import { defineConfig } from "vite"; + +export default defineConfig({ + test: { + globals: true, + environment: "jsdom", + setupFiles: "./tests/setup.ts", + typecheck: { + enabled: true, + include: ["tests/types.test.ts"], + }, + }, +}); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 69fa896e..ea5bfb1a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -16,7 +16,7 @@ importers: version: 2.26.1 prettier: specifier: latest - version: 3.5.2 + version: 3.10.1 turbo: specifier: ^2.0.4 version: 2.0.4 @@ -50,7 +50,7 @@ importers: version: 18.2.4 next: specifier: 14.1.1 - version: 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) + version: 14.1.1(@opentelemetry/api@1.9.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(sass@1.77.8) next-plausible: specifier: ^3.11.3 version: 3.11.3(next@14.1.1(@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) @@ -117,7 +117,7 @@ importers: version: 4.5.1(monaco-editor@0.39.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@next-auth/prisma-adapter': specifier: 1.0.5 - version: 1.0.5(@prisma/client@5.19.0(prisma@5.19.0))(next-auth@4.22.1(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))(nodemailer@6.9.3)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)) + version: 1.0.5(@prisma/client@5.19.0(prisma@5.19.0))(next-auth@4.22.1(next@14.1.1(@opentelemetry/api@1.9.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(sass@1.77.8))(nodemailer@6.9.3)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)) '@next/mdx': specifier: 14.0.4 version: 14.0.4(@mdx-js/loader@3.0.0(webpack@5.92.1))(@mdx-js/react@3.0.0(@types/react@18.0.14)(react@18.2.0)) @@ -126,7 +126,7 @@ importers: version: 13.3.0 '@openpanel/nextjs': specifier: ^1.0.3 - version: 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) + version: 1.0.3(next@14.1.1(@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) '@prisma/client': specifier: 5.19.0 version: 5.19.0(prisma@5.19.0) @@ -204,7 +204,7 @@ importers: version: 0.0.3 '@sentry/nextjs': specifier: ^8 - version: 8.29.0(@opentelemetry/api@1.9.0)(@opentelemetry/core@1.26.0(@opentelemetry/api@1.9.0))(@opentelemetry/instrumentation@0.53.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@1.26.0(@opentelemetry/api@1.9.0))(encoding@0.1.13)(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@18.2.0)(webpack@5.92.1) + version: 8.29.0(@opentelemetry/api@1.9.0)(@opentelemetry/core@1.26.0(@opentelemetry/api@1.9.0))(@opentelemetry/instrumentation@0.53.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@1.26.0(@opentelemetry/api@1.9.0))(encoding@0.1.13)(next@14.1.1(@opentelemetry/api@1.9.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(sass@1.77.8))(react@18.2.0)(webpack@5.92.1) '@stripe/stripe-js': specifier: ^1.52.1 version: 1.54.0 @@ -234,7 +234,7 @@ importers: version: 10.30.0(@trpc/server@10.30.0) '@trpc/next': specifier: ^10.19.1 - version: 10.30.0(@tanstack/react-query@4.29.12(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(@trpc/client@10.30.0(@trpc/server@10.30.0))(@trpc/react-query@10.30.0(@tanstack/react-query@4.29.12(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(@trpc/client@10.30.0(@trpc/server@10.30.0))(@trpc/server@10.30.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(@trpc/server@10.30.0)(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) + version: 10.30.0(@tanstack/react-query@4.29.12(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(@trpc/client@10.30.0(@trpc/server@10.30.0))(@trpc/react-query@10.30.0(@tanstack/react-query@4.29.12(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(@trpc/client@10.30.0(@trpc/server@10.30.0))(@trpc/server@10.30.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(@trpc/server@10.30.0)(next@14.1.1(@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) '@trpc/react-query': specifier: ^10.19.1 version: 10.30.0(@tanstack/react-query@4.29.12(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(@trpc/client@10.30.0(@trpc/server@10.30.0))(@trpc/server@10.30.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) @@ -312,31 +312,31 @@ importers: version: 2.1.3 next: specifier: 14.1.1 - version: 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) + version: 14.1.1(@opentelemetry/api@1.9.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(sass@1.77.8) next-auth: specifier: 4.22.1 - version: 4.22.1(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))(nodemailer@6.9.3)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + version: 4.22.1(next@14.1.1(@opentelemetry/api@1.9.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(sass@1.77.8))(nodemailer@6.9.3)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) next-plausible: specifier: ^3.12.0 - version: 3.12.0(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) + version: 3.12.0(next@14.1.1(@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) next-seo: specifier: ^5.15.0 - version: 5.15.0(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) + version: 5.15.0(next@14.1.1(@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) next-sitemap: specifier: ^3.1.55 - version: 3.1.55(@next/env@14.2.4)(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)) + version: 3.1.55(@next/env@14.2.4)(next@14.1.1(@opentelemetry/api@1.9.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(sass@1.77.8)) next-themes: specifier: ^0.2.1 version: 0.2.1(next@14.1.1(@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) nextjs-cors: specifier: ^2.1.2 - version: 2.1.2(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)) + version: 2.1.2(next@14.1.1(@opentelemetry/api@1.9.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(sass@1.77.8)) nodemailer: specifier: ^6.9.1 version: 6.9.3 nuqs: specifier: ^1.17.8 - version: 1.17.8(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)) + version: 1.17.8(next@14.1.1(@opentelemetry/api@1.9.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(sass@1.77.8)) octokit: specifier: ^4.0.2 version: 4.0.2 @@ -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,43 @@ importers: packages/tsconfig: {} + packages/vue: + dependencies: + '@tryabby/core': + specifier: workspace:* + version: link:../core + js-cookie: + specifier: ^3.0.5 + version: 3.0.5 + devDependencies: + '@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.46)(@vue/server-renderer@3.5.46)(vue@3.5.46(typescript@5.5.4)) + jsdom: + specifier: ^20.0.3 + version: 20.0.3 + 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.38 + version: 3.5.46(typescript@5.5.4) + packages: '@adobe/css-tools@4.2.0': @@ -1582,6 +1619,10 @@ packages: resolution: {integrity: sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ==} engines: {node: '>=6.9.0'} + '@babel/helper-string-parser@7.29.15': + resolution: {integrity: sha512-C2FuapQ2Kh1OnVHAoLi5rD3GBJ8COb9Q609T6HEpLqaBAo560PDP5OxBE5dCI/h951MBO/+bCUYU5SZ+8ZlV+w==} + engines: {node: '>=6.9.0'} + '@babel/helper-validator-identifier@7.22.20': resolution: {integrity: sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==} engines: {node: '>=6.9.0'} @@ -1590,6 +1631,10 @@ packages: resolution: {integrity: sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==} engines: {node: '>=6.9.0'} + '@babel/helper-validator-identifier@7.29.7': + resolution: {integrity: sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==} + 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 +1701,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 +1711,11 @@ packages: engines: {node: '>=6.0.0'} hasBin: true + '@babel/parser@7.29.15': + resolution: {integrity: sha512-RpKWyisHoP81twtSCgmE02iU0RnPcq1DN5bBEbpUePrjA9Q3wXhufnCJrrayPpoZieqFh3zyZQqwtSK0gGccRA==} + 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'} @@ -2661,10 +2706,6 @@ packages: 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 +2714,10 @@ packages: resolution: {integrity: sha512-YTnYtra7W9e6/oAZEHj0bJehPRUlLH9/fbpT5LfB0NhQXyALCRkRs3zH9v07IYhkgpqX6Z78FnuccZr/l4Fs4Q==} engines: {node: '>=6.9.0'} + '@babel/types@7.29.15': + resolution: {integrity: sha512-/XKpKDakL//LZ66bq1XsZOswuqeI5MZqPLDu18o3XdkU1fNJ7bdPtzgnc4ZNS+bBGHV0FJG8jjb8SwcC3nNVQQ==} + engines: {node: '>=6.9.0'} + '@bcoe/v8-coverage@0.2.3': resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==} @@ -2892,7 +2937,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==} @@ -3713,10 +3758,6 @@ packages: resolution: {integrity: sha512-qbu7kN6czmVRc3xWFQcAN03RAUamgppVUdXrvl1Wr3jlNF93o9mJbGcDWrwGB6ht44u7efB1qCFgVQmca24Uog==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} - '@jridgewell/gen-mapping@0.3.3': - resolution: {integrity: sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==} - engines: {node: '>=6.0.0'} - '@jridgewell/gen-mapping@0.3.5': resolution: {integrity: sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==} engines: {node: '>=6.0.0'} @@ -3733,10 +3774,6 @@ packages: resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} engines: {node: '>=6.0.0'} - '@jridgewell/set-array@1.1.2': - resolution: {integrity: sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==} - engines: {node: '>=6.0.0'} - '@jridgewell/set-array@1.2.1': resolution: {integrity: sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==} engines: {node: '>=6.0.0'} @@ -3750,12 +3787,12 @@ 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==} - '@jridgewell/trace-mapping@0.3.20': - resolution: {integrity: sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q==} - '@jridgewell/trace-mapping@0.3.25': resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==} @@ -3845,7 +3882,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 +4332,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==} @@ -4474,6 +4514,7 @@ packages: '@opentelemetry/sdk-trace-base@1.26.0': resolution: {integrity: sha512-olWQldtvbK4v22ymrKLbIcBi9L2SpMO84sCPY54IVsJhP9fRsxJT194C/AVaAuJzLE30EdhhM1VmvVYR7az+cw==} engines: {node: '>=14'} + deprecated: Use @opentelemetry/sdk-trace package peerDependencies: '@opentelemetry/api': '>=1.0.0 <1.10.0' @@ -4671,8 +4712,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 +5202,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 @@ -5213,34 +5254,42 @@ packages: '@react-email/button@0.0.5': resolution: {integrity: sha512-k8yDJ5b9gFriy0543qR8zI2tyOBvob7YwaPxfVorDH0ajPucocjbzymopzxyHU13LMafdYbId/kPjoANwdSr+g==} engines: {node: '>=18.0.0'} + deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. '@react-email/container@0.0.5': resolution: {integrity: sha512-zEPBl81MlOZXHYYpexyUCyQogtT6II2PmAJ8Y7hQ8xmNvdiPKdcIneCGqtYLYbBPATP9pGs4JNdL0SOG1BIqvw==} engines: {node: '>=18.0.0'} + deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. '@react-email/head@0.0.3': resolution: {integrity: sha512-4V5GkOCp6MhuTSxqADtfl7zx6Ku6/fDR32DCV6XDRhBhr5TRwiPV/aOAf2eIWzOwLcLkrTMd4O0BPf97+uBaCA==} engines: {node: '>=18.0.0'} + deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. '@react-email/hr@0.0.3': resolution: {integrity: sha512-dTV1jm8q5BBzdjNnAAq8RRInxg7Q0V+9dk+v5zutAYcd85UtkFa6YpS7h8ElhIRUiWCtpy/Bze1V9PiDFQko5Q==} engines: {node: '>=18.0.0'} + deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. '@react-email/html@0.0.3': resolution: {integrity: sha512-NtHzGq38StO95W/rASYy+qdzFEpqUDmEe5RMygxeaV/TTZbtLLRqycwk5B/dxq4DfreZE/GL0vAg6u6sMVLTPA==} engines: {node: '>=18.0.0'} + deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. '@react-email/img@0.0.3': resolution: {integrity: sha512-RHO7SpRwNo7+Z2h+RtNP0r4ofKYEwvPnKtCHYL4oIRPu3mEto3JAb4g3tVH3pjiHzY1aqSZUXmbCtZtoqdlCwQ==} engines: {node: '>=18.0.0'} + deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. '@react-email/link@0.0.3': resolution: {integrity: sha512-ybkITKwNmFAdBYYtxsD5KxQKUhW8ICQmLW29DYi6yS1GUECA2v78noSnZMaTwNP01rOx0I1dqSgn20M/justdg==} engines: {node: '>=18.0.0'} + deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. '@react-email/preview@0.0.3': resolution: {integrity: sha512-vEayk64Sa1m1PhaBte8ovIgbTOG5BHoYMmXsltcFoerPz1ZMY7MJwEGEbhiSh/PGt5CXFOsZEIKZuKIu69lUzQ==} engines: {node: '>=18.0.0'} + deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. '@react-email/render@0.0.5': resolution: {integrity: sha512-EE9mCvR3lXeZEJaldCEaEc4msCwPQwZfXbhuPVl3SpRsiHiMK0wNm2X39vVpqzCzxrm0wljCoLruT7Klp9DZAw==} @@ -5249,10 +5298,12 @@ packages: '@react-email/section@0.0.4': resolution: {integrity: sha512-AaDejYo9nozfiGMxjGnR+CaC8jnILIowiqPFRVeEQOywS2LrL8iIB4YhrxvFjeaWgZmWqKdYDhq16uXWpi/eEA==} engines: {node: '>=18.0.0'} + deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. '@react-email/text@0.0.3': resolution: {integrity: sha512-gDPeps1TKqTuvTGVCmjDziAhzdctrj8NvmUCwIsKRBRzGqKcjXJaSx/wVs4aAHO6erVpuswmkUsdo2d238YN/Q==} engines: {node: '>=18.0.0'} + deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. '@remirror/core-constants@2.0.2': resolution: {integrity: sha512-dyHY+sMF0ihPus3O27ODd4+agdHMEmuRdyiZJ2CCWjPV5UFmn17ZbElvk6WOGVE4rdCJKZQCrPV2BcikOMLUGQ==} @@ -6641,6 +6692,7 @@ packages: '@ungap/structured-clone@1.2.0': resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} + deprecated: Potential CWE-502 - Update to 1.3.1 or higher '@vitejs/plugin-basic-ssl@1.1.0': resolution: {integrity: sha512-wO4Dk/rm8u7RNhOf95ZzcEmC9rYOncYgvq4z3duaJrCgjN8BxAnDVyndanfcJZ0O6XZzHz6Q0hTimxTg8Y9g/A==} @@ -6690,9 +6742,21 @@ packages: '@vue/compiler-core@3.4.24': resolution: {integrity: sha512-vbW/tgbwJYj62N/Ww99x0zhFTkZDTcGh3uwJEuadZ/nF9/xuFMC4693P9r+3sxGXISABpDKvffY5ApH9pmdd1A==} + '@vue/compiler-core@3.5.46': + resolution: {integrity: sha512-yb+N8/mgBcoeqCJPVyJI/D3OphLrSMXnB3ZQUNmRLU/1fsMW4bFfdJWNi9oIj7+EA3ULKKkP7b/VCpcYQYeiuQ==} + '@vue/compiler-dom@3.4.24': resolution: {integrity: sha512-4XgABML/4cNndVsQndG6BbGN7+EoisDwi3oXNovqL/4jdNhwvP8/rfRMTb6FxkxIxUUtg6AI1/qZvwfSjxJiWA==} + '@vue/compiler-dom@3.5.46': + resolution: {integrity: sha512-Bj3lCSw3DQnDRDxw115XqdLDd0+18Nftlgd8OXSGG+ud74hxJIE17eYrM+VWgQrTMsvJbLh9Hzf2MkwAzru36Q==} + + '@vue/compiler-sfc@3.5.46': + resolution: {integrity: sha512-hjUvMxGh+QIgegwksfp6BRBYleE/a8veZHvTR6sa+o+bM4HU+WnrUZlhN0X+pDcsl8Lhwmbu72xPvLMk3XUwog==} + + '@vue/compiler-ssr@3.5.46': + resolution: {integrity: sha512-qebChL3aP0m1k+TlSf+fZWvOwAf3flBCi5o+n01ykR3DX4mTIWheFltmoiQ12+z66/4cGeXqbB2P7sPWkGhQNQ==} + '@vue/language-core@1.8.27': resolution: {integrity: sha512-L8Kc27VdQserNaCUNiSFdDl9LWT24ly8Hpwf1ECy3aFb9m6bDhBGQYOujDm21N7EW3moKIOKEanQwe1q5BK+mA==} peerDependencies: @@ -6701,9 +6765,34 @@ packages: typescript: optional: true + '@vue/reactivity@3.5.46': + resolution: {integrity: sha512-+FHtYTvGxgFoX3oRs7soz6JHizGv50Q26WJN6PWtXuTLXRfkfUpDUTRuoTA/kiZVVt8NMeMpsPQLh9h++ReUjQ==} + + '@vue/runtime-core@3.5.46': + resolution: {integrity: sha512-eJUzKAUaHAmtnys/l9qduPzUnBrYMkmsCU7TN+vbSOSpm8kcETT7nacKxIO4MBej/XiOraVzq+lSeZv7o1//jQ==} + + '@vue/runtime-dom@3.5.46': + resolution: {integrity: sha512-6L7lbBvXTYBFFjIt25a0pgdpmn3Ns8RqUnNVibRzF4bgyiWJvqOhKEV5MXYWKlCttZE3aGeJN8mveo+6IrIKXA==} + + '@vue/server-renderer@3.5.46': + resolution: {integrity: sha512-4mc0YWREc6OZ5pDCigvKPDzIUV+aciiH92yvyTS6xaHHxW/80rMceQQn11pYe7OEEBt2YQgYWR9zF8QF30GJUQ==} + '@vue/shared@3.4.24': resolution: {integrity: sha512-BW4tajrJBM9AGAknnyEw5tO2xTmnqgup0VTnDAMcxYmqOX0RG0b9aSUGAbEKolD91tdwpA6oCwbltoJoNzpItw==} + '@vue/shared@3.5.46': + resolution: {integrity: sha512-P1WePbdzHrcIciWtmY2Im9EFhdakd3rZxYqvalOa3SfoxtF35Q8Uhmj1tKn6bWP4utcOpN8ao6BoJUItq0Uf+g==} + + '@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 +6875,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'} @@ -6799,6 +6892,7 @@ packages: acorn-import-assertions@1.9.0: resolution: {integrity: sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==} + deprecated: package has been renamed to acorn-import-attributes peerDependencies: acorn: ^8 @@ -6820,21 +6914,6 @@ packages: resolution: {integrity: sha512-cjkyv4OtNCIeqhHrfS81QWXoCBPExR/J62oyEqepVw8WaQeSqpW2uhuLPh1m9eWhDuOo/jUXVTlifvesOWp/4A==} engines: {node: '>=0.4.0'} - acorn@8.10.0: - resolution: {integrity: sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==} - engines: {node: '>=0.4.0'} - hasBin: true - - acorn@8.11.2: - resolution: {integrity: sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==} - engines: {node: '>=0.4.0'} - hasBin: true - - acorn@8.11.3: - resolution: {integrity: sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==} - engines: {node: '>=0.4.0'} - hasBin: true - acorn@8.12.0: resolution: {integrity: sha512-RTvkC4w+KNXrM39/lWCUaG0IbRkWdCv7W/IOW9oU6SawyxulvkQy5HQPVTKxEjczcUvapcrw3cFx/60VN/NRNw==} engines: {node: '>=0.4.0'} @@ -7141,6 +7220,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 +7289,10 @@ packages: brace-expansion@2.0.1: resolution: {integrity: sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==} + brace-expansion@5.1.0: + resolution: {integrity: sha512-aa11Dv491GKnYqxaul3aRJ0szew7yMJMfZPnqD44NjGrZXoj62l41OEDDpdpC4eE2P88vBFfLuSyRhpG91NUvg==} + engines: {node: 20 || >=22} + braces@3.0.2: resolution: {integrity: sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==} engines: {node: '>=8'} @@ -7576,6 +7663,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==} @@ -7740,10 +7831,12 @@ packages: critters@0.0.24: resolution: {integrity: sha512-Oyqew0FGM0wYUSNqR0L6AteO5MpMoUU0rhKRieXeiKs+PmRTxiJMyaunYB2KF6fQ3dzChXKCpbFOEJx3OQ1v/Q==} + deprecated: Ownership of Critters has moved to the Nuxt team, who will be maintaining the project going forward. If you'd like to keep using Critters, please switch to the actively-maintained fork at https://github.com/danielroe/beasties cron-parser@4.9.0: resolution: {integrity: sha512-p0SaNjrHOnQeR8/VnfGbmg9te2kfyYSQ7Sc/j/6DtPL3JQvKxmjO9TSjNFpujqV3vEYYBvNNvXSxzyksBWAx1Q==} engines: {node: '>=12.0.0'} + deprecated: v4 is no longer maintained, upgrade to v5 cross-spawn@5.1.0: resolution: {integrity: sha512-pTgQJ5KC0d2hcY8eyL1IzlBPYjTkyH72XRZPnLyKus2mBfNjQs3klqbJU2VILqZryAZUt9JOb3h/mWMy23/f5A==} @@ -7796,6 +7889,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 +8372,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 +8446,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'} @@ -8812,6 +8917,7 @@ packages: formidable@2.1.2: resolution: {integrity: sha512-CM3GuJ57US06mlpQ47YcunuUZ9jpm8Vx+P2CGt2j7HpgkKZO/DJYQ0Bobim8G6PFQmK5lOqOOdUXboU+h73A4g==} + deprecated: 'ACTION REQUIRED: SWITCH TO v3 - v1 and v2 are VULNERABLE! v1 is DEPRECATED FOR OVER 2 YEARS! Use formidable@latest or try formidable-mini for fresh projects' forwarded@0.2.0: resolution: {integrity: sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==} @@ -8988,28 +9094,35 @@ packages: glob@10.2.7: resolution: {integrity: sha512-jTKehsravOJo8IJxUGfZILnkvVJM/MOfHRs8QcXolVef2zNI9Tqyy5+SeuOAZd3upViEZQLyFpQhYiHLrMUNmA==} 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 hasBin: true glob@10.4.5: resolution: {integrity: sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==} + 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 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 + 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@7.2.3: resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} - 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@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 +9462,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: @@ -9429,6 +9543,7 @@ packages: intersection-observer@0.12.2: resolution: {integrity: sha512-7m1vEcPCxXYI8HqnL8CKI6siDyD+eIWSwgB3DZA+ZTogxk9I4CDnj4wilt9x/+/QbHI4YG5YZNmC6458/e9Ktg==} + deprecated: The Intersection Observer polyfill is no longer needed and can safely be removed. Intersection Observer has been Baseline since 2019. invariant@2.2.4: resolution: {integrity: sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==} @@ -9882,10 +9997,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'} @@ -10162,6 +10285,7 @@ packages: lodash.get@4.4.2: resolution: {integrity: sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==} + deprecated: This package is deprecated. Use the optional chaining (?.) operator instead. lodash.isarguments@3.1.0: resolution: {integrity: sha512-chi4NHZlZqZD18a0imDHnZPrDeBbTtVN7GXMwuGdRH9qotxAjYs3aVLKc7zNOG9eddR5Ksd8rvFEBc9SsggPpg==} @@ -10220,6 +10344,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==} @@ -10261,6 +10389,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 +10844,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 +10909,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 +11023,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} @@ -10978,6 +11122,7 @@ packages: next@13.4.5: resolution: {integrity: sha512-pfNsRLVM9e5Y1/z02VakJRfD6hMQkr24FaN2xc9GbcZDBxoOgiNAViSg5cXwlWCoMhtm4U315D7XYhgOr96Q3Q==} engines: {node: '>=16.8.0'} + deprecated: This version has a security vulnerability. Please upgrade to a patched version. See https://nextjs.org/blog/security-update-2025-12-11 for more details. hasBin: true peerDependencies: '@opentelemetry/api': ^1.1.0 @@ -10996,6 +11141,7 @@ packages: next@14.1.1: resolution: {integrity: sha512-McrGJqlGSHeaz2yTRPkEucxQKe5Zq7uPwyeHNmJaZNY4wx9E9QdxmTp310agFRoMuIYgQrCrT3petg13fSVOww==} engines: {node: '>=18.17.0'} + deprecated: This version has a security vulnerability. Please upgrade to a patched version. See https://nextjs.org/blog/security-update-2025-12-11 for more details. hasBin: true peerDependencies: '@opentelemetry/api': ^1.1.0 @@ -11051,6 +11197,7 @@ packages: node-abort-controller@3.1.1: resolution: {integrity: sha512-AGK2yQKIjRuqnc6VkX2Xj5d+QW8xZ87pa1UK6yA6ouUyuxfHuMP6umE5QK7UmTeOAymo+Zx1Fxiuw9rVx8taHQ==} + deprecated: This package is no longer needed on supported Node.js versions. Node.js 16+ includes AbortController and AbortSignal as built-in globals. All Node.js versions requiring this polyfill are end-of-life. Use the built-in globals instead. node-addon-api@3.2.1: resolution: {integrity: sha512-mmcei9JghVNDYydghQmeDX8KoAm0FAiYyIcUt/N4nhyAipB17pllZQDOJD2fotxABnt4Mdz+dKTO7eftLg4d0A==} @@ -11065,6 +11212,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 +11279,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} @@ -11516,6 +11669,10 @@ packages: 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==} @@ -11530,9 +11687,6 @@ packages: resolution: {integrity: sha512-5HviZNaZcfqP95rwpv+1HDgUamezbqdSYTyzjTvwtJSnIH+3vnbmWsItli8OFEndS984VT55M3jduxZbX351gg==} engines: {node: '>=12'} - pathe@1.1.1: - resolution: {integrity: sha512-d+RQGp0MAYTIaDBIMmOfMwz3E+LOZnxx1HZd5R18mmCZY0QBlK0LDZfPc8FW8Ed2DlvsuE6PRjroDY+wg4+j/Q==} - pathe@1.1.2: resolution: {integrity: sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==} @@ -11569,6 +11723,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 +11892,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'} @@ -11793,8 +11954,8 @@ packages: engines: {node: '>=14'} hasBin: true - prettier@3.5.2: - resolution: {integrity: sha512-lc6npv5PH7hVqozBR7lkBNOGXV9vMwROAPlumdBkX0wTbbzPu/U1hk5yL8p2pt4Xoc+2mkT8t/sow2YrV/M5qg==} + prettier@3.10.1: + resolution: {integrity: sha512-70vp3ZUYoPlFbF9uiTdXHUUCGEIp7d4+6p+8DYbkm2jP7x/3i/paXVF6dopSI3zd/CEitrZN1rc4i85xWmmXlg==} engines: {node: '>=14'} hasBin: true @@ -12198,6 +12359,7 @@ packages: recharts@2.12.7: resolution: {integrity: sha512-hlLJMhPQfv4/3NBSAyq3gzGg4h2v69RJh6KU7b3pXYNNAELs9kEoXOjbkxdXpALqKBoVmVptGfLpxdaVYqjmXQ==} engines: {node: '>=14'} + deprecated: 1.x and 2.x branches are no longer active. Bump to Recharts v3 to receive latest features and bugfixes. See https://github.com/recharts/recharts/wiki/3.0-migration-guide peerDependencies: react: ^16.0.0 || ^17.0.0 || ^18.0.0 react-dom: ^16.0.0 || ^17.0.0 || ^18.0.0 @@ -12414,16 +12576,6 @@ packages: rollup-pluginutils@2.8.2: resolution: {integrity: sha512-EEp9NhnUkwY8aif6bxgovPHMoMoNr2FulJziTndpt5H9RdwC47GSGuII9XxpSdzVGM0GWrNPHV6ie1LTNJPaLQ==} - rollup@3.25.0: - resolution: {integrity: sha512-FnJkNRst2jEZGw7f+v4hFo6UTzpDKrAKcHZWcEfm5/GJQ5CK7wgb4moNLNAe7npKUev7yQn1AY/YbZRIxOv6Qg==} - engines: {node: '>=14.18.0', npm: '>=8.0.0'} - hasBin: true - - rollup@3.27.1: - resolution: {integrity: sha512-tXNDFwOkN6C2w5Blj1g6ForKeFw6c1mDu5jxoeDO3/pmYjgt+8yvIFjKzH5FQUq70OKZBkOt0zzv0THXL7vwzQ==} - engines: {node: '>=14.18.0', npm: '>=8.0.0'} - hasBin: true - rollup@3.29.4: resolution: {integrity: sha512-oWzmBZwvYrU0iJHtDmhsm662rC15FRXmcjCk1xD771dFDx5jJ02ufAQQTn0etB2emNk4J9EZg/yWKpsn9BWGRw==} engines: {node: '>=14.18.0', npm: '>=8.0.0'} @@ -12587,6 +12739,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 +12928,10 @@ packages: resolution: {integrity: sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==} engines: {node: '>=0.10.0'} + source-map-js@1.2.4: + resolution: {integrity: sha512-J7ZjMvHd9O1fcT/5V09QWaaSl2BbWx3F6O08spde82Namf9UB0GxRVIPiNbVsdKkoizHiSpTodo3vp2bAy91MA==} + engines: {node: '>=6.0.0'} + source-map-loader@5.0.0: resolution: {integrity: sha512-k2Dur7CbSLcAH73sBcIkV5xjPV4SzqO1NJ7+XaQl8if3VODDUj3FNchNGpqgJSKbvUfJuhVdv8K2Eu8/TNl2eA==} engines: {node: '>= 18.12.0'} @@ -12791,6 +12952,7 @@ packages: source-map@0.8.0-beta.0: resolution: {integrity: sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==} engines: {node: '>= 8'} + deprecated: The work that was done in this beta branch won't be included in future versions sourcemap-codec@1.4.8: resolution: {integrity: sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==} @@ -13015,7 +13177,7 @@ packages: superagent@8.1.2: resolution: {integrity: sha512-6WTxW1EB6yCxV5VFOIPQruWGHqc3yI7hEmZK6h+pyk69Lk/Ut7rLUY6W/ONF2MjBuGjvmMiIpsrVJ2vjrHlslA==} engines: {node: '>=6.4.0 <13 || >=14'} - deprecated: Please upgrade to v9.0.0+ as we have fixed a public vulnerability with formidable dependency. Note that v9.0.0+ requires Node.js v14.18.0+. See https://github.com/ladjs/superagent/pull/1800 for insight. This project is supported and maintained by the team at Forward Email @ https://forwardemail.net + deprecated: Please upgrade to superagent v10.2.2+, see release notes at https://github.com/forwardemail/superagent/releases/tag/v10.2.2 - maintenance is supported by Forward Email @ https://forwardemail.net superjson@1.9.1: resolution: {integrity: sha512-oT3HA2nPKlU1+5taFgz/HDy+GEaY+CWEbLzaRJVD4gZ7zMVVC4GDNFdgvAZt6/VuIk6D2R7RtPAiCHwmdzlMmg==} @@ -13024,6 +13186,7 @@ packages: supertest@6.3.3: resolution: {integrity: sha512-EMCG6G8gDu5qEqRQ3JjjPs6+FYT1a7Hv5ApHvtSghmOFJYtsU5S+pSb6Y2EUeCEY3CmEL3mmQ8YWlPOzQomabA==} engines: {node: '>=6.4.0'} + deprecated: Please upgrade to supertest v7.1.3+, see release notes at https://github.com/forwardemail/supertest/releases/tag/v7.1.3 - maintenance is supported by Forward Email @ https://forwardemail.net supports-color@4.5.0: resolution: {integrity: sha512-ycQR/UbvI9xIlEdQT1TQqwoXtEldExbCEAJgRo5YXlmSKjv6ThHnP9/vwGa1gr19Gfw+LkFd7KqYMhzrRC5JYw==} @@ -13151,10 +13314,12 @@ packages: tar@6.1.15: resolution: {integrity: sha512-/zKt9UyngnxIT/EAGYuxaMYgOIJiP81ab9ZfkILq4oNLPFX50qyYmu7jRj9qeXoxmJHjGlbH0+cm2uy1WCs10A==} engines: {node: '>=10'} + deprecated: Old versions of tar 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 tar@6.2.1: resolution: {integrity: sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==} engines: {node: '>=10'} + deprecated: Old versions of tar 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 telejson@7.1.0: resolution: {integrity: sha512-jFJO4P5gPebZAERPkJsqMAQ0IMA1Hi0AoSfxpnUaV6j6R2SZqlpkbS20U6dEUtA3RUYt2Ak/mTlkQzHH9Rv/hA==} @@ -13369,6 +13534,7 @@ packages: tsconfck@3.1.0: resolution: {integrity: sha512-CMjc5zMnyAjcS9sPLytrbFmj89st2g+JYtY/c02ug4Q+CZaAtCgbyviI0n1YvjZE/pzoc6FbNsINS13DOL1B9w==} engines: {node: ^18 || >=20} + deprecated: unmaintained hasBin: true peerDependencies: typescript: ^5.0.0 @@ -13775,14 +13941,17 @@ packages: uuid@8.3.2: resolution: {integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==} + deprecated: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028). hasBin: true uuid@9.0.0: resolution: {integrity: sha512-MXcSTerfPa4uqyzStbRoTgt5XIe3x5+42+q1sDuy3R5MDk66URdLMOZe5aPX/SQd+kuYAh0FdP/pO28IkQyTeg==} + deprecated: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028). hasBin: true uuid@9.0.1: resolution: {integrity: sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==} + deprecated: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028). hasBin: true uvu@0.5.6: @@ -13964,6 +14133,9 @@ packages: vscode-textmate@8.0.0: resolution: {integrity: sha512-AFbieoL7a5LMqcnOF04ji+rpXadgOXnZsxQr//r83kLPr7biP7am3g9zbaZIaBGwBRWeSvoMD4mgPdX3e4NWBg==} + vue-component-type-helpers@3.3.14: + resolution: {integrity: sha512-Pq3+OnbCiPCHk0R7KSZrx+j/XXaUn2kSQ1epxq60w8CPbByLjC1EJgV51n4WY851sTXUVzsNMuitywdkdVyKjA==} + vue-template-compiler@2.7.16: resolution: {integrity: sha512-AYbUWAJHLGGQM7+cNTELw+KsOG9nl2CnSv467WobS5Cv9uk3wFcnr1Etsz2sEIHEZvw1U+o9mRlEO6QbZvUPGQ==} @@ -13973,6 +14145,14 @@ packages: peerDependencies: typescript: '*' + vue@3.5.46: + resolution: {integrity: sha512-0kW5CgfjMPBqmH158049SaE1muufp+K/ZyrwvSEwrwYky6QB7zL2y8kXfruneKb9O12eh0xAJL6CVSpzb9o0Kg==} + peerDependencies: + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + w3c-keyname@2.2.8: resolution: {integrity: sha512-dpojBhNsCNN7T82Tm7k26A6G9ML3NkhDsnw9n/eoxSRlVBB4CEtIQ/KTCLI2Fwf3ataSXRhYFkQi3SlnFwPvPQ==} @@ -14046,7 +14226,7 @@ packages: engines: {node: '>= 18.12.0'} hasBin: true peerDependencies: - webpack: 5.93.0 + webpack: ^5.0.0 webpack-cli: '*' peerDependenciesMeta: webpack: @@ -14099,6 +14279,7 @@ packages: whatwg-encoding@2.0.0: resolution: {integrity: sha512-p41ogyeMUrw3jWclHWTQg1k05DSVXPLcVxRTYsXUk+ZooOCZLcoYgPZ/HL/D/N+uQPOtcp1me1WhBEaX02mhWg==} engines: {node: '>=12'} + deprecated: Use @exodus/bytes instead for a more spec-conformant and faster implementation whatwg-fetch@3.6.2: resolution: {integrity: sha512-bJlen0FcuU/0EMLrdbJ7zOnW6ITZLrZMIarMUVmdKtsGvZna8vxKYaexICWPfZ8qwf9fzNq+UEIZrnSaApt6RA==} @@ -14241,18 +14422,6 @@ packages: utf-8-validate: optional: true - ws@8.13.0: - resolution: {integrity: sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==} - engines: {node: '>=10.0.0'} - peerDependencies: - bufferutil: ^4.0.1 - utf-8-validate: '>=5.0.2' - peerDependenciesMeta: - bufferutil: - optional: true - utf-8-validate: - optional: true - ws@8.18.0: resolution: {integrity: sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==} engines: {node: '>=10.0.0'} @@ -14685,7 +14854,7 @@ snapshots: '@babel/code-frame@7.24.2': dependencies: '@babel/highlight': 7.24.2 - picocolors: 1.0.0 + picocolors: 1.0.1 '@babel/code-frame@7.24.7': dependencies: @@ -14708,10 +14877,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,7 +14897,7 @@ 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 @@ -14748,10 +14917,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 +14971,21 @@ snapshots: '@babel/generator@7.21.9': dependencies: - '@babel/types': 7.24.7 - '@jridgewell/gen-mapping': 0.3.3 - '@jridgewell/trace-mapping': 0.3.20 + '@babel/types': 7.25.2 + '@jridgewell/gen-mapping': 0.3.5 + '@jridgewell/trace-mapping': 0.3.25 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 +15006,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 +15014,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 +15177,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 +15205,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 +15311,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 +15329,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 +15339,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 +15359,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,29 +15374,29 @@ 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: @@ -15239,10 +15408,14 @@ snapshots: '@babel/helper-string-parser@7.24.8': {} + '@babel/helper-string-parser@7.29.15': {} + '@babel/helper-validator-identifier@7.22.20': {} '@babel/helper-validator-identifier@7.24.7': {} + '@babel/helper-validator-identifier@7.29.7': {} + '@babel/helper-validator-option@7.22.5': {} '@babel/helper-validator-option@7.23.5': {} @@ -15256,7 +15429,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 +15445,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 +15453,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 @@ -15302,7 +15475,7 @@ snapshots: '@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 @@ -15311,7 +15484,7 @@ snapshots: '@babel/helper-validator-identifier': 7.22.20 chalk: 2.4.2 js-tokens: 4.0.0 - picocolors: 1.0.0 + picocolors: 1.0.1 '@babel/highlight@7.24.7': dependencies: @@ -15322,16 +15495,12 @@ 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/parser@7.24.7': dependencies: '@babel/types': 7.24.7 @@ -15340,6 +15509,10 @@ snapshots: dependencies: '@babel/types': 7.25.2 + '@babel/parser@7.29.15': + dependencies: + '@babel/types': 7.29.15 + '@babel/plugin-bugfix-firefox-class-in-computed-class-key@7.25.3(@babel/core@7.24.7)': dependencies: '@babel/core': 7.24.7 @@ -16806,7 +16979,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) @@ -17001,7 +17174,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 +17183,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,19 +17230,19 @@ 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: '@babel/code-frame': 7.24.7 - '@babel/parser': 7.24.7 + '@babel/parser': 7.25.3 '@babel/types': 7.24.7 '@babel/template@7.25.0': @@ -17086,8 +17259,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 +17274,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 +17289,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: @@ -17131,7 +17304,7 @@ 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/parser': 7.25.3 '@babel/types': 7.24.7 debug: 4.3.5 globals: 11.12.0 @@ -17162,12 +17335,6 @@ snapshots: '@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-validator-identifier': 7.24.7 - to-fast-properties: 2.0.0 - '@babel/types@7.24.7': dependencies: '@babel/helper-string-parser': 7.24.7 @@ -17180,6 +17347,11 @@ snapshots: '@babel/helper-validator-identifier': 7.24.7 to-fast-properties: 2.0.0 + '@babel/types@7.29.15': + dependencies: + '@babel/helper-string-parser': 7.29.15 + '@babel/helper-validator-identifier': 7.29.7 + '@bcoe/v8-coverage@0.2.3': {} '@biomejs/biome@1.9.4': @@ -18024,7 +18196,7 @@ snapshots: dependencies: '@babel/core': 7.24.4 '@jest/types': 29.5.0 - '@jridgewell/trace-mapping': 0.3.18 + '@jridgewell/trace-mapping': 0.3.25 babel-plugin-istanbul: 6.1.1 chalk: 4.1.2 convert-source-map: 2.0.0 @@ -18057,12 +18229,6 @@ snapshots: '@types/yargs': 17.0.24 chalk: 4.1.2 - '@jridgewell/gen-mapping@0.3.3': - dependencies: - '@jridgewell/set-array': 1.1.2 - '@jridgewell/sourcemap-codec': 1.4.15 - '@jridgewell/trace-mapping': 0.3.18 - '@jridgewell/gen-mapping@0.3.5': dependencies: '@jridgewell/set-array': 1.2.1 @@ -18075,8 +18241,6 @@ snapshots: '@jridgewell/resolve-uri@3.1.2': {} - '@jridgewell/set-array@1.1.2': {} - '@jridgewell/set-array@1.2.1': {} '@jridgewell/source-map@0.3.6': @@ -18088,16 +18252,13 @@ 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 '@jridgewell/sourcemap-codec': 1.4.14 - '@jridgewell/trace-mapping@0.3.20': - dependencies: - '@jridgewell/resolve-uri': 3.1.1 - '@jridgewell/sourcemap-codec': 1.4.15 - '@jridgewell/trace-mapping@0.3.25': dependencies: '@jridgewell/resolve-uri': 3.1.2 @@ -18383,10 +18544,10 @@ snapshots: pump: 3.0.0 tar-fs: 2.1.1 - '@next-auth/prisma-adapter@1.0.5(@prisma/client@5.19.0(prisma@5.19.0))(next-auth@4.22.1(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))(nodemailer@6.9.3)(react-dom@18.2.0(react@18.2.0))(react@18.2.0))': + '@next-auth/prisma-adapter@1.0.5(@prisma/client@5.19.0(prisma@5.19.0))(next-auth@4.22.1(next@14.1.1(@opentelemetry/api@1.9.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(sass@1.77.8))(nodemailer@6.9.3)(react-dom@18.2.0(react@18.2.0))(react@18.2.0))': dependencies: '@prisma/client': 5.19.0(prisma@5.19.0) - next-auth: 4.22.1(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))(nodemailer@6.9.3)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + next-auth: 4.22.1(next@14.1.1(@opentelemetry/api@1.9.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(sass@1.77.8))(nodemailer@6.9.3)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@next/bundle-analyzer@13.3.4': dependencies: @@ -18691,12 +18852,14 @@ 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)': + '@openpanel/nextjs@1.0.3(next@14.1.1(@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)': dependencies: '@openpanel/web': 1.0.0 - 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) + next: 14.1.1(@opentelemetry/api@1.9.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(sass@1.77.8) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) @@ -20100,7 +20263,7 @@ snapshots: '@sentry/types': 8.29.0 '@sentry/utils': 8.29.0 - '@sentry/nextjs@8.29.0(@opentelemetry/api@1.9.0)(@opentelemetry/core@1.26.0(@opentelemetry/api@1.9.0))(@opentelemetry/instrumentation@0.53.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@1.26.0(@opentelemetry/api@1.9.0))(encoding@0.1.13)(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@18.2.0)(webpack@5.92.1)': + '@sentry/nextjs@8.29.0(@opentelemetry/api@1.9.0)(@opentelemetry/core@1.26.0(@opentelemetry/api@1.9.0))(@opentelemetry/instrumentation@0.53.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@1.26.0(@opentelemetry/api@1.9.0))(encoding@0.1.13)(next@14.1.1(@opentelemetry/api@1.9.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(sass@1.77.8))(react@18.2.0)(webpack@5.92.1)': dependencies: '@opentelemetry/instrumentation-http': 0.53.0(@opentelemetry/api@1.9.0) '@opentelemetry/semantic-conventions': 1.27.0 @@ -20114,7 +20277,7 @@ snapshots: '@sentry/vercel-edge': 8.29.0 '@sentry/webpack-plugin': 2.22.3(encoding@0.1.13)(webpack@5.92.1) chalk: 3.0.0 - 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) + next: 14.1.1(@opentelemetry/api@1.9.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(sass@1.77.8) resolve: 1.22.8 rollup: 3.29.4 stacktrace-parser: 0.1.10 @@ -20521,7 +20684,7 @@ snapshots: magic-string: 0.27.0 remark-external-links: 8.0.0 remark-slug: 6.1.0 - rollup: 3.27.1 + rollup: 3.29.4 vite: 5.4.0(@types/node@22.1.0)(less@4.2.0)(sass@1.77.8)(terser@5.31.1) optionalDependencies: typescript: 5.5.4 @@ -20702,7 +20865,7 @@ snapshots: ts-dedent: 2.2.0 util-deprecate: 1.0.2 watchpack: 2.4.1 - ws: 8.13.0 + ws: 8.18.0 transitivePeerDependencies: - bufferutil - encoding @@ -21237,13 +21400,13 @@ snapshots: dependencies: '@trpc/server': 10.30.0 - '@trpc/next@10.30.0(@tanstack/react-query@4.29.12(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(@trpc/client@10.30.0(@trpc/server@10.30.0))(@trpc/react-query@10.30.0(@tanstack/react-query@4.29.12(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(@trpc/client@10.30.0(@trpc/server@10.30.0))(@trpc/server@10.30.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(@trpc/server@10.30.0)(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)': + '@trpc/next@10.30.0(@tanstack/react-query@4.29.12(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(@trpc/client@10.30.0(@trpc/server@10.30.0))(@trpc/react-query@10.30.0(@tanstack/react-query@4.29.12(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(@trpc/client@10.30.0(@trpc/server@10.30.0))(@trpc/server@10.30.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(@trpc/server@10.30.0)(next@14.1.1(@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)': dependencies: '@tanstack/react-query': 4.29.12(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@trpc/client': 10.30.0(@trpc/server@10.30.0) '@trpc/react-query': 10.30.0(@tanstack/react-query@4.29.12(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(@trpc/client@10.30.0(@trpc/server@10.30.0))(@trpc/server@10.30.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@trpc/server': 10.30.0 - 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) + next: 14.1.1(@opentelemetry/api@1.9.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(sass@1.77.8) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) react-ssr-prepass: 1.5.0(react@18.2.0) @@ -21291,7 +21454,7 @@ snapshots: '@types/babel__core@7.20.1': dependencies: - '@babel/parser': 7.24.7 + '@babel/parser': 7.25.3 '@babel/types': 7.24.7 '@types/babel__generator': 7.6.4 '@types/babel__template': 7.4.1 @@ -21307,7 +21470,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,17 +21478,17 @@ 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: - '@babel/parser': 7.24.7 + '@babel/parser': 7.25.3 '@babel/types': 7.24.7 '@types/babel__traverse@7.20.1': dependencies: - '@babel/types': 7.24.7 + '@babel/types': 7.25.2 '@types/babel__traverse@7.20.5': dependencies: @@ -21426,7 +21589,7 @@ snapshots: '@types/estree-jsx@1.0.0': dependencies: - '@types/estree': 1.0.1 + '@types/estree': 1.0.5 '@types/estree-jsx@1.0.3': dependencies: @@ -21841,17 +22004,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.46': + dependencies: + '@babel/parser': 7.29.15 + '@vue/shared': 3.5.46 + entities: 7.0.1 + estree-walker: 2.0.2 + source-map-js: 1.2.4 + '@vue/compiler-dom@3.4.24': dependencies: '@vue/compiler-core': 3.4.24 '@vue/shared': 3.4.24 + '@vue/compiler-dom@3.5.46': + dependencies: + '@vue/compiler-core': 3.5.46 + '@vue/shared': 3.5.46 + + '@vue/compiler-sfc@3.5.46': + dependencies: + '@babel/parser': 7.29.15 + '@vue/compiler-core': 3.5.46 + '@vue/compiler-dom': 3.5.46 + '@vue/compiler-ssr': 3.5.46 + '@vue/shared': 3.5.46 + estree-walker: 2.0.2 + magic-string: 0.30.21 + postcss: 8.5.34 + source-map-js: 1.2.4 + + '@vue/compiler-ssr@3.5.46': + dependencies: + '@vue/compiler-dom': 3.5.46 + '@vue/shared': 3.5.46 + '@vue/language-core@1.8.27(typescript@5.5.4)': dependencies: '@volar/language-core': 1.11.1 @@ -21866,8 +22059,41 @@ snapshots: optionalDependencies: typescript: 5.5.4 + '@vue/reactivity@3.5.46': + dependencies: + '@vue/shared': 3.5.46 + + '@vue/runtime-core@3.5.46': + dependencies: + '@vue/reactivity': 3.5.46 + '@vue/shared': 3.5.46 + + '@vue/runtime-dom@3.5.46': + dependencies: + '@vue/reactivity': 3.5.46 + '@vue/runtime-core': 3.5.46 + '@vue/shared': 3.5.46 + csstype: 3.2.4 + + '@vue/server-renderer@3.5.46': + dependencies: + '@vue/compiler-ssr': 3.5.46 + '@vue/runtime-dom': 3.5.46 + '@vue/shared': 3.5.46 + '@vue/shared@3.4.24': {} + '@vue/shared@3.5.46': {} + + '@vue/test-utils@2.6.0(@vue/compiler-dom@3.5.46)(@vue/server-renderer@3.5.46)(vue@3.5.46(typescript@5.5.4))': + dependencies: + '@vue/compiler-dom': 3.5.46 + js-beautify: 2.0.3 + vue: 3.5.46(typescript@5.5.4) + vue-component-type-helpers: 3.3.14 + optionalDependencies: + '@vue/server-renderer': 3.5.46 + '@web3-storage/multipart-parser@1.0.0': {} '@webassemblyjs/ast@1.12.1': @@ -21968,6 +22194,8 @@ snapshots: abbrev@2.0.0: {} + abbrev@5.0.0: {} + abort-controller@3.0.0: dependencies: event-target-shim: 5.0.1 @@ -21979,7 +22207,7 @@ snapshots: acorn-globals@7.0.1: dependencies: - acorn: 8.11.3 + acorn: 8.12.0 acorn-walk: 8.3.2 acorn-import-assertions@1.9.0(acorn@8.12.0): @@ -21991,10 +22219,6 @@ snapshots: dependencies: acorn: 8.12.0 - acorn-jsx@5.3.2(acorn@8.11.3): - dependencies: - acorn: 8.11.3 - acorn-jsx@5.3.2(acorn@8.12.0): dependencies: acorn: 8.12.0 @@ -22003,12 +22227,6 @@ snapshots: acorn-walk@8.3.2: {} - acorn@8.10.0: {} - - acorn@8.11.2: {} - - acorn@8.11.3: {} - acorn@8.12.0: {} acorn@8.8.2: {} @@ -22327,6 +22545,8 @@ snapshots: balanced-match@1.0.2: {} + balanced-match@4.0.4: {} + base64-js@1.5.1: {} base64id@2.0.0: {} @@ -22407,6 +22627,10 @@ snapshots: dependencies: balanced-match: 1.0.2 + brace-expansion@5.1.0: + dependencies: + balanced-match: 4.0.4 + braces@3.0.2: dependencies: fill-range: 7.0.1 @@ -22798,6 +23022,8 @@ snapshots: commander@12.1.0: {} + commander@14.0.3: {} + commander@2.20.3: {} commander@4.1.1: {} @@ -22960,7 +23186,7 @@ snapshots: dom-serializer: 2.0.0 domhandler: 5.0.3 htmlparser2: 8.0.2 - postcss: 8.4.38 + postcss: 8.4.41 postcss-media-query-parser: 0.2.3 cron-parser@4.9.0: @@ -22983,12 +23209,12 @@ snapshots: css-loader@7.1.2(webpack@5.92.1(esbuild@0.21.5)): dependencies: - icss-utils: 5.1.0(postcss@8.4.38) - postcss: 8.4.38 - postcss-modules-extract-imports: 3.1.0(postcss@8.4.38) - postcss-modules-local-by-default: 4.0.5(postcss@8.4.38) - postcss-modules-scope: 3.2.0(postcss@8.4.38) - postcss-modules-values: 4.0.0(postcss@8.4.38) + icss-utils: 5.1.0(postcss@8.4.41) + postcss: 8.4.41 + postcss-modules-extract-imports: 3.1.0(postcss@8.4.41) + postcss-modules-local-by-default: 4.0.5(postcss@8.4.41) + postcss-modules-scope: 3.2.0(postcss@8.4.41) + postcss-modules-values: 4.0.0(postcss@8.4.41) postcss-value-parser: 4.2.0 semver: 7.6.2 optionalDependencies: @@ -23018,6 +23244,8 @@ snapshots: csstype@3.1.2: {} + csstype@3.2.4: {} + csv-generate@3.4.3: {} csv-parse@4.16.3: {} @@ -23508,6 +23736,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 +23810,8 @@ snapshots: entities@4.5.0: {} + entities@7.0.1: {} + env-paths@2.2.1: {} envinfo@7.8.1: {} @@ -23874,8 +24111,8 @@ snapshots: espree@9.2.0: dependencies: - acorn: 8.11.3 - acorn-jsx: 5.3.2(acorn@8.11.3) + acorn: 8.12.0 + acorn-jsx: 5.3.2(acorn@8.12.0) eslint-visitor-keys: 3.4.1 espree@9.5.2: @@ -23904,7 +24141,7 @@ snapshots: estree-util-attach-comments@3.0.0: dependencies: - '@types/estree': 1.0.1 + '@types/estree': 1.0.5 estree-util-build-jsx@2.2.2: dependencies: @@ -23955,7 +24192,7 @@ snapshots: estree-walker@3.0.3: dependencies: - '@types/estree': 1.0.1 + '@types/estree': 1.0.5 esutils@2.0.3: {} @@ -24460,6 +24697,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 @@ -24691,7 +24934,7 @@ snapshots: hast-util-to-estree@3.1.0: dependencies: - '@types/estree': 1.0.1 + '@types/estree': 1.0.5 '@types/estree-jsx': 1.0.0 '@types/hast': 3.0.3 comma-separated-tokens: 2.0.3 @@ -24712,7 +24955,7 @@ snapshots: hast-util-to-jsx-runtime@2.3.0: dependencies: - '@types/estree': 1.0.1 + '@types/estree': 1.0.5 '@types/hast': 3.0.3 '@types/unist': 3.0.2 comma-separated-tokens: 2.0.3 @@ -24949,9 +25192,9 @@ snapshots: dependencies: safer-buffer: 2.1.2 - icss-utils@5.1.0(postcss@8.4.38): + icss-utils@5.1.0(postcss@8.4.41): dependencies: - postcss: 8.4.38 + postcss: 8.4.41 ieee754@1.2.1: {} @@ -25236,7 +25479,7 @@ snapshots: is-reference@3.0.1: dependencies: - '@types/estree': 1.0.1 + '@types/estree': 1.0.5 is-regex@1.1.4: dependencies: @@ -25507,8 +25750,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 +25780,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 +25805,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) @@ -25577,7 +25830,7 @@ snapshots: jsdom@20.0.3: dependencies: abab: 2.0.6 - acorn: 8.11.2 + acorn: 8.12.0 acorn-globals: 7.0.1 cssom: 0.5.0 cssstyle: 2.3.0 @@ -25600,7 +25853,7 @@ snapshots: whatwg-encoding: 2.0.0 whatwg-mimetype: 3.0.0 whatwg-url: 11.0.0 - ws: 8.13.0 + ws: 8.18.0 xml-name-validator: 4.0.0 transitivePeerDependencies: - bufferutil @@ -25961,6 +26214,8 @@ snapshots: lru-cache@10.4.3: {} + lru-cache@11.5.4: {} + lru-cache@4.1.5: dependencies: pseudomap: 1.0.2 @@ -26000,6 +26255,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 @@ -26602,8 +26861,8 @@ snapshots: micromark-extension-mdxjs@1.0.1: dependencies: - acorn: 8.11.3 - acorn-jsx: 5.3.2(acorn@8.11.3) + acorn: 8.12.0 + acorn-jsx: 5.3.2(acorn@8.12.0) micromark-extension-mdx-expression: 1.0.8 micromark-extension-mdx-jsx: 1.0.5 micromark-extension-mdx-md: 1.0.1 @@ -26613,8 +26872,8 @@ snapshots: micromark-extension-mdxjs@3.0.0: dependencies: - acorn: 8.11.3 - acorn-jsx: 5.3.2(acorn@8.11.3) + acorn: 8.12.0 + acorn-jsx: 5.3.2(acorn@8.12.0) micromark-extension-mdx-expression: 3.0.0 micromark-extension-mdx-jsx: 3.0.0 micromark-extension-mdx-md: 2.0.0 @@ -26930,7 +27189,7 @@ snapshots: miniflare@3.20231218.2: dependencies: '@cspotcode/source-map-support': 0.8.1 - acorn: 8.11.3 + acorn: 8.12.0 acorn-walk: 8.2.0 capnp-ts: 0.7.0 exit-hook: 2.2.1 @@ -26938,7 +27197,7 @@ snapshots: stoppable: 1.1.0 undici: 5.22.1 workerd: 1.20231218.0 - ws: 8.13.0 + ws: 8.18.0 youch: 3.3.3 zod: 3.22.4 transitivePeerDependencies: @@ -26948,6 +27207,10 @@ snapshots: minimalistic-assert@1.0.1: {} + minimatch@10.2.6: + dependencies: + brace-expansion: 5.1.0 + minimatch@3.0.8: dependencies: brace-expansion: 1.1.11 @@ -27010,6 +27273,8 @@ snapshots: minipass@7.1.2: {} + minipass@7.1.3: {} + minizlib@2.1.2: dependencies: minipass: 3.3.6 @@ -27029,14 +27294,14 @@ snapshots: mlly@1.4.0: dependencies: - acorn: 8.11.2 - pathe: 1.1.1 + acorn: 8.12.0 + pathe: 1.1.2 pkg-types: 1.0.3 ufo: 1.2.0 mlly@1.6.1: dependencies: - acorn: 8.11.3 + acorn: 8.12.0 pathe: 1.1.2 pkg-types: 1.0.3 ufo: 1.5.3 @@ -27150,6 +27415,8 @@ snapshots: object-assign: 4.1.1 thenify-all: 1.6.0 + nanoid@3.3.20: {} + nanoid@3.3.6: {} nanoid@3.3.7: {} @@ -27168,13 +27435,13 @@ snapshots: neo-async@2.6.2: {} - next-auth@4.22.1(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))(nodemailer@6.9.3)(react-dom@18.2.0(react@18.2.0))(react@18.2.0): + next-auth@4.22.1(next@14.1.1(@opentelemetry/api@1.9.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(sass@1.77.8))(nodemailer@6.9.3)(react-dom@18.2.0(react@18.2.0))(react@18.2.0): dependencies: '@babel/runtime': 7.22.5 '@panva/hkdf': 1.1.1 cookie: 0.5.0 jose: 4.14.4 - 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) + next: 14.1.1(@opentelemetry/api@1.9.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(sass@1.77.8) oauth: 0.9.15 openid-client: 5.4.2 preact: 10.15.1 @@ -27198,38 +27465,38 @@ snapshots: next-plausible@3.11.3(next@14.1.1(@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): dependencies: - 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) + next: 14.1.1(@opentelemetry/api@1.9.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(sass@1.77.8) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) - next-plausible@3.12.0(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): + next-plausible@3.12.0(next@14.1.1(@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): dependencies: - 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) + next: 14.1.1(@opentelemetry/api@1.9.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(sass@1.77.8) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) - next-seo@5.15.0(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): + next-seo@5.15.0(next@14.1.1(@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): dependencies: - 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) + next: 14.1.1(@opentelemetry/api@1.9.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(sass@1.77.8) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) next-seo@6.4.0(next@14.1.1(@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): dependencies: - 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) + next: 14.1.1(@opentelemetry/api@1.9.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(sass@1.77.8) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) - next-sitemap@3.1.55(@next/env@14.2.4)(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)): + next-sitemap@3.1.55(@next/env@14.2.4)(next@14.1.1(@opentelemetry/api@1.9.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(sass@1.77.8)): dependencies: '@corex/deepmerge': 4.0.43 '@next/env': 14.2.4 minimist: 1.2.8 - 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) + next: 14.1.1(@opentelemetry/api@1.9.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(sass@1.77.8) next-themes@0.2.1(next@14.1.1(@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): dependencies: - 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) + next: 14.1.1(@opentelemetry/api@1.9.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(sass@1.77.8) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) @@ -27242,7 +27509,7 @@ snapshots: postcss: 8.4.14 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) - styled-jsx: 5.1.1(@babel/core@7.24.7)(react@18.2.0) + styled-jsx: 5.1.1(react@18.2.0) watchpack: 2.4.0 zod: 3.21.4 optionalDependencies: @@ -27261,7 +27528,7 @@ snapshots: - '@babel/core' - babel-plugin-macros - 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): + next@14.1.1(@opentelemetry/api@1.9.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(sass@1.77.8): dependencies: '@next/env': 14.1.1 '@swc/helpers': 0.5.2 @@ -27271,7 +27538,7 @@ snapshots: postcss: 8.4.31 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) - styled-jsx: 5.1.1(@babel/core@7.24.7)(react@18.2.0) + styled-jsx: 5.1.1(react@18.2.0) optionalDependencies: '@next/swc-darwin-arm64': 14.1.1 '@next/swc-darwin-x64': 14.1.1 @@ -27288,10 +27555,10 @@ snapshots: - '@babel/core' - babel-plugin-macros - nextjs-cors@2.1.2(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)): + nextjs-cors@2.1.2(next@14.1.1(@opentelemetry/api@1.9.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(sass@1.77.8)): dependencies: cors: 2.8.5 - 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) + next: 14.1.1(@opentelemetry/api@1.9.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(sass@1.77.8) nextra-theme-docs@2.13.2(next@14.1.1(@opentelemetry/api@1.9.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(sass@1.77.8))(nextra@2.13.2(next@14.1.1(@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))(react-dom@18.2.0(react@18.2.0))(react@18.2.0): dependencies: @@ -27304,7 +27571,7 @@ snapshots: git-url-parse: 13.1.1 intersection-observer: 0.12.2 match-sorter: 6.3.1 - 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) + next: 14.1.1(@opentelemetry/api@1.9.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(sass@1.77.8) next-seo: 6.4.0(next@14.1.1(@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) next-themes: 0.2.1(next@14.1.1(@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) nextra: 2.13.2(next@14.1.1(@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) @@ -27327,7 +27594,7 @@ snapshots: gray-matter: 4.0.3 katex: 0.16.9 lodash.get: 4.4.2 - 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) + next: 14.1.1(@opentelemetry/api@1.9.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(sass@1.77.8) next-mdx-remote: 4.4.1(react-dom@18.2.0(react@18.2.0))(react@18.2.0) p-limit: 3.1.0 react: 18.2.0 @@ -27475,6 +27742,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 @@ -27579,10 +27850,10 @@ snapshots: dependencies: boolbase: 1.0.0 - nuqs@1.17.8(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)): + nuqs@1.17.8(next@14.1.1(@opentelemetry/api@1.9.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(sass@1.77.8)): dependencies: mitt: 3.0.1 - 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) + next: 14.1.1(@opentelemetry/api@1.9.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(sass@1.77.8) nwsapi@2.2.5: {} @@ -27922,6 +28193,11 @@ snapshots: lru-cache: 9.1.2 minipass: 5.0.0 + path-scurry@2.0.2: + dependencies: + lru-cache: 11.5.4 + minipass: 7.1.3 + path-to-regexp@0.1.7: {} path-to-regexp@6.2.1: {} @@ -27930,8 +28206,6 @@ snapshots: path-type@5.0.0: {} - pathe@1.1.1: {} - pathe@1.1.2: {} pathval@2.0.0: {} @@ -27948,7 +28222,7 @@ snapshots: periscopic@3.1.0: dependencies: - '@types/estree': 1.0.1 + '@types/estree': 1.0.5 estree-walker: 3.0.3 is-reference: 3.0.1 @@ -27968,6 +28242,8 @@ snapshots: picocolors@1.0.1: {} + picocolors@1.1.1: {} + picomatch@2.3.1: {} picomatch@4.0.2: {} @@ -28002,7 +28278,7 @@ snapshots: dependencies: jsonc-parser: 3.2.0 mlly: 1.6.1 - pathe: 1.1.1 + pathe: 1.1.2 polished@4.2.2: dependencies: @@ -28033,20 +28309,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 +28342,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 @@ -28088,26 +28364,26 @@ snapshots: postcss-media-query-parser@0.2.3: {} - postcss-modules-extract-imports@3.1.0(postcss@8.4.38): + postcss-modules-extract-imports@3.1.0(postcss@8.4.41): dependencies: - postcss: 8.4.38 + postcss: 8.4.41 - postcss-modules-local-by-default@4.0.5(postcss@8.4.38): + postcss-modules-local-by-default@4.0.5(postcss@8.4.41): dependencies: - icss-utils: 5.1.0(postcss@8.4.38) - postcss: 8.4.38 + icss-utils: 5.1.0(postcss@8.4.41) + postcss: 8.4.41 postcss-selector-parser: 6.0.13 postcss-value-parser: 4.2.0 - postcss-modules-scope@3.2.0(postcss@8.4.38): + postcss-modules-scope@3.2.0(postcss@8.4.41): dependencies: - postcss: 8.4.38 + postcss: 8.4.41 postcss-selector-parser: 6.0.13 - postcss-modules-values@4.0.0(postcss@8.4.38): + postcss-modules-values@4.0.0(postcss@8.4.41): dependencies: - icss-utils: 5.1.0(postcss@8.4.38) - postcss: 8.4.38 + icss-utils: 5.1.0(postcss@8.4.41) + postcss: 8.4.41 postcss-nested@6.0.1(postcss@8.4.24): dependencies: @@ -28156,6 +28432,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.2.4 + postgres-array@2.0.0: {} postgres-bytea@1.0.0: {} @@ -28197,7 +28479,7 @@ snapshots: prettier@3.0.0: {} - prettier@3.5.2: {} + prettier@3.10.1: {} pretty-format@27.5.1: dependencies: @@ -28864,7 +29146,7 @@ snapshots: adjust-sourcemap-loader: 4.0.0 convert-source-map: 1.9.0 loader-utils: 2.0.4 - postcss: 8.4.38 + postcss: 8.4.41 source-map: 0.6.1 resolve.exports@2.0.2: {} @@ -28943,14 +29225,6 @@ snapshots: dependencies: estree-walker: 0.6.1 - rollup@3.25.0: - optionalDependencies: - fsevents: 2.3.3 - - rollup@3.27.1: - optionalDependencies: - fsevents: 2.3.3 - rollup@3.29.4: optionalDependencies: fsevents: 2.3.3 @@ -29033,13 +29307,13 @@ snapshots: sass@1.77.6: dependencies: - chokidar: 3.5.3 + chokidar: 3.6.0 immutable: 4.3.0 source-map-js: 1.2.0 sass@1.77.8: dependencies: - chokidar: 3.5.3 + chokidar: 3.6.0 immutable: 4.3.0 source-map-js: 1.2.0 @@ -29118,6 +29392,8 @@ snapshots: semver@7.6.2: {} + semver@7.8.6: {} + send@0.18.0: dependencies: debug: 2.6.9 @@ -29393,6 +29669,8 @@ snapshots: source-map-js@1.2.0: {} + source-map-js@1.2.4: {} + source-map-loader@5.0.0(webpack@5.92.1(esbuild@0.21.5)): dependencies: iconv-lite: 0.6.3 @@ -29626,18 +29904,16 @@ snapshots: dependencies: inline-style-parser: 0.2.2 - styled-jsx@5.1.1(@babel/core@7.24.7)(react@18.2.0): + styled-jsx@5.1.1(react@18.2.0): dependencies: client-only: 0.0.1 react: 18.2.0 - optionalDependencies: - '@babel/core': 7.24.7 stylis@4.3.0: {} sucrase@3.32.0: dependencies: - '@jridgewell/gen-mapping': 0.3.3 + '@jridgewell/gen-mapping': 0.3.5 commander: 4.1.1 glob: 7.1.6 lines-and-columns: 1.2.4 @@ -29689,7 +29965,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 +29974,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 +29988,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 +29997,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 +30015,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 +30027,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 +30044,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,47 +30427,47 @@ 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 - chokidar: 3.5.3 - debug: 4.3.4 + chokidar: 3.6.0 + debug: 4.3.5 esbuild: 0.17.19 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 + rollup: 3.29.4 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 - chokidar: 3.5.3 - debug: 4.3.4 + chokidar: 3.6.0 + debug: 4.3.5 esbuild: 0.17.19 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 + rollup: 3.29.4 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 @@ -30508,7 +30784,7 @@ snapshots: dependencies: browserslist: 4.21.7 escalade: 3.1.1 - picocolors: 1.0.0 + picocolors: 1.0.1 update-browserslist-db@1.0.16(browserslist@4.22.2): dependencies: @@ -30746,7 +31022,7 @@ snapshots: vite@5.3.2(@types/node@20.3.1)(less@4.2.0)(sass@1.77.6)(terser@5.29.2): dependencies: esbuild: 0.21.5 - postcss: 8.4.38 + postcss: 8.4.41 rollup: 4.18.0 optionalDependencies: '@types/node': 20.3.1 @@ -30905,6 +31181,8 @@ snapshots: vscode-textmate@8.0.0: {} + vue-component-type-helpers@3.3.14: {} + vue-template-compiler@2.7.16: dependencies: de-indent: 1.0.2 @@ -30917,6 +31195,16 @@ snapshots: semver: 7.6.0 typescript: 5.5.4 + vue@3.5.46(typescript@5.5.4): + dependencies: + '@vue/compiler-dom': 3.5.46 + '@vue/compiler-sfc': 3.5.46 + '@vue/runtime-dom': 3.5.46 + '@vue/server-renderer': 3.5.46 + '@vue/shared': 3.5.46 + optionalDependencies: + typescript: 5.5.4 + w3c-keyname@2.2.8: {} w3c-xmlserializer@4.0.0: @@ -30969,7 +31257,7 @@ snapshots: webpack-bundle-analyzer@4.7.0: dependencies: - acorn: 8.10.0 + acorn: 8.12.0 acorn-walk: 8.2.0 chalk: 4.1.2 commander: 7.2.0 @@ -31282,8 +31570,6 @@ snapshots: ws@8.11.0: {} - ws@8.13.0: {} - ws@8.18.0: {} xml-name-validator@4.0.0: {} diff --git a/turbo.json b/turbo.json index 4bf89a29..45c506ff 100644 --- a/turbo.json +++ b/turbo.json @@ -1,61 +1,62 @@ -{ - "$schema": "https://turbo.build/schema.json", - "tasks": { - "build": { - "dependsOn": ["^build", "^db:generate"], - "outputs": ["dist/**", ".next/**"] - }, - "build:prod": { - "dependsOn": ["^build"], - "outputs": [".next/**"] - }, - "test": { - "outputs": ["coverage/**"] - }, - "lint": { - "outputs": [] - }, - "dev": { - "cache": false - }, - "db:migrate": { - "cache": false - }, - "db:generate": { - "cache": false - } - }, - "globalEnv": [ - "VERCEL_URL", - "PORT", - "NODE_ENV", - "VERCEL", - "VERCEL_ENV", - "NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY", - "ANALYZE", - "SKIP_ENV_VALIDATION", - "DATABASE_URL", - "NEXT_PUBLIC_STRIPE_STARTER_PLAN_PRICE_ID", - "NEXT_PUBLIC_STRIPE_PRO_PLAN_PRICE_ID", - "NEXT_PUBLIC_DISABLE_ANALYTICS", - "NEXT_PUBLIC_ABBY_PROJECT_ID", - "NEXT_PUBLIC_PLAUSIBLE_DOMAIN", - "DATABASE_URL", - "NODE_ENV", - "NEXTAUTH_SECRET", - "NEXTAUTH_URL", - "GITHUB_ID", - "GITHUB_SECRET", - "STRIPE_WEBHOOK_SECRET", - "STRIPE_SECRET_KEY", - "EMAIL_SERVER", - "LOGSNAG_API_KEY", - "REDIS_URL", - "ABBY_FROM_EMAIL", - "GITHUB_OAUTH_TOKEN", - "GOOGLE_CLIENT_ID", - "GOOGLE_CLIENT_SECRET", - "HASHING_SECRET", - "NEXT_RUNTIME" - ] -} +{ + "$schema": "https://turbo.build/schema.json", + "tasks": { + "build": { + "dependsOn": ["^build", "^db:generate"], + "outputs": ["dist/**", ".next/**"] + }, + "build:prod": { + "dependsOn": ["^build"], + "outputs": [".next/**"] + }, + "test": { + "dependsOn": ["^build"], + "outputs": ["coverage/**"] + }, + "lint": { + "outputs": [] + }, + "dev": { + "cache": false + }, + "db:migrate": { + "cache": false + }, + "db:generate": { + "cache": false + } + }, + "globalEnv": [ + "VERCEL_URL", + "PORT", + "NODE_ENV", + "VERCEL", + "VERCEL_ENV", + "NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY", + "ANALYZE", + "SKIP_ENV_VALIDATION", + "DATABASE_URL", + "NEXT_PUBLIC_STRIPE_STARTER_PLAN_PRICE_ID", + "NEXT_PUBLIC_STRIPE_PRO_PLAN_PRICE_ID", + "NEXT_PUBLIC_DISABLE_ANALYTICS", + "NEXT_PUBLIC_ABBY_PROJECT_ID", + "NEXT_PUBLIC_PLAUSIBLE_DOMAIN", + "DATABASE_URL", + "NODE_ENV", + "NEXTAUTH_SECRET", + "NEXTAUTH_URL", + "GITHUB_ID", + "GITHUB_SECRET", + "STRIPE_WEBHOOK_SECRET", + "STRIPE_SECRET_KEY", + "EMAIL_SERVER", + "LOGSNAG_API_KEY", + "REDIS_URL", + "ABBY_FROM_EMAIL", + "GITHUB_OAUTH_TOKEN", + "GOOGLE_CLIENT_ID", + "GOOGLE_CLIENT_SECRET", + "HASHING_SECRET", + "NEXT_RUNTIME" + ] +}