diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b9d13d2..0023e855 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,18 @@ Breaking changes are marked with ⚠️. ## [Unreleased] +## [v1.2.0] - 2021-05-24 + +**Added** + +- Add Vue plugins ([#407](/~https://github.com/tighten/ziggy/pull/407), [#424](/~https://github.com/tighten/ziggy/pull/424)) + +## [v1.1.0] - 2021-04-02 + +**Added** + +- Prepare for Laravel Octane ([#415](/~https://github.com/tighten/ziggy/pull/415)) + ## [v1.0.5] - 2021-02-05 **Added** @@ -129,7 +141,9 @@ Breaking changes are marked with ⚠️. For previous changes see the [Releases](/~https://github.com/tighten/ziggy/releases) page. -[Unreleased]: /~https://github.com/tighten/ziggy/compare/v1.0.5...HEAD +[Unreleased]: /~https://github.com/tighten/ziggy/compare/v1.2.0...HEAD +[v1.2.0]: /~https://github.com/tighten/ziggy/compare/v1.1.0...v1.2.0 +[v1.1.0]: /~https://github.com/tighten/ziggy/compare/v1.0.5...v1.1.0 [v1.0.5]: /~https://github.com/tighten/ziggy/compare/v1.0.4...v1.0.5 [v1.0.4]: /~https://github.com/tighten/ziggy/compare/v1.0.3...v1.0.4 [v1.0.3]: /~https://github.com/tighten/ziggy/compare/v1.0.2...v1.0.3 diff --git a/README.md b/README.md index 231c6d4d..ca18f481 100644 --- a/README.md +++ b/README.md @@ -312,7 +312,7 @@ You can optionally create a webpack alias to make importing Ziggy's core source const path = require('path'); mix.alias({ - ziggy: path.resolve('vendor/tightenco/ziggy/dist'), + ziggy: path.resolve('vendor/tightenco/ziggy/dist'), // or 'vendor/tightenco/ziggy/dist/vue' if you're using the Vue plugin }); // Mix v5 @@ -360,6 +360,8 @@ import { Ziggy } from './ziggy'; Vue.use(ZiggyVue, Ziggy); ``` +If you use this plugin with the Laravel Mix alias shown above, make sure to update the alias to `vendor/tightenco/ziggy/dist/vue`. + > Note: If you use the `@routes` Blade directive in your views, Ziggy's configuration will already be available globally, so you don't need to import the `Ziggy` config object and pass it into `use()`. Now you can use `route()` anywhere in your Vue components and templates, like so: diff --git a/package.json b/package.json index 670f6e70..ee632694 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ziggy-js", - "version": "1.1.0", + "version": "1.2.0", "description": "Use your Laravel named routes in JavaScript.", "keywords": [ "laravel",