Skip to content

armgit / papra

Public Imported from GitHub
0

The minimalistic document archiving platform.

chore(deps): upgrade ts to 6.0 (#1124)

Corentin Thomasseta46e0eaac070
diff --git a/apps/mobile/tsconfig.json b/apps/mobile/tsconfig.json
index 7c45656c..2d385b78 100644
--- a/apps/mobile/tsconfig.json
+++ b/apps/mobile/tsconfig.json
@@ -2,9 +2,8 @@
"extends": "expo/tsconfig.base",
"compilerOptions": {
"jsx": "react-native",
- "baseUrl": ".",
"paths": {
- "@/*": ["src/*"]
+ "@/*": ["./src/*"]
},
"strict": true,
"noUncheckedIndexedAccess": true
diff --git a/apps/papra-client/tsconfig.json b/apps/papra-client/tsconfig.json
index 5b6b5101..feb0a2d6 100644
--- a/apps/papra-client/tsconfig.json
+++ b/apps/papra-client/tsconfig.json
@@ -3,7 +3,6 @@
"target": "ESNext",
"jsx": "preserve",
"jsxImportSource": "solid-js",
- "baseUrl": "./",
"module": "ESNext",
"moduleResolution": "bundler",
"paths": {
diff --git a/packages/api-sdk/tsconfig.json b/packages/api-sdk/tsconfig.json
index 43dd7d01..a963b947 100644
--- a/packages/api-sdk/tsconfig.json
+++ b/packages/api-sdk/tsconfig.json
@@ -2,7 +2,8 @@
"compilerOptions": {
"target": "ESNext",
"moduleDetection": "force",
- "module": "preserve",
+ "module": "esnext",
+ "moduleResolution": "bundler",
"resolveJsonModule": true,
"allowJs": true,
"strict": true,
diff --git a/packages/cli/tsconfig.json b/packages/cli/tsconfig.json
index 82430e31..a963b947 100644
--- a/packages/cli/tsconfig.json
+++ b/packages/cli/tsconfig.json
@@ -2,9 +2,9 @@
"compilerOptions": {
"target": "ESNext",
"moduleDetection": "force",
- "module": "preserve",
+ "module": "esnext",
+ "moduleResolution": "bundler",
"resolveJsonModule": true,
- "types": ["node"],
"allowJs": true,
"strict": true,
"noImplicitOverride": true,
diff --git a/packages/lecture/src/config.ts b/packages/lecture/src/config.ts
index 0cc21abe..e67e33f8 100644
--- a/packages/lecture/src/config.ts
+++ b/packages/lecture/src/config.ts
@@ -4,7 +4,7 @@ import { languages as tesseractLanguages } from 'tesseract.js';
export const ocrLanguages = Object.values(tesseractLanguages);
export function parseConfig({ rawConfig = {} }: { rawConfig?: PartialExtractorConfig } = {}): { config: ExtractorConfig } {
- const languages = rawConfig.tesseract?.languages ?? [];
+ const languages = (rawConfig.tesseract?.languages ?? []).filter((language): language is string => language != null);
const invalidLanguages = languages.filter(language => !ocrLanguages.includes(language));
if (invalidLanguages.length > 0) {
diff --git a/packages/lecture/src/extractors.registry.test.ts b/packages/lecture/src/extractors.registry.test.ts
index b4ca609d..a0854b76 100644
--- a/packages/lecture/src/extractors.registry.test.ts
+++ b/packages/lecture/src/extractors.registry.test.ts
@@ -11,8 +11,8 @@ describe('extractors registry', () => {
defineTextExtractor({ name: '3', mimeTypes: ['c/d'], extract: async () => ({ content: '' }) }),
];
- expect(getExtractor({ mimeType: 'a/b', extractors: extractorDefinitions }).extractor.name).to.eql('1');
- expect(getExtractor({ mimeType: 'a/c', extractors: extractorDefinitions }).extractor.name).to.eql('2');
+ expect(getExtractor({ mimeType: 'a/b', extractors: extractorDefinitions }).extractor?.name).to.eql('1');
+ expect(getExtractor({ mimeType: 'a/c', extractors: extractorDefinitions }).extractor?.name).to.eql('2');
expect(getExtractor({ mimeType: 'e/f', extractors: extractorDefinitions })).to.eql({ extractor: undefined });
});
});
diff --git a/packages/lecture/src/extractors.usecases.test.ts b/packages/lecture/src/extractors.usecases.test.ts
index ee411e6d..7baa2ca4 100644
--- a/packages/lecture/src/extractors.usecases.test.ts
+++ b/packages/lecture/src/extractors.usecases.test.ts
@@ -58,8 +58,8 @@ describe('extractors usecases', () => {
const config = configFilePath ? (await import(configFilePath)).config : undefined;
- const arrayBuffer = (await fs.readFile(inputFilePath)).buffer as ArrayBuffer;
- const mimeType = mime.getType(inputFilePath);
+ const arrayBuffer = (await fs.readFile(inputFilePath!)).buffer as ArrayBuffer;
+ const mimeType = mime.getType(inputFilePath!)!;
const { textContent, error, extractorName, extractorType } = await extractText({
arrayBuffer,
@@ -77,7 +77,7 @@ describe('extractors usecases', () => {
expect(extractorName).to.not.eql(undefined, 'No extractor found for the fixture file');
expect(extractorType).to.not.eql(undefined);
- const fixtureNumber = fixtureDir.split('/').filter(Boolean).pop().slice(0, 3);
+ const fixtureNumber = fixtureDir.split('/').filter(Boolean).pop()!.slice(0, 3);
const expectedFilePath = join(fixtureDir, `${fixtureNumber}.expected.txt`);
await expect(textContent).toMatchFileSnapshot(expectedFilePath, 'Fixture does not match snapshot');
diff --git a/packages/lecture/src/extractors.usecases.ts b/packages/lecture/src/extractors.usecases.ts
index be973f64..6eabefb6 100644
--- a/packages/lecture/src/extractors.usecases.ts
+++ b/packages/lecture/src/extractors.usecases.ts
@@ -38,11 +38,11 @@ export async function extractText({ arrayBuffer, mimeType, config: rawConfig, lo
extractorName,
extractorType,
textContent: content,
- subExtractorsUsed,
+ subExtractorsUsed: subExtractorsUsed ?? [],
};
} catch (error) {
return {
- error,
+ error: error as Error,
extractorName,
extractorType: undefined,
textContent: undefined,
diff --git a/packages/lecture/src/extractors/pdf.extractor.ts b/packages/lecture/src/extractors/pdf.extractor.ts
index 0d42e540..7c32f6fe 100644
--- a/packages/lecture/src/extractors/pdf.extractor.ts
+++ b/packages/lecture/src/extractors/pdf.extractor.ts
@@ -44,7 +44,7 @@ async function ocrPdfImages({ pdf, pageCount, extract, logger }: { pdf: PDFDocum
const image = await new Promise(resolve => (imageKey.startsWith('g_') ? page.commonObjs : page.objs).get(imageKey, resolve));
if (!isValidPdfImage(image)) {
- const get = (prop: string) => (image != null && typeof image === 'object' && prop in image ? image[prop] : undefined);
+ const get = (prop: string) => (image != null && typeof image === 'object' && prop in image ? (image as Record<string, unknown>)[prop] : undefined);
logger?.warn({
pageIndex,
diff --git a/packages/lecture/src/pdf/pdf.models.ts b/packages/lecture/src/pdf/pdf.models.ts
index baa83b88..f8f2cf31 100644
--- a/packages/lecture/src/pdf/pdf.models.ts
+++ b/packages/lecture/src/pdf/pdf.models.ts
@@ -2,7 +2,7 @@ import type { PdfRawImage } from './pdf.types';
import { IMAGE_KIND_CHANNELS } from './pdf.constants';
export function isValidPdfImage(image: unknown): image is PdfRawImage {
- return Boolean(image)
+ return image != null
&& typeof image === 'object'
&& 'data' in image
&& 'width' in image
diff --git a/packages/lecture/src/pdf/pdf.usecases.ts b/packages/lecture/src/pdf/pdf.usecases.ts
index 359b1b34..ad1ac3da 100644
--- a/packages/lecture/src/pdf/pdf.usecases.ts
+++ b/packages/lecture/src/pdf/pdf.usecases.ts
@@ -31,7 +31,7 @@ export async function pdfImageToBuffer(image: PdfRawImage): Promise<Buffer> {
raw: {
width: image.width,
height: image.height,
- channels: IMAGE_KIND_CHANNELS[image.kind],
+ channels: IMAGE_KIND_CHANNELS[image.kind]!,
},
})
.png()
diff --git a/packages/lecture/src/tesseract/tesseract.usecases.ts b/packages/lecture/src/tesseract/tesseract.usecases.ts
index e37fdd27..8e7f2493 100644
--- a/packages/lecture/src/tesseract/tesseract.usecases.ts
+++ b/packages/lecture/src/tesseract/tesseract.usecases.ts
@@ -20,13 +20,13 @@ export async function isTesseractCliAvailable({ binary = 'tesseract' }: { binary
}
}
-export const isTesseractCliAvailableMemoized = memoize(isTesseractCliAvailable, ({ binary }) => binary);
+export const isTesseractCliAvailableMemoized = memoize(isTesseractCliAvailable, ({ binary } = {}) => binary ?? 'tesseract');
export function createTesseractCliExtractor({ binary = 'tesseract', languages: factoryLanguages = ['eng'] }: { binary?: string; languages?: string[] } = {}) {
return async (maybeArrayBuffer: ArrayBuffer | Buffer, { languages = factoryLanguages }: { languages?: string[] } = {}): Promise<string> => {
try {
const proc = exec(binary, ['stdin', 'stdout', '-l', languages.join('+')], { throwOnError: true });
- proc.process.stdin.end(castToBuffer(maybeArrayBuffer));
+ proc.process?.stdin?.end(castToBuffer(maybeArrayBuffer));
const { stdout } = await proc;
diff --git a/packages/lecture/src/utils/memoize.ts b/packages/lecture/src/utils/memoize.ts
index 30414d4c..65bacb5a 100644
--- a/packages/lecture/src/utils/memoize.ts
+++ b/packages/lecture/src/utils/memoize.ts
@@ -1,10 +1,10 @@
-export function memoize<F extends (...args: unknown[]) => any>(fn: F, keyResolver?: (...args: Parameters<F>) => string): F {
+export function memoize<F extends (...args: any[]) => any>(fn: F, keyResolver?: (...args: Parameters<F>) => string): F {
const cache: { [key: string]: ReturnType<F> } = {};
const memoizedFn = (...args: Parameters<F>): ReturnType<F> => {
const key = keyResolver ? keyResolver(...args) : JSON.stringify(args);
if (key in cache) {
- return cache[key];
+ return cache[key] as ReturnType<F>;
}
const result = fn(...args);
cache[key] = result;
diff --git a/packages/lecture/tsconfig.json b/packages/lecture/tsconfig.json
index b88c8b0c..a963b947 100644
--- a/packages/lecture/tsconfig.json
+++ b/packages/lecture/tsconfig.json
@@ -1,13 +1,20 @@
{
"compilerOptions": {
"target": "ESNext",
- "module": "ESNext",
- "moduleResolution": "Node",
+ "moduleDetection": "force",
+ "module": "esnext",
+ "moduleResolution": "bundler",
"resolveJsonModule": true,
+ "allowJs": true,
+ "strict": true,
+ "noImplicitOverride": true,
+ "noUncheckedIndexedAccess": true,
+ "noEmit": true,
+ "allowSyntheticDefaultImports": true,
"esModuleInterop": true,
+ "forceConsistentCasingInFileNames": true,
+ "isolatedModules": true,
+ "verbatimModuleSyntax": true,
"skipLibCheck": true
- },
- "include": [
- "src"
- ]
+ }
}
diff --git a/packages/search-parser/tsconfig.json b/packages/search-parser/tsconfig.json
index 6f8d68bb..14fa1f89 100644
--- a/packages/search-parser/tsconfig.json
+++ b/packages/search-parser/tsconfig.json
@@ -2,7 +2,8 @@
"compilerOptions": {
"target": "ESNext",
"moduleDetection": "force",
- "module": "preserve",
+ "module": "esnext",
+ "moduleResolution": "bundler",
"resolveJsonModule": true,
"allowJs": true,
"strict": true,
diff --git a/packages/webhooks/tsconfig.json b/packages/webhooks/tsconfig.json
index 43dd7d01..a963b947 100644
--- a/packages/webhooks/tsconfig.json
+++ b/packages/webhooks/tsconfig.json
@@ -2,7 +2,8 @@
"compilerOptions": {
"target": "ESNext",
"moduleDetection": "force",
- "module": "preserve",
+ "module": "esnext",
+ "moduleResolution": "bundler",
"resolveJsonModule": true,
"allowJs": true,
"strict": true,
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index bd1528fe..bdcf970d 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -58,8 +58,8 @@ catalogs:
specifier: ^4.20.6
version: 4.20.6
typescript:
- specifier: ^5.9.3
- version: 5.9.3
+ specifier: ^6.0.3
+ version: 6.0.3
unocss:
specifier: 66.6.0
version: 66.6.0
@@ -94,13 +94,13 @@ importers:
'@astrojs/starlight':
specifier: ^0.34.3
'@valibot/to-json-schema':
specifier: ^1.6.0
astro:
specifier: 'catalog:'
sharp:
specifier: 'catalog:'
version: 0.34.5
@@ -109,10 +109,10 @@ importers:
version: 3.21.0
starlight-links-validator:
specifier: ^0.16.0
starlight-theme-rapide:
specifier: ^0.5.0
tailwind-merge:
specifier: ^2.6.0
version: 2.6.0
@@ -121,7 +121,7 @@ importers:
valibot:
specifier: 'catalog:'
- version: 1.3.1([email protected])
+ version: 1.3.1([email protected])
yaml:
specifier: ^2.8.0
version: 2.8.2
@@ -131,7 +131,7 @@ importers:
devDependencies:
'@antfu/eslint-config':
specifier: 'catalog:'
'@iconify-json/tabler':
specifier: 'catalog:'
version: 1.2.26
@@ -143,7 +143,7 @@ importers:
version: 9.39.2([email protected])
eslint-plugin-astro:
specifier: ^1.3.1
figue:
specifier: 'catalog:'
version: 3.2.0
@@ -152,7 +152,7 @@ importers:
version: 15.0.11
typescript:
specifier: 'catalog:'
- version: 5.9.3
+ version: 6.0.3
unocss:
specifier: 'catalog:'
@@ -284,29 +284,29 @@ importers:
valibot:
specifier: 'catalog:'
- version: 1.3.1([email protected])
+ version: 1.3.1([email protected])
devDependencies:
'@antfu/eslint-config':
specifier: 'catalog:'
'@types/react':
specifier: ~19.1.0
version: 19.1.17
eas-cli:
specifier: ^16.27.0
- version: 16.27.0(@types/[email protected])([email protected])
+ version: 16.27.0(@types/[email protected])([email protected])
eslint:
specifier: 'catalog:'
version: 9.39.2([email protected])
eslint-config-expo:
specifier: ~10.0.0
reactotron-react-native:
specifier: ^5.1.18
typescript:
specifier: 'catalog:'
- version: 5.9.3
+ version: 6.0.3
vitest:
specifier: 'catalog:'
@@ -333,7 +333,7 @@ importers:
version: 0.9.1([email protected])
'@modular-forms/solid':
specifier: ^0.25.1
'@papra/search-parser':
specifier: workspace:*
version: link:../../packages/search-parser
@@ -396,11 +396,11 @@ importers:
version: 0.1.2
valibot:
specifier: 'catalog:'
- version: 1.3.1([email protected])
+ version: 1.3.1([email protected])
devDependencies:
'@antfu/eslint-config':
specifier: 'catalog:'
'@iconify-json/tabler':
specifier: 'catalog:'
version: 1.2.26
@@ -415,13 +415,13 @@ importers:
version: 9.39.2([email protected])
eslint-plugin-solid:
specifier: ^0.14.5
tsx:
specifier: 'catalog:'
version: 4.20.6
typescript:
specifier: 'catalog:'
- version: 5.9.3
+ version: 6.0.3
unocss:
specifier: 'catalog:'
@@ -571,11 +571,11 @@ importers:
version: 8.2.0
valibot:
specifier: 'catalog:'
- version: 1.3.1([email protected])
+ version: 1.3.1([email protected])
devDependencies:
'@antfu/eslint-config':
specifier: 'catalog:'
'@crowlog/pretty':
specifier: ^2.0.1
version: 2.0.1
@@ -629,7 +629,7 @@ importers:
version: 11.5.1
typescript:
specifier: 'catalog:'
- version: 5.9.3
+ version: 6.0.3
vitest:
specifier: 'catalog:'
@@ -638,10 +638,10 @@ importers:
dependencies:
'@astrojs/check':
specifier: ^0.9.6
'@astrojs/cloudflare':
specifier: ^12.6.10
'@astrojs/rss':
specifier: ^4.0.11
version: 4.0.15
@@ -656,13 +656,13 @@ importers:
version: 2.1.0
astro:
specifier: 'catalog:'
astro-capo:
specifier: ^0.0.1
astro-expressive-code:
specifier: ^0.41.1
class-variance-authority:
specifier: ^0.7.1
version: 0.7.1
@@ -678,10 +678,10 @@ importers:
devDependencies:
'@antfu/eslint-config':
specifier: 'catalog:'
'@astrojs/mdx':
specifier: ^4.2.4
'@iconify-json/tabler':
specifier: 'catalog:'
version: 1.2.26
@@ -693,13 +693,13 @@ importers:
version: 9.39.2([email protected])
eslint-plugin-astro:
specifier: ^1.3.1
sharp:
specifier: 'catalog:'
version: 0.34.5
typescript:
specifier: 'catalog:'
- version: 5.9.3
+ version: 6.0.3
unocss:
specifier: 'catalog:'
@@ -721,16 +721,16 @@ importers:
devDependencies:
'@antfu/eslint-config':
specifier: 'catalog:'
eslint:
specifier: 'catalog:'
version: 9.39.2([email protected])
tsdown:
specifier: 'catalog:'
- version: 0.13.4([email protected])
+ version: 0.13.4([email protected])
typescript:
specifier: 'catalog:'
- version: 5.9.3
+ version: 6.0.3
vitest:
specifier: 'catalog:'
@@ -768,11 +768,11 @@ importers:
version: 1.1.1
valibot:
specifier: 'catalog:'
- version: 1.3.1([email protected])
+ version: 1.3.1([email protected])
devDependencies:
'@antfu/eslint-config':
specifier: 'catalog:'
'@types/mime-types':
specifier: ^2.1.4
version: 2.1.4
@@ -784,13 +784,13 @@ importers:
version: 9.39.2([email protected])
tsdown:
specifier: 'catalog:'
- version: 0.13.4([email protected])
+ version: 0.13.4([email protected])
tsx:
specifier: 'catalog:'
version: 4.20.6
typescript:
specifier: 'catalog:'
- version: 5.9.3
+ version: 6.0.3
vitest:
specifier: 'catalog:'
@@ -827,7 +827,7 @@ importers:
devDependencies:
'@antfu/eslint-config':
specifier: 'catalog:'
'@types/node':
specifier: 'catalog:'
version: 25.7.0
@@ -842,10 +842,10 @@ importers:
version: 4.0.7
tsdown:
specifier: 'catalog:'
- version: 0.13.4([email protected])
+ version: 0.13.4([email protected])
typescript:
specifier: 'catalog:'
- version: 5.9.3
+ version: 6.0.3
vitest:
specifier: 'catalog:'
@@ -854,16 +854,16 @@ importers:
devDependencies:
'@antfu/eslint-config':
specifier: 'catalog:'
eslint:
specifier: 'catalog:'
version: 9.39.2([email protected])
tsdown:
specifier: 'catalog:'
- version: 0.13.4([email protected])
+ version: 0.13.4([email protected])
typescript:
specifier: 'catalog:'
- version: 5.9.3
+ version: 6.0.3
vitest:
specifier: 'catalog:'
@@ -878,7 +878,7 @@ importers:
version: link:..
astro:
specifier: 'catalog:'
shiki:
specifier: ^3.4.2
version: 3.21.0
@@ -891,7 +891,7 @@ importers:
devDependencies:
'@antfu/eslint-config':
specifier: 'catalog:'
'@iconify-json/tabler':
specifier: 'catalog:'
version: 1.2.26
@@ -919,7 +919,7 @@ importers:
devDependencies:
'@antfu/eslint-config':
specifier: 'catalog:'
eslint:
specifier: 'catalog:'
version: 9.39.2([email protected])
@@ -928,10 +928,10 @@ importers:
version: 1.0.0
tsdown:
specifier: 'catalog:'
- version: 0.13.4([email protected])
+ version: 0.13.4([email protected])
typescript:
specifier: 'catalog:'
- version: 5.9.3
+ version: 6.0.3
vitest:
specifier: 'catalog:'
@@ -11176,8 +11176,8 @@ packages:
resolution: {integrity: sha512-RpuHXrknHdVdK7wv/8ug3Fr0WNsNi5l5aB8MYYuXhq2UH5lnEB1htJ1smhtD5VeCsGr2p8mUDtd83LCQDFVgjQ==}
- resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==}
+ resolution: {integrity: sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==}
engines: {node: '>=14.17'}
hasBin: true
@@ -12076,16 +12076,16 @@ snapshots:
optionalDependencies:
graphql: 16.8.1
dependencies:
'@antfu/install-pkg': 1.1.0
'@clack/prompts': 0.11.0
'@eslint-community/eslint-plugin-eslint-comments': 4.6.0([email protected]([email protected]))
'@eslint/markdown': 7.5.1
'@stylistic/eslint-plugin': 5.7.1([email protected]([email protected]))
- '@typescript-eslint/parser': 8.54.0([email protected]([email protected]))([email protected])
+ '@typescript-eslint/parser': 8.54.0([email protected]([email protected]))([email protected])
ansis: 4.2.0
cac: 6.7.14
eslint: 9.39.2([email protected])
@@ -12097,15 +12097,15 @@ snapshots:
eslint-plugin-import-lite: 0.5.0([email protected]([email protected]))
eslint-plugin-jsdoc: 62.4.1([email protected]([email protected]))
eslint-plugin-jsonc: 2.21.0([email protected]([email protected]))
eslint-plugin-no-only-tests: 3.3.0
- eslint-plugin-perfectionist: 5.4.0([email protected]([email protected]))([email protected])
+ eslint-plugin-perfectionist: 5.4.0([email protected]([email protected]))([email protected])
eslint-plugin-pnpm: 1.5.0([email protected]([email protected]))
eslint-plugin-regexp: 2.10.0([email protected]([email protected]))
eslint-plugin-toml: 1.0.3([email protected]([email protected]))
eslint-plugin-unicorn: 62.0.0([email protected]([email protected]))
eslint-plugin-yml: 3.0.0([email protected]([email protected]))
eslint-processor-vue-blocks: 2.0.0(@vue/[email protected])([email protected]([email protected]))
globals: 17.2.0
@@ -12116,9 +12116,9 @@ snapshots:
vue-eslint-parser: 10.2.0([email protected]([email protected]))
yaml-eslint-parser: 2.0.0
optionalDependencies:
- astro-eslint-parser: 1.1.0([email protected])
+ astro-eslint-parser: 1.1.0([email protected])
transitivePeerDependencies:
- '@eslint/json'
- '@vue/compiler-sfc'
@@ -12126,16 +12126,16 @@ snapshots:
- typescript
- vitest
dependencies:
'@antfu/install-pkg': 1.1.0
'@clack/prompts': 0.11.0
'@eslint-community/eslint-plugin-eslint-comments': 4.6.0([email protected]([email protected]))
'@eslint/markdown': 7.5.1
'@stylistic/eslint-plugin': 5.7.1([email protected]([email protected]))
- '@typescript-eslint/parser': 8.54.0([email protected]([email protected]))([email protected])
+ '@typescript-eslint/parser': 8.54.0([email protected]([email protected]))([email protected])
ansis: 4.2.0
cac: 6.7.14
eslint: 9.39.2([email protected])
@@ -12147,15 +12147,15 @@ snapshots:
eslint-plugin-import-lite: 0.5.0([email protected]([email protected]))
eslint-plugin-jsdoc: 62.4.1([email protected]([email protected]))
eslint-plugin-jsonc: 2.21.0([email protected]([email protected]))
eslint-plugin-no-only-tests: 3.3.0
- eslint-plugin-perfectionist: 5.4.0([email protected]([email protected]))([email protected])
+ eslint-plugin-perfectionist: 5.4.0([email protected]([email protected]))([email protected])
eslint-plugin-pnpm: 1.5.0([email protected]([email protected]))
eslint-plugin-regexp: 2.10.0([email protected]([email protected]))
eslint-plugin-toml: 1.0.3([email protected]([email protected]))
eslint-plugin-unicorn: 62.0.0([email protected]([email protected]))
eslint-plugin-yml: 3.0.0([email protected]([email protected]))
eslint-processor-vue-blocks: 2.0.0(@vue/[email protected])([email protected]([email protected]))
globals: 17.2.0
@@ -12166,9 +12166,9 @@ snapshots:
vue-eslint-parser: 10.2.0([email protected]([email protected]))
yaml-eslint-parser: 2.0.0
optionalDependencies:
- astro-eslint-parser: 1.1.0([email protected])
+ astro-eslint-parser: 1.1.0([email protected])
transitivePeerDependencies:
- '@eslint/json'
- '@vue/compiler-sfc'
@@ -12181,23 +12181,23 @@ snapshots:
package-manager-detector: 1.6.0
tinyexec: 1.0.2
dependencies:
- '@astrojs/language-server': 2.16.3([email protected])([email protected])
+ '@astrojs/language-server': 2.16.3([email protected])([email protected])
chokidar: 4.0.3
kleur: 4.1.5
- typescript: 5.9.3
+ typescript: 6.0.3
yargs: 17.7.2
transitivePeerDependencies:
- prettier
- prettier-plugin-astro
dependencies:
'@astrojs/internal-helpers': 0.7.5
'@astrojs/underscore-redirects': 1.0.0
'@cloudflare/workers-types': 4.20260124.0
tinyglobby: 0.2.15
wrangler: 4.50.0(@cloudflare/[email protected])
@@ -12220,12 +12220,12 @@ snapshots:
'@astrojs/[email protected]': {}
dependencies:
'@astrojs/compiler': 2.13.0
'@astrojs/yaml2ts': 0.2.2
'@jridgewell/sourcemap-codec': 1.5.5
- '@volar/kit': 2.4.27([email protected])
+ '@volar/kit': 2.4.27([email protected])
'@volar/language-core': 2.4.27
'@volar/language-server': 2.4.27
'@volar/language-service': 2.4.27
@@ -12271,12 +12271,12 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
'@astrojs/markdown-remark': 6.3.10
'@mdx-js/mdx': 3.1.1
acorn: 8.15.0
es-module-lexer: 1.7.0
estree-util-visit: 2.0.0
hast-util-to-html: 9.0.5
@@ -12325,17 +12325,17 @@ snapshots:
- tsx
- yaml
dependencies:
'@astrojs/markdown-remark': 6.3.10
'@astrojs/sitemap': 3.3.0
'@pagefind/default-ui': 1.3.0
'@types/hast': 3.0.4
'@types/js-yaml': 4.0.9
'@types/mdast': 4.0.4
bcp-47: 2.1.0
hast-util-from-html: 2.0.3
hast-util-select: 6.0.4
@@ -14879,18 +14879,18 @@ snapshots:
base64-js: 1.5.1
xmlbuilder: 15.1.1
dependencies:
- '@oclif/core': 2.16.0(@types/[email protected])([email protected])
+ '@oclif/core': 2.16.0(@types/[email protected])([email protected])
transitivePeerDependencies:
- '@swc/core'
- '@swc/wasm'
- '@types/node'
- typescript
dependencies:
- '@oclif/core': 2.16.0(@types/[email protected])([email protected])
+ '@oclif/core': 2.16.0(@types/[email protected])([email protected])
chalk: 4.1.2
debug: 4.4.3([email protected])
ejs: 3.1.10
@@ -15514,10 +15514,10 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
solid-js: 1.9.10
- valibot: 1.3.1([email protected])
+ valibot: 1.3.1([email protected])
transitivePeerDependencies:
- typescript
@@ -15631,7 +15631,7 @@ snapshots:
widest-line: 3.1.0
wrap-ansi: 7.0.0
dependencies:
'@types/cli-progress': 3.11.6
ansi-escapes: 4.3.2
@@ -15656,7 +15656,7 @@ snapshots:
strip-ansi: 6.0.1
supports-color: 8.1.1
supports-hyperlinks: 2.3.0
- ts-node: 10.9.2(@types/[email protected])([email protected])
+ ts-node: 10.9.2(@types/[email protected])([email protected])
tslib: 2.8.1
widest-line: 3.1.0
wordwrap: 1.0.0
@@ -15669,9 +15669,9 @@ snapshots:
'@oclif/[email protected]': {}
dependencies:
- '@oclif/core': 2.16.0(@types/[email protected])([email protected])
+ '@oclif/core': 2.16.0(@types/[email protected])([email protected])
chalk: 4.1.2
debug: 4.4.3([email protected])
transitivePeerDependencies:
@@ -17098,40 +17098,40 @@ snapshots:
dependencies:
'@types/yargs-parser': 21.0.3
dependencies:
'@eslint-community/regexpp': 4.12.2
- '@typescript-eslint/parser': 8.54.0([email protected]([email protected]))([email protected])
+ '@typescript-eslint/parser': 8.54.0([email protected]([email protected]))([email protected])
'@typescript-eslint/scope-manager': 8.54.0
- '@typescript-eslint/type-utils': 8.54.0([email protected]([email protected]))([email protected])
- '@typescript-eslint/utils': 8.54.0([email protected]([email protected]))([email protected])
+ '@typescript-eslint/type-utils': 8.54.0([email protected]([email protected]))([email protected])
+ '@typescript-eslint/utils': 8.54.0([email protected]([email protected]))([email protected])
'@typescript-eslint/visitor-keys': 8.54.0
eslint: 9.39.2([email protected])
ignore: 7.0.5
natural-compare: 1.4.0
- ts-api-utils: 2.4.0([email protected])
- typescript: 5.9.3
+ ts-api-utils: 2.4.0([email protected])
+ typescript: 6.0.3
transitivePeerDependencies:
- supports-color
dependencies:
'@typescript-eslint/scope-manager': 8.54.0
'@typescript-eslint/types': 8.54.0
- '@typescript-eslint/typescript-estree': 8.54.0([email protected])
+ '@typescript-eslint/typescript-estree': 8.54.0([email protected])
'@typescript-eslint/visitor-keys': 8.54.0
debug: 4.4.3([email protected])
eslint: 9.39.2([email protected])
- typescript: 5.9.3
+ typescript: 6.0.3
transitivePeerDependencies:
- supports-color
- '@typescript-eslint/[email protected]([email protected])':
+ '@typescript-eslint/[email protected]([email protected])':
dependencies:
- '@typescript-eslint/tsconfig-utils': 8.54.0([email protected])
+ '@typescript-eslint/tsconfig-utils': 8.54.0([email protected])
'@typescript-eslint/types': 8.54.0
debug: 4.4.3([email protected])
- typescript: 5.9.3
+ typescript: 6.0.3
transitivePeerDependencies:
- supports-color
@@ -17140,47 +17140,47 @@ snapshots:
'@typescript-eslint/types': 8.54.0
'@typescript-eslint/visitor-keys': 8.54.0
- '@typescript-eslint/[email protected]([email protected])':
+ '@typescript-eslint/[email protected]([email protected])':
dependencies:
- typescript: 5.9.3
+ typescript: 6.0.3
dependencies:
'@typescript-eslint/types': 8.54.0
- '@typescript-eslint/typescript-estree': 8.54.0([email protected])
- '@typescript-eslint/utils': 8.54.0([email protected]([email protected]))([email protected])
+ '@typescript-eslint/typescript-estree': 8.54.0([email protected])
+ '@typescript-eslint/utils': 8.54.0([email protected]([email protected]))([email protected])
debug: 4.4.3([email protected])
eslint: 9.39.2([email protected])
- ts-api-utils: 2.4.0([email protected])
- typescript: 5.9.3
+ ts-api-utils: 2.4.0([email protected])
+ typescript: 6.0.3
transitivePeerDependencies:
- supports-color
'@typescript-eslint/[email protected]': {}
- '@typescript-eslint/[email protected]([email protected])':
+ '@typescript-eslint/[email protected]([email protected])':
dependencies:
- '@typescript-eslint/project-service': 8.54.0([email protected])
- '@typescript-eslint/tsconfig-utils': 8.54.0([email protected])
+ '@typescript-eslint/project-service': 8.54.0([email protected])
+ '@typescript-eslint/tsconfig-utils': 8.54.0([email protected])
'@typescript-eslint/types': 8.54.0
'@typescript-eslint/visitor-keys': 8.54.0
debug: 4.4.3([email protected])
minimatch: 9.0.5
semver: 7.7.3
tinyglobby: 0.2.15
- ts-api-utils: 2.4.0([email protected])
- typescript: 5.9.3
+ ts-api-utils: 2.4.0([email protected])
+ typescript: 6.0.3
transitivePeerDependencies:
- supports-color
dependencies:
'@eslint-community/eslint-utils': 4.9.1([email protected]([email protected]))
'@typescript-eslint/scope-manager': 8.54.0
'@typescript-eslint/types': 8.54.0
- '@typescript-eslint/typescript-estree': 8.54.0([email protected])
+ '@typescript-eslint/typescript-estree': 8.54.0([email protected])
eslint: 9.39.2([email protected])
- typescript: 5.9.3
+ typescript: 6.0.3
transitivePeerDependencies:
- supports-color
@@ -17446,9 +17446,9 @@ snapshots:
'@urql/core': 5.2.0([email protected])
wonka: 6.3.5
dependencies:
- valibot: 1.3.1([email protected])
+ valibot: 1.3.1([email protected])
dependencies:
@@ -17484,24 +17484,24 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
'@typescript-eslint/scope-manager': 8.54.0
- '@typescript-eslint/utils': 8.54.0([email protected]([email protected]))([email protected])
+ '@typescript-eslint/utils': 8.54.0([email protected]([email protected]))([email protected])
eslint: 9.39.2([email protected])
optionalDependencies:
- typescript: 5.9.3
+ typescript: 6.0.3
transitivePeerDependencies:
- supports-color
dependencies:
'@typescript-eslint/scope-manager': 8.54.0
- '@typescript-eslint/utils': 8.54.0([email protected]([email protected]))([email protected])
+ '@typescript-eslint/utils': 8.54.0([email protected]([email protected]))([email protected])
eslint: 9.39.2([email protected])
optionalDependencies:
- typescript: 5.9.3
+ typescript: 6.0.3
transitivePeerDependencies:
- supports-color
@@ -17553,12 +17553,12 @@ snapshots:
'@vitest/pretty-format': 4.0.3
tinyrainbow: 3.0.3
dependencies:
'@volar/language-service': 2.4.27
'@volar/typescript': 2.4.27
typesafe-path: 0.2.2
- typescript: 5.9.3
+ typescript: 6.0.3
vscode-languageserver-textdocument: 1.0.12
vscode-uri: 3.1.0
@@ -17874,17 +17874,17 @@ snapshots:
dependencies:
ultrahtml: 1.6.0
dependencies:
'@astrojs/compiler': 2.13.0
'@typescript-eslint/scope-manager': 8.54.0
'@typescript-eslint/types': 8.54.0
- '@typescript-eslint/typescript-estree': 8.54.0([email protected])
+ '@typescript-eslint/typescript-estree': 8.54.0([email protected])
astrojs-compiler-sync: 1.0.1(@astrojs/[email protected])
debug: 4.4.3([email protected])
entities: 4.5.0
@@ -17898,12 +17898,12 @@ snapshots:
- supports-color
- typescript
dependencies:
rehype-expressive-code: 0.41.2
dependencies:
'@astrojs/compiler': 2.13.0
'@astrojs/internal-helpers': 0.7.5
@@ -17954,7 +17954,7 @@ snapshots:
svgo: 4.0.0
tinyexec: 1.0.2
tinyglobby: 0.2.15
- tsconfck: 3.1.6([email protected])
+ tsconfck: 3.1.6([email protected])
ultrahtml: 1.6.0
unifont: 0.7.3
unist-util-visit: 5.0.0
@@ -17967,7 +17967,7 @@ snapshots:
yocto-spinner: 0.2.3
zod: 3.25.76
zod-to-json-schema: 3.25.1([email protected])
optionalDependencies:
sharp: 0.34.5
transitivePeerDependencies:
@@ -19023,7 +19023,7 @@ snapshots:
dependencies:
'@expo/apple-utils': 2.1.12
'@expo/code-signing-certificates': 0.0.5
@@ -19039,8 +19039,8 @@ snapshots:
'@expo/package-manager': 1.7.0
'@expo/pkcs12': 0.1.3
'@expo/plist': 0.2.0
- '@expo/plugin-help': 5.1.23(@types/[email protected])([email protected])
- '@expo/plugin-warn-if-update-available': 2.5.1(@types/[email protected])([email protected])
+ '@expo/plugin-help': 5.1.23(@types/[email protected])([email protected])
+ '@expo/plugin-warn-if-update-available': 2.5.1(@types/[email protected])([email protected])
'@expo/prebuild-config': 8.0.17
'@expo/results': 1.0.0
'@expo/rudder-sdk-node': 1.1.1
@@ -19048,7 +19048,7 @@ snapshots:
'@expo/steps': 1.0.231
'@expo/timeago.js': 1.0.0
'@oclif/core': 1.26.2
- '@oclif/plugin-autocomplete': 2.3.10(@types/[email protected])([email protected])
+ '@oclif/plugin-autocomplete': 2.3.10(@types/[email protected])([email protected])
'@segment/ajv-human-errors': 2.15.0([email protected])
'@urql/core': 4.0.11([email protected])
'@urql/exchange-retry': 1.2.0([email protected])
@@ -19469,14 +19469,14 @@ snapshots:
eslint: 9.39.2([email protected])
semver: 7.7.3
dependencies:
- '@typescript-eslint/parser': 8.54.0([email protected]([email protected]))([email protected])
+ '@typescript-eslint/parser': 8.54.0([email protected]([email protected]))([email protected])
eslint: 9.39.2([email protected])
eslint-plugin-react: 7.37.5([email protected]([email protected]))
eslint-plugin-react-hooks: 5.2.0([email protected]([email protected]))
globals: 16.4.0
@@ -19504,7 +19504,7 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
'@nolyfill/is-core-module': 1.0.39
debug: 4.4.3([email protected])
@@ -19515,7 +19515,7 @@ snapshots:
tinyglobby: 0.2.15
unrs-resolver: 1.11.1
optionalDependencies:
transitivePeerDependencies:
- supports-color
@@ -19529,14 +19529,14 @@ snapshots:
dependencies:
eslint: 9.39.2([email protected])
dependencies:
debug: 3.2.7
optionalDependencies:
- '@typescript-eslint/parser': 8.54.0([email protected]([email protected]))([email protected])
+ '@typescript-eslint/parser': 8.54.0([email protected]([email protected]))([email protected])
eslint: 9.39.2([email protected])
eslint-import-resolver-node: 0.3.9
transitivePeerDependencies:
- supports-color
@@ -19544,12 +19544,12 @@ snapshots:
dependencies:
eslint: 9.39.2([email protected])
dependencies:
'@eslint-community/eslint-utils': 4.9.1([email protected]([email protected]))
'@jridgewell/sourcemap-codec': 1.5.5
'@typescript-eslint/types': 8.54.0
- astro-eslint-parser: 1.1.0([email protected])
+ astro-eslint-parser: 1.1.0([email protected])
eslint: 9.39.2([email protected])
eslint-compat-utils: 0.6.5([email protected]([email protected]))
globals: 15.15.0
@@ -19571,10 +19571,10 @@ snapshots:
eslint: 9.39.2([email protected])
eslint-compat-utils: 0.5.1([email protected]([email protected]))
dependencies:
'@typescript-eslint/types': 8.54.0
- '@typescript-eslint/utils': 8.54.0([email protected]([email protected]))([email protected])
+ '@typescript-eslint/utils': 8.54.0([email protected]([email protected]))([email protected])
eslint: 9.39.2([email protected])
transitivePeerDependencies:
- supports-color
@@ -19584,7 +19584,7 @@ snapshots:
dependencies:
eslint: 9.39.2([email protected])
dependencies:
'@rtsao/scc': 1.1.0
array-includes: 3.1.9
@@ -19595,7 +19595,7 @@ snapshots:
doctrine: 2.1.0
eslint: 9.39.2([email protected])
eslint-import-resolver-node: 0.3.9
hasown: 2.0.2
is-core-module: 2.16.1
is-glob: 4.0.3
@@ -19607,7 +19607,7 @@ snapshots:
string.prototype.trimend: 1.0.9
tsconfig-paths: 3.15.0
optionalDependencies:
- '@typescript-eslint/parser': 8.54.0([email protected]([email protected]))([email protected])
+ '@typescript-eslint/parser': 8.54.0([email protected]([email protected]))([email protected])
transitivePeerDependencies:
- eslint-import-resolver-typescript
- eslint-import-resolver-webpack
@@ -19648,7 +19648,7 @@ snapshots:
transitivePeerDependencies:
- '@eslint/json'
dependencies:
'@eslint-community/eslint-utils': 4.9.1([email protected]([email protected]))
enhanced-resolve: 5.18.2
@@ -19659,15 +19659,15 @@ snapshots:
globrex: 0.1.2
ignore: 5.3.2
semver: 7.7.3
- ts-declaration-location: 1.0.7([email protected])
+ ts-declaration-location: 1.0.7([email protected])
transitivePeerDependencies:
- typescript
dependencies:
- '@typescript-eslint/utils': 8.54.0([email protected]([email protected]))([email protected])
+ '@typescript-eslint/utils': 8.54.0([email protected]([email protected]))([email protected])
eslint: 9.39.2([email protected])
natural-orderby: 5.0.0
transitivePeerDependencies:
@@ -19722,16 +19722,16 @@ snapshots:
regexp-ast-analysis: 0.7.1
scslre: 0.3.0
dependencies:
- '@typescript-eslint/utils': 8.54.0([email protected]([email protected]))([email protected])
+ '@typescript-eslint/utils': 8.54.0([email protected]([email protected]))([email protected])
eslint: 9.39.2([email protected])
estraverse: 5.3.0
is-html: 2.0.0
kebab-case: 1.0.2
known-css-properties: 0.30.0
style-to-object: 1.0.8
- typescript: 5.9.3
+ typescript: 6.0.3
transitivePeerDependencies:
- supports-color
@@ -19767,13 +19767,13 @@ snapshots:
semver: 7.7.3
strip-indent: 4.1.1
dependencies:
eslint: 9.39.2([email protected])
optionalDependencies:
dependencies:
'@eslint-community/eslint-utils': 4.9.1([email protected]([email protected]))
eslint: 9.39.2([email protected])
@@ -19785,7 +19785,7 @@ snapshots:
xml-name-validator: 4.0.0
optionalDependencies:
'@stylistic/eslint-plugin': 5.7.1([email protected]([email protected]))
- '@typescript-eslint/parser': 8.54.0([email protected]([email protected]))([email protected])
+ '@typescript-eslint/parser': 8.54.0([email protected]([email protected]))([email protected])
dependencies:
@@ -23769,7 +23769,7 @@ snapshots:
dependencies:
glob: 10.4.5
dependencies:
'@babel/generator': 7.28.5
'@babel/parser': 7.28.5
@@ -23781,7 +23781,7 @@ snapshots:
get-tsconfig: 4.10.1
rolldown: 1.0.0-beta.31
optionalDependencies:
- typescript: 5.9.3
+ typescript: 6.0.3
transitivePeerDependencies:
- oxc-resolver
- supports-color
@@ -24241,9 +24241,9 @@ snapshots:
'@stablelib/base64': 1.0.1
fast-sha256: 1.3.0
dependencies:
'@types/picomatch': 3.0.2
github-slugger: 2.0.0
hast-util-from-html: 2.0.3
@@ -24257,9 +24257,9 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
@@ -24661,20 +24661,20 @@ snapshots:
dependencies:
- typescript: 5.9.3
+ typescript: 6.0.3
dependencies:
picomatch: 4.0.4
- typescript: 5.9.3
+ typescript: 6.0.3
dependencies:
'@cspotcode/source-map-support': 0.8.1
'@tsconfig/node10': 1.0.12
@@ -24688,15 +24688,15 @@ snapshots:
create-require: 1.1.1
diff: 4.0.2
make-error: 1.3.6
- typescript: 5.9.3
+ typescript: 6.0.3
v8-compile-cache-lib: 3.0.1
yn: 3.1.1
optionalDependencies:
- typescript: 5.9.3
+ typescript: 6.0.3
dependencies:
@@ -24705,7 +24705,7 @@ snapshots:
minimist: 1.2.8
strip-bom: 3.0.0
dependencies:
ansis: 4.2.0
cac: 6.7.14
@@ -24715,14 +24715,14 @@ snapshots:
empathic: 2.0.0
hookable: 5.5.3
rolldown: 1.0.0-beta.31
- rolldown-plugin-dts: 0.15.6([email protected])([email protected])
+ rolldown-plugin-dts: 0.15.6([email protected])([email protected])
semver: 7.7.3
tinyexec: 1.0.2
tinyglobby: 0.2.15
tree-kill: 1.2.2
unconfig: 7.4.2
optionalDependencies:
- typescript: 5.9.3
+ typescript: 6.0.3
transitivePeerDependencies:
- '@typescript/native-preview'
- oxc-resolver
@@ -24814,7 +24814,7 @@ snapshots:
dependencies:
semver: 7.7.3
@@ -25111,9 +25111,9 @@ snapshots:
optionalDependencies:
- typescript: 5.9.3
+ typescript: 6.0.3
@@ -25699,9 +25699,9 @@ snapshots:
dependencies:
zod: 3.25.76
dependencies:
- typescript: 5.9.3
+ typescript: 6.0.3
zod: 3.25.76
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index eb97c09d..88b50a7d 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -15,7 +15,7 @@ catalog:
sharp: ^0.34.5
tsdown: ^0.13.4
tsx: ^4.20.6
- typescript: ^5.9.3
+ typescript: ^6.0.3
vitest: 4.0.3
unocss: 66.6.0
'@unocss/reset': 66.6.0