Change8

remix@3.0.0-beta.3

📦 remixView on GitHub →
3 features🔧 17 symbols

Summary

This pre-release introduces new entry points for header utilities via `package.json` exports and enhances UI components by allowing coordinate-based anchoring and context menu triggers.

Migration Steps

  1. If using header utilities previously imported directly from `@remix-run/headers/*`, update imports to use the new entry points defined in `package.json` exports (e.g., `remix/headers/accept`).
  2. When calling `remix/ui/anchor`'s `anchor` function, ensure the second argument (`anchorTarget`) is correctly typed as either an `HTMLElement` or a coordinate target structure based on the new `AnchorPoint`/`AnchorTarget` types.

✨ New Features

  • Added `package.json` `exports` for various header modules (e.g., `remix/headers/accept`, `remix/headers/content-type`) to re-export APIs from `@remix-run/headers/*`.
  • Updated `remix/ui/anchor` to accept either an `HTMLElement` or coordinate target via new `AnchorPoint`/`AnchorTarget` types in `anchor(floating, anchorTarget, options)`.
  • Added `remix/ui/menu` `menu.contextTrigger()` to allow menus to open from right-click pointer locations while preserving keyboard navigation and selection behavior.

Affected Symbols