From 97c98feb795a01b7fafc5925720ebfaa45cf4ed9 Mon Sep 17 00:00:00 2001 From: Tobias Schneider Date: Sun, 26 Jun 2022 02:29:47 +0200 Subject: [PATCH] update migration --- MIGRATION.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/MIGRATION.md b/MIGRATION.md index 87e2d21..f8f7460 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -4,13 +4,29 @@ From `v1.x.x` to `v2.x.x`. ## Contents +- [Preparation](#preparation) +- [Update](#update) - [Import / Require](#import--require) - [Routes](#routes) - [Fetch](#fetch--routerhandle) +## Preparation + +Follow Cloudflare's [Migration Guide](https://developers.cloudflare.com/workers/wrangler/migration/migrating-from-wrangler-1/) to update your protject to [wrangler2](https://github.com/cloudflare/wrangler2). + +## Update + +Update to the latest version verstion + +```bash +npm i -D @tsndr/cloudflare-worker-router +``` + ## Import / Require +Switch to ESModules. + ### Before ```javascript