Skip to content

Commit 07e66bf

Browse files
committed
1.3.24
1 parent ba3d100 commit 07e66bf

31 files changed

+118
-118
lines changed

deploy.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import nhttp from "https://deno.land/x/[email protected].23/mod.ts";
2-
import serveStatic from "https://deno.land/x/[email protected].23/lib/serve-static.ts";
1+
import nhttp from "https://deno.land/x/[email protected].24/mod.ts";
2+
import serveStatic from "https://deno.land/x/[email protected].24/lib/serve-static.ts";
33

44
const app = nhttp();
55

docs/3rd-party-lib/3rd-party-lib.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ Like `std-libs` for NHttp.
66

77
```ts
88
// Deno
9-
import {...} from "https://deno.land/x/[email protected].23/lib/my-libs.ts";
9+
import {...} from "https://deno.land/x/[email protected].24/lib/my-libs.ts";
1010

1111
// Deno NPM
12-
import {...} from "npm:[email protected].23/my-libs";
12+
import {...} from "npm:[email protected].24/my-libs";
1313

1414
// Node or Bun
1515
import {...} from "nhttp-land/my-libs";

docs/3rd-party-lib/class-validator.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ Simple validator Inspired by [class-validator](https://github.com/typestack/clas
1010
#### Deno
1111

1212
```ts
13-
import {...} from "https://deno.land/x/[email protected].23/lib/class-validator.ts";
13+
import {...} from "https://deno.land/x/[email protected].24/lib/class-validator.ts";
1414
```
1515
#### Deno npm
1616
```ts
17-
import {...} from "npm:[email protected].23/class-validator";
17+
import {...} from "npm:[email protected].24/class-validator";
1818
```
1919

2020
#### Node / Bun
@@ -49,13 +49,13 @@ import {...} from "nhttp-land/class-validator";
4949
import {
5050
Controller,
5151
Post,
52-
} from "https://deno.land/x/[email protected].23/lib/controller.ts";
52+
} from "https://deno.land/x/[email protected].24/lib/controller.ts";
5353
import {
5454
IsEmail,
5555
IsPhoneNumber,
5656
IsString,
5757
Validate,
58-
} from "https://deno.land/x/[email protected].23/lib/class-validator.ts";
58+
} from "https://deno.land/x/[email protected].24/lib/class-validator.ts";
5959

6060
// Person Dto
6161
class PersonDto {

docs/3rd-party-lib/cors.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ Simple cors libs.
44
### Import
55
#### Deno
66
```ts
7-
import {...} from "https://deno.land/x/[email protected].23/lib/cors.ts";
7+
import {...} from "https://deno.land/x/[email protected].24/lib/cors.ts";
88
```
99
#### Deno npm
1010
```ts
11-
import {...} from "npm:[email protected].23/cors";
11+
import {...} from "npm:[email protected].24/cors";
1212
```
1313
#### Node / Bun
1414
```ts
@@ -19,8 +19,8 @@ import {...} from "nhttp-land/cors";
1919

2020
### Usage
2121
```ts
22-
import nhttp from "https://deno.land/x/[email protected].23/mod.ts";
23-
import cors from "https://deno.land/x/[email protected].23/lib/cors.ts";
22+
import nhttp from "https://deno.land/x/[email protected].24/mod.ts";
23+
import cors from "https://deno.land/x/[email protected].24/lib/cors.ts";
2424

2525
const app = nhttp();
2626

docs/3rd-party-lib/csrf.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ Cross Site Request Forgery (CSRF) libs.
77
#### Deno
88

99
```ts
10-
import {...} from "https://deno.land/x/[email protected].23/lib/csrf.ts";
10+
import {...} from "https://deno.land/x/[email protected].24/lib/csrf.ts";
1111
```
1212

1313
#### Deno npm
1414

1515
```ts
16-
import {...} from "npm:[email protected].23/csrf";
16+
import {...} from "npm:[email protected].24/csrf";
1717
```
1818

1919
#### Node / Bun
@@ -27,8 +27,8 @@ import {...} from "nhttp-land/csrf";
2727
### Usage
2828

2929
```ts
30-
import nhttp from "https://deno.land/x/[email protected].23/mod.ts";
31-
import csrf from "https://deno.land/x/[email protected].23/lib/csrf.ts";
30+
import nhttp from "https://deno.land/x/[email protected].24/mod.ts";
31+
import csrf from "https://deno.land/x/[email protected].24/lib/csrf.ts";
3232

3333
const MyForm: FC<{ csrf: string }> = (props) => {
3434
return (

docs/3rd-party-lib/etag.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ Simple etag libs.
44
### Import
55
#### Deno
66
```ts
7-
import {...} from "https://deno.land/x/[email protected].23/lib/etag.ts";
7+
import {...} from "https://deno.land/x/[email protected].24/lib/etag.ts";
88
```
99
#### Deno npm
1010
```ts
11-
import {...} from "npm:[email protected].23/etag";
11+
import {...} from "npm:[email protected].24/etag";
1212
```
1313
#### Node / Bun
1414
```ts
@@ -19,8 +19,8 @@ import {...} from "nhttp-land/etag";
1919

2020
### Usage
2121
```ts
22-
import nhttp from "https://deno.land/x/[email protected].23/mod.ts";
23-
import etag from "https://deno.land/x/[email protected].23/lib/etag.ts";
22+
import nhttp from "https://deno.land/x/[email protected].24/mod.ts";
23+
import etag from "https://deno.land/x/[email protected].24/lib/etag.ts";
2424

2525
const app = nhttp();
2626

@@ -35,8 +35,8 @@ app.listen(8000);
3535

3636
### Sendfile with Etag
3737
```ts
38-
import nhttp from "https://deno.land/x/[email protected].23/mod.ts";
39-
import { sendFile } from "https://deno.land/x/[email protected].23/lib/etag.ts";
38+
import nhttp from "https://deno.land/x/[email protected].24/mod.ts";
39+
import { sendFile } from "https://deno.land/x/[email protected].24/lib/etag.ts";
4040

4141
const app = nhttp();
4242

docs/3rd-party-lib/file-router.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ File System Router A`la [Nextjs](https://nextjs.org/).
44
### Import
55
#### Deno
66
```ts
7-
import {...} from "https://deno.land/x/[email protected].23/lib/file-router.ts";
7+
import {...} from "https://deno.land/x/[email protected].24/lib/file-router.ts";
88
```
99
#### Deno npm
1010
```ts
11-
import {...} from "npm:[email protected].23/file-router";
11+
import {...} from "npm:[email protected].24/file-router";
1212
```
1313
#### Node / Bun
1414
```ts
@@ -20,16 +20,16 @@ import {...} from "nhttp-land/file-router";
2020
### Usage
2121
```ts
2222
// routes/index.ts
23-
import { RequestEvent } from "https://deno.land/x/[email protected].23/mod.ts";
23+
import { RequestEvent } from "https://deno.land/x/[email protected].24/mod.ts";
2424

2525
export function GET(rev: RequestEvent) {
2626
return "Hello, Home Index";
2727
}
2828
```
2929
```ts
3030
// app.ts
31-
import { nhttp } from "https://deno.land/x/[email protected].23/mod.ts";
32-
import { generateRoute } from "https://deno.land/x/[email protected].23/lib/file-router.ts";
31+
import { nhttp } from "https://deno.land/x/[email protected].24/mod.ts";
32+
import { generateRoute } from "https://deno.land/x/[email protected].24/lib/file-router.ts";
3333

3434
const app = nhttp();
3535

@@ -41,7 +41,7 @@ app.listen(8000);
4141
#### Lookup route from dir
4242

4343
```ts
44-
import { getRouteFromDir } from "https://deno.land/x/[email protected].23/lib/file-router.ts";
44+
import { getRouteFromDir } from "https://deno.land/x/[email protected].24/lib/file-router.ts";
4545

4646
const route = await getRouteFromDir("my_dir");
4747

docs/3rd-party-lib/graphql.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ Handle graphql with [yoga](https://github.com/dotansimha/graphql-yoga).
44
### Import
55
#### Deno
66
```ts
7-
import {...} from "https://deno.land/x/[email protected].23/lib/yoga.ts";
7+
import {...} from "https://deno.land/x/[email protected].24/lib/yoga.ts";
88
```
99
#### Deno npm
1010
```ts
11-
import {...} from "npm:[email protected].23/yoga";
11+
import {...} from "npm:[email protected].24/yoga";
1212
```
1313
#### Node / Bun
1414
```ts
@@ -19,8 +19,8 @@ import {...} from "nhttp-land/yoga";
1919

2020
### Usage
2121
```ts
22-
import nhttp from "https://deno.land/x/[email protected].23/mod.ts";
23-
import yogaHandler from "https://deno.land/x/[email protected].23/lib/yoga.ts";
22+
import nhttp from "https://deno.land/x/[email protected].24/mod.ts";
23+
import yogaHandler from "https://deno.land/x/[email protected].24/lib/yoga.ts";
2424
import { createSchema, createYoga } from "npm:graphql-yoga";
2525

2626
const yoga = createYoga({

docs/3rd-party-lib/jsx.md

+24-24
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ Simple jsx libs.
77
#### Deno
88

99
```ts
10-
import {...} from "https://deno.land/x/[email protected].23/lib/jsx.ts";
10+
import {...} from "https://deno.land/x/[email protected].24/lib/jsx.ts";
1111
```
1212

1313
#### Deno npm
1414

1515
```ts
16-
import {...} from "npm:[email protected].23/jsx";
16+
import {...} from "npm:[email protected].24/jsx";
1717
```
1818

1919
#### Node / Bun
@@ -30,13 +30,13 @@ import {...} from "nhttp-land/jsx";
3030
/** @jsx n */
3131
/** @jsxFrag n.Fragment */
3232

33-
import nhttp from "https://deno.land/x/[email protected].23/mod.ts";
33+
import nhttp from "https://deno.land/x/[email protected].24/mod.ts";
3434
import {
3535
type FC,
3636
Helmet,
3737
n,
3838
renderToHtml,
39-
} from "https://deno.land/x/[email protected].23/lib/jsx.ts";
39+
} from "https://deno.land/x/[email protected].24/lib/jsx.ts";
4040

4141
// support for AsyncComponent
4242
const Fetcher: FC = async () => {
@@ -86,7 +86,7 @@ app.listen(8000, () => {
8686
"jsxImportSource": "nhttp-jsx"
8787
},
8888
"imports": {
89-
"nhttp-jsx/jsx-runtime": "https://deno.land/x/[email protected].23/lib/jsx/jsx-runtime.ts"
89+
"nhttp-jsx/jsx-runtime": "https://deno.land/x/[email protected].24/lib/jsx/jsx-runtime.ts"
9090
}
9191
}
9292
```
@@ -104,7 +104,7 @@ app.listen(8000, () => {
104104
"jsxImportSource": "nhttp-jsx"
105105
},
106106
"imports": {
107-
"nhttp-jsx/jsx-runtime": "https://deno.land/x/[email protected].23/lib/jsx/jsx-runtime.ts"
107+
"nhttp-jsx/jsx-runtime": "https://deno.land/x/[email protected].24/lib/jsx/jsx-runtime.ts"
108108
}
109109
}
110110
```
@@ -116,7 +116,7 @@ app.listen(8000, () => {
116116
use requestEvent.
117117

118118
```tsx
119-
import { useRequestEvent } from "https://deno.land/x/[email protected].23/lib/jsx.ts";
119+
import { useRequestEvent } from "https://deno.land/x/[email protected].24/lib/jsx.ts";
120120

121121
const Home: FC = () => {
122122
const rev = useRequestEvent();
@@ -130,7 +130,7 @@ const Home: FC = () => {
130130
use parameter from router. e.g. `/user/:name`.
131131

132132
```tsx
133-
import { useParams } from "https://deno.land/x/[email protected].23/lib/jsx.ts";
133+
import { useParams } from "https://deno.land/x/[email protected].24/lib/jsx.ts";
134134

135135
const User: FC = () => {
136136
const params = useParams<{ name: string }>();
@@ -144,7 +144,7 @@ const User: FC = () => {
144144
use query parameter from url. e.g. `/user?name=john`.
145145

146146
```tsx
147-
import { useQuery } from "https://deno.land/x/[email protected].23/lib/jsx.ts";
147+
import { useQuery } from "https://deno.land/x/[email protected].24/lib/jsx.ts";
148148

149149
const User: FC = () => {
150150
const query = useQuery<{ name: string }>();
@@ -158,7 +158,7 @@ const User: FC = () => {
158158
use request body.
159159

160160
```tsx
161-
import { useBody } from "https://deno.land/x/[email protected].23/lib/jsx.ts";
161+
import { useBody } from "https://deno.land/x/[email protected].24/lib/jsx.ts";
162162

163163
const User: FC = async () => {
164164
const user = useBody<{ name: string }>();
@@ -175,7 +175,7 @@ const User: FC = async () => {
175175
use http_response.
176176

177177
```tsx
178-
import { useResponse } from "https://deno.land/x/[email protected].23/lib/jsx.ts";
178+
import { useResponse } from "https://deno.land/x/[email protected].24/lib/jsx.ts";
179179

180180
const User: FC = () => {
181181
const res = useResponse();
@@ -191,7 +191,7 @@ const User: FC = () => {
191191
minimal for simple client interactive.
192192

193193
```tsx
194-
import { useScript } from "https://deno.land/x/[email protected].23/lib/jsx.ts";
194+
import { useScript } from "https://deno.land/x/[email protected].24/lib/jsx.ts";
195195

196196
const Counter: FC = () => {
197197
const state = { count: 0 };
@@ -226,7 +226,7 @@ const Counter: FC = () => {
226226
generate unique id.
227227

228228
```tsx
229-
import { useId } from "https://deno.land/x/[email protected].23/lib/jsx.ts";
229+
import { useId } from "https://deno.land/x/[email protected].24/lib/jsx.ts";
230230

231231
const User: FC = () => {
232232
const title_id = useId();
@@ -246,7 +246,7 @@ const User: FC = () => {
246246
add style directly to the markup.
247247

248248
```tsx
249-
import { useStyle } from "https://deno.land/x/[email protected].23/lib/jsx.ts";
249+
import { useStyle } from "https://deno.land/x/[email protected].24/lib/jsx.ts";
250250

251251
const User: FC = () => {
252252
useStyle({
@@ -275,7 +275,7 @@ Add context provider.
275275
import {
276276
createContext,
277277
useContext,
278-
} from "https://deno.land/x/[email protected].23/lib/jsx.ts";
278+
} from "https://deno.land/x/[email protected].24/lib/jsx.ts";
279279

280280
const FooContext = createContext();
281281

@@ -297,8 +297,8 @@ app.get("/foo", () => {
297297
```tsx
298298
/** @jsx n */
299299
/** @jsxFrag n.Fragment */
300-
import nhttp from "https://deno.land/x/[email protected].23/mod.ts";
301-
import { n, htmx, renderToHtml } from "https://deno.land/x/[email protected].23/lib/jsx.ts";
300+
import nhttp from "https://deno.land/x/[email protected].24/mod.ts";
301+
import { n, htmx, renderToHtml } from "https://deno.land/x/[email protected].24/lib/jsx.ts";
302302

303303
const app = nhttp();
304304

@@ -330,9 +330,9 @@ import {
330330
FC,
331331
n,
332332
renderToHtml,
333-
} from "https://deno.land/x/[email protected].23/lib/jsx.ts";
334-
import { useTwindServer } from "https://deno.land/x/[email protected].23/lib/jsx/twind-server.ts";
335-
import nhttp from "https://deno.land/x/[email protected].23/mod.ts";
333+
} from "https://deno.land/x/[email protected].24/lib/jsx.ts";
334+
import { useTwindServer } from "https://deno.land/x/[email protected].24/lib/jsx/twind-server.ts";
335+
import nhttp from "https://deno.land/x/[email protected].24/mod.ts";
336336

337337
useTwindServer();
338338

@@ -355,9 +355,9 @@ import {
355355
Helmet,
356356
options,
357357
renderToHtml,
358-
} from "https://deno.land/x/[email protected].23/lib/jsx.ts";
358+
} from "https://deno.land/x/[email protected].24/lib/jsx.ts";
359359
import { renderToString } from "https://esm.sh/react-dom/server";
360-
import nhttp from "https://deno.land/x/[email protected].23/mod.ts";
360+
import nhttp from "https://deno.land/x/[email protected].24/mod.ts";
361361

362362
options.onRenderElement = (elem) => {
363363
return renderToString(elem);
@@ -394,9 +394,9 @@ import {
394394
Helmet,
395395
options,
396396
renderToHtml,
397-
} from "https://deno.land/x/[email protected].23/lib/jsx.ts";
397+
} from "https://deno.land/x/[email protected].24/lib/jsx.ts";
398398
import { renderToString } from "https://esm.sh/preact-render-to-string";
399-
import nhttp from "https://deno.land/x/[email protected].23/mod.ts";
399+
import nhttp from "https://deno.land/x/[email protected].24/mod.ts";
400400

401401
options.onRenderElement = (elem) => {
402402
return renderToString(elem);

0 commit comments

Comments
 (0)