Skip to content

Commit 74ea1a8

Browse files
committed
Release 2.2.0
1 parent ebe147c commit 74ea1a8

15 files changed

Lines changed: 89 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,47 @@
11
# Changelog
22

3+
# [2.2.0](https://github.com/getformwork/formwork/releases/tag/2.2.0)
4+
5+
**Enhancements**
6+
- **Add support for taxonomies**
7+
- **Add the possibility to define item field options in the array fields**
8+
- **Add the possibility to define field layout tabs**
9+
- **Add Greek and Turkish translations (🤖 AI generated, reviews are welcome)**
10+
- Add the possibility to specify field layout section order in page schemes
11+
- Add the possibility to set markdown editor placeholder and disabled state
12+
- Add the possibility to pass asset metadata
13+
- Normalize data structure by removing dots when merging defaults and frontmatter
14+
- Improve performance traversing the page ancestors instead of the entire page subtree
15+
- Improve sorting based on a second array with `Arr::sort()`
16+
- Add the possibility to delete pages in place from the panel tree
17+
- Add the possibility to save and create a new page in the panel
18+
- Add the possibility to duplicate pages from the panel
19+
- Add the possibility to select route alias destinations with page field in the panel
20+
- Add the possibility to define route params constraints with `Route::where()`
21+
- Add `PageCollection::havingTaxonomy()` to filter pages by taxonomy
22+
- Add `AbstractCollection::keyBy()`
23+
- Add `AbstractCollection::each()`
24+
- Add icons to panel navigation
25+
- Build panel app as modules and use async imports for chunk splitting
26+
- Allow loading scripts as module in the panel with asset meta `module`
27+
- Remove markdown editor layout shift and add loading animation
28+
- Add loading animations to statistics charts
29+
- Display canonical route in the page editor as in other views
30+
31+
**Security**
32+
- Use `innerHTML` only if needed and on escaped input
33+
34+
**Bug fixes**
35+
- Fix page handling of fields with dot notation in the frontmatter
36+
- Fix page setters and default values handling
37+
- Fix URL-encoded strings in request input keys
38+
- Remove propagation of site description metadata to all pages
39+
- Fix color input initalization without default value
40+
- Avoid PHP 8.5 deprecations
41+
42+
**Deprecations**
43+
- Deprecate `allowTags` option in page schemes
44+
345
# [2.1.5](https://github.com/getformwork/formwork/releases/tag/2.1.5)
446

547
**Bug fixes**

formwork/fields/array.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
/**
2424
* Return whether the field allows empty values
25+
*
26+
* @since 2.2.0
2527
*/
2628
'allowEmptyValues' => function (Field $field): bool {
2729
return $field->is('allowEmptyValues', false);
@@ -52,6 +54,8 @@
5254

5355
/**
5456
* Return the fields for each item in the array
57+
*
58+
* @since 2.2.0
5559
*/
5660
'items' => function (Field $field, array $default = []) use ($fieldFactory): FieldCollection {
5761
$fields = new FieldCollection();

formwork/src/Assets/Asset.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ public function toBase64(): string
110110

111111
/**
112112
* Get asset metadata value by key
113+
*
114+
* @since 2.2.0
113115
*/
114116
public function getMeta(string $key, mixed $default = null): mixed
115117
{

formwork/src/Assets/Assets.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ public function add(string $key, array $meta = []): void
4747

4848
/**
4949
* Return whether the collection has an asset with the given key
50+
*
51+
* @since 2.2.0
5052
*/
5153
public function has(string $key): bool
5254
{

formwork/src/Cms/App.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ final class App
4949
/**
5050
* Current Formwork version
5151
*/
52-
public const string VERSION = '2.1.5';
52+
public const string VERSION = '2.2.0';
5353

5454
/**
5555
* App services container

formwork/src/Data/AbstractCollection.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,8 @@ public function limit(int $length): static
316316

317317
/**
318318
* Run a callback for each item in the collection. If the callback returns `false`, iteration is stopped
319+
*
320+
* @since 2.2.0
319321
*/
320322
public function each(callable $callback): static
321323
{
@@ -508,6 +510,8 @@ public function groupBy(string $key, mixed $default = null): array
508510

509511
/**
510512
* Return a copy of the collection indexed by the given key from each item
513+
*
514+
* @since 2.2.0
511515
*/
512516
public function keyBy(string $key, mixed $default = null): static
513517
{

formwork/src/Fields/Layout/Layout.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ public function sections(): SectionCollection
4848

4949
/**
5050
* Get layout tabs
51+
*
52+
* @since 2.2.0
5153
*/
5254
public function tabs(): TabCollection
5355
{

formwork/src/Fields/Layout/Section.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function is(string $key, bool $default = false): bool
3939
}
4040

4141
/**
42-
* Get field label
42+
* Get section label
4343
*/
4444
public function label(): ?string
4545
{
@@ -48,6 +48,8 @@ public function label(): ?string
4848

4949
/**
5050
* Get section order
51+
*
52+
* @since 2.2.0
5153
*/
5254
public function order(): int
5355
{

formwork/src/Fields/Layout/Tab.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
use Formwork\Data\Traits\DataGetter;
88
use Formwork\Fields\Translations\Translations;
99

10+
/**
11+
* @since 2.3.0
12+
*/
1013
class Tab implements Arrayable
1114
{
1215
use DataGetter;

formwork/src/Http/Request.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,8 @@ protected function getForwardedDirective(string $name): array
513513
/**
514514
* Prepare data keys by decoding URL-encoded characters
515515
*
516+
* @since 2.2.0
517+
*
516518
* @param array<mixed> $data
517519
*
518520
* @return array<mixed>

0 commit comments

Comments
 (0)