Skip to content

Commit 5a5dcd6

Browse files
committed
minor #2706 docs: remove oldest versionadded (smnandre)
This PR was merged into the 2.x branch. Discussion ---------- docs: remove oldest versionadded | Q | A | ------------- | --- | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Docs? | yes | Issues | Fix #... | License | MIT A while back, I removed the oldest `@versionadded` annotations—`@weaverryan` reminded me of this in #2699. This PR repeats that cleanup by dropping any `@versionadded` tags that are more than two years old. Commits ------- 6fad96d docs: remove oldest versionadded
2 parents 819f66e + 6fad96d commit 5a5dcd6

File tree

2 files changed

+0
-49
lines changed

2 files changed

+0
-49
lines changed

src/Autocomplete/doc/index.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -418,10 +418,6 @@ likely need to create your own :ref:`custom autocomplete endpoint <custom-autoco
418418
Customizing the AJAX URL/Route
419419
------------------------------
420420

421-
.. versionadded:: 2.7
422-
423-
The ability to specify the route was added in Twig Components 2.7.
424-
425421
The default route for the Ajax calls used by the Autocomplete component is ``/autocomplete/{alias}/``.
426422
Sometimes it may be useful to customize this URL - e.g. so that the URL lives
427423
under a specific firewall.

src/LiveComponent/doc/index.rst

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -409,10 +409,6 @@ If you're building a form (:ref:`more on forms later <forms>`),
409409
instead of adding ``data-model`` to every field, you can instead
410410
rely on the ``name`` attribute.
411411

412-
.. versionadded:: 2.3
413-
414-
The ``data-model`` attribute on the ``form`` is required since version 2.3.
415-
416412
To activate this, you must add a ``data-model`` attribute to
417413
the ``<form>`` element:
418414

@@ -551,10 +547,6 @@ changed, added or removed::
551547
Checkboxes, Select Elements Radios & Arrays
552548
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
553549

554-
.. versionadded:: 2.8
555-
556-
The ability to use checkboxes to set boolean values was added in LiveComponent 2.8.
557-
558550
Checkboxes can be used to set a boolean or an array of strings::
559551

560552
#[AsLiveComponent]
@@ -608,10 +600,6 @@ single value or an array of values::
608600
LiveProp Date Formats
609601
~~~~~~~~~~~~~~~~~~~~~
610602

611-
.. versionadded:: 2.8
612-
613-
The ``format`` option was introduced in Live Components 2.8.
614-
615603
If you have a writable ``LiveProp`` that is some sort of ``DateTime`` instance,
616604
you can control the format of the model on the frontend with the ``format``
617605
option::
@@ -719,10 +707,6 @@ make this work:
719707
Hydrating with the Serializer
720708
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
721709

722-
.. versionadded:: 2.8
723-
724-
The ``useSerializerForHydration`` option was added in LiveComponent 2.8.
725-
726710
To hydrate/dehydrate through Symfony's serializer, use the ``useSerializerForHydration``
727711
option::
728712

@@ -1011,10 +995,6 @@ changes until loading has taken longer than a certain amount of time:
1011995
Targeting Loading for a Specific Action
1012996
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1013997

1014-
.. versionadded:: 2.5
1015-
1016-
The ``action()`` modifier was introduced in Live Components 2.5.
1017-
1018998
To only toggle the loading behavior when a specific action is triggered,
1019999
use the ``action()`` modifier with the name of the action - e.g. ``saveForm()``:
10201000

@@ -1028,10 +1008,6 @@ use the ``action()`` modifier with the name of the action - e.g. ``saveForm()``:
10281008
Targeting Loading When a Specific Model Changes
10291009
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10301010

1031-
.. versionadded:: 2.5
1032-
1033-
The ``model()`` modifier was introduced in Live Components 2.5.
1034-
10351011
You can also toggle the loading behavior only if a specific model value
10361012
was just changed using the ``model()`` modifier:
10371013

@@ -1899,10 +1875,6 @@ When the user clicks ``removeComment()``, a similar process happens.
18991875
Using LiveCollectionType
19001876
~~~~~~~~~~~~~~~~~~~~~~~~
19011877

1902-
.. versionadded:: 2.2
1903-
1904-
The ``LiveCollectionType`` and the ``LiveCollectionTrait`` was added in LiveComponent 2.2.
1905-
19061878
The ``LiveCollectionType`` uses the same method described above, but in
19071879
a generic way, so it needs even less code. This form type adds an 'Add'
19081880
and a 'Delete' button for each row by default, which work out of the box
@@ -2699,10 +2671,6 @@ validated. To validate it, you have to set up a `PostMount hook`_::
26992671
Communication Between Components: Emitting Events
27002672
-------------------------------------------------
27012673

2702-
.. versionadded:: 2.8
2703-
2704-
The ability to emit events was added in Live Components 2.8.
2705-
27062674
Events allow you to communicate between any two components that live
27072675
on your page.
27082676

@@ -2977,11 +2945,6 @@ Suppose the user updates the ``listName`` model and the parent component
29772945
re-renders. In this case, the child component will *not* re-render by design:
29782946
each component lives in its own universe.
29792947

2980-
.. versionadded:: 2.8
2981-
2982-
The ``updateFromParent`` option was added in Live Components 2.8. Previously,
2983-
a child would re-render when *any* props passed into it changed.
2984-
29852948
However, if the user adds a *new* todo item then we *do* want the ``TodoFooter``
29862949
child component to re-render: using the new ``count`` value. To trigger this,
29872950
in the ``TodoFooter`` component, add the ``updateFromParent`` option::
@@ -3498,10 +3461,6 @@ When a component re-renders, the new HTML is "morphed" onto the existing
34983461
elements on the page. For example, if the re-render includes a new ``class``
34993462
on an existing element, that class will be added to that element.
35003463

3501-
.. versionadded:: 2.8
3502-
3503-
The smart re-render algorithm was introduced in LiveComponent 2.8.
3504-
35053464
The rendering system is also smart enough to know when an element was changed
35063465
by something *outside* of the LiveComponents system: e.g. some JavaScript
35073466
that added a class to an element. In this case, the class will be preserved
@@ -3576,10 +3535,6 @@ In this case, any changes to the ``<select>`` element attributes will still be
35763535
Define another route for your Component
35773536
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
35783537

3579-
.. versionadded:: 2.7
3580-
3581-
The ``route`` option was added in LiveComponents 2.7.
3582-
35833538
The default route for live components is ``/components/{_live_component}/{_live_action}``.
35843539
Sometimes it may be useful to customize this URL - e.g. so that the component lives
35853540
under a specific firewall.

0 commit comments

Comments
 (0)