Skip to content

Commit

Permalink
Update Readme and Changelog, bump version, build
Browse files Browse the repository at this point in the history
  • Loading branch information
bakerkretzmar committed May 24, 2021
1 parent 63ec730 commit 147804d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
16 changes: 15 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**
Expand Down Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 147804d

Please sign in to comment.