itty-router 4.0.0 → 4.0.1
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 +3 -5
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
1
|
<p align="center">
|
|
4
2
|
<a href="https://itty.dev/itty-router">
|
|
5
|
-
<img src="https://
|
|
3
|
+
<img src="https://github.com/kwhitley/itty-router/assets/865416/7751dac0-2dc8-4754-8b39-d08fc2144b4f" alt="Itty Router" />
|
|
6
4
|
</a>
|
|
7
5
|
<p>
|
|
8
|
-
|
|
6
|
+
|
|
9
7
|
---
|
|
10
8
|
<h3 align="center"><a href="https://itty.dev/itty-router">v4.x Documentation @ itty.dev</a></h3>
|
|
11
9
|
|
|
@@ -53,7 +51,7 @@
|
|
|
53
51
|
Itty aims to be the world's smallest (~440 bytes), feature-rich JavaScript router, enabling beautiful API code with a near-zero bundlesize. Designed originally for [Cloudflare Workers](https://itty.dev/itty-router/runtimes#Cloudflare%20Workers), itty can be used in browsers, Service Workers, edge functions, or standalone runtimes like [Node](https://itty.dev/itty-router/runtimes#Node), [Bun](https://itty.dev/itty-router/runtimes#Bun), etc.!
|
|
54
52
|
|
|
55
53
|
## Features:
|
|
56
|
-
- [fully typed/TypeScript support](https://itty.dev/itty-router
|
|
54
|
+
- [fully typed/TypeScript support](https://itty.dev/itty-router/typescript)
|
|
57
55
|
- [route params](https://itty.dev/itty-router/route-patterns#params) (including [optional params](https://itty.dev/itty-router/route-patterns#optional))
|
|
58
56
|
- [wildcards](https://itty.dev/itty-router/route-patterns#wildcards) and [greedy params](https://itty.dev/itty-router/route-patterns#greedy)
|
|
59
57
|
- [query parsing](https://itty.dev/itty-router/route-patterns#query)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "itty-router",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "A tiny, zero-dependency router, designed to make beautiful APIs in any environment.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"build:core": "rollup -c",
|
|
31
31
|
"build:extras": "rollup --config rollup.config.extras.mjs",
|
|
32
32
|
"build": "rollup -c",
|
|
33
|
-
"release": "release --tag --push --src=dist",
|
|
33
|
+
"release": "release --tag --push --patch --src=dist",
|
|
34
34
|
"runtime:bun": "bun example/bun.ts",
|
|
35
35
|
"runtime:node": "node example/node.js"
|
|
36
36
|
},
|