mirror of
https://github.com/cloudflare/vinext.git
synced 2026-09-14 19:04:59 +08:00
a86b67dff4
* feat: full next/compat/router support and fix check scanner for shimmed modules - Export NextRouter interface from shims/router.ts so compat-router.ts can use it - Add NextRouter | null return type to useRouter() in shims/compat-router.ts - Add next/compat/router, next/form, next/web-vitals, next/constants to IMPORT_SUPPORT in check.ts so vinext check no longer flags them as unsupported - Add integration fixture pages and components for next/compat/router in both pages-basic and app-basic fixtures - Add integration tests in tests/pages-router.test.ts and tests/nextjs-compat/hooks.test.ts - Add unit tests in tests/check.test.ts covering all four newly-registered imports * test: update entry-templates snapshots for compat-router-test fixture page * remove type assertion * fix: add declare module for next/compat/router to fixture next-shims.d.ts files * fix: add declare module for next/compat/router to internal next-shims.d.ts * pin to vp setup 1.0.0