1.5 KiB
1.5 KiB
Migration Guide
From v1.x.x to v2.x.x.
Contents
Import / Require
Before
const Router = require('@tsndr/cloudflare-worker-router')
After
import Router from '@tsndr/cloudflare-worker-router'
Routes
Just add curly braces.
Before
After
Fetch / router.handle()
❗️ Be aware that with v2.0.0 the parameters of router.handle() changed ❗️



