Skip to content

Commit

Permalink
Export from index.js (#344)
Browse files Browse the repository at this point in the history
* Move Route and Router into their own files and export from 'index.js'

* Rename exports and rebuild assets

* Update webpack alias in readme

* Fix special _query key getting mangled

* Build assets

* Use let and const instead of var, and add test for complete script tag output

* Update Changelog
  • Loading branch information
bakerkretzmar authored Oct 30, 2020
1 parent 0e60f48 commit 5213c4d
Show file tree
Hide file tree
Showing 24 changed files with 177 additions and 127 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Breaking changes are marked with ⚠️.
- ⚠️ Rename `namedRoutes``routes`, `defaultParameters``defaults`, `baseUrl``url`, and `basePort``port` ([#338](https://github.com/tighten/ziggy/pull/338))
- ⚠️ Make the `filter()` method on the `Ziggy` class return an instance of that class instead of a collection of routes ([#341](https://github.com/tighten/ziggy/pull/341))
- ⚠️ Make the `nameKeyedRoutes()`, `resolveBindings()`, `applyFilters()`, and `group()` methods on the `Ziggy` class, and the `generate()` method on the `CommandRouteGenerator` class, private ([#341](https://github.com/tighten/ziggy/pull/341))
- ⚠️ Export from `index.js` instead of `route.js` ([#344](https://github.com/tighten/ziggy/pull/344))

**Deprecated**

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ const path = require('path');
mix.webpackConfig({
resolve: {
alias: {
ziggy: path.resolve('vendor/tighten/ziggy/src/js/route.js'),
ziggy: path.resolve('vendor/tighten/ziggy/dist'),
},
},
});
Expand Down
2 changes: 2 additions & 0 deletions dist/index.es.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/index.es.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/route.js → dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/index.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions dist/index.m.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/index.m.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 5213c4d

Please sign in to comment.