PackageTrack
Sign in Get early access

tightenco/ziggy

Use your Laravel named routes in JavaScript.

v2.6.4 53M downloads/mo #420 most downloaded on Packagist tighten/ziggy

What this package is like to depend on

Last release 5 days ago

18 Aug 2026

Release timing varies

gaps range from 8 days to 5 months

Most releases are documented

notes for 57 of 87 stable releases

Nothing withdrawn

no release was ever pulled

9 years old

95 releases · first in 2017

5 releases in the last 12 months

see the full history below

Release timeline

95 releases · Aug 2017 to Aug 2026
2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 60 of 95
  1. v2.6.4 18 Aug 2026
    Release notes

    What's Changed

    • Fix intellisense/completions for partial route parameter objects by @bakerkretzmar in #880
    • Check if model has table or route key attribute to determine bindings by @bram-pkg in #894

    Full Changelog: v2.6.3...v2.6.4

    Open source →
    Release notes

    Fixed

    • Fix intellisense/completions for partial route parameter objects by @bakerkretzmar in https://github.com/tighten/ziggy/pull/880
    • Check if model has table or route key attribute to determine bindings by @bram-pkg in https://github.com/tighten/ziggy/pull/894
    Open source →
  2. v2.6.3 23 Jun 2026
    Release notes

    What's Changed

    • Fix TypeError when optional params omitted from array (fixes #736) by @pataar in #878
    • Brand RouteUrl type to distinguish it from plain strings by @pataar in #877
    • Test on Laravel 13 by @bakerkretzmar in #874
    • Docs: Update PHP_CodeSniffer repository link by @rodrigoprimo in #881
    • Create the directory for a custom types path if it doesn't exist by @lazerg in #888

    New Contributors

    Full Changelog: v2.6.2...v2.6.3

    Open source →
    Release notes

    Fixed

    • Fix TypeError when optional params omitted from array (fixes #736) by @pataar in https://github.com/tighten/ziggy/pull/878
    • Docs: Update PHP_CodeSniffer repository link by @rodrigoprimo in https://github.com/tighten/ziggy/pull/881
    • Create the directory for a custom types path if it doesn't exist by @lazerg in https://github.com/tighten/ziggy/pull/888

    Changed

    • Brand RouteUrl type to distinguish it from plain strings by @pataar in https://github.com/tighten/ziggy/pull/877
    • Test on Laravel 13 by @bakerkretzmar in https://github.com/tighten/ziggy/pull/874
    Open source →
  3. v2.6.2 05 Mar 2026
    Release notes

    What's Changed

    • Fix shared route bindings mutation in _substituteBindings by @pataar in #875
    • fix: handle falsy parameter values in _parse by @pataar in #876

    Full Changelog: v2.6.1...v2.6.2

    Open source →
    Release notes

    Fixed

    • Fix shared route bindings mutation in _substituteBindings by @pataar in https://github.com/tighten/ziggy/pull/875
    • fix: handle falsy parameter values in _parse by @pataar in https://github.com/tighten/ziggy/pull/876
    Open source →
  4. v2.6.1 16 Feb 2026
    Release notes

    What's Changed

    Full Changelog: v2.6.0...v2.6.1

    Open source →
    Release notes

    Changed

    • Allow specifying the name of the typescript declaration file by @bakerkretzmar in https://github.com/tighten/ziggy/pull/872
    Open source →
  5. v2.6.0 15 Sep 2025
    Release notes

    What's Changed

    New Contributors

    Full Changelog: v2.5.3...v2.6.0

    Open source →
    Release notes

    Added

    • Support route model binding and interfaces by @christian98 in https://github.com/tighten/ziggy/pull/854
    • feat(typescript): add branded type for creating routes by @pataar in https://github.com/tighten/ziggy/pull/862
    • Add JSON option to @routes for improved CSP compatibility by @flexponsive in https://github.com/tighten/ziggy/pull/831

    Fixed

    • Fix current checks with encoded # in URL by @bakerkretzmar in https://github.com/tighten/ziggy/pull/863

    Changed

    • Replace qs by @benmccann in https://github.com/tighten/ziggy/pull/846
    Open source →
  6. v2.5.3 17 May 2025
    Release notes

    What's Changed

    New Contributors

    Full Changelog: v2.5.2...v2.5.3

    Open source →
    Release notes

    Fixed

    • Fix type hinting for PHP 8.4 by @bodny in https://github.com/tighten/ziggy/pull/816
    • Fix checking current route in strict mode by @bakerkretzmar in https://github.com/tighten/ziggy/pull/840
    Open source →
  7. v2.5.2 27 Feb 2025
    Release notes

    What's Changed

    New Contributors

    Full Changelog: v2.5.1...v2.5.2

    Open source →
    Release notes

    Changed

    • Test on Laravel 12 by @shuvroroy in https://github.com/tighten/ziggy/pull/820
    • Update extendability of Types.php by @rrmesquita in https://github.com/tighten/ziggy/pull/821
    Open source →
  8. v2.5.1 31 Jan 2025
    Release notes

    What's Changed

    Full Changelog: v2.5.0...v2.5.1

    Open source →
    Release notes

    Fixed

    • Fix current() type in strict mode by @bakerkretzmar in https://github.com/tighten/ziggy/pull/809
    Open source →
  9. v2.5.0 23 Jan 2025
    Release notes

    What's Changed

    New Contributors

    Full Changelog: v2.4.2...v2.5.0

    Open source →
    Release notes

    Added

    • Support passing except/only args to ziggy command by @joshmanders in https://github.com/tighten/ziggy/pull/805

    Fixed

    • Redefine ParsedQs type by @bakerkretzmar in https://github.com/tighten/ziggy/pull/806
    • Only limit route names when calling route() by @simon-tma in https://github.com/tighten/ziggy/pull/790
    Open source →
  10. v2.4.2 02 Jan 2025
    Release notes

    What's Changed

    New Contributors

    Full Changelog: v2.4.1...v2.4.2

    Open source →
    Release notes

    Fixed

    • Fix deprecated implictly nullable parameter by @datlechin in https://github.com/tighten/ziggy/pull/792
    Open source →
  11. v2.4.1 21 Nov 2024
    Release notes

    Fixed

    • Fix qs type dependencies
    Open source →
  12. v2.4.0 09 Nov 2024
    Release notes

    Added

    • Add ability to strictly type check route names by @bakerkretzmar and @Andyuu in https://github.com/tighten/ziggy/pull/787

    Fixed

    • Fix type definition for route() with only options by @bram-pkg in https://github.com/tighten/ziggy/pull/786
    • Fix queryParams return type by @bakerkretzmar in https://github.com/tighten/ziggy/pull/788

    Changed

    • Add note to use inject for vue 3 by @mhelaiwa in https://github.com/tighten/ziggy/pull/785
    • Update README.md. by @choowx in https://github.com/tighten/ziggy/pull/782
    Open source →
  13. v2.3.1 17 Oct 2024
    Release notes

    Fixed

    • Escape special regex characters when matching routes by @aguingand in https://github.com/tighten/ziggy/pull/766
    • Fix params sometimes being double-decoded by @bakerkretzmar in https://github.com/tighten/ziggy/pull/778

    Changed

    • Optimize has() by @thomas-brx in https://github.com/tighten/ziggy/pull/770
    Open source →
  14. v2.3.0 21 Jul 2024
    Release notes

    Added

    • Add ability to acess only the query params or the actual route params by @peter-emad99 in https://github.com/tighten/ziggy/pull/744

    Changed

    • Pest by @bakerkretzmar in https://github.com/tighten/ziggy/pull/756
    • Laravel route change by @hasanablak in https://github.com/tighten/ziggy/pull/763
    • Modernize some PHP syntax by @bakerkretzmar in https://github.com/tighten/ziggy/pull/757
    Open source →
  15. v2.2.1 16 May 2024
    Release notes

    Fixed

    • Fix double slashes with domain params by @bakerkretzmar in https://github.com/tighten/ziggy/pull/754
    Open source →
  16. v2.2.0 16 May 2024
    Release notes

    Added

    • Support Laravel Folio by @bakerkretzmar in https://github.com/tighten/ziggy/pull/733

    Fixed

    • Fix route().params type by @peter-emad99 in https://github.com/tighten/ziggy/pull/743
    Open source →
  17. v2.1.0 26 Mar 2024
    Release notes

    Added

    • Improve generated types to include optional types by @alexmccabe in https://github.com/tighten/ziggy/pull/697

    Fixed

    • Fix Vue plugin on Vue 2 by @bakerkretzmar in https://github.com/tighten/ziggy/pull/738
    Open source →
  18. v2.0.5 19 Mar 2024
    Release notes

    Fixed

    • Export the types file by @simon-tma in https://github.com/tighten/ziggy/pull/721
    Open source →
  19. v2.0.4 05 Mar 2024
    Release notes

    Fixed

    • Fix event listener propagation by @bakerkretzmar in https://github.com/tighten/ziggy/pull/724
    Open source →
  20. v2.0.3 21 Feb 2024
    Release notes

    Fixed

    • Add Vue plugin and React hook types by @bakerkretzmar in https://github.com/tighten/ziggy/pull/715
    Open source →
  21. v2.0.2 20 Feb 2024
    Release notes

    Fixed

    • Fix package.json module and exports by @bakerkretzmar in https://github.com/tighten/ziggy/pull/714
    Open source →
  22. v2.0.1 20 Feb 2024
    Release notes

    Fixed

    • Remove default export from type declarations by @bakerkretzmar in https://github.com/tighten/ziggy/pull/713
    Open source →
  23. v2.0.0 20 Feb 2024
    Release notes

    See UPGRADING for detailed upgrade instructions.

    Changed

    • Changed PHP package namespace from Tightenco\Ziggy to Tighten\Ziggy.
    • Updated JavaScript package to only provide named exports.
    • Moved Vue and React integrations to root of JavaScript module.
    • Updated builds to only use ES Modules.
    • Updated minimum dependency versions to Laravel 9 and PHP 8.1.

    Removed

    • Made makeDirectory method of CommandRouteGenerator class private.
    • Removed deprecated JavaScript check() method.
    Open source →
  24. v2.0.0-beta.2 16 Dec 2023 pre-release

    Nothing published for this version

  25. v2.0.0-beta.1 02 Nov 2023 pre-release

    Nothing published for this version

  26. v1.8.2 20 Feb 2024
    Release notes

    Added

    • Test on Laravel 11 by @shuvroroy in https://github.com/tighten/ziggy/pull/709

    Fixed

    • Fix route().current() with encoded characters by @bakerkretzmar in https://github.com/tighten/ziggy/pull/668
    • Fix retrieving ziggys config from an api endpoint link in readme by @RomainMazB in https://github.com/tighten/ziggy/pull/694
    • Fix route().current() with nested/object query params by @bakerkretzmar in https://github.com/tighten/ziggy/pull/712

    Changed

    • Enable provenance for npm package by @saibotk in https://github.com/tighten/ziggy/pull/684
    • Handle generated file extensions more robustly by @bakerkretzmar in https://github.com/tighten/ziggy/pull/687
    Open source →
  27. v1.8.1 12 Oct 2023
    Release notes

    Fixed

    • Update: Correction of some spellings and articles in the Readme file. by @prince-noman in https://github.com/tighten/ziggy/pull/678
    • Fix route().current() with encoded characters by @bakerkretzmar in https://github.com/tighten/ziggy/pull/668

    Changed

    • Update Readme, formatting, and testing setup by @bakerkretzmar in https://github.com/tighten/ziggy/pull/675
    Open source →
  28. v1.8.0 06 Oct 2023
    Release notes

    Added

    • Add type declarations and ziggy.d.ts generation by @lmeysel and @bakerkretzmar in https://github.com/tighten/ziggy/pull/664
    Open source →
  29. v1.7.2 04 Oct 2023

    Nothing published for this version

  30. v1.7.1 04 Oct 2023

    Nothing published for this version

  31. v1.7.0 04 Oct 2023
    Release notes

    Added

    • Add useRoute() React hook by @bakerkretzmar in https://github.com/tighten/ziggy/pull/473

    Fixed

    • URL-encode fewer special characters inside in route parameters by @bakerkretzmar in https://github.com/tighten/ziggy/pull/662
    • Fix empty root URL with absolute: false by @bakerkretzmar in https://github.com/tighten/ziggy/pull/667
    Open source →
  32. v1.6.2 18 Aug 2023
    Release notes

    Fixed

    • Make slash "not encoding" less restrictive by @aguingand in https://github.com/tighten/ziggy/pull/661
    Open source →
  33. v1.6.1 04 Aug 2023
    Release notes

    Fixed

    • Fix numeric route names by @bakerkretzmar https://github.com/tighten/ziggy/pull/658
    Open source →
  34. v1.6.0 12 May 2023
    Release notes

    Added

    • Add 'ziggy.output.path' config option by @mhelaiwa https://github.com/tighten/ziggy/pull/633
    Open source →
  35. v1.5.2 05 May 2023
    Release notes

    Added

    • Add Vite instructions to README.md by @fullstackfool https://github.com/tighten/ziggy/pull/627

    Fixed

    • Trim slashes between origin and optional first param by @bakerkretzmar in https://github.com/tighten/ziggy/pull/637
    • Fix route().params not being decoded by @Tofandel in https://github.com/tighten/ziggy/pull/610
    Open source →
  36. v1.5.1 22 Apr 2023
    Release notes

    Fixed

    • Check for overridden getKeyName() and $primaryKey by @Jared0430 in https://github.com/tighten/ziggy/pull/630
    Open source →
  37. v1.5.0 23 Sep 2022
    Release notes

    Added

    • Add support for negating route filter patterns with ! by @bakerkretzmar in https://github.com/tighten/ziggy/pull/559

    Changed

    • Test on PHP 8.2 by @bakerkretzmar in https://github.com/tighten/ziggy/pull/584

    Fixed

    • Allow null as entire params argument by @bakerkretzmar in https://github.com/tighten/ziggy/pull/582
    Open source →
  38. v1.4.6 08 Apr 2022
    Release notes

    Fixed

    • Use global regex instead of replaceAll for better browser support by @bakerkretzmar in https://github.com/tighten/ziggy/pulls/548
    Open source →
  39. v1.4.5 25 Mar 2022
    Release notes

    Fixed

    • Remove dead code by @Tofandel in https://github.com/tighten/ziggy/pull/525
    • Fix route().current() with 'wheres' that include regex start/end anchors by @bakerkretzmar in https://github.com/tighten/ziggy/pull/535
    • Fix inherited custom route key name detection by @bakerkretzmar in https://github.com/tighten/ziggy/pull/540
    Open source →
  40. v1.4.4 11 Mar 2022
    Release notes

    Added

    • Allow custom output via formatters by @jaulz in https://github.com/tighten/ziggy/pull/483
    • Add Vue 3 provide/inject support to the Vue plugin by @c-fitzmaurice in https://github.com/tighten/ziggy/pull/518

    Fixed

    • Encode non-slash characters in wildcard last parameter by @rodrigopedra in https://github.com/tighten/ziggy/pull/507
    • Update JS route matching to take 'wheres' into account by @Tofandel in https://github.com/tighten/ziggy/pull/514
    Open source →
  41. v1.4.3 28 Jan 2022
    Release notes

    Added

    • Test on PHP 8.1 by @bakerkretzmar in https://github.com/tighten/ziggy/pull/484
    • Don't encode slashes in wildcard last parameter by @bakerkretzmar in https://github.com/tighten/ziggy/pull/500

    Fixed

    • Ignore route action parameters without URI segments by @jaulz in https://github.com/tighten/ziggy/pull/482
    Open source →
  42. v1.4.2 01 Oct 2021
    Release notes

    Fixed

    • Fix route().current() matching route names with multiple periods (#466)
    Open source →
  43. v1.4.1 24 Sep 2021
    Release notes

    Fixed

    • Fix undefined error if there's no global Ziggy variable (#462)
    • Fix payload caching for Octane (#460)
    Open source →
  44. v1.4.0 25 Aug 2021
    Release notes

    Added

    • Add support for parameters inside single route segments (#444)
    Open source →
  45. v1.3.6 25 Aug 2021
    Release notes

    Fixed

    • Fix nested object query params (#451)
    Open source →
  46. v1.3.5 20 Jul 2021
    Release notes

    Fixed

    • Fix route model binding with abstract class (#445)
    Open source →
  47. v1.3.4 06 Jul 2021
    Release notes

    Fixed

    • Fix property mangling and implement ES5 compatibility (#442)
    Open source →
  48. v1.3.3 02 Jul 2021
    Release notes

    Fixed

    Open source →
  49. v1.3.2 01 Jul 2021
    Release notes

    Fixed

    • Remove Babel preset to correctly transpile to ES5 by default (d781b16)
    Open source →
  50. v1.3.1 19 Jun 2021
    Release notes

    Changed

    • Use Object.assign() to merge routes (#429)
    Open source →
  51. v1.3.0 18 Jun 2021
    Release notes

    Added

    • Make location configurable (adds better support for SSR) (#432)
    Open source →
  52. v1.2.0 24 May 2021
    Release notes

    Added

    Open source →
  53. v1.1.0 02 Apr 2021
    Release notes

    Added

    • Prepare for Laravel Octane (#415)
    Open source →
  54. v1.0.5 05 Feb 2021
    Release notes

    Added

    • Add support for appending 'extra' parameters to the query string (#390)

    Changed

    • Remove source maps (#395)

    Fixed

    • Use Laravel's Reflector class to get model parameter class name (#396)
    Open source →
  55. v1.0.4 06 Dec 2020
    Release notes

    Fixed

    • Fix bug where route().current() could incorrectly return true on URLs with no parameters (#377)
    • Fix several other bugs in route().current() with params (#379)
    • Revert #334, default Ziggy's url back to url('/') instead of the APP_URL environment variable (#386)
    Open source →
  56. v1.0.3 21 Nov 2020
    Release notes

    Fixed

    • Filter out unnamed cached routes with randomly generated names (#370)
    • Fix collision with JavaScript built-in method names like shift by casting empty defaults to an object (#371)
    Open source →
  57. v1.0.2 13 Nov 2020
    Release notes

    Fixed

    • Make ziggy:generate URL behaviour consistent with Ziggy class and Blade directive (#361)
    • Fix route().current() error on unknown/unnamed routes (#362)
    Open source →
  58. v1.0.1 10 Nov 2020
    Release notes

    Fixed

    • Fix route().current() on routes at the domain root (#356)
    Open source →
  59. v1.0.0 06 Nov 2020
    Release notes

    Added

    Changed

    • ⚠️ Update ziggy:generate output path for Laravel 5.7+ resources directory structure, thanks @Somethingideally! (#269)
    • ⚠️ Update automatic id parameter detection to check for higher priority named route parameters and allow passing id as a query parameter (#301)
    • ⚠️ Rename the RoutePayload class to Ziggy and remove its compile method in favour of constructing a new instance and calling ->toArray() or ->toJson() (#305)
      • Resolve the application router instance internally instead of passing it into the constructor – new Ziggy(...) now takes only 2 arguments, $group and $url
      • Change the default value of basePort from false to null
      • Remove the getRoutePayload() methods on the BladeRouteGenerator and CommandRouteGenerator classes
    • ⚠️ Rename all whitelist and blacklist functionality to only and except (#300)
    • Use Jest instead of Mocha for JS tests (#309)
    • Use microbundle instead of Webpack to build and distribute Ziggy (#312)
    • ⚠️ Default Ziggy's baseUrl to the value of the APP_URL environment variable instead of url('/') (#334)
    • ⚠️ Return a literal string from the route() function when any arguments are passed to it (#336)
    • ⚠️ Rename namedRoutesroutes, defaultParametersdefaults, baseUrlurl, and basePortport (#338)
    • ⚠️ Make the filter() method on the Ziggy class return an instance of that class instead of a collection of routes (#341)
    • ⚠️ Make the nameKeyedRoutes(), resolveBindings(), applyFilters(), and group() methods on the Ziggy class, and the generate() method on the CommandRouteGenerator class, private (#341)
    • ⚠️ Export from index.js instead of route.js (#344)
    • ⚠️ Encode boolean query parameters as integers (#345)
    • ⚠️ Ensure .current() respects the value of the absolute option (#353)

    Deprecated

    • Deprecate the with() and check() methods (#330)

    Removed

    • ⚠️ Remove Route Facade macros Route::only() and Route::except() (previously Route::whitelist() and Route::blacklist()) (#306)
    • ⚠️ Remove the following undocumented public properties and methods from the Router class returned by the route() function (#330):
      • name, absolute, ziggy, urlBuilder, template, urlParams, queryParams, and hydrated
      • normalizeParams(), hydrateUrl(), matchUrl(), constructQuery(), extractParams(), parse(), and trimParam()
    • ⚠️ Remove the UrlBuilder class (#330)
    • ⚠️ Remove the url() method now that route(...) returns a string (#336)
    • ⚠️ Remove the baseDomain and baseProtocol properties on the Ziggy config object (#337)
    • ⚠️ Remove the appendRouteToList(), isListedAs(), except(), and only() methods from the Ziggy class (#341)

    Fixed

    • Fix automatic id parameter detection by also excluding routes with an optional id parameter ({id?}), thanks @Livijn! (#263)
    • Fix port not being added to URL for routes with subdomains (#293)
    • Fix getting parameters of routes in apps installed in subfolders (#302)
    • Ensure fallback routes are always last, thanks @davejamesmiller! (#310)
    • Allow getting the route name with current() when the current URL has a query string (#330)
    Open source →
  60. v1.0.0-beta.6 06 Nov 2020 pre-release

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive