From a54ab5d659d7d2b3a9984e5c6a5c75c525e53ed4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 21 Jul 2026 13:43:47 +0000 Subject: [PATCH 1/2] chore(deps-dev): bump prettier from 3.8.4 to 3.9.6 Bumps [prettier](https://github.com/prettier/prettier) from 3.8.4 to 3.9.6. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/3.8.4...3.9.6) --- updated-dependencies: - dependency-name: prettier dependency-version: 3.9.6 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2ed70ec..73f5ed1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3512,9 +3512,9 @@ } }, "node_modules/prettier": { - "version": "3.8.4", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.8.4.tgz", - "integrity": "sha512-N2MylSdi48+5N/6S5j+maeHbUSIzzZ5uOcX5Hm4QpV8Dkb1HFjfAKTKX6yNPJQD9AhcT3ifHNB66tWTTJDi11Q==", + "version": "3.9.6", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.9.6.tgz", + "integrity": "sha512-OpN0zzVdiaiAhxpuuj5efpIS4sY9j7bY6uR5mnj5yPzGkdkjNKSJeUThPb60Jw29QuAZgA4o+/iB49kFiaBX6g==", "dev": true, "license": "MIT", "bin": { From 4c86df38e7ca528ca59c3f2a67e10d9f7db167e5 Mon Sep 17 00:00:00 2001 From: Krzysztof Rodak Date: Tue, 28 Jul 2026 09:58:12 +0200 Subject: [PATCH 2/2] style: reformat for prettier 3.9.6 --- src/commands/field-create.ts | 4 +--- src/commands/inbox.ts | 7 +------ src/index.ts | 3 +-- src/util/batch.ts | 3 +-- 4 files changed, 4 insertions(+), 13 deletions(-) diff --git a/src/commands/field-create.ts b/src/commands/field-create.ts index 7d0571f..f69a31f 100644 --- a/src/commands/field-create.ts +++ b/src/commands/field-create.ts @@ -19,9 +19,7 @@ export const VALID_FIELD_TYPES = [ ] export type FieldScope = - | { mode: 'workspace' } - | { mode: 'single'; listId: string } - | { mode: 'bulk'; listIds: string[] } + { mode: 'workspace' } | { mode: 'single'; listId: string } | { mode: 'bulk'; listIds: string[] } export type ListFieldOutcome = { listId: string diff --git a/src/commands/inbox.ts b/src/commands/inbox.ts index a8b9ef2..7dc04ad 100644 --- a/src/commands/inbox.ts +++ b/src/commands/inbox.ts @@ -8,12 +8,7 @@ import type { TaskSummary } from './tasks.js' import { summarize, buildTypeMap } from './tasks.js' export type TimePeriod = - | 'today' - | 'yesterday' - | 'last_7_days' - | 'earlier_this_month' - | 'last_month' - | 'older' + 'today' | 'yesterday' | 'last_7_days' | 'earlier_this_month' | 'last_month' | 'older' interface TimePeriodDef { key: TimePeriod diff --git a/src/index.ts b/src/index.ts index 88a938f..2c84e77 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1162,8 +1162,7 @@ export function buildProgram(programName = basename(process.argv[1] ?? 'cup')): } let customFields: - | Array<{ field_id: string; operator: string; value?: unknown }> - | undefined + Array<{ field_id: string; operator: string; value?: unknown }> | undefined if (opts.field?.length) { if (opts.field.length % 2 !== 0) { throw new Error('--field requires pairs: --field "Name" value') diff --git a/src/util/batch.ts b/src/util/batch.ts index 339dca1..7d07bc8 100644 --- a/src/util/batch.ts +++ b/src/util/batch.ts @@ -1,6 +1,5 @@ export type BatchOutcome = - | { item: T; ok: true; result: R } - | { item: T; ok: false; error: Error } + { item: T; ok: true; result: R } | { item: T; ok: false; error: Error } export async function runInBatches( items: readonly T[],