v4.2.0-beta.2
Pre-release
Pre-release
lcharette
released this
28 Feb 02:16
·
744 commits
to develop
since this release
See Upgrade Guide : https://learn.userfrosting.com/4.2/upgrading/41-to-42
Added
sprinkle:list
bakery commandNoCache
middleware to prevent caching of routes with dynamic content- Sample test environment for Docker
- Added
validateMigrationDependencies
helper method toBaseSeed
- Greek locale (Thanks @lenasterg!; [#940])
Changed
- Sprinkle list in the bakery
debug
command to uses the newsprinkle:list
table routerCacheFile
config now only contains filename. Locator is used to find the full path- Updated Docker integration
- Moved some constants from
app/defines.php
toapp/sprinkles/core/defines.php
- Move route initialization from system to core sprinkle as router service is located in the core sprinkle
Fix
- Fix for
Test
Bakery command- Added
coverage-format
andcoverage-path
options totest
Bakery command - Sprinkle Testscope is now case insensitive
- Class testscope now relative to
/
instead of/UserFrosting/Sprinkle/
for more intuitive usage and to enable testing of non sprinkle tests - Detect and use the sprinkle
phpunit.xml
config when testing a specific sprinkle
- Added
- SprinkleManager Improvements :
- Added public
getSprinklePath
method to get path to the sprinkle directory - Added public
getSprinkleClassNamespace
method to get sprinkle base namespace - Added public
getSprinkle
method. Returns the sprinkle name as formatted insprinkles.json
file, independent of the case of the search argument. - Public
isAvailable
method now case insensitive. - Added public
getSprinklesPath
&setSprinklesPath
to return or set the path to the sprinkle dir (app/sprinkles/
) - Added
JsonException
ifsprinkles.json
doesn't contain valid json. - Added specific tests for sprinkleManager with 100% test coverage
- Added public
- Ignore existing
package-lock.json
which caused incorrect dependencies to be installed when upgrading from older versions of UserFrosting. - Vendor assets not found in production mode
- Various Docker specific edge cases and misconfigurations
- Fix path issue on Windows