lms/vendor/tightenco/ziggy/CHANGELOG.md
2025-12-15 12:26:23 +01:00

22 KiB
Raw Blame History

Changelog

All notable changes to this project will be documented in this file.

This project adheres to Semantic Versioning, and the format of this changelog is based on Keep a Changelog.

Breaking changes are marked with ⚠️.

Unreleased

v2.5.3 - 2025-05-17

Fixed

v2.5.2 - 2025-02-27

Changed

v2.5.1 - 2025-01-31

Fixed

v2.5.0 - 2025-01-22

Added

Fixed

v2.4.2 - 2025-01-02

Fixed

v2.4.1 - 2024-11-21

Fixed

  • Fix qs type dependencies

v2.4.0 - 2024-11-09

Added

Fixed

Changed

v2.3.1 - 2024-10-17

Fixed

Changed

v2.3.0 - 2024-07-21

Added

Changed

v2.2.1 - 2024-05-16

Fixed

v2.2.0 - 2024-05-16

Added

Fixed

v2.1.0 - 2024-03-26

Added

Fixed

v2.0.5 - 2024-03-19

Fixed

v2.0.4 - 2024-03-05

Fixed

v2.0.3 - 2024-02-20

Fixed

v2.0.2 - 2024-02-20

Fixed

v2.0.1 - 2024-02-20

Fixed

v2.0.0 - 2024-02-20

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.

v1.8.2 - 2024-02-20

Added

Fixed

Changed

v1.8.1 - 2023-10-12

Fixed

Changed

v1.8.0 - 2023-10-06

Added

v1.7.0 - 2023-10-04

Added

Fixed

v1.6.2 - 2023-08-18

Fixed

v1.6.1 - 2023-08-04

Fixed

v1.6.0 - 2023-05-12

Added

v1.5.2 - 2023-05-05

Added

Fixed

v1.5.1 - 2023-04-22

Fixed

v1.5.0 - 2022-09-23

Added

Changed

Fixed

v1.4.6 - 2022-04-08

Fixed

v1.4.5 - 2022-03-25

Fixed

v1.4.4 - 2022-03-11

Added

Fixed

v1.4.3 - 2022-01-28

Added

Fixed

v1.4.2 - 2021-10-01

Fixed

  • Fix route().current() matching route names with multiple periods (#466)

v1.4.1 - 2021-09-24

Fixed

  • Fix undefined error if there's no global Ziggy variable (#462)
  • Fix payload caching for Octane (#460)

v1.4.0 - 2021-08-25

Added

  • Add support for parameters inside single route segments (#444)

v1.3.6 - 2021-08-25

Fixed

  • Fix nested object query params (#451)

v1.3.5 - 2021-07-20

Fixed

  • Fix route model binding with abstract class (#445)

v1.3.4 - 2021-07-06

Fixed

  • Fix property mangling and implement ES5 compatibility (#442)

v1.3.3 - 2021-07-02

Fixed

v1.3.2 - 2021-07-01

Fixed

  • Remove Babel preset to correctly transpile to ES5 by default (d781b16)

v1.3.1 - 2021-06-19

Changed

  • Use Object.assign() to merge routes (#429)

v1.3.0 - 2021-06-17

Added

  • Make location configurable (adds better support for SSR) (#432)

v1.2.0 - 2021-05-24

Added

v1.1.0 - 2021-04-02

Added

  • Prepare for Laravel Octane (#415)

v1.0.5 - 2021-02-05

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)

v1.0.4 - 2020-12-06

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)

v1.0.3 - 2020-11-20

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)

v1.0.2 - 2020-11-13

Fixed

  • Make ziggy:generate URL behaviour consistent with Ziggy class and Blade directive (#361)
  • Fix route().current() error on unknown/unnamed routes (#362)

v1.0.1 - 2020-11-10

Fixed

  • Fix route().current() on routes at the domain root (#356)

v1.0.0 - 2020-11-06

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)

v0.9.4 - 2020-06-05

Fixed

v0.9.3 - 2020-05-08

Added

  • Add support for passing a CSP nonce attribute to the @routes Blade directive to be set on the script tag, thanks @tminich! (#287)

Changed

  • Improve support for using Ziggy with server-side rendering, thanks @emielmolenaar! (#260)
  • Avoid resolving the Blade compiler unless necessary, thanks @axlon! (#267)
  • Use dist/js/route.js as the npm package's main target, thanks @ankurk91 and @benallfree! (#276)
  • Readme and quality-of-life improvements (#289)

Fixed

  • Ensure Ziggy's assets are always generated in the correct location (#290)

For previous changes see the Releases page.