From 560b3efb684f4a40018db9657dfbac7df88e10a7 Mon Sep 17 00:00:00 2001 From: XLor Date: Fri, 12 Jan 2024 03:27:56 +0800 Subject: [PATCH] fix(database): bump anitomy --- .node-version | 1 + packages/app/package.json | 2 +- packages/cli/src/commands/dmhy.ts | 2 +- packages/database/package.json | 2 +- packages/worker/package.json | 2 +- pnpm-lock.yaml | 16 ++++++++-------- 6 files changed, 13 insertions(+), 12 deletions(-) create mode 100644 .node-version diff --git a/.node-version b/.node-version new file mode 100644 index 00000000..d5a15960 --- /dev/null +++ b/.node-version @@ -0,0 +1 @@ +20.10.0 diff --git a/packages/app/package.json b/packages/app/package.json index 51e03bbb..5ed6ab7b 100644 --- a/packages/app/package.json +++ b/packages/app/package.json @@ -44,7 +44,7 @@ "@vite-pwa/assets-generator": "^0.2.2", "@vite-pwa/astro": "^0.2.0", "animegarden": "workspace:*", - "anitomy": "0.0.33", + "anitomy": "0.0.34", "date-fns": "^2.30.0", "date-fns-tz": "^2.0.0", "unocss": "^0.58.3", diff --git a/packages/cli/src/commands/dmhy.ts b/packages/cli/src/commands/dmhy.ts index b8fd8d32..a597ec10 100644 --- a/packages/cli/src/commands/dmhy.ts +++ b/packages/cli/src/commands/dmhy.ts @@ -103,7 +103,7 @@ export async function insertDmhy(database: Database, dir: string) { const teamsResp = await insertTeams(database, [...teams.values()]); console.log(`Insert ${teamsResp.length} teams`); - const chunks = splitChunks(all, 100); + const chunks = splitChunks(all, 1000); for (const resources of chunks) { const resp = await insertDmhyResources(database, resources); console.log(`Insert ${resp.length} dmhy resources`); diff --git a/packages/database/package.json b/packages/database/package.json index 3ee8b3cf..fb0374ac 100644 --- a/packages/database/package.json +++ b/packages/database/package.json @@ -46,7 +46,7 @@ }, "dependencies": { "animegarden": "workspace:*", - "anitomy": "0.0.33", + "anitomy": "0.0.34", "drizzle-orm": "^0.29.3", "postgres": "^3.4.3" }, diff --git a/packages/worker/package.json b/packages/worker/package.json index 6ea70afa..5c1948dc 100644 --- a/packages/worker/package.json +++ b/packages/worker/package.json @@ -19,7 +19,7 @@ "@animegarden/scraper": "workspace:*", "@planetscale/database": "^1.13.0", "animegarden": "workspace:*", - "anitomy": "0.0.33", + "anitomy": "0.0.34", "bgmd": "^0.0.34", "hono": "^3.12.2", "kysely-planetscale": "^1.4.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 36ea449e..3a1c51c5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -169,8 +169,8 @@ importers: specifier: workspace:* version: link:../animegarden anitomy: - specifier: 0.0.33 - version: 0.0.33 + specifier: 0.0.34 + version: 0.0.34 date-fns: specifier: ^2.30.0 version: 2.30.0 @@ -226,8 +226,8 @@ importers: specifier: workspace:* version: link:../animegarden anitomy: - specifier: 0.0.33 - version: 0.0.33 + specifier: 0.0.34 + version: 0.0.34 drizzle-orm: specifier: ^0.29.3 version: 0.29.3(@cloudflare/workers-types@4.20231218.0)(postgres@3.4.3) @@ -287,8 +287,8 @@ importers: specifier: workspace:* version: link:../animegarden anitomy: - specifier: 0.0.33 - version: 0.0.33 + specifier: 0.0.34 + version: 0.0.34 bgmd: specifier: ^0.0.34 version: 0.0.34 @@ -4176,8 +4176,8 @@ packages: uri-js: 4.4.1 dev: true - /anitomy@0.0.33: - resolution: {integrity: sha512-2X/2ICriIg4iMkiHeNj3kf1MoboK5kvzWFlgk7xi4X0749RQbNJ1lhwdwyM0lop2W7Tr6qARSsZFrCEPr8gPPw==} + /anitomy@0.0.34: + resolution: {integrity: sha512-K6SZ6HskNBaIqVCOu9e4M6/qsa1Omr70STMmzQ8PkLtp2MkTYkKluBYuFRC1+wqJMDl464WMScPQDgYgILNsVg==} engines: {node: '>=v18.16.0'} /ansi-align@3.0.1: