Skip to content

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented Sep 1, 2025

In the past we had to export factory functions due to limitations in ViewEngine. These changes remove those factories since Ivy doesn't have the same limitations.

Removes factory functions that we had marked as deprecated for v21. These functions aren't necessary since we switched to standalone.

BREAKING CHANGE:
* `LIVE_ANNOUNCER_ELEMENT_TOKEN_FACTORY` has been removed.
* `TREE_KEY_MANAGER_FACTORY` has been removed.
* `TREE_KEY_MANAGER_FACTORY_PROVIDER` has been removed.
Removes factory functions that we had marked as deprecated for v21. These functions aren't necessary since we switched to standalone.

BREAKING CHANGE:
* `MAT_AUTOCOMPLETE_DEFAULT_OPTIONS_FACTORY` has been removed.
* `MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY` has been removed.
* `MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY_PROVIDER` has been removed.
Removes factory functions that we had marked as deprecated for v21. These functions aren't necessary since we switched to standalone.

BREAKING CHANGE:
* `MAT_FAB_DEFAULT_OPTIONS_FACTORY` has been removed.
Removes factory functions that we had marked as deprecated for v21. These functions aren't necessary since we switched to standalone.

BREAKING CHANGE:
* `MAT_BUTTON_TOGGLE_GROUP_DEFAULT_OPTIONS_FACTORY` has been removed.
Removes factory functions that we had marked as deprecated for v21. These functions aren't necessary since we switched to standalone.

BREAKING CHANGE:
* `MAT_CHECKBOX_DEFAULT_OPTIONS_FACTORY` has been removed.
Removes factory functions that we had marked as deprecated for v21. These functions aren't necessary since we switched to standalone.

BREAKING CHANGE:
* `ICON_REGISTRY_PROVIDER` has been removed.
* `ICON_REGISTRY_PROVIDER_FACTORY` has been removed.
* `MAT_ICON_LOCATION_FACTORY` has been removed.
Removes factory functions that we had marked as deprecated for v21. These functions aren't necessary since we switched to standalone.

BREAKING CHANGE:
* `MAT_MENU_SCROLL_STRATEGY_FACTORY_PROVIDER` has been removed.
Removes factory functions that we had marked as deprecated for v21. These functions aren't necessary since we switched to standalone.

BREAKING CHANGE:
* `MAT_PAGINATOR_INTL_PROVIDER` has been removed.
* `MAT_PAGINATOR_INTL_PROVIDER_FACTORY` has been removed.
Removes factory functions that we had marked as deprecated for v21. These functions aren't necessary since we switched to standalone.

BREAKING CHANGE:
* `MAT_PROGRESS_BAR_LOCATION_FACTORY` has been removed.
Removes factory functions that we had marked as deprecated for v21. These functions aren't necessary since we switched to standalone.

BREAKING CHANGE:
* `MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS_FACTORY` has been removed.
Removes factory functions that we had marked as deprecated for v21. These functions aren't necessary since we switched to standalone.

BREAKING CHANGE:
* `MAT_RADIO_DEFAULT_OPTIONS_FACTORY` has been removed.
Removes factory functions that we had marked as deprecated for v21. These functions aren't necessary since we switched to standalone.

BREAKING CHANGE:
* `MAT_SELECT_SCROLL_STRATEGY_PROVIDER` has been removed.
* `MAT_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY` has been removed.
Removes factory functions that we had marked as deprecated for v21. These functions aren't necessary since we switched to standalone.

BREAKING CHANGE:
* `MAT_DRAWER_DEFAULT_AUTOSIZE_FACTORY` has been removed.
Removes factory functions that we had marked as deprecated for v21. These functions aren't necessary since we switched to standalone.

BREAKING CHANGE:
* `MAT_SNACK_BAR_DEFAULT_OPTIONS_FACTORY` has been removed.
Removes factory functions that we had marked as deprecated for v21. These functions aren't necessary since we switched to standalone.

BREAKING CHANGE:
* `MAT_SORT_HEADER_INTL_PROVIDER` has been removed.
* `MAT_SORT_HEADER_INTL_PROVIDER_FACTORY` has been removed.
Removes factory functions that we had marked as deprecated for v21. These functions aren't necessary since we switched to standalone.

BREAKING CHANGE:
* `MAT_STEPPER_INTL_PROVIDER` has been removed.
* `MAT_STEPPER_INTL_PROVIDER_FACTORY` has been removed.
Removes factory functions that we had marked as deprecated for v21. These functions aren't necessary since we switched to standalone.

BREAKING CHANGE:
* `_MAT_INK_BAR_POSITIONER_FACTORY` has been removed.
Removes factory functions that we had marked as deprecated for v21. These functions aren't necessary since we switched to standalone.

BREAKING CHANGE:
* `MAT_TOOLTIP_DEFAULT_OPTIONS_FACTORY` has been removed.
* `MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY` has been removed.
* `MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER` has been removed.
Removes factory functions that we had marked as deprecated for v21. These functions aren't necessary since we switched to standalone.

BREAKING CHANGE:
* `MAT_LUXON_DATE_ADAPTER_OPTIONS_FACTORY` has been removed.
Removes factory functions that we had marked as deprecated for v21. These functions aren't necessary since we switched to standalone.

BREAKING CHANGE:
* `MAT_MOMENT_DATE_ADAPTER_OPTIONS_FACTORY` has been removed.
Inlines a factory constant that doesn't need to be separate from its token definition.
Removes a couple of providers that aren't necessary anymore after the switch to standalone.
@crisbeto crisbeto force-pushed the remove-deprecated-factories branch from b3c2f1b to 10313d3 Compare September 1, 2025 07:53
@crisbeto crisbeto marked this pull request as ready for review September 1, 2025 08:04
@crisbeto crisbeto requested a review from a team as a code owner September 1, 2025 08:04
@crisbeto crisbeto requested review from adolgachev and ok7sai and removed request for a team September 1, 2025 08:04
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Sep 3, 2025
@crisbeto crisbeto merged commit 1b5f334 into angular:main Sep 3, 2025
33 of 34 checks passed
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Oct 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.