Repository navigation
Migrate from date-fns and Date to Temporal - #32
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
haziq21
force-pushed
the
feat/temporal
branch
from
November 19, 2026 03:44
5ddacff to
4019917
Compare
haziq21
force-pushed
the
feat/temporal
branch
from
November 19, 2026 03:50
4019917 to
a98e654
Compare
haziq21
force-pushed
the
feat/temporal
branch
from
November 19, 2026 05:20
a98e654 to
33e1d48
Compare
haziq21
force-pushed
the
feat/temporal
branch
from
November 19, 2026 05:34
33e1d48 to
a89ddee
Compare
haziq21
force-pushed
the
feat/temporal
branch
from
November 19, 2026 05:35
a89ddee to
0206fd8
Compare
haziq21
force-pushed
the
feat/temporal
branch
from
November 19, 2026 05:39
0206fd8 to
773b271
Compare
haziq21
force-pushed
the
feat/temporal
branch
from
November 19, 2026 06:02
773b271 to
3a9cbf6
Compare
haziq21
commented
Nov 19, 2026
- Replace date-fns and `Date` with Temporal across app, ext, lib and e2e - POLITELib returns `Temporal.Instant` (major changeset) - Drizzle custom column types for timestamps and dates, no schema change - TypeScript 6.0.3 in every package - Node 26 (`engines`, `.nvmrc`, release workflow); extension requires Chrome 144 - Playwright 1.65.1, whose clock mocks `Temporal.Now` natively - SvelteKit 3.4 with Vite 8 and Svelte 5.58, migrated per `sv migrate sveltekit-3` Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
haziq21
force-pushed
the
feat/temporal
branch
from
November 19, 2026 06:33
3a9cbf6 to
db6ccd9
Compare
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces date-fns and
Datewith Temporal end to end, and upgrades the toolchain that needs. Two commits: the migration, then the switch to adapter-vercel.Temporal
Temporal.PlainDateandTemporal.ZonedDateTime.dayKeyand the Monday week start are unchanged.timestamptz/plainDatecustom types map toTemporal.Instant/Temporal.PlainDate. No schema change.@politeshop/libreturnsTemporal.Instantfor every timestamp. Breaking, so the changeset is major. Consumers need native Temporal and"ESNext.Temporal"in their TSlib.Temporal.Instantfor token expiry and setsminimum_chrome_version: "144".Toolchain
svelte-check,vite-plugin-dtsand Kit 3 rely on.engines.node,.nvmrcand the release workflow. Vercel's Node.js Version setting needs to be 26.x.sv migrate sveltekit-3and the migration guide: config moves intovite.config.ts,$libbecomes#lib,$app/envand$app/state,defineEnvVarsinsrc/env.ts(read at runtime rather than inlined at build),Response.json(), and a full-page-load fallback whengotorejects an unrouted link.page.clockalso drivesTemporal.Now, so the e2e tests no longer need a clock shim.engines.node.🤖 Generated with Claude Code