next-typesafe-url

Fully typesafe, JSON serializable, and zod validated URL search params, dynamic route params, and routing for NextJS.

MIT License

Downloads
7.6K
Stars
377

Bot releases are visible (Hide)

next-typesafe-url - [email protected] Latest Release

Published by github-actions[bot] 4 months ago

Minor Changes

  • fb7e555: - Added pageExtensions CLI flag.
    • Added .tsx extension support for routeType files.
next-typesafe-url - [email protected]

Published by github-actions[bot] 5 months ago

Patch Changes

  • ef5ea79: fix SomeReactComponent typing- thanks @risk1996
next-typesafe-url - [email protected]

Published by github-actions[bot] 6 months ago

Patch Changes

  • 8a97b77: Remove next peer dep req on v13 (add v14)
next-typesafe-url - [email protected]

Published by github-actions[bot] 7 months ago

Patch Changes

  • 367ac24: Fix cli ambient .d.ts file generation (building upon PR #85 and #87). Thanks to @chungweileong94.
next-typesafe-url - [email protected]

Published by github-actions[bot] 8 months ago

Patch Changes

  • 3371794: revert previous change of import placements in generated .d.ts file
next-typesafe-url - [email protected]

Published by github-actions[bot] 9 months ago

Patch Changes

  • 482346f: Ensure codegen produce an ambient .d.ts file. Thank you @lelabo-m PR: #85
next-typesafe-url - [email protected]

Published by github-actions[bot] 12 months ago

Patch Changes

  • 52d64c7: Remove route groups from Static Router
next-typesafe-url - [email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

  • 34083ef: Remove empty first line in the auto-generated file
next-typesafe-url - [email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

  • 56875fa: change default output file name to not conflict with package name and roll deps
next-typesafe-url - [email protected]

Published by github-actions[bot] about 1 year ago

Major Changes

  • b5aad73: moved the HOC to /app/hoc to get around use client bundling issues

Minor Changes

  • 686cbe9: merged parseServerSide*Params to a single function

Patch Changes

  • 686cbe9: fixed bugged with $path that added "}" to the end
  • 686cbe9: fixed issue with arrays being passed to non catch all portions of route params not being fully encoded
next-typesafe-url - [email protected]

Published by github-actions[bot] over 1 year ago

Minor Changes

  • 491ed9e: correctly infers zod inputs and outputs, mainly affects using $path with zod coercion/transform. Now exposes seperate RouterInputs and RouterOutputs types to account for this change
next-typesafe-url - [email protected]

Published by github-actions[bot] over 1 year ago

Major Changes

  • 88cdd83: - major changes

    THANK YOU TO @nirtamir2 for making the first pr and providing extremally an helpful perspective and ideas

    • significant refactor to internal encoding + decoding logic- now simpler and easier to follow
    • complete documentation rewrite
    • code generation overhaul
      • no longer changes node_module files
      • now uses typescript modules to eliminate previous needs for restarting ts server
      • src path and output path completely customizable via cli
      • eliminated the need for app/pages flag
    • examples fully up to date with changes
    • medium changes
      • app and pages hooks now have identical type signatures
    • small changes
      • removed uneeded ‘loading’ useState
      • fixed type error when packing async server components to withParamValidation
      • properly handle jsx

    TO UPGRADE: READ THE NEW DOCS

next-typesafe-url - [email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • 77f7d0d: this is a test for ci
next-typesafe-url - [email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • b72937f: docs: update links to direct to docs website
next-typesafe-url - [email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • ab485bd: fix to only run route group removal in 'app' mode
next-typesafe-url - [email protected]

Published by github-actions[bot] over 1 year ago

Minor Changes

  • 4e9270f: added support for route groups, parallel routes and intercepted routes
next-typesafe-url - [email protected]

Published by github-actions[bot] over 1 year ago

Major Changes

  • 401f94e: Full support for App router and server components
    API overhaul and improved featureset

    THIS IS A BREAKING CHANGE
    Please refer to the updated documentation for how to use the new API

next-typesafe-url - [email protected]

Published by github-actions[bot] over 1 year ago

Minor Changes

  • 65d706b: hopefully final test
next-typesafe-url - [email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • f75bd07: maybe now
next-typesafe-url - [email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • c6f3122: npmignore