Skip to content

Releases: userfrosting/UserFrosting

v4.6.0

18 Jul 18:51
4fa04a8
Compare
Choose a tag to compare

See full Changelog

See upgrade guide

Changed Requirements

  • Drop PHP 7.2 support. Gain PHP 8.0 support. PHP 8.0 is now recommended.

Dependencies upgrade

  • Replaced individual UserFrosting Assets, Cache, Config, Fortress, i18n, Session, Support and UniformResouceLocator repos with monolitic userfrosting/framework repo.
  • Upgrade all Laravel packages to ^8.x from ^5.8.
  • Upgrade vlucas/phpdotenvto ^5.3 from ^3.4.
  • Upgrade symfony/console to ^5.1 from ^4.3.
  • Upgrade phpunit/phpunit to ^9.5

New Feature

  • Added support for built-in PHP Server.

Changes

  • Per user theme ($user->theme) is now deprecated and disabled by default. To enable back, change per_user_theme config to true (#1131). This feature will be removed in future version.
  • Bakery command execute method now requires to return an int (Symfony 4.4 upgrade : https://symfony.com/blog/new-in-symfony-4-4-console-improvements).
  • UserFrosting\Sprinkle\Core\Database\EloquentBuilder now uses Illuminate\Database\Eloquent\Concerns\QueriesRelationships Trait instead of manually implementing withSum, withAvg, withMin, withMax & withAggregate. See Laravel documentation for usage change.
  • Migrate uf-modal.js to jQuery Boilerplate (#740)

v4.5.1

14 Jul 02:22
3186e20
Compare
Choose a tag to compare

Fixed

  • Fix php bakery route:list error on procedural routes (#1162).
  • Fix NO_DATA alert when editing a User Role (#1163).
  • [Vagrant/Homestead] Force use of PHP 7.4 for CLI (since default is now PHP 8).
  • Fix integration with filp/whoops 2.14

Changed

  • Updated Docker development images (PHP 7.2 to 7.4, NodeJS 12.x to 14.x) (#1085).

v4.5.0

22 Apr 00:10
c92bf0b
Compare
Choose a tag to compare

See full Changelog

See upgrade guide

Changed Requirements

  • Drop PHP 7.1 support. PHP 7.4 is now recommended.
  • Raised NodeJS version requirement from >=10.12.0 to ^12.17.0 || >=14.0.0 (#1138).
  • Raised NPM version requirement from >=6.0.0 to >=6.14.4 (#1138).

Changed Composer Dependencies

  • Updated wikimedia/composer-merge-plugin from ^1.4.0 to ^2.1.0 (#1117).

Added

  • Composer 2 support (#1117).
  • Lando support.
  • Added more SMTP options in env and setup:smtp bakery command (#1077),
  • Added new MAIL_MAILER environment variable to set mailer type.
  • Added "Native mail" to setup:mail bakery command.

Changed

  • Implement findInt (#1117).
  • Replace getenv() with env() (#1121).
  • Replaced UserFrosting\Sprinkle\Core\Bakery\Helper\NodeVersionCheck with new UserFrosting\Sprinkle\Core\Util\VersionValidator class.
  • Bakery command setup:smtp renamed to setup:mail. The old command is still available as an alias for backward compatibility.
  • Changed .php_cs to .php_cs.dist.
  • Changed phpunit.xml to phpunit.xml.dist.

Fixed

  • Replaced AdminLTE credit in default footer (old link was dead).
  • Issue with path slashes on Windows (#1133).

Removed

  • Removed deprecated UserFrosting\System\Bakery\Migration (deprecated in 4.2.0).
  • Removed deprecated UserFrosting\Tests\DatabaseTransactions (deprecated in 4.2.0).
  • Removed deprecated UserFrosting\Sprinkle\Core\Tests\ControllerTestCase (deprecated in 4.2.2).
  • Removed deprecated UserFrosting\Sprinkle\Core\Model\UFModel (deprecated in 4.1).
  • Removed deprecated UserFrosting\Sprinkle\Core\Sprunje\Sprunje::getResults (deprecated in 4.1.7).
  • Removed deprecated UserFrosting\Sprinkle\Account\Database\Models\User::exists (deprecated in 4.1.7).
  • Removed deprecated UserFrosting\Sprinkle\Core\Database\Models\Model::export (deprecated in 4.1.8).
  • Removed deprecated UserFrosting\Sprinkle\Core\Database\Models\Model::queryBuilder (deprecated in 4.1.8).
  • Removed deprecated UserFrosting\Sprinkle\Core\Database\Relations\Concerns\Unique::withLimit (deprecated in 4.1.7).
  • Removed deprecated UserFrosting\Sprinkle\Core\Database\Relations\Concerns\Unique::withOffset (deprecated in 4.1.7).
  • Removed deprecated UserFrosting\Sprinkle\Core\Error\RendererWhoopsRenderer::getResourcesPath.
  • Removed deprecated UserFrosting\Sprinkle\Core\Error\RendererWhoopsRenderer::setResourcesPath.
  • Removed deprecated Handlebar ifCond (Deprecated in 4.1).
  • Removed migration seed.
  • Removed support for migration with non static $dependencies properties.
  • Removed support for deprecated determineRedirectOnLogin service (deprecated in 4.1.10).

v4.4.5

06 Mar 01:22
cf651f3
Compare
Choose a tag to compare

Changed

  • Replaced Travis with Github Actions
  • Force Composer 1.0 for Docker (#1126)
  • Update error.html.twig - add container (#1128)
  • Update some tests
  • Update Vagrant doc & config

v4.4.4

20 Nov 21:27
9a0c8e2
Compare
Choose a tag to compare

Fixed

  • Replaced AdminLTE credit in default footer (old link was dead).
  • Lock Travis to Composer V1 to avoid error until Composer V2 support can be fixed.
  • Remove whitespace at top of page templates (#1107)
  • Deep extend when adding global query params in ufTable (#1114)
  • Check for null key in Unique::buildTertiaryDictionary (#1109)
  • Client-side assets containing glob characters causing crashes when building assets.
  • Fixed issue where merging of package dependencies would show as "undefined", resulting in debugging challenges where there are issues.

v4.3.4

19 Jun 01:21
735d3da
Compare
Choose a tag to compare

Fixed

  • Allows userfrosting/cache 4.4.x as a fix for [#1102].

v4.4.3

03 Jun 01:15
90f3790
Compare
Choose a tag to compare

Fixed

  • Changed some private methods to protected in tests for easier extension.
  • Tentative fix for duplication of user_name in user Factories.
  • Factories now uses ::class reference instead of string.
  • Fix ExceptionHandlerTest test to speed things up.

v4.4.2

01 May 02:24
427106c
Compare
Choose a tag to compare

Fixed

  • Locale matcher can fail when client provided locale identifier has incorrect casing (#1087)
  • Sprunje applyTransformations method not returning the $collections object (#1068)
  • Old assets in app/assets/browser_modules not being deleted during install (#1092)
  • Added SKIP_PERMISSION_CHECK env to skip check for local directories that needs to be write protected. This can be used for local production env testing.

v4.4.1

23 Apr 02:11
dfb9c7d
Compare
Choose a tag to compare

Fixed

  • Fixed issue where incompatible NPM packages would be browserified, resulting in install failures.
  • Replaced deprecated Twig class.
  • Fixed issue when compiling assets for production (#1078).
  • Migration dependencies should work with and without leading \ (#1023)
  • Throttler don't count successful logins (#1073)

v4.4.0

22 Mar 21:35
c62790e
Compare
Choose a tag to compare

See full Changelog

See upgrade guide

Changed Requirements

  • PHP 7.3 is now the recommended version, as 7.2 is already security fixes only.

Changed Composer Dependencies

  • Reset Slim version to ^3.12
  • Updated PHPUnit to 8.5 (Version 7.5 still used for PHP 7.1)

Added

  • PHP 7.4 Support & Travis environment.
  • New Locale service. Provides a list of available locales in diffeent form.
  • New BaseServicesProvider abstract class added as base for all ServiceProvider class.
  • Sprinkle Services Provider can now be autoloaded using the $servicesproviders property in the sprinkle bootstrapper class.
  • Current locale code can now be accessed from Twig using the currentLocale global variable ([#1056]).
  • Locale now have config & metadata file ([#850])
  • Added locale:compare, locale:dictionary and locale:info Bakery commands.
  • New cli service. Returns true if current app is a CLI envrionement, false otherwise.

Changed

  • Interop\Container\ContainerInterface has been replaced with Psr\Container\ContainerInterface.
  • \UserFrosting\I18n\MessageTranslator is now \UserFrosting\I18n\Translator.
  • Translator service moved to it's own UserFrosting\Sprinkle\Core\I18n\TranslatorServicesProvider class.
  • Travis now uses Xenial instead of Trusty.
  • site.locales.available config now accept (string) identifier => (bool) enabled. Set identifier to false or null to remove it from the list.
  • Locale plural rules moved from the keys file to the new metadata files.

Fixed

  • When internationalizing, the lang attribute value of the Twig template is not set to follow changes ([#982])
  • pt_Br locale identifier renamed to pt_BR.
  • Improved Docker support ([#1057])
  • Improved Bakery debug command output
  • Improve ordering by activity date ([#1061] & [#1062]; Thanks @ktecho!)
  • Updated Vagrant config and documentation
  • Fixed a bug where withTrashed in findUnique was not available when SoftDeletes trait is not included in a model.
  • CSRF global middleware is not loaded anymore if in a CLI envrionement. This will avoid sessions to be created for bakery and tests by default.
  • Browserified node modules not being correctly loaded.
  • Browserified node modules potentially colliding with real entrypoints.

Removed

  • localePathBuilder service removed. Task now handled by the locale and translator services.