Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Oct 1, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
nextjs-routes 2.2.1 -> 2.2.3 age adoption passing confidence

Release Notes

tatethurston/nextjs-routes (nextjs-routes)

v2.2.3

Compare Source

  • Bug fix: usePathname and useParams were incorrectly resolving to any return types.

v2.2.2

Compare Source

  • Adds support for Next.js's app directory. Link accepts either static routes (no url parameters) or a RouteLiteral string, which can be generated by the route helper from this library:

    import { route } from "nextjs-routes";
    
    <Link
      href={route({
        pathname: "/foos/[foo]",
        query: { foo: "bar" },
      })}
    >
      Baz
    </Link>;
  • Add RouteLiteral type. This type represents a string that has been confirmed to be a validated application route and can be passed to Link or useRouter. This is a TypeScript branded type.

    import { RouteLiteral } from "nextjs-routes";

    route returns a RouteLiteral. If you construct a route string you can cast it to a RouteLiteral so that Link and useRouter will accept it:

    const myRoute = `/foos/${foo}` as RouteLiteral
    

    In general, prefer using the route helper to generate routes.

  • Refine types for usePathname, useRouter and useParams from "next/navigation" to use nextjs-routes generated types.

  • Fix generated routes when using parallel-routes and intercepting-routes.

  • Fix ref type for Link. Previously ref was missing, now it's correctly typed.


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the dependencies Pull requests that update a dependency file label Oct 1, 2024
@renovate renovate bot had a problem deploying to data-manager-ui/test October 1, 2024 03:26 Failure
@renovate renovate bot had a problem deploying to data-manager-ui/test October 1, 2024 03:26 Failure
@renovate renovate bot force-pushed the renovate/nextjs-routes-2.x branch from 74293e7 to 9cac843 Compare October 8, 2024 03:26
@renovate renovate bot changed the title chore(deps): update dependency nextjs-routes to v2.2.2 chore(deps): update dependency nextjs-routes to v2.2.3 Oct 8, 2024
@renovate renovate bot had a problem deploying to data-manager-ui/test October 8, 2024 03:27 Failure
@renovate renovate bot had a problem deploying to data-manager-ui/test October 8, 2024 03:27 Failure
@renovate renovate bot force-pushed the renovate/nextjs-routes-2.x branch from 9cac843 to 5246249 Compare November 7, 2024 10:33
@renovate renovate bot temporarily deployed to data-manager-ui/test November 7, 2024 10:36 Inactive
@renovate renovate bot temporarily deployed to data-manager-ui/test November 7, 2024 10:36 Inactive
@OliverDudgeon OliverDudgeon merged commit 6e6b839 into master Nov 7, 2024
6 checks passed
@renovate renovate bot deleted the renovate/nextjs-routes-2.x branch November 7, 2024 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants