formwork/CHANGELOG.md
2024-10-27 16:18:18 +01:00

92 lines
4.4 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Changelog
## [2.0.0-beta.2](https://github.com/getformwork/formwork/releases/tag/2.0.0-beta.2)
**Breaking Changes**
- **Users, roles and statistics folders moved to sites/**
**Enhancements**
- **Add content history to panel**
- **Add live preview to panel**
- **Implement new Markdown editor**
- **Translate scheme and templates titles**
- **Allow theme switching based on `prefers-color-scheme` change**
- **Implement file metadata**
- **Add page info cards by hovering on page icons**
- **Add descriptions to publish and visibility-related fields**
- **Send `FileResponse` splitted chunkwise and according to the Range request header to improve performance with large files**
- **Allow `HEAD` requests**
- **Add slug field type**
- Add `Role` class
- Move Info to Tools section
- Add `csrfToken` service alias
- Allow and filter POST requests to site pages
- Avoid using special fields for page parent and template
- Improve file upload field
- Add `AbstractCollection::flatten()`, `AbstractCollection::union()`, `AbstractCollection::intersection()`, `AbstractCollection::difference()` and `AbstractCollection::find()`
- Allow index-only call to `AbstractCollection::slice()`
- Add utility methods to `PageCollection`
- Add `site.path` to config
- Fix `Debug::dump()` dumping before sendig headers
- Check panel assets presence on boot
- Add the possibility to delete user image
- Use attribute `ReadonlyModelProperty` to control Model::set() write access
- Add `Page::videos()` and `Page::media()`
- Allow defining icon in page schemes options
- Change default session durations to 2
- Load only video metadata in thumbnails
- Add preview size to dimensionless images
- Add `AbstractController::forward()` to forward requests to other controllers
- Move authentication logic to `User`
- Add `Page::save()` method
- Add `Field::isReadonly()`
- Add `InvalidValueException` to handle exceptions in model setters
**Security**
- **Add `Sanitizer` class to sanitize Markdown and SVG output**
## [2.0.0-beta.1](https://github.com/getformwork/formwork/releases/tag/2.0.0-beta.1)
As the upcoming version 2.0.0 is a major release and the code has been extensively rewritten (~ 900 commits), here are listed only the most notable changes (the list may not be exhaustive and could change):
**Breaking Changes**
- **PHP version requirement raised to >= 8.2**
- **Application architecture rewritten for version 2.0, `Formwork` class has been replaced with `App` class, which is the app container**
- **Config, content and templates folder moved to sites/**
- **admin folder, route and even `Admin/*` classes renamed to panel or `Panel/*`**
- Classes from admin/ moved to formwork/src/Panel
- Rewritten logic between schemes, fields and pages
- Rewritten `Page`, `Site` and related classes
- camelCase is now enforced in all keys and PascalCase in class name now is consistent
- HTTP related classes moved to `Formwork\Http` namespace and now are services handled by the container
- Rewritten `Router` class
**Enhancements**
- **Improved Administration Panel with a better page editing experience**
- **Added file info views and thumbnails options to display files in the panel**
- **New Statistics and Backup views**
- **Improved Panel UI on mobile devices**
- **Added debug option to get stack traces during developement**
- **Added `serve` command to test Formwork even without a webserver**
- **Added informative errors during bootstrap**
- Fields now have their own methods defined in formwork/fields
- Fields now support dynamic variables by suffixing properties with `@`
- Added `AbstractCollection` and `Collection` classes to better handle data
- Added `Constraint` class to check data
- Added `Interpolator` class
- Added improved image-related class in the namespace `Formwork\Image` with a better image transformation API and support for reading color profiles and EXIF metadata
- Transformed images are now cached
- Added `Debug` and `CodeDumper` classes
**Security**
- **Added `content.safeMode` system option** (enabled by default) to escape HTML in Markdown content
- **Fields in the Panel are now accurately escaped**
- Escaped page titles and tags in default templates
## [1.13.0](https://github.com/getformwork/formwork/releases/tag/1.13.0) - [0.6.9](https://github.com/getformwork/formwork/releases/tag/0.6.9)
➡️ Read previous [CHANGELOG.md](https://github.com/getformwork/formwork/blob/1.x/CHANGELOG.md) on the `1.x` branch.