The minimalistic document archiving platform.
refactor(date): replace date-fns with in house implementations (#820)
Corentin Thomasset3fa398c92851
diff --git a/.changeset/chilly-plums-strive.md b/.changeset/chilly-plums-strive.mdnew file mode 100644index 00000000..0b922cf6--- /dev/null+++ b/.changeset/chilly-plums-strive.md@@ -0,0 +1,5 @@+---+"@papra/app": patch+---++Replaced `date-fns` functions with in-house implementations to avoid pulling the 30MB lib (mainly due to locale data).diff --git a/apps/papra-server/package.json b/apps/papra-server/package.jsonindex 1fcc704f..568909d9 100644--- a/apps/papra-server/package.json+++ b/apps/papra-server/package.json@@ -63,7 +63,6 @@"busboy": "^1.6.0","c12": "^3.0.4","chokidar": "^4.0.3",- "date-fns": "^4.1.0","drizzle-kit": "^0.30.6","drizzle-orm": "^0.38.4","figue": "^3.1.1",diff --git a/apps/papra-server/src/modules/documents/documents.repository.ts b/apps/papra-server/src/modules/documents/documents.repository.tsindex 02e8d5b0..dac80f26 100644--- a/apps/papra-server/src/modules/documents/documents.repository.ts+++ b/apps/papra-server/src/modules/documents/documents.repository.ts@@ -1,11 +1,11 @@import type { Database } from '../app/database/database.types';import type { DbInsertableDocument } from './documents.types';import { injectArguments, safely } from '@corentinth/chisels';-import { subDays } from 'date-fns';import { and, count, desc, eq, getTableColumns, lt, sql } from 'drizzle-orm';import { omit } from 'lodash-es';import { createIterator } from '../app/database/database.usecases';import { createOrganizationNotFoundError } from '../organizations/organizations.errors';+import { subDays } from '../shared/date';import { isUniqueConstraintError } from '../shared/db/constraints.models';import { withPagination } from '../shared/db/pagination';import { createError } from '../shared/errors/errors';diff --git a/apps/papra-server/src/modules/organizations/organizations.repository.models.ts b/apps/papra-server/src/modules/organizations/organizations.repository.models.tsindex bf3f747c..092c6f60 100644--- a/apps/papra-server/src/modules/organizations/organizations.repository.models.ts+++ b/apps/papra-server/src/modules/organizations/organizations.repository.models.ts@@ -1,5 +1,4 @@import type { OrganizationInvitation } from './organizations.types';-import { isAfter } from 'date-fns';import { eq, like } from 'drizzle-orm';import { escapeLikeWildcards } from '../shared/db/sql.helpers';import { isNilOrEmptyString } from '../shared/utils';@@ -15,7 +14,7 @@ export function ensureInvitationStatus({ invitation, now = new Date() }: { invitreturn invitation;}- if (isAfter(invitation.expiresAt, now)) {+ if (invitation.expiresAt > now) {return invitation;}diff --git a/apps/papra-server/src/modules/organizations/organizations.repository.ts b/apps/papra-server/src/modules/organizations/organizations.repository.tsindex 734c15a5..64934e36 100644--- a/apps/papra-server/src/modules/organizations/organizations.repository.ts+++ b/apps/papra-server/src/modules/organizations/organizations.repository.ts@@ -1,9 +1,9 @@import type { Database } from '../app/database/database.types';import type { DbInsertableOrganization, OrganizationInvitationStatus, OrganizationRole } from './organizations.types';import { injectArguments } from '@corentinth/chisels';-import { addDays, startOfDay } from 'date-fns';import { and, count, desc, eq, getTableColumns, gte, isNotNull, isNull, lte } from 'drizzle-orm';import { omit } from 'lodash-es';+import { addDays, startOfDay } from '../shared/date';import { withPagination } from '../shared/db/pagination';import { omitUndefined } from '../shared/utils';import { usersTable } from '../users/users.table';diff --git a/apps/papra-server/src/modules/organizations/organizations.usecases.ts b/apps/papra-server/src/modules/organizations/organizations.usecases.tsindex 18525da1..8e4f27ca 100644--- a/apps/papra-server/src/modules/organizations/organizations.usecases.ts+++ b/apps/papra-server/src/modules/organizations/organizations.usecases.ts@@ -10,10 +10,10 @@ import type { UsersRepository } from '../users/users.repository';import type { OrganizationsRepository } from './organizations.repository';import type { OrganizationRole } from './organizations.types';import { buildUrl } from '@corentinth/chisels';-import { addDays } from 'date-fns';import { createForbiddenError } from '../app/auth/auth.errors';import { getClientBaseUrl } from '../config/config.models';import { getOrganizationPlan } from '../plans/plans.usecases';+import { addDays } from '../shared/date';import { sanitize } from '../shared/html/html';import { createLogger } from '../shared/logger/logger';import { isDefined } from '../shared/utils';diff --git a/apps/papra-server/src/modules/shared/date.test.ts b/apps/papra-server/src/modules/shared/date.test.tsindex dd072f4d..4cac13d9 100644--- a/apps/papra-server/src/modules/shared/date.test.ts+++ b/apps/papra-server/src/modules/shared/date.test.ts@@ -1,5 +1,5 @@import { describe, expect, test } from 'vitest';-import { isValidDate } from './date';+import { addDays, isValidDate, startOfDay, subDays } from './date';describe('date', () => {describe('isValidDate', () => {@@ -12,4 +12,81 @@ describe('date', () => {expect(isValidDate(new Date(Number.NaN))).toBe(false);});});++ describe('addDays', () => {+ describe('add days to a date, taking care of month/year boundaries', () => {+ test('in the same month', () => {+ expect(addDays(new Date('2024-05-10'), 5)).to.eql(new Date('2024-05-15'));+ });++ test('across month boundary', () => {+ expect(addDays(new Date('2024-04-30'), 1)).to.eql(new Date('2024-05-01')); // 30 days in April+ expect(addDays(new Date('2024-05-31'), 1)).to.eql(new Date('2024-06-01')); // 31 days in May+ expect(addDays(new Date('2024-02-29'), 1)).to.eql(new Date('2024-03-01')); // leap year+ expect(addDays(new Date('2023-02-28'), 1)).to.eql(new Date('2023-03-01')); // non-leap year+ });++ test('across year boundary', () => {+ expect(addDays(new Date('2023-12-31'), 1)).to.eql(new Date('2024-01-01'));+ });++ test('adding zero days returns the same date', () => {+ expect(addDays(new Date('2024-05-15'), 0)).to.eql(new Date('2024-05-15'));+ });++ test('adding negative days subtracts days', () => {+ expect(addDays(new Date('2024-05-20'), -5)).to.eql(new Date('2024-05-15'));+ });++ test('large number of days', () => {+ expect(addDays(new Date('2024-05-15'), 365)).to.eql(new Date('2025-05-15'));+ expect(addDays(new Date('2023-03-01'), 366)).to.eql(new Date('2024-03-01')); // leap year included+ expect(addDays(new Date('2021-10-23'), 800)).to.eql(new Date('2024-01-01'));+ });+ });+ });++ describe('subDays', () => {+ describe('subtract days from a date, taking care of month/year boundaries', () => {+ test('in the same month', () => {+ expect(subDays(new Date('2024-05-15'), 5)).to.eql(new Date('2024-05-10'));+ });++ test('across month boundary', () => {+ expect(subDays(new Date('2024-05-01'), 1)).to.eql(new Date('2024-04-30')); // 30 days in April+ expect(subDays(new Date('2024-06-01'), 1)).to.eql(new Date('2024-05-31')); // 31 days in May+ expect(subDays(new Date('2024-03-01'), 1)).to.eql(new Date('2024-02-29')); // leap year+ expect(subDays(new Date('2023-03-01'), 1)).to.eql(new Date('2023-02-28')); // non-leap year+ });++ test('across year boundary', () => {+ expect(subDays(new Date('2024-01-01'), 1)).to.eql(new Date('2023-12-31'));+ });++ test('subtracting zero days returns the same date', () => {+ expect(subDays(new Date('2024-05-15'), 0)).to.eql(new Date('2024-05-15'));+ });++ test('subtracting negative days adds days', () => {+ expect(subDays(new Date('2024-05-15'), -5)).to.eql(new Date('2024-05-20'));+ });++ test('large number of days', () => {+ expect(subDays(new Date('2025-05-15'), 365)).to.eql(new Date('2024-05-15'));+ expect(subDays(new Date('2024-03-01'), 366)).to.eql(new Date('2023-03-01')); // leap year included+ expect(subDays(new Date('2024-01-01'), 800)).to.eql(new Date('2021-10-23'));+ });++ test('keeps the time component unchanged', () => {+ expect(subDays(new Date('2024-05-15T10:30:45'), 5)).to.eql(new Date('2024-05-10T10:30:45'));+ expect(subDays(new Date('2024-01-01T10:30:45'), 800)).to.eql(new Date('2021-10-23T10:30:45'));+ });+ });+ });++ describe('startOfDay', () => {+ test('sets the time to the start of the day', () => {+ expect(startOfDay(new Date('2024-05-15T10:30:45'))).to.eql(new Date('2024-05-15T00:00:00'));+ });+ });});diff --git a/apps/papra-server/src/modules/shared/date.ts b/apps/papra-server/src/modules/shared/date.tsindex 5a80e8e2..ba7dad2b 100644--- a/apps/papra-server/src/modules/shared/date.ts+++ b/apps/papra-server/src/modules/shared/date.ts@@ -1,3 +1,19 @@export function isValidDate(date: Date): boolean {return !Number.isNaN(date.getTime());}++export function addDays(date: Date, days: number): Date {+ const result = new Date(date);+ result.setDate(result.getDate() + days);+ return result;+}++export function subDays(date: Date, days: number): Date {+ return addDays(date, -days);+}++export function startOfDay(date: Date): Date {+ const result = new Date(date);+ result.setHours(0, 0, 0, 0);+ return result;+}diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 19ba8c1b..08a48d0d 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -15,48 +15,24 @@ catalogs:'@corentinth/chisels':specifier: 2.1.0version: 2.1.0- '@iconify-json/tabler':- specifier: ^1.2.26- version: 1.2.26'@types/node':specifier: ^24.0.0version: 24.0.10- '@unocss/reset':- specifier: 66.6.0- version: 66.6.0'@vitest/coverage-v8':specifier: ^4.0.3version: 4.0.3- astro:- specifier: 5.16.15- version: 5.16.15better-auth:specifier: 1.4.6version: 1.4.6eslint:specifier: ^9.39.1version: 9.39.1- ofetch:- specifier: 1.4.1- version: 1.4.1- tsdown:- specifier: ^0.13.4- version: 0.13.4tsx:specifier: ^4.20.6version: 4.20.6typescript:specifier: ^5.9.3version: 5.9.3- unocss:- specifier: 66.6.0- version: 66.6.0- unocss-preset-animations:- specifier: 1.3.0- version: 1.3.0- valibot:- specifier: ^1.2.0- version: 1.2.0vitest:specifier: 4.0.3version: 4.0.3@@ -439,7 +415,7 @@ importers:version: 12.27.0'@better-auth/expo':specifier: 'catalog:'- version: 1.4.6(@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))([email protected]([email protected]([email protected]))([email protected])([email protected])([email protected]([email protected])))([email protected])([email protected])([email protected]([email protected])([email protected]))([email protected]([email protected])([email protected](@babel/[email protected])(@react-native-community/[email protected]([email protected]))(@types/[email protected])([email protected])))+ version: 1.4.6(@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))([email protected]([email protected]([email protected]))([email protected])([email protected])([email protected]([email protected])))([email protected])([email protected])([email protected]([email protected])([email protected]))([email protected]([email protected])([email protected](@babel/[email protected])(@react-native-community/[email protected]([email protected]))(@types/[email protected])([email protected])))'@cadence-mq/core':specifier: ^0.2.1version: 0.2.1@@ -500,9 +476,6 @@ importers:chokidar:specifier: ^4.0.3version: 4.0.3- date-fns:- specifier: ^4.1.0- version: 4.1.0drizzle-kit:specifier: ^0.30.6version: 0.30.6@@ -1009,9 +982,6 @@ packages:peerDependencies:astro: ^5.7.0- '@astrojs/[email protected]':- resolution: {integrity: sha512-zZOO7i+JhojO8qmlyR/URui6LyfHJY6m+L9nwyX5GiKD78YoRaZ5tzz6X0fkl+5bD3uwlDHayf6Oe8Fu36RKNg==}-'@astrojs/[email protected]':resolution: {integrity: sha512-mqVORhUJViA28fwHYaWmsXSzLO9osbdZ5ImUfxBarqsYdMlPbqAqGJCxsNzvppp1BEzc1mJNjOVvQqeDN8Vspw==}@@ -1407,10 +1377,6 @@ packages:resolution: {integrity: sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==}engines: {node: '>=6.9.0'}- '@babel/[email protected]':- resolution: {integrity: sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==}- engines: {node: '>=6.9.0'}-'@babel/[email protected]':resolution: {integrity: sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==}engines: {node: '>=6.9.0'}@@ -1441,11 +1407,6 @@ packages:engines: {node: '>=6.0.0'}hasBin: true- '@babel/[email protected]':- resolution: {integrity: sha512-yZbBqeM6TkpP9du/I2pUZnJsRMGGvOuIrhjzC1AwHwW+6he4mni6Bp/m8ijn0iOuZuPI2BfkCoSRunpyjnrQKg==}- engines: {node: '>=6.0.0'}- hasBin: true-'@babel/[email protected]':resolution: {integrity: sha512-KKBU1VGYR7ORr3At5HAtUQ+TV3SzRCXmA/8OdDZiLDBIZxVyzXuztPjfLd3BV1PRAQGCMWWSHYhL0F8d5uHBDQ==}engines: {node: '>=6.0.0'}@@ -1835,10 +1796,6 @@ packages:resolution: {integrity: sha512-X6ZlfR/O/s5EQ/SnUSLzr+6kGnkg8HXGMzpgsMsrJVcfDtH1vIp6ctCN4eZ1LS5c0+te5Cb6Y514fASjMRJ1nw==}engines: {node: '>=6.9.0'}- '@babel/[email protected]':- resolution: {integrity: sha512-YEzuboP2qvQavAcjgQNVgsvHIDv6ZpwXvcvjmyySP2DIMuByS/6ioU5G9pYrWHM6T2YDfc7xga9iNzYOs12CFQ==}- engines: {node: '>=6.9.0'}-'@babel/[email protected]':resolution: {integrity: sha512-TCCj4t55U90khlYkVV/0TfkJkAkUg3jZFA3Neb7unZT8CPok7iiRfaX0F+WnqWqt7OxhOn0uBKXCw4lbL8W0aQ==}engines: {node: '>=6.9.0'}@@ -11241,6 +11198,7 @@ packages:resolution: {integrity: sha512-7NyxrTE4Anh8km8iEy7o0QYPs+0JKBTj5ZaqHg6B39erLg0qYXN3BijtShwbsNSvQ+LN75+KV+C4QR/f6Gwnpg==}engines: {node: '>=18'}+ 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 exhorbitant rates) by contacting [email protected]resolution: {integrity: sha512-aoBAniQmmwtcKp/7BzsH8Cxzv8OL736p7v1ihGb5e9DJ9kTwGWHrQrVB5+lfVDzfGrdRzXch+ig7LHaY1JTOrg==}@@ -12743,8 +12701,6 @@ snapshots:- utf-8-validate- yaml- '@astrojs/[email protected]': {}-'@astrojs/[email protected]': {}'@astrojs/[email protected]': {}@@ -13553,7 +13509,7 @@ snapshots:'@babel/[email protected]':dependencies:- '@babel/helper-validator-identifier': 7.27.1+ '@babel/helper-validator-identifier': 7.28.5js-tokens: 4.0.0picocolors: 1.1.1@@ -13562,17 +13518,17 @@ snapshots:'@babel/[email protected]':dependencies:'@babel/code-frame': 7.27.1- '@babel/generator': 7.28.3+ '@babel/generator': 7.28.5'@babel/helper-compilation-targets': 7.27.2'@babel/helper-module-transforms': 7.28.3(@babel/[email protected])'@babel/helpers': 7.28.4- '@babel/parser': 7.28.4+ '@babel/parser': 7.28.5'@babel/template': 7.27.2- '@babel/traverse': 7.28.4- '@babel/types': 7.28.4+ '@babel/traverse': 7.28.5+ '@babel/types': 7.28.5'@jridgewell/remapping': 2.3.5convert-source-map: 2.0.0- debug: 4.4.3([email protected])+ debug: 4.4.3gensync: 1.0.0-beta.2json5: 2.2.3semver: 6.3.1@@ -13632,7 +13588,7 @@ snapshots:'@babel/core': 7.28.4'@babel/helper-compilation-targets': 7.27.2'@babel/helper-plugin-utils': 7.27.1- debug: 4.4.3([email protected])+ debug: 4.4.3lodash.debounce: 4.0.8resolve: 1.22.11transitivePeerDependencies:@@ -13700,8 +13656,6 @@ snapshots:'@babel/[email protected]': {}- '@babel/[email protected]': {}-'@babel/[email protected]': {}'@babel/[email protected]': {}@@ -13734,10 +13688,6 @@ snapshots:dependencies:'@babel/types': 7.28.5- '@babel/[email protected]':- dependencies:- '@babel/types': 7.28.5-'@babel/[email protected]':dependencies:'@babel/types': 7.28.5@@ -13913,7 +13863,7 @@ snapshots:'@babel/helper-globals': 7.28.0'@babel/helper-plugin-utils': 7.27.1'@babel/helper-replace-supers': 7.27.1(@babel/[email protected])- '@babel/traverse': 7.28.4+ '@babel/traverse': 7.28.5transitivePeerDependencies:- supports-color@@ -14180,18 +14130,6 @@ snapshots:transitivePeerDependencies:- supports-color- '@babel/[email protected]':- dependencies:- '@babel/code-frame': 7.27.1- '@babel/generator': 7.28.3- '@babel/helper-globals': 7.28.0- '@babel/parser': 7.28.5- '@babel/template': 7.27.2- '@babel/types': 7.28.5- debug: 4.4.3([email protected])- transitivePeerDependencies:- - supports-color-'@babel/[email protected]':dependencies:'@babel/code-frame': 7.27.1@@ -14200,7 +14138,7 @@ snapshots:'@babel/parser': 7.28.5'@babel/template': 7.27.2'@babel/types': 7.28.5- debug: 4.4.3([email protected])+ debug: 4.4.3transitivePeerDependencies:- supports-color@@ -14223,41 +14161,17 @@ snapshots:'@bcoe/[email protected]': {}- '@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])':- dependencies:- '@better-auth/utils': 0.3.0- '@better-fetch/fetch': 1.1.18- '@standard-schema/spec': 1.0.0- better-call: 1.1.5([email protected])- jose: 6.1.0- kysely: 0.28.8- nanostores: 1.0.1- zod: 4.1.12-'@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])':dependencies:'@better-auth/utils': 0.3.0'@better-fetch/fetch': 1.1.18'@standard-schema/spec': 1.0.0- better-call: 1.1.5([email protected])+ better-call: 1.1.5([email protected])jose: 6.1.0kysely: 0.28.8nanostores: 1.0.1zod: 4.1.12- '@better-auth/[email protected](@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))([email protected]([email protected]([email protected]))([email protected])([email protected])([email protected]([email protected])))([email protected])([email protected])([email protected]([email protected])([email protected]))([email protected]([email protected])([email protected](@babel/[email protected])(@react-native-community/[email protected]([email protected]))(@types/[email protected])([email protected])))':- dependencies:- '@better-auth/core': 1.4.6(@better-auth/[email protected])(@better-fetch/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])- '@better-fetch/fetch': 1.1.18- better-auth: 1.4.6([email protected]([email protected]))([email protected])([email protected])([email protected]([email protected]))- better-call: 1.1.5([email protected])- zod: 4.1.12- optionalDependencies:- expo-constants: 18.0.10([email protected])([email protected](@babel/[email protected])(@react-native-community/[email protected]([email protected]))(@types/[email protected])([email protected]))- expo-linking: 8.0.8([email protected])([email protected](@babel/[email protected])(@react-native-community/[email protected]([email protected]))(@types/[email protected])([email protected]))([email protected])- expo-network: 8.0.8([email protected])([email protected])- expo-web-browser: 15.0.9([email protected])([email protected](@babel/[email protected])(@react-native-community/[email protected]([email protected]))(@types/[email protected])([email protected]))-'@better-auth/[email protected](@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))([email protected]([email protected]([email protected]))([email protected])([email protected])([email protected]([email protected])))([email protected])([email protected])([email protected]([email protected])([email protected]))([email protected]([email protected])([email protected](@babel/[email protected])(@react-native-community/[email protected]([email protected]))(@types/[email protected])([email protected])))':dependencies:'@better-auth/core': 1.4.6(@better-auth/[email protected])(@better-fetch/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])@@ -15025,7 +14939,7 @@ snapshots:'@eslint/[email protected]':dependencies:'@eslint/object-schema': 2.1.7- debug: 4.4.3([email protected])+ debug: 4.4.3minimatch: 3.1.2transitivePeerDependencies:- supports-color@@ -15045,7 +14959,7 @@ snapshots:'@eslint/[email protected]':dependencies:ajv: 6.12.6- debug: 4.4.3([email protected])+ debug: 4.4.3espree: 10.4.0globals: 14.0.0ignore: 5.3.2@@ -15118,7 +15032,7 @@ snapshots:ci-info: 3.9.0compression: 1.8.1connect: 3.7.0- debug: 4.4.3([email protected])+ debug: 4.4.3env-editor: 0.4.2expo: 54.0.23(@babel/[email protected])(@expo/[email protected])([email protected])([email protected])([email protected](@babel/[email protected])(@react-native-community/[email protected]([email protected]))(@types/[email protected])([email protected]))([email protected])expo-server: 1.0.4@@ -15174,7 +15088,7 @@ snapshots:'@expo/plist': 0.4.7'@expo/sdk-runtime-versions': 1.0.0chalk: 4.1.2- debug: 4.4.3([email protected])+ debug: 4.4.3getenv: 2.0.0glob: 10.4.5resolve-from: 5.0.0@@ -15301,7 +15215,7 @@ snapshots:'@expo/[email protected]':dependencies:chalk: 4.1.2- debug: 4.4.3([email protected])+ debug: 4.4.3dotenv: 16.4.7dotenv-expand: 11.0.7getenv: 2.0.0@@ -15313,7 +15227,7 @@ snapshots:'@expo/spawn-async': 1.7.2arg: 5.0.2chalk: 4.1.2- debug: 4.4.3([email protected])+ debug: 4.4.3getenv: 2.0.0glob: 10.4.5ignore: 5.3.2@@ -15390,7 +15304,7 @@ snapshots:dependencies:'@babel/code-frame': 7.27.1'@babel/core': 7.28.4- '@babel/generator': 7.28.3+ '@babel/generator': 7.28.5'@expo/config': 12.0.10'@expo/env': 2.0.7'@expo/json-file': 10.0.7@@ -15398,7 +15312,7 @@ snapshots:'@expo/spawn-async': 1.7.2browserslist: 4.26.3chalk: 4.1.2- debug: 4.4.3([email protected])+ debug: 4.4.3dotenv: 16.4.7dotenv-expand: 11.0.7getenv: 2.0.0@@ -15535,7 +15449,7 @@ snapshots:'@expo/image-utils': 0.8.7'@expo/json-file': 10.0.7'@react-native/normalize-colors': 0.81.5- debug: 4.4.3([email protected])+ debug: 4.4.3expo: 54.0.23(@babel/[email protected])(@expo/[email protected])([email protected])([email protected])([email protected](@babel/[email protected])(@react-native-community/[email protected]([email protected]))(@types/[email protected])([email protected]))([email protected])resolve-from: 5.0.0semver: 7.7.3@@ -16916,7 +16830,7 @@ snapshots:dependencies:'@react-native/dev-middleware': 0.81.5- debug: 4.4.3([email protected])+ debug: 4.4.3invariant: 2.2.4metro: 0.83.3metro-config: 0.83.3@@ -16938,7 +16852,7 @@ snapshots:chrome-launcher: 0.15.2chromium-edge-launcher: 0.2.0connect: 3.7.0- debug: 4.4.3([email protected])+ debug: 4.4.3invariant: 2.2.4nullthrows: 1.1.1open: 7.4.2@@ -17804,8 +17718,8 @@ snapshots:'@types/[email protected]':dependencies:- '@babel/parser': 7.28.4- '@babel/types': 7.28.4+ '@babel/parser': 7.28.5+ '@babel/types': 7.28.5'@types/babel__generator': 7.27.0'@types/babel__template': 7.4.4'@types/babel__traverse': 7.28.0@@ -17936,7 +17850,7 @@ snapshots:'@types/[email protected]':dependencies:- csstype: 3.1.3+ csstype: 3.2.3'@types/[email protected]':dependencies:@@ -18000,7 +17914,7 @@ snapshots:'@typescript-eslint/types': 8.46.2'@typescript-eslint/typescript-estree': 8.46.2([email protected])'@typescript-eslint/visitor-keys': 8.46.2- debug: 4.4.3([email protected])+ debug: 4.4.3eslint: 9.39.1([email protected])typescript: 5.9.3transitivePeerDependencies:@@ -18010,7 +17924,7 @@ snapshots:dependencies:'@typescript-eslint/tsconfig-utils': 8.46.2([email protected])'@typescript-eslint/types': 8.46.2- debug: 4.4.3([email protected])+ debug: 4.4.3typescript: 5.9.3transitivePeerDependencies:- supports-color@@ -18029,7 +17943,7 @@ snapshots:'@typescript-eslint/types': 8.46.2'@typescript-eslint/typescript-estree': 8.46.2([email protected])- debug: 4.4.3([email protected])+ debug: 4.4.3eslint: 9.39.1([email protected])ts-api-utils: 2.1.0([email protected])typescript: 5.9.3@@ -18044,7 +17958,7 @@ snapshots:'@typescript-eslint/tsconfig-utils': 8.46.2([email protected])'@typescript-eslint/types': 8.46.2'@typescript-eslint/visitor-keys': 8.46.2- debug: 4.4.3([email protected])+ debug: 4.4.3fast-glob: 3.3.3is-glob: 4.0.3minimatch: 9.0.5@@ -18332,7 +18246,7 @@ snapshots:'@bcoe/v8-coverage': 1.0.2'@vitest/utils': 4.0.3ast-v8-to-istanbul: 0.3.8- debug: 4.4.3([email protected])+ debug: 4.4.3istanbul-lib-coverage: 3.2.2istanbul-lib-report: 3.0.1istanbul-lib-source-maps: 5.0.6@@ -18789,12 +18703,12 @@ snapshots:dependencies:- '@astrojs/compiler': 2.11.0+ '@astrojs/compiler': 2.13.0'@typescript-eslint/scope-manager': 8.46.2'@typescript-eslint/types': 8.46.2'@typescript-eslint/typescript-estree': 8.46.2([email protected])- astrojs-compiler-sync: 1.0.1(@astrojs/[email protected])- debug: 4.4.3([email protected])+ astrojs-compiler-sync: 1.0.1(@astrojs/[email protected])+ debug: 4.4.3entities: 4.5.0eslint-scope: 8.4.0eslint-visitor-keys: 4.2.1@@ -19020,9 +18934,9 @@ snapshots:- uploadthing- yaml- [email protected](@astrojs/[email protected]):+ [email protected](@astrojs/[email protected]):dependencies:- '@astrojs/compiler': 2.11.0+ '@astrojs/compiler': 2.13.0synckit: 0.9.2@@ -19171,7 +19085,7 @@ snapshots:babel-plugin-react-native-web: 0.21.2babel-plugin-syntax-hermes-parser: 0.29.1babel-plugin-transform-flow-enums: 0.0.2(@babel/[email protected])- debug: 4.4.3([email protected])+ debug: 4.4.3react-refresh: 0.14.2resolve-from: 5.0.0optionalDependencies:@@ -19260,7 +19174,7 @@ snapshots:'@better-fetch/fetch': 1.1.18'@noble/ciphers': 2.0.1'@noble/hashes': 2.0.1- better-call: 1.1.5([email protected])+ better-call: 1.1.5([email protected])defu: 6.1.4jose: 6.1.0kysely: 0.28.8@@ -19303,15 +19217,6 @@ snapshots:optionalDependencies:zod: 3.25.67- dependencies:- '@better-auth/utils': 0.3.0- '@better-fetch/fetch': 1.1.18- rou3: 0.7.11- set-cookie-parser: 2.7.1- optionalDependencies:- zod: 3.25.76-dependencies:'@better-auth/utils': 0.3.0@@ -19900,6 +19805,10 @@ snapshots:dependencies:ms: 2.1.3+ dependencies:+ ms: 2.1.3+dependencies:ms: 2.1.3@@ -19974,8 +19883,7 @@ snapshots:- optional: true+ [email protected]: {}@@ -20013,7 +19921,7 @@ snapshots:dependencies:- debug: 4.4.3([email protected])+ debug: 4.4.3readable-stream: 3.6.2split-ca: 1.0.1ssh2: 1.16.0@@ -20404,7 +20312,7 @@ snapshots:dependencies:- debug: 4.4.3([email protected])+ debug: 4.4.3esbuild: 0.19.12transitivePeerDependencies:- supports-color@@ -20720,7 +20628,7 @@ snapshots:'@es-joy/resolve.exports': 1.2.0are-docs-informative: 0.0.2comment-parser: 1.4.1- debug: 4.4.3([email protected])+ debug: 4.4.3escape-string-regexp: 4.0.0eslint: 9.39.1([email protected])espree: 10.4.0@@ -20838,7 +20746,7 @@ snapshots:dependencies:- debug: 4.4.3([email protected])+ debug: 4.4.3eslint: 9.39.1([email protected])eslint-compat-utils: 0.6.5([email protected]([email protected]))lodash: 4.17.21@@ -20890,7 +20798,7 @@ snapshots:dependencies:- debug: 4.4.3([email protected])+ debug: 4.4.3diff-sequences: 27.5.1escape-string-regexp: 4.0.0eslint: 9.39.1([email protected])@@ -20931,7 +20839,7 @@ snapshots:ajv: 6.12.6chalk: 4.1.2cross-spawn: 7.0.6- debug: 4.4.3([email protected])+ debug: 4.4.3escape-string-regexp: 4.0.0eslint-scope: 8.4.0eslint-visitor-keys: 4.2.1@@ -21141,7 +21049,7 @@ snapshots:'@react-navigation/native': 7.1.20([email protected](@babel/[email protected])(@react-native-community/[email protected]([email protected]))(@types/[email protected])([email protected]))([email protected])'@react-navigation/native-stack': 7.6.3(@react-navigation/[email protected]([email protected](@babel/[email protected])(@react-native-community/[email protected]([email protected]))(@types/[email protected])([email protected]))([email protected]))([email protected]([email protected](@babel/[email protected])(@react-native-community/[email protected]([email protected]))(@types/[email protected])([email protected]))([email protected]))([email protected]([email protected](@babel/[email protected])(@react-native-community/[email protected]([email protected]))(@types/[email protected])([email protected]))([email protected]))([email protected](@babel/[email protected])(@react-native-community/[email protected]([email protected]))(@types/[email protected])([email protected]))([email protected])client-only: 0.0.1- debug: 4.4.3([email protected])+ debug: 4.4.3escape-string-regexp: 4.0.0expo: 54.0.23(@babel/[email protected])(@expo/[email protected])([email protected])([email protected])([email protected](@babel/[email protected])(@react-native-community/[email protected]([email protected]))(@types/[email protected])([email protected]))([email protected])expo-constants: 18.0.10([email protected])([email protected](@babel/[email protected])(@react-native-community/[email protected]([email protected]))(@types/[email protected])([email protected]))@@ -21529,7 +21437,7 @@ snapshots:dependencies:'@petamoriken/float16': 3.9.1- debug: 4.4.3([email protected])+ debug: 4.4.3env-paths: 3.0.0semver: 7.7.3shell-quote: 1.8.2@@ -22006,7 +21914,7 @@ snapshots:dependencies:agent-base: 7.1.3- debug: 4.4.3([email protected])+ debug: 4.4.3transitivePeerDependencies:- supports-color@@ -22020,7 +21928,7 @@ snapshots:dependencies:agent-base: 7.1.3- debug: 4.4.3([email protected])+ debug: 4.4.3transitivePeerDependencies:- supports-color@@ -22325,7 +22233,7 @@ snapshots:dependencies:'@jridgewell/trace-mapping': 0.3.31- debug: 4.4.3([email protected])+ debug: 4.4.3istanbul-lib-coverage: 3.2.2transitivePeerDependencies:- supports-color@@ -22690,7 +22598,7 @@ snapshots:dependencies:- detect-libc: 2.0.3+ detect-libc: 2.1.2optionalDependencies:lightningcss-android-arm64: 1.30.2lightningcss-darwin-arm64: 1.30.2@@ -23130,7 +23038,7 @@ snapshots:dependencies:- debug: 4.4.3([email protected])+ debug: 4.4.3fb-watchman: 2.0.2flow-enums-runtime: 0.0.6graceful-fs: 4.2.11@@ -23144,7 +23052,7 @@ snapshots:dependencies:- debug: 4.4.3([email protected])+ debug: 4.4.3fb-watchman: 2.0.2flow-enums-runtime: 0.0.6graceful-fs: 4.2.11@@ -23201,7 +23109,7 @@ snapshots:dependencies:- '@babel/traverse': 7.28.4+ '@babel/traverse': 7.28.5'@babel/traverse--for-generate-function-map': '@babel/[email protected]''@babel/types': 7.28.5flow-enums-runtime: 0.0.6@@ -23239,7 +23147,7 @@ snapshots:dependencies:'@babel/core': 7.28.4- '@babel/generator': 7.28.3+ '@babel/generator': 7.28.5'@babel/template': 7.27.2'@babel/traverse': 7.28.5flow-enums-runtime: 0.0.6@@ -23261,7 +23169,7 @@ snapshots:dependencies:'@babel/core': 7.28.4- '@babel/generator': 7.28.3+ '@babel/generator': 7.28.5'@babel/parser': 7.28.5'@babel/types': 7.28.5flow-enums-runtime: 0.0.6@@ -23302,7 +23210,7 @@ snapshots:dependencies:'@babel/code-frame': 7.27.1'@babel/core': 7.28.4- '@babel/generator': 7.28.3+ '@babel/generator': 7.28.5'@babel/parser': 7.28.5'@babel/template': 7.27.2'@babel/traverse': 7.28.5@@ -23311,7 +23219,7 @@ snapshots:chalk: 4.1.2ci-info: 2.0.0connect: 3.7.0- debug: 4.4.3([email protected])+ debug: 4.4.3error-stack-parser: 2.1.4flow-enums-runtime: 0.0.6graceful-fs: 4.2.11@@ -23349,7 +23257,7 @@ snapshots:dependencies:'@babel/code-frame': 7.27.1'@babel/core': 7.28.4- '@babel/generator': 7.28.3+ '@babel/generator': 7.28.5'@babel/parser': 7.28.5'@babel/template': 7.27.2'@babel/traverse': 7.28.5@@ -23358,7 +23266,7 @@ snapshots:chalk: 4.1.2ci-info: 2.0.0connect: 3.7.0- debug: 4.4.3([email protected])+ debug: 4.4.3error-stack-parser: 2.1.4flow-enums-runtime: 0.0.6graceful-fs: 4.2.11@@ -23682,7 +23590,7 @@ snapshots:dependencies:'@types/debug': 4.1.12- debug: 4.4.3([email protected])+ debug: 4.4.3decode-named-character-reference: 1.0.2devlop: 1.1.0micromark-core-commonmark: 2.0.2@@ -24550,7 +24458,7 @@ snapshots:dependencies:- shell-quote: 1.8.2+ shell-quote: 1.8.3ws: 7.5.10transitivePeerDependencies:- bufferutil@@ -25440,8 +25348,7 @@ snapshots:- optional: true+ [email protected]: {}dependencies:@@ -26813,7 +26720,7 @@ snapshots:'@vitest/snapshot': 4.0.3'@vitest/spy': 4.0.3'@vitest/utils': 4.0.3- debug: 4.4.3([email protected])+ debug: 4.4.3es-module-lexer: 1.7.0expect-type: 1.2.2magic-string: 0.30.21@@ -26945,7 +26852,7 @@ snapshots:dependencies:- debug: 4.4.3([email protected])+ debug: 4.4.3eslint: 9.39.1([email protected])eslint-scope: 8.4.0eslint-visitor-keys: 4.2.1