Skip to content

Commit

Permalink
Prepare 4.2.0 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
lcharette committed Mar 15, 2019
1 parent c7a4a8f commit 38572ba
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 74 deletions.
144 changes: 71 additions & 73 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,96 +5,93 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## 4.2.0-beta.2

### Added
- `sprinkle:list` bakery command
- `NoCache` middleware to prevent caching of routes with dynamic content
- Sample test environment for Docker
- Added `validateMigrationDependencies` helper method to `BaseSeed`
- Greek locale (Thanks @lenasterg!; [#940])

### Changed
- Sprinkle list in the bakery `debug` command to uses the new `sprinkle: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` to `app/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` and `coverage-path` options to `test` 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
- 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 in `sprinkles.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` if `sprinkles.json` doesn't contain valid json.
- Added specific tests for sprinkleManager with 100% test coverage
- 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

## 4.2.0-beta.1

## [v4.2.0]
### Changed Requirements
- Changed minimum Node.js version to **v10.12.0**
- Changed minimum NPM version to **6.0.0**

### Added
- Use locale requested by browser when possible for guests ([#718])
- Add locale drop down to registration page, with the currently applied locale selected ([#718])
- Integrated improvements from [v4.0.25-Alpha](#v4025-alpha)
- Added `database` option for `migrate` and `migrate:*` Bakery commands
- New `isProduction` method for Bakery command to test if app is in production mode
- `migrate` and `migrate:*` Bakery command now require confirmation before execution when in production mode.
- Added `migrate:status` Bakery command
- Added `RefreshDatabase` test Trait to use a fresh database for a test
- Added `TestDatabase` test Trait to use the in memory database for a test
- Implement `withRaw`, `withSum`, `withAvg`, `withMin`, `withMax` (see https://github.com/laravel/framework/pull/16815)
- Include Vagrant integration directly inside UF ([#829])
- Added arguments to the `create-admin` and `setup` Bakery commands so it can be used in a non-interactive way ([#808])
- Added tests for migrator and it's components
- Added tests for `migrate` Bakery command and sub-commands
- Added new `filesystem` service ([#869])
- Added new `Seeder` and `seed` Bakery command
- Added `withTestUser` trait for helper methods when running tests requiring a user
- Added `ControllerTestCase` special test case to help testing controllers
- Improved overall test coverage and added coverage config to `phpunit.xml`
- Added code style config (`.php_cs`) and instructions for PHP-CS-Fixer in Readme
- Greek locale (Thanks @lenasterg!; [#940])
- Add cache facade (Ref [#838])
- Added `test:mail` Bakery Command
- Add support for other config['mailer'] options ([#872]; Thanks @apple314159 !)
- Added support for npm dependencies on the frontend with auditting for known vulnerabilities
- Extended `bakery test` to add Test Scope and sprinkle selection argument ([#919], Thanks @ssnukala !)
- Added new `Seeder`
- `NoCache` middleware to prevent caching of routes with dynamic content
- Bakery :
- Added `sprinkle:list` Bakery Command
- Added `migrate:status` Bakery Command
- Added `test:mail` Bakery Command
- Added `seed` Bakery command
- New `isProduction` method for Bakery command to test if app is in production mode
- Added `database` option for `migrate` and `migrate:*` Bakery commands
- Added arguments to the `create-admin` and `setup` Bakery commands so it can be used in a non-interactive way ([#808])
- Extended `bakery test` to add Test Scope and sprinkle selection argument ([#919], Thanks @ssnukala !)
- Testing :
- Added `RefreshDatabase` test Trait to use a fresh database for a test
- Added `TestDatabase` test Trait to use the in memory database for a test
- Added tests for migrator and it's components
- Added tests for `migrate` Bakery command and sub-commands
- Added `withTestUser` trait for helper methods when running tests requiring a user
- Added `ControllerTestCase` special test case to help testing controllers
- Improved overall test coverage and added coverage config to `phpunit.xml`
- Assets :
- Added support for npm dependencies on the frontend with auditting for known vulnerabilities
- Database :
- Implement `withRaw`, `withSum`, `withAvg`, `withMin`, `withMax` (see https://github.com/laravel/framework/pull/16815)
- Vagrant / Docker :
- Include Vagrant integration directly inside UF ([#829])
- Sample test environment for Docker
- Misc :
- Integrated improvements from [v4.0.25-Alpha](#v4025-alpha)
- Added code style config (`.php_cs`) and instructions for PHP-CS-Fixer in Readme
- Add support for other config['mailer'] options ([#872]; Thanks @apple314159 !)

### Changed
- Moved Bakery commands from `app/System/Bakery` to the `Core` sprinkle and `UserFrosting\Sprinkle\Core\Bakery` namespace.
- Re-written the migrator. It is now detached from the console and Bakery and is now included in the Core Sprinkle ServicesProvider ([#795])
- Makes the `semantic versioning` part of a migration class optional. Migrations classes can now have the `UserFrosting\Sprinkle\{sprinkleName}\Database\Migrations` namespace, or any other sub-namespace
- Move User registration out of the `AccountController` ([#793])
- Temporarily undeprecate `AssetLoader` until the new asset system can be refactored (https://github.com/userfrosting/assets/issues/4)
- Rewrite `AssetLoader` to act as a wrapper for `Assets`
- Improved `route:list` Bakery command from [v4.1.20](#v4.1.20)
- Rewritten the `locator` service so it's better suited for sprinkle system ([#853])
- `dev` environment changed to `debug` ([#653])
- Changed deprecations to `warning`, and suppressed them in tests
- Uncomment foreign keys in core migrations ([#833])
- Move default groups, roles & permissions creation to seeds
- Rewrote asset processing to minimise file sizes, drastically reduce IO, and improve maintainability
- Rewrote frontend dependency installation to prevent duplication and detect incompatibilities
- Bakery :
- Moved Bakery commands from `app/System/Bakery` to the `Core` sprinkle and `UserFrosting\Sprinkle\Core\Bakery` namespace.
- Improved `route:list` Bakery command from [v4.1.20](#v4.1.20)
- Sprinkle list in the bakery `debug` command to uses the new `sprinkle:list` table
- Migrations & Database :
- `migrate` and `migrate:*` Bakery command now require confirmation before execution when in production mode.
- Re-written the migrator. It is now detached from the console and Bakery and is now included in the Core Sprinkle ServicesProvider ([#795])
- Makes the `semantic versioning` part of a migration class optional. Migrations classes can now have the `UserFrosting\Sprinkle\{sprinkleName}\Database\Migrations` namespace, or any other sub-namespace
- Uncomment foreign keys in core migrations ([#833])
- Move default groups, roles & permissions creation to seeds
- Assets
- Rewrote asset processing to minimise file sizes, drastically reduce IO, and improve maintainability
- Rewrote frontend dependency installation to prevent duplication and detect incompatibilities
- Rewrite `AssetLoader` to act as a wrapper for `Assets`
- Misc :
- Updated Docker integration
- Moved some constants from `app/defines.php` to `app/sprinkles/core/defines.php`
- Move route initialization from system to core sprinkle as router service is located in the core sprinkle
- `dev` environment changed to `debug` ([#653])
- Changed deprecations to `warning`, and suppressed them in tests
- `routerCacheFile` config now only contains filename. Locator is used to find the full path

### Fixed
- Sprinkle without a `template/` folder won't cause error anymore
- Fixed routes not available in Tests [and Bakery] ([#854])
- Fixed routes not available in Tests and Bakery ([#854])
- redirect failing in UserController::pageInfo when user not found ([#888])
- Fix WhoopsRenderer integration, resolving a temp fix in [v4.1.21](#v4.1.21).
- Fix Travis not running tests with the env database
- Ignore existing `package-lock.json` which caused incorrect dependencies to be installed when upgrading from older versions of UserFrosting.
- Testing :
- Added `coverage-format` and `coverage-path` options to `test` 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
- 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 in `sprinkles.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` if `sprinkles.json` doesn't contain valid json.
- Added specific tests for sprinkleManager with 100% test coverage

### Deprecated
- Migrations should now extends `UserFrosting\Sprinkle\Core\Database\Migration` instead of `UserFrosting\System\Bakery\Migration`
Expand All @@ -103,8 +100,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Trait `\UserFrosting\Tests\DatabaseTransactions` has been deprecated. Tests should now use the `\UserFrosting\Sprinkle\Core\Tests\DatabaseTransactions` trait instead. ([#826])

### Removed
- The console IO instance is not available anymore in migrations
- Removed the `io` property from migration classes
- The console IO instance is not available anymore in migrations. Removed the `io` property from migration classes
- Removed Bakery `projectRoot` property. Use the `\UserFrosting\ROOT_DIR` constant instead
- Removed `pretend` option from Bakery `migrate:refresh` and `migrate:reset` commands
- Removed `UserFrosting\System\Bakery\DatabaseTest` trait, use `UserFrosting\Sprinkle\Core\Bakery\Helper\DatabaseTest` instead.
Expand Down Expand Up @@ -708,3 +704,5 @@ See [http://learn.userfrosting.com/upgrading/40-to-41](Upgrading 4.0.x to 4.1.x
[#888]: https://github.com/userfrosting/UserFrosting/issues/888
[#919]: https://github.com/userfrosting/UserFrosting/issues/919
[#940]: https://github.com/userfrosting/UserFrosting/issues/940

[v4.2.0]: https://github.com/userfrosting/UserFrosting/compare/v4.1.22...v4.2.0
2 changes: 1 addition & 1 deletion app/defines.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace UserFrosting;

// Some standard defines
define('UserFrosting\VERSION', '4.2.0-beta.2');
define('UserFrosting\VERSION', '4.2.0');
define('UserFrosting\DS', '/');
define('UserFrosting\PHP_MIN_VERSION', '5.6');
define('UserFrosting\PHP_RECOMMENDED_VERSION', '7.1');
Expand Down

0 comments on commit 38572ba

Please sign in to comment.