itty-router 4.0.18 → 4.0.20

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.
Files changed (2) hide show
  1. package/README.md +4 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -55,7 +55,7 @@ Designed originally for [Cloudflare Workers](https://itty.dev/itty-router/runtim
55
55
 
56
56
  ## Features
57
57
 
58
- - Tiny, tree-shakeable. [~450](https://deno.bundlejs.com/?q=itty-router/Router) bytes for the Router itself, or [~1.6k](https://bundlephobia.com/package/itty-router) for the entire library (>100x smaller than [express.js](https://www.npmjs.com/package/express)).
58
+ - Tiny. [~450](https://deno.bundlejs.com/?q=itty-router/Router) bytes for the Router itself, or [~1.6k](https://bundlephobia.com/package/itty-router) for the entire library (>100x smaller than [express.js](https://www.npmjs.com/package/express)).
59
59
  - [Fully-Typed](https://itty.dev/itty-router/typescript).
60
60
  - Shorter, simpler route code than most modern routers.
61
61
  - Dead-simple [middleware](https://itty.dev/itty-router/middleware) - use ours or write your own.
@@ -187,7 +187,9 @@ router
187
187
  ```
188
188
 
189
189
  ### 4. Only one required argument. The rest is up to you.
190
- We only require one argument in itty - a Request-like object with the following shape: `{ url, method }` (usually a native [Request](https://developer.mozilla.org/en-US/docs/Web/API/Request)). Because itty is not opinionated about [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) creation, there is not "response" argument built in. Every other argument you pass to `route.handle` is given to each handler, in the same order.
190
+ We only require one argument in itty - a Request-like object with **url** and **method** properties (usually a native [Request](https://developer.mozilla.org/en-US/docs/Web/API/Request)). Because itty is not opinionated about [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) creation, there is no "response" argument requirement.
191
+
192
+ **Superpower**: Every argument you pass to `route.handle` is given to each handler, in the same order.
191
193
 
192
194
  > ### This makes itty one of the most platform-agnostic routers, *period*, as it's able to match up to any platform's signature.
193
195
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itty-router",
3
- "version": "4.0.18",
3
+ "version": "4.0.20",
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",