Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 87 additions & 0 deletions UPGRADE-3.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# UPGRADE FROM `2.x` TO `3.0`

Symfony UX follows Symfony's release system. This means that major
versions (like `3.0`) offer the same functionality as their previous minor
versions (like `2.x`), once all deprecations have been removed.

However, major versions may also introduce new features and improvements, and a
bump in the required PHP or packages versions.
Comment on lines +3 to +8
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

noneed to be superfluous:

Suggested change
Symfony UX follows Symfony's release system. This means that major
versions (like `3.0`) offer the same functionality as their previous minor
versions (like `2.x`), once all deprecations have been removed.
However, major versions may also introduce new features and improvements, and a
bump in the required PHP or packages versions.
Symfony UX follows Symfony's release process, 2.x and 3.0 have the same features, but Symfony UX 3.0 doesn't include any deprecated features. To upgrade, make sure to resolve all deprecation notices. Read more about this in the [Symfony documentation](https://symfony.com/doc/6.4/setup/upgrade_major.html#upgrade-major-symfony-deprecations).
However, major versions may also introduce new features and improvements, and a
bump in the required PHP or packages versions.


---

## Table of Contents

* [Requirements](#requirements)
* [UX 3.0](#ux-30)
* [UX 3.x](#ux-3x)
* [Packages](#packages)
* [Twig Component](#twig-component)
* [Removed Packages](#removed-packages)
* [LazyImage (removed)](#lazyimage-removed)
* [Swup (removed)](#swup-removed)
* [TogglePassword (removed)](#togglepassword-removed)
* [Typed (removed)](#typed-removed)
Comment on lines +12 to +23
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not useful, GitHub already generates a ToC


---

## Requirements

### UX 3.0

- Requires PHP `8.1` or higher.
- Requires Symfony `6.4` or higher.
Comment on lines +27 to +32
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be changed to a > [NOTE] like in https://github.com/symfony/symfony/blob/8.0/UPGRADE-8.0.md

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(and we require PHP 8.2)


### UX 3.x

- New features or packages introduced in future `3.x` releases may require
higher versions of PHP (e.g. `8.2`, `8.3`) and/or Symfony (e.g. `7.x`).

[[Back to top]](#table-of-contents)
Comment on lines +34 to +39
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not useful


---

## Packages

### Twig Component
Comment on lines +43 to +45
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's remove headings Packages and Removed Packages

Suggested change
## Packages
### Twig Component
## Twig Component

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(and move Twig Component section before Typed section)


- Install `twig/html-extra` if you are using the `cva` function. You may need
to update the signature of the `cva()` Twig function in your templates to
match the new signature.

[[Back to top]](#table-of-contents)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not useful, GitHub already generates a ToC


---

## Removed Packages

> [!IMPORTANT]
> The packages deprecated in `2.x` and have been removed in `3.0`.
>
> They remain usable in the `2.x` branch, but should be avoided in new projects,
> as they will not be maintained going forward. See below for details.

Comment on lines +55 to +62
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not useful

### LazyImage (removed)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to suffix by (removed), let's stick to the Symfony UPGRADE format 🙏🏻

Suggested change
### LazyImage (removed)
### LazyImage


* Deprecated in `2.x` and **removed in `3.0`**. Use the native `loading="lazy"`
attribute on `<img>` elements instead. See the [previous README](https://raw.githubusercontent.com/symfony/ux/refs/heads/2.x/src/LazyImage/README.md)
for reference.

### Swup (removed)

* Deprecated in `2.x` and **removed in `3.0`**. Use Turbo and CSS-based page
transitions instead. See the [previous README](https://raw.githubusercontent.com/symfony/ux/refs/heads/2.x/src/Swup/README.md)
for reference.

### TogglePassword (removed)

* Deprecated in `2.x` and **removed in `3.0`**. Use a custom user-land
implementation instead. See the [previous README](https://raw.githubusercontent.com/symfony/ux/refs/heads/2.x/src/TogglePassword/README.md)
for reference.

### Typed (removed)

* Deprecated in `2.x` and **removed in `3.0`**. Use a custom user-land
implementation instead. See the [previous README](https://raw.githubusercontent.com/symfony/ux/refs/heads/2.x/src/Typed/README.md)
for reference.

[[Back to top]](#table-of-contents)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not useful

Loading