Releases: tsndr/cloudflare-worker-router
Releases · tsndr/cloudflare-worker-router
v3.0.0-2
Make ctx
optional in router.handle(...)
v3.0.0-1
Pre-Release
Before
router.get('/test', ({ req, res }) => {
res.body = "Hello World!"
}
After
router.get('/test', () => {
return new Response('Hello World!')
}
v2.3.1
Updated type dependencies
v2.3.0
- Added
Env
generic (thanks @anbcodes)
- Updated readme
v2.2.0
Breaking Changes
Dropped default import, so make sure to update it.
Before
import Router from '@tsndr/cloudflare-worker-router'
After
import { Router } from '@tsndr/cloudflare-worker-router'
v2.1.1
- Fixed cors overruling options requests
v2.1.0
- Type fixes
- Fixed CORS enabled by default. If you're relying on CORS headers to be enabled please make sure to enable them: