Skip to content

Commit

Permalink
Add v4->v5 upgrade guide to the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mzur committed Oct 11, 2023
1 parent b8a9a4d commit 870a66e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/upgrade-guide.md → docs/upgrade-guide-v3-v4.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Upgrade Guide
# Upgrade Guide v3->v4

There are a few breaking changes between Uniform v3 and v4. Mainly these were introduced to better fit new features and principles of Kirby 3. This guide lists all changes you have to make to your existing Uniform v3 code to make it work with Uniform v4 and Kirby 3.

Expand Down
9 changes: 9 additions & 0 deletions docs/upgrade-guide-v4-v5.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Upgrade Guide v4->v5

There are only the following breaking changes between Uniform v4 and v5:

- Form data is now HTML-escaped by default in the Dump, Email, Log and Webhook actions. Set the new `escapeHtml` option to `false` to disable escaping.

- The `data()` method of the form now HTML-escapes form data by default. Set the new third argument to `false` to disable escaping.

That's it!
3 changes: 2 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ nav:
- AJAX: examples/ajax.md
- Dynamic Fields: examples/dynamic.md
- Answers: answers.md
- 'Upgrade Guide': upgrade-guide.md
- 'Upgrade Guide v4->v5': upgrade-guide-v4-v5.md
- 'Upgrade Guide v3->v4': upgrade-guide-v3-v4.md
theme: readthedocs
markdown_extensions:
- toc:
Expand Down

0 comments on commit 870a66e

Please sign in to comment.