Update dependency rector/rector to v1 #13
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "renovate/rector-rector-1.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
^0.19
->^1.0
Release Notes
rectorphp/rector (rector/rector)
v1.1.1
: Released Rector 1.1.1Compare Source
[Performance] Fix huge performance hit by reverting children class detection (#5995) - fixes https://github.com/rectorphp/rector/issues/8679, https://github.com/rectorphp/rector/issues/8638, https://github.com/rectorphp/rector/issues/8637
New Rules
New Features and DX improvements 🥳
withPhpPolyfills()
method to add polyfill rules (#5981) https://github.com/rectorphp/rector-src/pull/5983Bugfixes 🐛
Removed and Deprecated 💀
v1.1.0
: Released Rector 1.1.0Compare Source
New Features 🥳
Bugfixes 🐛
v1.0.5
: Released Rector 1.0.5Compare Source
New Features 🥳
Bugfixes 🐛
v1.0.4
: Released Rector 1.0.4Compare Source
New Features and Changes 🥳
0dd1a43904
)576198cf70
)rector
test suite tophpunit.xml
orphpunit.xml.dist
(#5717), Thanks @ghostwriter!ef333de3d5
)Bugfixes 🐛
fd9e17209b
)f32dff3ddb
)cae06912ed
)e3e741edd3
)Removed 💀
v1.0.3
: Released Rector 1.0.3Compare Source
New Features and Improvements 🥳
ChildDoctrineRepositoryClassTypeRector
(#5695)Bugfixes 🐛
v1.0.2
: Released Rector 1.0.2Compare Source
New Features and changes 🥳
Bugfixes 🐛
v1.0.1
: Released Rector 1.0.1Compare Source
New Features 🥳
Bugfixes 🐛
5edb023974
)Removed 💀
v1.0.0
: Released Rector 1.0.0 🎉🎉🎉Compare Source
The stable Rector version is here. It was about time and we've done all planned changes by the end of 2023.
What could be better time and place to release a stable Rector than live on stage during talk 🎉
While this release brings stable API, it will be easier to stay up to date as well. The 1.x versioning behaves as expected with
composer update
(compared to special 0.x).Our main focus is on improving developers experience. This release brings new features that help with custom rules writing, adding Rector to CI and adding Rector to any legacy project in general.
Some features are partially available in previous version, but we'd like to highligh them because since 1.0 you can use them all together.
Zen Config with Autocomplete
If you run Rector for the first time, it will create a
rector.php
config with your project paths for you. In past we used various class constants references to add commonly used rule sets. This required knowledge about these classes and was often missed.We've changed this to work with single configuration class. It provides autocomplete for available sets, including attributes:
PHP Sets Automated
To keep up to date with you PHP, now you can use single method:
It learns about PHP version from your
composer.json
and will always keep sync with your required PHP version. No need to double checkrector.php
configuration anymore.Streamline Integration to Projects
We're also adding 2 experimental methods, that make Rector integration to new projects easier. Before, you could run whole type declaration or read code set, see 1000 changed files and rather close it being overwhelmed. Instead, we want to take it slow, as we do with our custom upgrades as well:
Now you can improve your code base one rule at a time. The rules are sorted from the easiest to integrate, e.g. add
void
to closure, to more complex one. That way you can improve your code base in your own pace. We're collecting feedback on rule order, so the levels will likely change.New and Improved Commands
Call the command, type the rule name and rule, its test and composer autoload is generated for you. So you can focus on the contents of
refactor()
method.The command handles generic setup for you and then guides you to register needed access.
Configuration
📅 Schedule: Branch creation - "before 7am" (UTC), Automerge - "before 7am" (UTC).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.
⚠️ Artifact update problem
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
The artifact failure details are included below:
File name: composer.lock
c45c858ab1
to694d723fdf
694d723fdf
to9349b4f2a4