Migration to v21

Migration guide to PrimeNG v21.

PrimeNG v21 represents a major advancement in PrimeTek's product vision. Key highlights of this release include:

Notes

  • The internal packages @primeuix/styles and @primeuix/themes should be version 2.0.2 or higher. These packages are updated automatically with a fresh install. If you encounter any issues with visuals or animations, please verify that you are using the correct versions of these packages.

Beginning with PrimeNG v20, PrimeTek adopted a no-breaking-change policy for incremental major version updates. PrimeNG v21 maintains this policy with one exception: due to the deprecation of Angular's animations package in Angular v20.2, we have migrated to native CSS-based animations. Consequently, the showTransitionOptions and hideTransitionOptions properties that belong to the animations api are deprecated in v21 and no longer functional. v21 will not cause an error as the properties still exist, however your customizations will be ignored. If you currently use these properties for animation customization, please refer to the new animations documentation for the updated approach.

Other than this case, v21 should be a drop-in replacement. If you face with any issues during upgrade, please report an issue using at GitHub.

The following items are marked as deprecated.

APIDeprecated SinceReplacementRemovalStatus
showTransitionOptionsv21Native CSS animatonsv22deprecated
hideTransitionOptionsv21Native CSS animatonsv22deprecated
Directive PT attribute names e.g. ptInputTextv21PT suffix at the end e.g. pInputTextPTv22deprecated
contextMenuSelectionModev21"joint" mode will be removed in favor of the "separate". Applies to Tree, TreeTable and Table.v22deprecated

This version contains no API removals. For a list of APIs scheduled for removal in v22, refer to the v20 deprecations section.

Theme Designer
Theme Designer is the ultimate tool to customize and design your own themes featuring a visual editor, figma to theme code, cloud storage, and migration assistant.