Skip to content

Broken with @remix-run/fetch-router@0.14.0 #3

@kettanaito

Description

@kettanaito

Remix Router has introduced some breaking changes, apparently, and that breaks this library as well. The RouteHandlers type is no longer exported from @remix-run/fetch-router, referenced here:

import { AppStorage, type RouteHandlers, type RouteMap } from "@remix-run/fetch-router";

This makes router.map() untyped and fails projects with strict type validation.

Suggestions

I generally don't recommend setting latest as the peer dependency version of Remix Router. At least, until RR is pre-1.0.

Regarding the type, RequestHandlers type has become more complex, but the most drop-in replacement is the new Controller type exported from the root of RR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions