Skip to content
Source
Sign inSign up
TanStack/time

chore: update pnpm to 11.9 #40

MergedSheraff(GitHub profile, opens in a new tab)merged 134 commits intoalpha fromrefs/pull/40/headmerged by bart-krakowski(GitHub profile, opens in a new tab)

Showing 450 changed files with 166 additions and 0 deletions (loading 446).

x
0 of 450 viewed, 450 left
53 additions and 0 deletions.ai/spec-kit/api-design.mdAdded
View file
@@ -0,0 +1,53 @@
+# API Design Spec
+​
+## Design Philosophy
+​
+TanStack Time is designed after TanStack Query and TanStack Table: headless, framework-agnostic core with thin framework adapters. See `Methodology.md` for detailed rationale.
+​
+## Input Contracts
+​
+- Dates accepted as RFC 3339 string, epoch milliseconds (number), or Date object.
+- Timezone and calendar are explicit parameters. If omitted, defaults from `Intl.DateTimeFormat`.
+- Never mutate input Date objects. Always clone or create new Temporal instances.
+​
+## Output Contracts
+​
+- Public methods return either Date objects or strings.
+- Never return Temporal objects directly to consumers.
+- Methods return `{ value, options }` tuple where `options` carries timezone/calendar used.
+- Formatting methods return string parts via Intl.DateTimeFormat.
+​
+## Method Signature Pattern
+​
+```ts
+function operationName({
+ date,
+ unit,
+ returnFormat,
+ options,
+}: {
+ date: Date | string | number
+ unit: DateUnit