Skip to content

Commit 68ed951

Browse files
committed
feat: helper search and hash
1 parent 804ab83 commit 68ed951

File tree

19 files changed

+716
-247
lines changed

19 files changed

+716
-247
lines changed

.changeset/curvy-lights-watch.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"ovr": minor
3+
---
4+
5+
feat: Adds [`Helper.url`](http://ovr.robino.dev/04-helpers#relative-url) to create a _relative_ URL for a route.

.changeset/funny-times-clap.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"ovr": patch
3+
---
4+
5+
types: Add JSDoc to helper component props

.changeset/huge-ways-read.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
"ovr": patch
3+
---
4+
5+
types: Add `number` type in addition to `string` for a variety of common HTML attributes (no runtime changes).
6+
7+
For example, you can now pass a `number` directly to the `<input>`'s `value` attribute without getting a type error.
8+
9+
```diff
10+
- <input value={String(1)} />
11+
+ <input value={1} />
12+
```

.changeset/wise-views-sink.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"ovr": minor
3+
---
4+
5+
feat: Adds [`search` and `hash` props](http://localhost:5173/04-helpers#props) to `Helper` components to append search params or a hash to the `href` or `action` accordingly.

apps/docs/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,22 @@
1212
"dependencies": {
1313
"@fontsource-variable/geist": "^5.2.6",
1414
"@fontsource-variable/geist-mono": "^5.2.6",
15-
"@openai/agents": "^0.0.10",
15+
"@openai/agents": "^0.0.11",
1616
"@robino/md": "^4.0.3",
1717
"clsx": "^2.1.1",
18-
"dotenv": "^17.0.1",
19-
"drab": "^7.0.2",
18+
"dotenv": "^17.2.0",
19+
"drab": "^7.0.3",
2020
"ovr": "*",
2121
"uico": "^0.10.3",
22-
"zod": "^3.25.71"
22+
"zod": "^4.0.5"
2323
},
2424
"devDependencies": {
2525
"@domcojs/vercel": "^3.0.0",
26-
"@iconify-json/lucide": "^1.2.54",
26+
"@iconify-json/lucide": "^1.2.57",
2727
"@iconify/tailwind4": "^1.0.6",
2828
"@tailwindcss/vite": "^4.1.11",
2929
"domco": "^4.3.0",
3030
"tailwindcss": "^4.1.11",
31-
"vite": "^7.0.1"
31+
"vite": "^7.0.4"
3232
}
3333
}

apps/docs/src/client/tailwind.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,13 @@
124124
body {
125125
font-weight: 300;
126126
}
127+
128+
input,
129+
input::placeholder,
130+
textarea,
131+
textarea::placeholder {
132+
font-weight: 300;
133+
}
127134
}
128135

129136
@layer components {

apps/docs/src/lib/md/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import langBash from "shiki/langs/bash.mjs";
55
import langHtml from "shiki/langs/html.mjs";
66
import langJson from "shiki/langs/json.mjs";
77
import langTsx from "shiki/langs/tsx.mjs";
8-
import * as z from "zod/v4-mini";
8+
import * as z from "zod";
99

1010
export const options: Options = {
1111
highlighter: {

apps/docs/src/server/demo/chat/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as chatContent from "@/server/demo/chat/index.md";
22
import { Head } from "@/ui/head";
33
import "dotenv/config";
44
import { Chunk, Get, Post } from "ovr";
5-
import * as z from "zod/v4-mini";
5+
import * as z from "zod";
66

77
async function* Poet(props: { message: string }) {
88
const { Agent, run } = await import("@openai/agents");

apps/docs/src/server/demo/form/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as formContent from "@/server/demo/form/index.md";
22
import { Head } from "@/ui/head";
33
import { Chunk, Get, Post } from "ovr";
4-
import * as z from "zod/v4";
4+
import * as z from "zod";
55

66
export const form = new Get("/demo/form", (c) => {
77
c.head(<Head {...formContent.frontmatter} />);

apps/docs/src/server/demo/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ export * from "@/server/demo/memory";
44
export * from "@/server/demo/parallel";
55
export * from "@/server/demo/form";
66
export * from "@/server/demo/layout";
7+
export * from "@/server/demo/todo";

0 commit comments

Comments
 (0)