itty-router 4.0.20 → 4.0.22

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 +5 -7
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -33,8 +33,8 @@
33
33
  </p>
34
34
 
35
35
  <p align="center">
36
- <a href="https://discord.com/channels/832353585802903572" target="_blank">
37
- <img src="https://img.shields.io/discord/832353585802903572?style=flat-square" alt="join us on discord" />
36
+ <a href="https://discord.gg/53vyrZAu9u" target="_blank">
37
+ <img src="https://img.shields.io/discord/832353585802903572?label=Discord&logo=Discord&style=flat-square&logoColor=fff" alt="join us on discord" />
38
38
  </a>
39
39
  <a href="https://github.com/kwhitley/itty-router" target="_blank">
40
40
  <img src="https://img.shields.io/github/stars/kwhitley/itty-router?style=social" alt="repo stars" />
@@ -71,7 +71,7 @@ Designed originally for [Cloudflare Workers](https://itty.dev/itty-router/runtim
71
71
 
72
72
  ## [Full Documentation](https://itty.dev/itty-router)
73
73
 
74
- Complete API documentation is available at [itty.dev/itty-router](https://itty.dev/itty-router), or join our [Discord](https://discord.com/channels/832353585802903572) channel to chat with community members for quick help!
74
+ Complete API documentation is available at [itty.dev/itty-router](https://itty.dev/itty-router), or join our [Discord](https://discord.gg/53vyrZAu9u) channel to chat with community members for quick help!
75
75
 
76
76
  ## Installation
77
77
 
@@ -187,9 +187,7 @@ 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 **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.
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.
193
191
 
194
192
  > ### This makes itty one of the most platform-agnostic routers, *period*, as it's able to match up to any platform's signature.
195
193
 
@@ -214,7 +212,7 @@ export default {
214
212
 
215
213
  Have a question? Suggestion? Complaint? Want to send a gift basket?
216
214
 
217
- Join us on [Discord](https://discord.com/channels/832353585802903572)!
215
+ Join us on [Discord](https://discord.gg/53vyrZAu9u)!
218
216
 
219
217
  ## Testing and Contributing
220
218
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itty-router",
3
- "version": "4.0.20",
3
+ "version": "4.0.22",
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",