[PR #64] [CLOSED] feat: Core Routing Optimization and Windows Compatibility Improvements #282

Closed
opened 2026-05-06 12:38:57 +02:00 by BreizhHardware · 0 comments

📋 Pull Request Information

Original PR: https://github.com/cloudflare/vinext/pull/64
Author: @SXP-Simon
Created: 2/25/2026
Status: Closed

Base: mainHead: main


📝 Commits (7)

  • d2ff783 feat(core): update package exports and deployment logic
  • 50de0b3 refactor(routing): improve router logic and add path utilities
  • 1228466 feat(server): enhance dev server infrastructure
  • e01fbf4 test(fixtures): refactor middleware to proxy and update type shims
  • 28332cc test: update ecosystem, image imports, and shim tests
  • 7b01355 fix: address PR review feedback for Windows compatibility and middleware
  • ded0094 fix(windows): resolve path normalization clash and casing issues

📊 Changes

17 files changed (+260 additions, -217 deletions)

View changed files

📝 packages/vinext/src/check.ts (+11 -5)
📝 packages/vinext/src/deploy.ts (+14 -13)
📝 packages/vinext/src/index.ts (+23 -14)
📝 packages/vinext/src/routing/app-router.ts (+11 -11)
📝 packages/vinext/src/routing/pages-router.ts (+4 -3)
📝 packages/vinext/src/server/app-dev-server.ts (+2 -1)
📝 packages/vinext/src/server/dev-server.ts (+9 -9)
📝 packages/vinext/src/shims/next-shims.d.ts (+2 -2)
packages/vinext/src/utils/path.ts (+8 -0)
📝 tests/ecosystem.test.ts (+14 -8)
tests/fixtures/app-basic/middleware.ts (+0 -92)
📝 tests/fixtures/app-basic/next-shims.d.ts (+22 -0)
tests/fixtures/app-basic/proxy.ts (+81 -0)
tests/fixtures/pages-basic/middleware.ts (+0 -36)
tests/fixtures/pages-basic/proxy.ts (+36 -0)
📝 tests/image-imports.test.ts (+3 -3)
📝 tests/shims.test.ts (+20 -20)

📄 Description

Core Routing Optimization and Windows Compatibility Improvements

Summary

This update improves core routing reliability, enhances the development infrastructure, and addresses cross-platform path handling issues (specifically for Windows). It also refactors the middleware testing setup to ensure better compatibility with Next.js APIs and fixes type declaration gaps in experimental templates.

Changes

Windows Compatibility & Path Management

  • Cross-platform Normalization: Standardized internal path transformations to ensure consistent behavior across Windows and POSIX systems.
  • Routing Reliability: Resolved route matching issues caused by platform-specific path separators (backslashes vs slashes).

Core & Development Infrastructure

  • Deployment logic: Refined internal package exports and deployment scripts for better stability.
  • Development Server: Enhanced server infrastructure to improve local development performance and stability.

Testing & Middleware Compatibility

  • Testing Infrastructure: Refactored the middleware testing setup to allow for more flexible configuration and naming of custom middleware files.
  • Type Safety: Corrected missing type declarations in basic application templates to ensure proper compilation.
  • API Completion: Augmented response-related type definitions to support advanced initialization options, matching official middleware behavior.
  • Test Alignment: Synchronized the entire test suite with the updated internal architecture and routing patterns.

Verification

  • Test Results: All 1,832 tests passed (47 test files) successfully.
  • Environment: Verified stable functionality and correct routing on Windows-based development environments.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/cloudflare/vinext/pull/64 **Author:** [@SXP-Simon](https://github.com/SXP-Simon) **Created:** 2/25/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (7) - [`d2ff783`](https://github.com/cloudflare/vinext/commit/d2ff7833d024dc158b705aa6140995c7479ebfb9) feat(core): update package exports and deployment logic - [`50de0b3`](https://github.com/cloudflare/vinext/commit/50de0b38df7a3c83f8fbbe45aea9329b5e74a26c) refactor(routing): improve router logic and add path utilities - [`1228466`](https://github.com/cloudflare/vinext/commit/12284665188231163d786c7114b3f5ff2686981d) feat(server): enhance dev server infrastructure - [`e01fbf4`](https://github.com/cloudflare/vinext/commit/e01fbf4ebe01d8a71130bb65bc5fbc1ee6770839) test(fixtures): refactor middleware to proxy and update type shims - [`28332cc`](https://github.com/cloudflare/vinext/commit/28332cc617b1af10dd1b62878e26beb638de1bff) test: update ecosystem, image imports, and shim tests - [`7b01355`](https://github.com/cloudflare/vinext/commit/7b01355511e2604196290c8d612fd475e8861d41) fix: address PR review feedback for Windows compatibility and middleware - [`ded0094`](https://github.com/cloudflare/vinext/commit/ded0094b8e1c40757a2626109b908185feae5d62) fix(windows): resolve path normalization clash and casing issues ### 📊 Changes **17 files changed** (+260 additions, -217 deletions) <details> <summary>View changed files</summary> 📝 `packages/vinext/src/check.ts` (+11 -5) 📝 `packages/vinext/src/deploy.ts` (+14 -13) 📝 `packages/vinext/src/index.ts` (+23 -14) 📝 `packages/vinext/src/routing/app-router.ts` (+11 -11) 📝 `packages/vinext/src/routing/pages-router.ts` (+4 -3) 📝 `packages/vinext/src/server/app-dev-server.ts` (+2 -1) 📝 `packages/vinext/src/server/dev-server.ts` (+9 -9) 📝 `packages/vinext/src/shims/next-shims.d.ts` (+2 -2) ➕ `packages/vinext/src/utils/path.ts` (+8 -0) 📝 `tests/ecosystem.test.ts` (+14 -8) ➖ `tests/fixtures/app-basic/middleware.ts` (+0 -92) 📝 `tests/fixtures/app-basic/next-shims.d.ts` (+22 -0) ➕ `tests/fixtures/app-basic/proxy.ts` (+81 -0) ➖ `tests/fixtures/pages-basic/middleware.ts` (+0 -36) ➕ `tests/fixtures/pages-basic/proxy.ts` (+36 -0) 📝 `tests/image-imports.test.ts` (+3 -3) 📝 `tests/shims.test.ts` (+20 -20) </details> ### 📄 Description # Core Routing Optimization and Windows Compatibility Improvements ## Summary This update improves core routing reliability, enhances the development infrastructure, and addresses cross-platform path handling issues (specifically for Windows). It also refactors the middleware testing setup to ensure better compatibility with Next.js APIs and fixes type declaration gaps in experimental templates. ## Changes ### Windows Compatibility & Path Management - **Cross-platform Normalization**: Standardized internal path transformations to ensure consistent behavior across Windows and POSIX systems. - **Routing Reliability**: Resolved route matching issues caused by platform-specific path separators (backslashes vs slashes). ### Core & Development Infrastructure - **Deployment logic**: Refined internal package exports and deployment scripts for better stability. - **Development Server**: Enhanced server infrastructure to improve local development performance and stability. ### Testing & Middleware Compatibility - **Testing Infrastructure**: Refactored the middleware testing setup to allow for more flexible configuration and naming of custom middleware files. - **Type Safety**: Corrected missing type declarations in basic application templates to ensure proper compilation. - **API Completion**: Augmented response-related type definitions to support advanced initialization options, matching official middleware behavior. - **Test Alignment**: Synchronized the entire test suite with the updated internal architecture and routing patterns. ## Verification - **Test Results**: All **1,832 tests passed** (47 test files) successfully. - **Environment**: Verified stable functionality and correct routing on Windows-based development environments. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
BreizhHardware 2026-05-06 12:38:57 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vinext#282
No description provided.