Releases: wintercms/winter
Releases · wintercms/winter
v1.2.12
UX/UI Improvements
- Added support for
telform field.
Bug Fixes
- Fixed z-index on MediaManager move dropdown.
- Fixed support for config properties on URL fields.
- Fixed issue where dynamically extending a class to add behaviors could fail if the behavior had been added before.
Security Improvements
- Added protection against privilege escalation attack from authenticated backend users.
Performance Improvements
- Moved Vite rendering to
{% styles %}Twig tag instead of{% scripts %}to prevent FOUC.
Dependencies
- Improved support for PHP 8.4.
Full Changelog: v1.2.11...v1.2.12
v1.1.12
Security improvements
- Added protection against privilege escalation attack from authenticated backend users.
Full Changelog: v1.1.11...v1.1.12
v1.0.477
Security improvements
- Added protection against privilege escalation attack from authenticated backend users.
Full Changelog: v1.0.476...v1.0.477
v1.2.11
UX/UI Improvements
- Added "Failed Logins" tab to the User account form in the backend to view the throttle records of users and be able to manually unthrottle IPs.
- Reorganized the fields on the user account page in the backend for ease of use.
- Added support for autogenerating passwords when creating users in the backend (requires notification email to be sent to the user).
- Added ability for the
CodeEditorto restore its original line location when restoring after being disposed of on a page (i.e. when switching between on-page tabs with multiple codeeditors, like in the CMS Theme Editor).
API Changes
- Added auto detection of
LICENCEandLICENSEfiles in plugins as their license files.
Bug Fixes
- Fixed bug introduced in v1.2.10 where collections weren't being supported as a possible value for form field's
optionsproperty. - Fixed bug introduced in v1.2.10 where
LESS,SASS, andSCSSfiles were being treated as PHP files by theCodeEditorin the CMS Theme Editor. - Fixed support for
type="module"inline script tags when using theTwiglanguage mode with the MonacoCodeEditor. - Fixed bug introduced in v1.2.10 where event listeners attached to Theme events from within plugin
boot()methods weren't being fired.
Security Improvements
- Improved automatic sanitization of SVGs through the CMS
AssetListwidget.
Community Improvements
- Fix PHP Code block examples for the
model.*events in the Winter CMS documentation.
Full Changelog: v1.2.10...v1.2.11
v1.2.10
UX/UI Improvements
- Replaced the codeeditor's implementation from Ace Editor to Monaco.
- Improved grouped repeater UX by adding search and multiple columns.
- Removed the
.from the end of the generated password in the output of thewinter:passwdcommand to make it easier to copy.
DX Improvements
- Fixed support for the Laravel Maintenance mode (
artisan down,artisan up) which was broken with the move to Laravel 9 (note: this is separate from the backend / CMS "soft" maintenance mode). - Added support for the
schedule:listandschedule:workcommands from Laravel - AutoDatasource caching is now disabled when
app.debugis true to avoid issues caused by stale path caches when developing locally. - Added
llms.txtand.user.inito the list of mirrored files. - Made the dropdown field use the
Form::select()helper internally for consistency. - Made the repeater's
titleFromproperty less picky about what type of field it can pull the value from.
API Changes
- Add support for images / icons in options with the
Form::select()helper.
Bug Fixes
- Fixed issue where emptyOption wasn't being removed in the
Form::select()helper after being used to populate the placeholder. - Fixed issue where the FontAwesome assets downloaded by the
winter:util compile lesscommand weren't being pinned to a specific version. - Fixed issue where fancy layout form styles were bleeding into modals.
- Fixed issue where the loading indicator wouldn't hide after receiving a RedirectResponse for file downloads through the AJAX framework.
Security Improvements
- Sanitize SVG files when uploaded to the theme assets.
- Improved escaping of EditorSettings, BrandSettings, & MailBrandSettings.
Translation Improvements
- Improved Ukrainian translation.
Community Improvements
- OFFLINE.Mall has been forked as a first-party plugin (Winter.Mall).
- Added mail driver that adds support for the MS Graph API mailer (Winter.DriverMSGraph).
- Improved support for external SSO provider driver plugins in the Winter.SSO plugin.
- Added Winter.SSOProviderMicrosoft - Microsoft 365 and Azure AD authentication provider for Winter.SSO.
New Contributors
Full Changelog: v1.2.9...v1.2.10
v1.2.9
UX/UI Improvements
- Added support for setting failover transports to the backend Mail Settings page.
DX Improvements
config:clearcommand now warns users that caching configuration files is not currently supported in Winter CMS.- Improved
create:commandscaffolder to allow for hyphens in generated command names and added optional--descriptionoption to set the help text for the generated command. - Enhanced
winter:util compileto download FontAwesome assets required to compile backend LESS files if not present. - Added the Form's id attribute to the forms generated by the default FormController views.
- Registered the
Illuminate\Contracts\Auth\Access\Gatecontract with the application as a null gate to prevent plugins and IDE extensions that expect the contract to be present from throwing unhelpful errors. - Exceptions passed to the
Backend\Traits\ErrorMakertrait are now logged in the backend error log (excludingApplicationExceptions).
API Changes
- Added
iconClassoption for thefileuploadFormWidget to specify the icon that should be used for the upload button. - Added
searchwidget configuration options to the RelationController'sview&managemode configuration (prompt,mode,scope,searchOnEnter).
Bug Fixes
- Improved compatiblity of Winter's
ConfigRepositorywith Laravel by aliasing top level config keys (currently prefixed with*::to reflect the namespaced config system used in Winter) to their naked versions (i.e.debugbaris still internally stored as*::debugbarbut will also be accessible from thegetItems()andall()methods on theConfigRepositoryasdebugbar). This paves the way for support for Laravel Nightwatch which relies on directly accessing the underlying config data structure for performance reasons. - Improved handling of package names as input to the
vite:compileandvite:watchcommands. - Fixed issue where
winter:util purge uploadscould sometimes delete files that were actually in use. - Improved vite base path generation to fix importing fonts.
- Improved error handling when using the default FormController views.
- Improved handling of form data in
Snowboard.request()to skipnullorundefinedvalues. - Removed the registration of the non-existant
Backend\FormWidgets\TimePickerFormWidget. - Updated
bootstrap/autoload.phpto return a 500 header when the vendor files are not present. - Fixed issue with the
DataTablewidget not being able to actually save data. - Fixed Preview labeling on the fancy toolbar for the default FormController view.
Security Improvements
- Ignored
vendor&node_modulesin the default.gitignoreto ensure that those directories are ignored at every level of the project, not just at the project root.
Community Improvements
- Published first party plugin Winter.LaravelBoost to add support for Laravel Boost in Winter v1.3.
- Published first party plugin Winter.LaravelNightwatch to add support for Laravel Nightwatch in Winter v1.3.
- Published an official first-party Docker image for Winter CMS: https://github.com/wintercms/docker.
Dependencies
- Improved support for PHP 8.4.
New Contributors
Full Changelog: v1.2.8...v1.2.9
v1.2.8
UX/UI Improvements
- Added a beautiful error log viewer in the backend that displays contextual information about exceptions, links directly to the source files, and unrolling of all previous exceptions in the stack.
- Added new
buttonfield type to make it easier to add custom buttons to backend forms. - Added support for the
urlfield type to the backend forms. - Added email icon to
emailfields. - Updated the default backend branding colours to match the Winter CMS Brand Guidelines.
- Added support for shift clicking to select multiple records at once in the Lists widget.
- Removed the sort icon from columns that aren't sortable and display a right arrow when a column is sortable but isn't currently being used to sort the results.
- Added
button-groupanddropdownfilter scope types. - Made the entire
mediafinderfield clickable whenmode: file. - Improve click behaviour of
recordfinderfields when disabled. - Allow users to zoom the backend on mobile.
- Added support for
abort(403)to return the access denied view in the backend - Improved handling of
abort(404)in the backend - Improved styling of disabled fields in the fancy form layout
- Hide the select all checkbox on the Lists widget when there are no records to select.
- Fixed anchor tag outline styling in Firefox.
- Style read-only columns on Table widget with slightly darker grey background to indicate read-only state.
- Allow tab and arrow navigation for read-only columns on the Table widget.
- Allowed searching option to show search box on the Table widget even if adding and deleting buttons are disabled.
- Fixed styling of toolbar on the Table widget if only the search box is shown (no background previously).
- Fixed styling of pagination on Table widget.
- Default to
ignoreTimezone = truefor date columns.
DX Improvements
- Added default views for the following backend controller behaviors (FormController, ImportExportController, ListController, ReorderController)
- Backend controllers will now automatically set their navigation context in the form of
Author.Pluginas the author,$pluginNameas the main menu code, and$controllerNameas the side menu code. This means that you can remove calls toBackendMenu::setContext()and constructor overrides in your controllers if they follow that convention. - Improved styling of file generated / updated status message in scaffolding commands
- Added support for
ReactJSin Vite & Mix compiled asset packages. - Added support for customizing the Vite build directory.
- Improved support for Model Factories.
- Added
testalias for thewinter:testcommand. - Added
schedule_timezoneproperty toconfig/app.php. - Updated theme scaffold's README.md to reflect the use of Vite in the generated themes.
- Added
Mail::sendTo()method to the Mail facade's docblock. - Added support for modules to the
asset:createcommands (mix:create,vite:create). - Make readOnly option case-insensitive on the Table widget.
- Improvements to the default scaffolding stub files to bring more inline with the future PSR-12 coding style update.
API Changes
- Added typehints to all the method signatures on the base
Winter\Storm\Database\Attach\Filemodel. (eg.getPath(),getCacheKey(),getFilename(),getContents(),getDiskPath(),isPublic(), etc). - Added
metadatajsonable column to the base File model, migrations have been added forsystem_files, but if you use a custom files table you will need to add a migration that adds$table->mediumText('metadata')->nullable();to your files table. - Made
getDiskName()on the baseWinter\Storm\Database\Attach\Filemodel public. - Added support for an array of names to use for the
postbackHandlerNamein the Table widget. - Removed the
config:cachecommand as it wasn't improving our performance and didn't fully work with Winter's flexible configuration system. - Added support for
SystemExceptionandApplicationExceptioninstances to define their own response codes. - Added
appendViewPath()andprependViewPath()to theSystem\Traits\ViewMaker.addViewPathis renamed toprependViewPath()and is for paths that have higher priority than the existing paths whileappendViewPath()is for paths that should have lower priority than the existing paths (i.e. fallbacks). - Behaviors extending
Backend\Classes\ControllerBehaviorwill now automatically append theirviewsfolder to the controller's view paths allowing them to provide fallbacks for any views required by the behavior. - The
create:controllercommand will now no longer generate the views by default unless--stubsis also passed and the--sidebarflag is replaced with a--layout=(standard|sidebar|fancy)option to choose the form layout to use. - Support for passing
new: trueas a parameter in the request body toonSave()calls that will return a redirect to thecreateaction formMakePartial(string $partial, array $params = [])to theFormControllerbehavior that will render a partial through the controller'smakePartialusing the following priority list of contextual names (form_$context_$partial,form_$partial,$partial).- Added
PromptsForMissingInputto the baseWinter\Storm\Console\Commandclass. - Removed the unused (and broken)
Winter\Storm\Database\DataFeedclass. PluginTestCasenow resets the application router in thesetUp()method between test runs to ensure that plugin routes load in the correct order during tests.
Bug Fixes
- Removed redundant backend route.
- Fixed issues where TagList & Repeater FormWidgets were not able to save an empty value.
- Fixed issue where TagList could return an object in array mode.
- Fixed using Vite packages when they are explicitly ignored / excluded from the project's
package.json. - Improved support for
winter:mirroron Windows - Using the
{% flash %}tag in Twig will now properly purge the FlashBag after it has been read. - Improved support for plugins attempting to access the database before it's fully ready to go.
- Fixed suport for hex colors with alpha values.
- Fixed infinite loop that occurrs when the configured database exists but the tables don't exist yet.
- Fixed support for array callables as dynamic methods.
- Event listeners bound to events with
bindEventOnce()now properly unbind after execution, even if the event is a halting event. - Fixed Syntax Error in CAST Statement for Postgres attachment.
- Fixed CMS Maintenance Mode not working when the
allowed_ipssetting has a value but a null list of IPs. - Fixed CMS Maintenance Mode settings page not showing the correct value for when the Maintenance Mode is enabled.
- Improved support for using hasManyThrough / hasOneThrough relationships with soft deletes.
- Fixed support for the
--forceflag inwinter:env. - Improved support for defining multiple Vite entrypoints.
- Prevent crashes when rendering invalid values in datepicker fields.
- Prevent editors from being created for all column types in the Table widget if read-only (previously, only string columns would be rendered read-only by setting the readonly attribute, this is not ideal because it can be easily changed).
- Fixed broken search if client datasource is used on the Table widget.
- Fixed addVite() method not being able to bind assets to the parent controller.
- Fixed displaying the status of maintenance mode triggered through the backend.
- Fixed backend-triggered maintenance mode support for defined but empty IP lists.
- Fixed support for hex colors with alpha values in the
colorpickerFormWidget. - Improved handling of registering / booting plugins when migrations haven't been run yet.
Security Improvements
- Added AllowList functionality to the Twig security policy.
Translation Improvements
- Improved Russian translations.
- Improved Dutch translations.
Performance Improvements
- Switched to a number input instead of a select dropdown for direct navigation to list pages in the Lists widget. Drastically improves performance when a list has 100+ pages in the results as it no longer causes an N+1 performance issue of rendering a single option element for every single page in your results.
- Fixed an infinite loop that could occur when a database was present but plugin migrations hadn't been run yet.
Community Improvements
- Added Laravel to the list of organizational sponsors.
- Removed Route4Me from the list of organizational sponsors.
Dependencies
- Added support for PHP 8.4
- Dropped support for PHP 8.0, PHP 8.1 is now the minimum requirement.
- wikimedia/less has been bumped to v5 from v3.
- Minimum Laravel version has been bumped to
v9.49.
New Contributors
- @goldmont made their first contribution in #1268
- @thienvu18 made their first contribution in #1294
- @truechernyshov made their first contribution in #1272
- @IsaiahPaget made their first contribution in #1361
- @Satoshi-Sh made their first contribution in #1369
Full Changelog: v1.2.7...v1.2.8
v1.1.11
Security improvements
- Improved the Twig security policy (blocked methods that write, delete, or modify records and attributes in Database/Eloquent and Halcyon models; blocked access to the theme datasource; prevented extensions from being created or directly interacted with). See GHSA-xhw3-4j3m-hq53 for more information.
Full Changelog: v1.1.10...v1.1.11
v1.0.476
Security improvements
- Improved the Twig security policy (blocked methods that write, delete, or modify records and attributes in Database/Eloquent and Halcyon models; blocked access to the theme datasource; prevented extensions from being created or directly interacted with). See GHSA-xhw3-4j3m-hq53 for more information.
Full Changelog: v1.0.475...v1.0.476
v1.2.7
UX/UI Improvements
- Added support for
showTotalsoption for Lists andsummableoption for columns of type: number to render the totals on a per page and per query basis in the Lists widget. - Added new
user:createCLI command to create a new backend user from the CLI. - Checkbox lists will now show all of their options, even when disabled or in read-only mode.
- Visiting the backend login page will now redirect to the backend dashboard if the user is already logged in.
- Added additional warning about disabling debug mode in production to the
config/app.phpfile. - Added additional configuration checks to the Status dashboard widget.
- Improved the UX of drag and drop sorting of tree views.
- Disabled autocomplete on
passwordandsensitivefield types by default. - Fixed minor box shadow issue with the recordfinder clear button.
- Made the entire
fileuploadfield clickable in single file mode. - Made the entire
recordfinderfield clickable and added translation support for the default prompt. - Repeater items can now be extended by clicking on their title rather than just the dropdown arrow.
- Fixed minor styling issues with Select2 inputs.
- Fixed repeater item titles in
previewcontexts.
DX Improvements
- Added support for the Vite asset compiler (see Laravel docs & Winter docs for more information).
- Added new
npm:install,npm:update,npm:runhelper CLI commands. Refer to the docs. - Added new
BundleManagerthat manages the "asset bundles" used by themix:createandvite:createscaffolding commands. - Added support for Laravel-style relations (see wintercms/docs#176)
- Added a simple
.devcontainerfor the Storm library and the main Winter repository. - Added support for "asset prioritization / load ordering" to the
AssetMakertrait through the use of a newordersystem attribute that can be provided. - Added support for project relative paths to the SQLite database.
- Changed the default scaffold for
create:themeto Tailwind - Changed the default asset compiler for the tailwind theme scaffold to vite.
- Added support for all
abort($code)errors to the CMS module, now you can useabort(404)anywhere and get a nice 404 error page. - Added
winter:install,winter:env, andwinter:mirror publicto the default post create project composer scripts. - Improved compatibility with Laravel's
artisan migratecommand by adding support for the--seed&--isolatableoptions. - Added support for using dynamic methods to handle custom list column types.
- Added
create:factorycommand to scaffold model factories in plugins. - Added support for the
--batchableoption to thecreate:jobscaffolder. - Added support for dynamically extending filter scopes even if no scopes have been defined yet.
- Added
--sidebarflag to thecreate:controllerscaffolder to create a controller that uses the sidebar layout for form views. - Fixed display of deleted files when reviewing changes in
winter:version. - Added
--only-version|-ooption flag towinter:versionto display only the version number. - Added new
winter:util purge resizedCLI command to delete all previously cached images from the resizer. - Allowed
create:migrationto be called with the--updateflag even if model does not have afields.yamlto scan.
API Changes
- Added support for
.avifimage files. - Removed the unnecessary Maker class from the core Application container.
- Added support for
$table->dropColumnIfExists()in migrations. - Added support for enabling the Laravel Mix manifest feature.
- Added
File::getMaxUploadSize()andFile::sizeToBytes()helper methods. - Added
File::copyBetweenDisks()andFile::moveBetweenDisks()helper methods. - Added
slaverelationship configuration to theDeferredBindingbase model. - Added
$routePersistanceparameter toPage::resolveMenuItem(). - Removed unnecessary
TableDataprefix from data returned by the Table widget (alsoDataTableformwidget) in AJAX requests. - Added support for translation strings providing options in
FormField->options(). - The Stripe Loader provided by Snowboard.js can now be disabled by setting
data-request-stripeto false. - Added support for command names that include a number.
- Core after login logic (
runMigrationOnLoginand logging to the access log) has been moved to an event listener to more reliabily work across all methods of logging in. - Added a default UserAgent of
Winter Stormto calls made by the Winter HTTP client. - Added a
nestedArray()scope to theNestedTreetrait and atoNestedArray()method to the coreTreeCollectionclass.
Bug Fixes
- Fixed the argument order for
paginate()andsimplePaginate()inBelongsToOrMorphsManyrelationships. - Fixed issue where attempting to use the
SortableScopecould conflict with columns in pivot tables. - Fixed infinite loop when using
HasSortableRelationson a model with a self-referencing relationship. - Restored the previous default value of true for
showPageNumbersin theRelationController'sviewandmanageconfiguration scopes. - Fixed support for empty calls to
date()in Twig. - Fixed issue where FormWidgets would return null even when their raw field values aren't present in the save data.
- Fixed issue with some styling elements in the backend due to the switch of asset compilation systems for the backend styles in 1.2.6.
- Fixed error when using taglist with a single value.
- Fixed issue where the
RelationManagerFormWidget was overriding the default configuration of theRelationControllereven when the overrides were not explicitly set on the field instance. - Fixed issue where creating themes from the backend using the
blankscaffold would fail. - Fixed issue where custom File models could not use string keys (i.e. UUIDs) as their primary key when using the default backend partials.
- Fixed issue where Pivot models were not being properly initialized with their attributes causing problems when the pivot record contained
jsonableattributes used by repeaters / nested forms. - Improved
trace_loghelper's handling of objects - Fixed support for viewing complex (jsonable) pivot data in the RelationController.
- Fixed issue where the job class was generated twice when using
create:jobwith the--syncoption. - Fixed issue where
maxItems: 1didn't work for the first item on repeaters. - Fixed nested form data in Snowboard requests.
- Fixed issue where the Mix webpack config wasn't being removed after it was no longer required.
- Fixed issue where sometimes event listeners for model events would be bound multiple times.
- Disabled the
--relativeflag forwinter:mirroron Windows because Windows doesn't support relative symlinks. - Properly escape the SQLite database path when running
winter:envon Windows.
Security Improvements
- Added the
$requiredPermissionsproperty to the default controller stub used bycreate:controller. - Hardened theme objects, preventing certain properties from being passed through to the ThemeData object.
- Improved the Twig security policy (blocked methods that write, delete, or modify records and attributes in Database/Eloquent and Halcyon models; blocked access to the theme datasource; prevented extensions from being created or directly interacted with). See GHSA-xhw3-4j3m-hq53 for more information.
Translation Improvements
- Improved Latvian translation.
- Improved French translation.
- Improved Russian translation.
Performance Improvements
Winter\Storm\Database\Traits\ArraySourcenow supports using generators to return records in thegetRecords()method.
Community Improvements
- Fixed links to documentation in
composer.json
Dependencies
- Bumped minimum required version of Twig to v3.14 to fix potential security issue.
New Contributors
Full Changelog: v1.2.6...v1.2.7