Releases: reed-jones/phase
Releases · reed-jones/phase
v0.6.1
v0.6.1 - 2020-08-13
Notable commits since the last release (v0.6.0...v0.6.1):
- [5825dd5]: feat(build): add package versions to release notes - (Reed Jones reedjones@reedjones.com)
- [ec9a72d]: feat(build): initial release notes generator - (Reed Jones reedjones@reedjones.com)
- [d17539e]: fix(state,php): unnamed single non-array parameters where missed - (Reed Jones reedjones@reedjones.com)
Packages updated in this release
[composer] phased/state@0.6.1
v0.6.0
v0.5.0
v0.5.0 - 2020-08-03
Added
- added
Phased/Routing/Commands/GeneratePhaseRouter::getJsonOutput($withConfig)helper to encode & retrieve output - added
phase.assets.ssr.server&phase.assets.ssr.clientconfiguration for js bundles. - added
Vuex::get - Front end log levels. passing
{ logLevel: 'debug' }as the options to the hydrate method, for example will enable the most verbose logging. - 'example' app with cypress/pest test suite, tailwindcss, laravel auth
- Added gzipped filesize output to buildscript
- removed default stylesheet
sass/app.scssfrom config - helper functions added to example app such as 'resolve route by phase name' (phaseRoute
example/app/helpers.php) - added
vue-ssr-failedattribute to blade file when an error occurs during rendering - [experimental] added
Phased/State/Factories/VuexFactory::get(...)method to access previously saved state. - Migrated test suite to use PestPHP & Cypress (for browser based tests)
Changed
- Migrated test suite to use
pest Phased/Routing/Commands/GeneratePhaseRouter::getFormattedRoutes()changed from protected to publicPhased/Routing/Commands/GeneratePhaseRouter::outputTable()changed from protected to publicPhased/Routing/Commands/GeneratePhaseRouter::outputJson()changed from protected to publicPhased/Routing/Factories/PhaseFactory::addRoute()signature changed from variadic(...$args)to($uri, $action)
Deprecated
- Automatic axios redirects. This may be revived in a future release.
Removed
- auto axios redirects (301/302) have been removed. For direct entry redirects (301/302) the standard laravel redirects can be used. For SPA redirects, these must by manually set using vue-router.
v0.4.0
v0.4.0 - 2020-03-15
Added
- Now follows any axios redirects (with page transition, enabled by default)
- Customizable
<head>section (meta tags, etc) using optionalparts/head.blade.php - Route code splitting now available using the option
codeSplit: trueinwebpack.mix.js
Changed
- All automated ajax requests append
phase=trueto the query string.
Fixed
- After using vue-router, then navigating to an external site, pressing 'back' no longer displays json
v0.3.0
v0.3.0 - 2020-03-07
Added
- Server Side Rendering option available in
config('phase.ssr')(true/false) - Client Hydration via
config('phase.hydrate')(SSR & no JS bundle) NODE_PATH=env variable has been added and is required for SSR support to operatephased/phasecomposer meta package is now available to make installation just that much easier
Changed
- Breaking main vue app should now
export default new Vueand not mount the app (noel: '#app'). This allows for SSR to be toggled on/off. - Breaking It is now mandatory & non-configurable that the main entry is
app.js.
Removed
- Breaking
jsoption in assets configuration is no longer used since SSR option has been added, and has been removed. If your js bundle was named something other thanapp.jsthis is a breaking change.
Fixed
@phased/stateno longer relies onwindowmaking it usable for other environments (primarily SSR, potentially NativeScript-vue)
v0.2.0
[0.2.0] - 2020-03-01
Added
- webpack watch mode now watches for changes to
routes/web.php php artisan make:loader {module}Generate empty Module Loader stubsPhased\State\Factories\VuexFactory::dd()dd's the current store dataPhased\State\Middleware\ModuleLoaderMiddleware::classmodule loading middleware. Can now load common vuex state for groups or routes.->middleware('load:authors,all|posts,all|books,active,1)
Changed
- Breaking moved PhaseRoutes import from
@phased/webpack-plugin/routesto@phased/phase/routeswhen using the@phased/phasemeta package. If using the webpack-plugin directly, there is no change. - Changed private methods to protected in
Phased\State\Factories\VuexFactory
Fixed
- laravel-mix plugin no longer requires an empty object passed as a minimum options configuration... (
.phase()works again)
v0.1.0
[0.1.0] - 2020-02-13
Added
- response()->vuex() and response()->phase() now behave the same.
response()->phase()is preferred. Phased\State\Factories\VuexFactory::lazyLoad($namespace, $key)has been introduced so now ModuleLoaders can easily be lazy loaded without modificationPhased\State\Factories\VuexFactory::commit($mutation, $value)has been added, with the caveat that mutations cannot be run on initial page loadPhased\State\Factories\VuexFactory::dispatch($action, $value)has been added, with the caveat that actions cannot be run on initial page load- Added actions/mutations to axios interceptors
Deprecated
response()->vuex()is deprecated, andresponse()->phase()is the preferred, however there are currently no plans to remove it.Phased\State\Factories\VuexFactory::store(...)is deprecated however there are no current plans for removal
Fixed
- @phased/laravel-mix plugin should better track changes to
routes/web.php - config('phase') should pick up a project
config/phase.phpoverrides again - phpunit phased/routing tests were fixed
->toVuex()with only one argument again saves to base state i.e.->toVuex('user')=>this.$store.state.user