New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ziggy-js

Package Overview
Dependencies
Maintainers
7
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ziggy-js - npm Package Versions

1
45

1.0.0

Diff

Changelog

Source

[v1.0.0] - 2020-11-06

Added

  • Document the check() method (#294) and how to install and use Ziggy via npm and over a CDN (#299)
  • Add support for custom scoped route model binding, e.g. /users/{user}/posts/{post:slug} (#307)
  • Add support for implicit route model binding (#315)
  • Add support for passing parameters to current() to check against the current URL in addition to the route name (#330)

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)
bakerkretzmar
published 1.0.0-beta.6 •

bakerkretzmar
published 1.0.0-beta.5 •

bakerkretzmar
published 1.0.0-beta.4 •

bakerkretzmar
published 1.0.0-beta.3 •

bakerkretzmar
published 1.0.0-beta.2 •

bakerkretzmar
published 0.9.4 •

Changelog

Source

[v0.9.4] - 2020-06-05

Fixed

bakerkretzmar
published 0.9.3 •

Changelog

Source

[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.

bakerkretzmar
published 0.9.2 •

1
45
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc