Skip to content

Commit 4b64aeb

Browse files
authored
chore: 1.7 upgrade guide (+1.4, 1.5 & 1.6) (#451)
1 parent fa1f9cb commit 4b64aeb

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

docs/extend/update-1_x.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,45 @@ If you need help applying these changes or using new features, please start a di
66

77
:::
88

9+
## 1.7
10+
11+
### Frontend
12+
13+
- Frontend extenders similar to the backend have been added, we highly recommend using them instead of the old method (https://docs.flarum.org/extend/models#adding-new-models-1), (https://docs.flarum.org/extend/routes#frontend-routes).
14+
- There is a new tag selection component (https://github.com/flarum/framework/blob/360a2ba1d886df3fc6d326be932c5431ee9df8cf/extensions/tags/js/src/common/components/TagSelectionModal.tsx).
15+
16+
### Backend
17+
18+
- Support for php 8.2, deprecations are still thrown by some packages, the testing workflow has been updated to ignore deprecations on 8.2
19+
- The `/api` endpoint now contains the actor as an included relationship.
20+
- The `Model::dateAttribute($attribute)` extender is deprecated, use `Model::cast($attribute, 'datetime')` instead.
21+
22+
### Tooling
23+
24+
- New `phpstan` package to run static code analysis on your extensions for code safety (https://docs.flarum.org/extend/static-code-analysis).
25+
- New `jest-config` package to run frontend unit and component tests (https://docs.flarum.org/extend/testing).
26+
27+
## 1.6 Changes
28+
29+
### Backend
30+
31+
- Added customizable session drivers through the `Session` extender.
32+
33+
## 1.5 Changes
34+
35+
### Frontend
36+
37+
- More portions of the frontend are now written in TypeScript, providing a better extension development experience.
38+
- Modals can be used in stacks, allowing for multiple modals to be open at once. This is useful for modals that open other modals: `app.modal.show(ModalComponent, { attrs }, true)`.
39+
40+
### Backend
41+
42+
- There is a new `createTableIfNotExists` migration helper, which can be used to create tables only if they don't already exist.
43+
44+
## 1.4 Changes
45+
46+
No developer-facing changes were made in Flarum v1.4.
47+
948
## 1.3 Changes
1049

1150
Flarum v1.3 included mostly QoL improvements. Below are listed note worthy changes for extension developers:

0 commit comments

Comments
 (0)