itty-router 5.0.15 → 5.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,42 +1,20 @@
1
- <p align="center">
1
+ <br />
2
+
3
+ <p>
2
4
  <a href="https://itty.dev/itty-router">
3
- <img src="https://github.com/kwhitley/itty-router/assets/865416/319e4148-0a2d-4396-b18b-9e1cbb8e27b6" alt="Itty Router" />
5
+ <img src="https://github.com/kwhitley/itty-router/assets/865416/ed7de66a-b876-46a8-a65f-429dc6d3da20" alt="Itty Router" height="120" />
4
6
  </a>
5
- <br /><br />
6
7
  <p>
7
8
 
8
- <p align="center">
9
- <a href="https://npmjs.com/package/itty-router" target="_blank">
10
- <img src="https://img.shields.io/npm/v/itty-router.svg?style=flat-square" alt="npm version" />
11
- </a>
12
- <a href="https://edge.bundlejs.com/?q=itty-router/Router" target="_blank">
13
- <img src="https://edge.bundlejs.com/?q=itty-router/Router&badge&badge-style=flat-square" alt="bundle size" />
14
- </a>
15
- <a href="https://github.com/kwhitley/itty-router/actions/workflows/verify.yml" target="_blank">
16
- <img src="https://img.shields.io/github/actions/workflow/status/kwhitley/itty-router/verify.yml?branch=v5.x&style=flat-square" alt="build status" />
17
- </a>
18
- <a href="https://coveralls.io/github/kwhitley/itty-router?branch=v5.x" target="_blank">
19
- <img src="https://img.shields.io/coveralls/github/kwhitley/itty-router/v5.x?style=flat-square" alt="code coverage" />
20
- </a>
21
- <a href="https://npmjs.com/package/itty-router" target="_blank">
22
- <img src="https://img.shields.io/npm/dw/itty-router?style=flat-square" alt="weekly downloads" />
23
- </a>
24
- <a href="https://github.com/kwhitley/itty-router/issues" target="_blank">
25
- <img src="https://img.shields.io/github/issues/kwhitley/itty-router?style=flat-square" alt="open issues" />
26
- </a>
27
-
28
- <br />
29
-
30
- <a href="https://discord.gg/53vyrZAu9u" target="_blank">
31
- <img src="https://img.shields.io/discord/832353585802903572?label=Discord&logo=Discord&style=flat-square&logoColor=fff" alt="join us on discord" />
32
- </a>
33
- <a href="https://github.com/kwhitley/itty-router" target="_blank">
34
- <img src="https://img.shields.io/github/stars/kwhitley/itty-router?style=social" alt="Repo stars" />
35
- </a>
36
- <a href="https://www.twitter.com/ittydev" target="_blank">
37
- <img src="https://img.shields.io/twitter/follow/ittydev.svg?style=social&label=Follow" alt="Follow ittydev" />
38
- </a>
39
- </p>
9
+ [![Version](https://img.shields.io/npm/v/itty-router.svg?style=flat-square)](https://npmjs.com/package/itty-router)
10
+ [![Bundle Size](https://deno.bundlejs.com/?q=itty-router/Router&badge&badge-style=flat-square)](https://deno.bundlejs.com/?q=itty-router)
11
+ [![Build Status](https://img.shields.io/github/actions/workflow/status/kwhitley/itty-router/verify.yml?style=flat-square)](https://coveralls.io/github/kwhitley/itty-router)
12
+ [![Coverage](https://img.shields.io/coveralls/github/kwhitley/itty-router?style=flat-square)](https://coveralls.io/github/kwhitley/itty-router)
13
+ [![Downloads](https://img.shields.io/npm/dw/itty-router?style=flat-square)](https://npmjs.com/package/itty-router)
14
+ [![Issues](https://img.shields.io/github/issues/kwhitley/itty-router?style=flat-square)](https://coveralls.io/github/kwhitley/itty-router)
15
+ [![Discord](https://img.shields.io/discord/832353585802903572?label=Discord&logo=Discord&style=flat-square&logoColor=fff)](https://discord.gg/53vyrZAu9u)
16
+ [![Github](https://img.shields.io/github/stars/kwhitley/itty-router?style=social)](https://github.com/kwhitley/itty-router)
17
+ [![Follow @ittydev](https://img.shields.io/twitter/follow/ittydev.svg?style=social&label=Follow)](https://www.twitter.com/ittydev)
40
18
 
41
19
  ### [v5 Documentation](https://itty.dev/itty-router) &nbsp;| &nbsp; [v4 -> v5 Migration Guide](https://itty.dev/itty-router/migrations/v4-v5) &nbsp;| &nbsp; [Discord](https://discord.gg/53vyrZAu9u)
42
20
 
@@ -1,2 +1,2 @@
1
1
  import { ResponseFormatter } from './types';
2
- export declare const createResponse: (format?: string, transform?: (body: any) => any) => ResponseFormatter;
2
+ export declare const createResponse: (format?: string, transform?: ((body: any) => any) | undefined) => ResponseFormatter;
package/html.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const html: import("./types").ResponseFormatter;
1
+ export declare const html: import("types").ResponseFormatter;
package/jpeg.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const jpeg: import("./types").ResponseFormatter;
1
+ export declare const jpeg: import("types").ResponseFormatter;
package/json.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const json: import("./types").ResponseFormatter;
1
+ export declare const json: import("types").ResponseFormatter;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itty-router",
3
- "version": "5.0.15",
3
+ "version": "5.0.16",
4
4
  "description": "A tiny, zero-dependency router, designed to make beautiful APIs in any environment.",
5
5
  "main": "./index.js",
6
6
  "module": "./index.mjs",
package/png.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const png: import("./types").ResponseFormatter;
1
+ export declare const png: import("types").ResponseFormatter;
package/text.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const text: import("./types").ResponseFormatter;
1
+ export declare const text: import("types").ResponseFormatter;
package/webp.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const webp: import("./types").ResponseFormatter;
1
+ export declare const webp: import("types").ResponseFormatter;