To install Buncurlcurl -fsSL https://bun.sh/install | bashnpmnpm install -g bunpowershellpowershell -c "irm bun.sh/install.ps1|iex"scoopscoop install bunbrewbrew tap oven-sh/bunbrew install bundockerdocker pull oven/bundocker run --rm --init --ulimit memlock=-1:-1 oven/bunTo upgrade Bunbun upgradeURLPattern APIBun now supports the URLPattern Web API, providing declarative pattern matching for URLs—similar to how regular expressions work for strings. This is especially useful for routing in web servers and frameworks.// Match URLs with a user ID parameter

const pattern = new URLPattern({ pathname: "/users/:id" });

pattern.test("https://example.com/users/123"); // true

pattern.test("https://example.com/posts/456"); // false

const result = pattern.exec("https://example.com/users/123");