Skip to content

chore(deps): bump vite-plus to v0.2.2#11

Draft
fengmk2 wants to merge 36 commits into
mainfrom
update-vite-plus-prerelease-test-0.2.2
Draft

chore(deps): bump vite-plus to v0.2.2#11
fengmk2 wants to merge 36 commits into
mainfrom
update-vite-plus-prerelease-test-0.2.2

Conversation

@fengmk2

@fengmk2 fengmk2 commented Jul 2, 2026

Copy link
Copy Markdown
Owner

Summary

Bump vite-plus and related packages to the pkg.pr.new prerelease build for v0.2.2 (registry-bridge commit build) to smoke-test the prerelease.

  • vite-plus + vite (alias to @voidzero-dev/vite-plus-core) and vitest pinned to the commit build across deps / overrides / catalogs
  • minimumReleaseAge enabled with the vite-plus / @voidzero-dev/* / oxc / oxlint stack excluded
  • .npmrc (or .yarnrc.yml) points the package manager at the registry bridge (prerelease scaffolding)

Test plan

  • CI passes

skiniks added 30 commits June 27, 2026 15:00
…peScript

- Migrate all extension initialization files from .js to .ts across cache, cron, crypto, ffi, fs, io, kv, node, runtime, web, webidl, websocket, and webstorage modules
- Add TypeScript type definitions file (deno-extensions.d.ts) for runtime extensions
- Reorganize rari module structure: consolidate core functionality into rari/core/rari.ts and split RSC logic into separate modules (rsc_modules.ts, server_functions.ts)
- Extract shared utilities into new init_utilities extension with utilities.ts for common helper functions
- Update module imports to use init_utilities instead of direct rari module references
- Remove obsolete module directories: rsc_modules, server_functions, react modules now integrated into main rari extension
- Migrate module loader utilities and add react_vendor.rs for vendor-specific React module handling
- Update runtime factory, executor, and interface to work with TypeScript extensions
- Simplify renderer.rs calls from add_module_to_loader_only() to add_module_to_loader()
- Update Vite and ESLint configurations to support TypeScript extension files
- Consolidate runtime initialization and improve module resolution pattern consistency
refactor(runtime): migrate remaining extensions from JavaScript to TypeScript
…tension

- Flatten actions and components modules by moving mod.rs to parent directory
- Flatten utils module and update dependencies export path
- Simplify JsonValue type alias to use Value directly across actions module
- Remove promise_manager extension and related initialization code
- Remove promise_manager_check.js validation script from extension checks
- Update extension_checks.js to remove PromiseManager requirement validation
- Update module imports and public exports to reflect flattened structure
- Consolidates module hierarchy for improved maintainability and reduces unnecessary nesting
refactor(rsc): flatten module structure and remove promise manager extension
…ce crate

- Extract RSC core types and logic into new `rari-rsc` workspace crate
- Move RSC components, flight protocol, types, and utilities from `crates/rari` to `crates/rari-rsc`
- Reorganize module structure: components, core types, flight serialization/deserialization, and parser utilities
- Add new dependencies to workspace: base64, parking_lot, smallvec, tracing, uuid
- Update internal imports across rsc rendering, streaming, and server modules to use new crate path
- Improve separation of concerns by isolating RSC-specific logic from main runtime
- Update module loader, cache warmup, and request handling to work with relocated types
- Consolidate RSC flight protocol implementation with improved escape and serialization utilities
- Move rendering module from rsc submodule to top-level of rari crate
- Restructure core rendering logic with dedicated files for constants, loader, renderer, types, and utilities
- Reorganize HTML rendering with improved module boundaries
- Extract layout rendering into separate module with route composition and error messaging
- Refactor streaming renderer with boundary management and promise resolution
- Consolidate component isolation, server functions, and state management into core
- Simplify RSC flight parser conditional logic for reference type checking
- Remove redundant RSC module wrapper and update public API exports
- Add clippy lint expectations for complex parsing logic in rari-rsc crate
- Update runtime operations and server handlers to reflect new module structure
refactor(rsc): extract React Server Components into dedicated workspace crate
…crates

- Organize module imports at the top of files using std prelude patterns
- Consolidate repeated imports from deno_core, std modules, and external crates
- Replace fully qualified paths with imported type aliases for brevity and readability
- Move file-scoped imports to module level to follow Rust conventions
- Simplify type references in trait implementations (Display, Formatter, Result, etc.)
- Reorganize rendering module structure and relocate base rendering components
- Update import paths for relocated rendering utilities and loaders
- Improve code organization by grouping related imports and reducing redundancy
refactor(imports): consolidate and optimize import statements across crates
Replace custom RSC streaming implementation with React's official
react-server-dom-webpack renderer and integrate Fizz-based server-side
rendering for improved hydration and standards compliance.

Key changes:
- Replace custom React Flight client (~1,300 LOC) with react-server-dom-webpack
- Implement Fizz (renderToReadableStream) for SSR with proper hydration markers
- Migrate core rendering modules from JavaScript to TypeScript
- Add Fizz marker detection for intelligent hydration vs render decisions
- Remove custom streaming renderer, promise resolver, and boundary manager
- Consolidate RSC rendering into simplified rsc_renderer.ts and fizz_render.ts
- Add tools/bundle-react-esm for React ESM module bundling
- Update client runtime to use hydrateRoot when Fizz markers detected
- Remove 43 obsolete files including custom component isolation and promise tracking
- Refactor server handlers and loaders for new rendering pipeline

This migration reduces complexity by ~7,000 LOC while improving compatibility
with React's official RSC implementation and enabling better SSR/hydration.
- Replace `std::` prefixed imports with aliased imports at module scope
- Add `absolute_paths` lint warning to workspace Cargo.toml for consistency
- Update error trait references from `std::error::Error` to imported `error::Error`
- Convert `std::io::Error` imports to `io` alias in error handling module
- Simplify `std::sync::OnceLock` to imported `OnceLock` in component registry
- Replace `std::borrow::Cow` with imported `Cow` type alias
- Update `std::string::ToString` import in RSC types module
- Consolidate imports across runtime, server, and rendering modules
- Improves code readability and reduces verbosity throughout codebase
- Aligns with project's import organization standards
… processes

- Added detailed error logging for composition and streaming navigation failures.
- Improved error handling in the script execution for streaming, ensuring proper error messages are sent to the chunk sender.
- Updated hydration error handling in the client to display user-friendly messages when loading fails.
- Refactored manifest parsing to streamline error management and improve clarity.
…tion process

- Added `invalidate_static_fast_cache_for_path` function to remove cache entries based on path.
- Integrated cache invalidation into the `revalidate_by_path` handler for improved cache management.
- Updated tests to verify cache invalidation behavior and ensure correctness of the caching mechanism.
…trol

- Added `load_from_env_for_mode` and `load_from_env_with_base_for_mode` methods to streamline environment configuration loading based on the application mode.
- Introduced cache control settings for server components based on the mode (production or development).
- Updated tests to verify the correct application of cache control settings in production mode.
- Removed obsolete React stubs to simplify the module loader and improve clarity.
- Moved metadata route types from `../types/metadata-route` to a new `./metadata-route` file for better organization.
- Updated imports across the codebase to reflect the new file structure.
- Refactored server configuration types to be sourced from `./server-config` instead of `../types/server-config` for consistency.
…code

- Deleted the `renderWireToFizzStream` function from the JavaScript rendering layer.
- Removed the corresponding TypeScript type definition for `renderWireToFizzStream`.
- Cleaned up unused imports and code in the Rust rendering implementation.
refactor: migrate to official React Server Components with Fizz SSR
@fengmk2 fengmk2 self-assigned this Jul 2, 2026
@gemini-code-assist

Copy link
Copy Markdown

Warning

Gemini encountered an error creating the review. You can try again by commenting /gemini review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants