Change8

fetch-router@0.21.0

Breaking Changes
📦 remixView on GitHub →
1 breaking2 features🔧 1 symbols

Summary

Updated Route.href to accept an options object for search parameters and added a baseURL option. Also bumped internal Remix dependencies.

⚠️ Breaking Changes

  • `Route.href(params, searchParams)` now accepts an options object as its second argument. Move existing search parameters to `Route.href(params, { searchParams })`.

Migration Steps

  1. Update calls to `Route.href` to pass search parameters within an options object: `Route.href(params, { searchParams })`.

✨ New Features

  • `Route.href()` now accepts a `baseURL` option for generating path-relative same-origin hrefs.
  • The `searchParams` option for `Route.href()` now accepts both typed plain objects and `URLSearchParams`.

Affected Symbols