@@ -4,12 +4,12 @@ Sift is a routing and utility library for
44[ Deno Deploy] ( https://deno.com/deploy ) .
55
66![ ci] ( https://github.com/satyarohith/sift/actions/workflows/ci.yml/badge.svg )
7- [ ![ deno doc
] ( https://doc.deno.land/badge.svg )] ( https://doc.deno.land/https/deno.land/x/[email protected] .5 /mod.ts ) 7+ [ ![ deno doc
] ( https://doc.deno.land/badge.svg )] ( https://doc.deno.land/https/deno.land/x/[email protected] .6 /mod.ts ) 88
99## Usage
1010
1111The documentation below briefly explains the common usage of the functions. You
12- can visit
[ deno doc
] ( https://doc.deno.land/https/deno.land/x/[email protected] .5 /mod.ts ) 12+ can visit
[ deno doc
] ( https://doc.deno.land/https/deno.land/x/[email protected] .6 /mod.ts ) 1313site to learn more about the API.
1414
1515Sift imports some functions from preact which causes type conflicts when running
@@ -30,7 +30,7 @@ when the requested path matches the regex, the corresponding handler will be
3030invoked.
3131
3232``` js
33- import {
serve }
from " https://deno.land/x/[email protected] .5 /mod.ts" ;
33+ import {
serve }
from " https://deno.land/x/[email protected] .6 /mod.ts" ;
3434
3535serve ({
3636 " / " : () => new Response (" hello world" ),
@@ -57,7 +57,7 @@ If you're serving a directory, it is required that the path string end with
5757requested resource.
5858
5959``` js
60- import {
serve ,
serveStatic }
from " https://deno.land/x/[email protected] .5 /mod.ts" ;
60+ import {
serve ,
serveStatic }
from " https://deno.land/x/[email protected] .6 /mod.ts" ;
6161
6262serve ({
6363 // You can serve a single file.
@@ -91,7 +91,7 @@ Converts an object literal to a JSON string and creates a `Response` instance
9191with ` application/ json` as the ` content- type` .
9292
9393` ` ` js
94- import {
json ,
serve }
from " https://deno.land/x/[email protected] .5 /mod.ts" ;
94+ import {
json ,
serve }
from " https://deno.land/x/[email protected] .6 /mod.ts" ;
9595
9696serve ({
9797 " / " : () => json ({ message: " hello world" }),
@@ -109,7 +109,7 @@ When using this function, it is important that your file extension is `.jsx` or
109109imported.
110110
111111` ` ` jsx
112- import {
h ,
jsx ,
serve }
from " https://deno.land/x/[email protected] .5 /mod.ts" ;
112+ import {
h ,
jsx ,
serve }
from " https://deno.land/x/[email protected] .6 /mod.ts" ;
113113
114114const App = () => (
115115 < div>
0 commit comments