unstale

npm / next-router-mock

next-router-mock

What changed in next-router-mock 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

2 new APIs and options4 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

next-router-mock 16 changes

New APIs and options 2

  • Adds an easy way to reset the mock router before tests.

    1.0.0release notes

  • Adds support for mocking next/navigation.

    1.0.0release notes

Fixes and other changes 4

  • Options passed to push are now forwarded to singletonRouter.

    1.0.5release notes

  • Options passed to replace are now forwarded to singletonRouter.

    1.0.5release notes

  • Fixes routeParams extraction when using object navigation.

    1.0.4release notes

  • Added missing parameter types to the replace method signature.

    1.0.3release notes