itty-router 5.0.20 → 5.0.21

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 +2 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -16,7 +16,7 @@
16
16
  [![Github](https://img.shields.io/github/stars/kwhitley/itty-router?style=social)](https://github.com/kwhitley/itty-router)
17
17
  [![Follow @ittydev](https://img.shields.io/twitter/follow/ittydev.svg?style=social&label=Follow)](https://www.twitter.com/ittydev)
18
18
 
19
- ### [v5 Documentation](https://itty.dev/itty-router)  |   [v4 -> v5 Migration Guide](https://itty.dev/itty-router/migrations/v4-v5)  |   [Discord](https://discord.gg/53vyrZAu9u)
19
+ ### [v5 Documentation](https://itty.dev/itty-router)  |   [v4 -> v5 Migration Guide](https://itty.dev/itty-router/migrations/v4-v5)  |   [Discord](https://discord.gg/53vyrZAu9u)
20
20
 
21
21
  ---
22
22
 
@@ -45,7 +45,7 @@ router
45
45
  .get('/json', () => [1,2,3])
46
46
  .get('/promises', () => Promise.resolve('foo'))
47
47
 
48
- export default router
48
+ export default { ...router } // strips the proxy
49
49
 
50
50
  // that's it ^-^
51
51
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itty-router",
3
- "version": "5.0.20",
3
+ "version": "5.0.21",
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",