Files
sweet/packages/fresh
Hong Minhee (洪 民憙)andBartek Iwańczuk b11d1d98f2 fix: handle invalid date objects in jsonify stringify (#2851)
## Summary
- Handles the case when `Date.toISOString()` throws for invalid dates by
catching the error and serializing as `"Invalid Date"`
- Round-trips correctly: `new Date("Invalid Date")` serializes to
`["Date","Invalid Date"]` and deserializes back to an invalid `Date`
object
- Adds test case and snapshot for invalid `Date`

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2026-03-26 08:31:27 +00:00
..
2026-02-11 14:38:24 +01:00

Fresh

Fresh is a small, fast and extensible full stack web framework built on Web Standards. It’s designed for building high-quality, performant, and personalized web applications.

Learn more about Fresh

Usage

Generate a new Fresh project with @fresh/init:

deno run -Ar jsr:@fresh/init

Add middleware, routes, & endpoints as needed via the routes/ folder or directly on the App instance.

import { App } from "fresh";

const app = new App()
  .get("/", () => new Response("hello world"))
  .get("/jsx", (ctx) => ctx.render(<h1>render JSX!</h1>));

app.listen();

For more information on getting started with Fresh, head on over to the documentation.