Cosenseのexpressを4から5に更新する
リリースした (2025/11/11 02:20)
全てのログイン方法をscrapbox.ioで試して確認済み
migration guide
対応が必要なのは、主にこの2つだった
.get('/foo/*bar', handler)と書く
.get('/foo/*', handler)のようなワイルドカードのpath handlerに名前が必須になった
req.bodyのデフォルト値が{}からundefinedになった
他の項目もチェックしていった記録
express 5への変更ポイントを1つずつ検討したいので、1つずつ私に説明してくださいshokai.icon
変更を1つずつ説明しますClaude Code.icon
https://scrapbox.io/files/692577ee2ccd047e3e66a355.png
https://scrapbox.io/files/692577ef157e5606451074a5.png
https://scrapbox.io/files/692577f13499355cce0d0220.png
https://scrapbox.io/files/692577f3ade51c89a357ae2d.png
https://scrapbox.io/files/692577f6fe9707f16c0f3d0f.png
https://scrapbox.io/files/692577f823eab2729d1fcfc3.png
https://scrapbox.io/files/692577fb88038dc88db8635e.png
https://scrapbox.io/files/692577fd7d38537200b51bf4.png
これはいい指摘だなshokai.icon
やっぱこうやって1つずつ変更点をチェックしていくのが快適だな〜shokai.icon