Minecraft wiki entry for Development_versions, associated text: Added functionality: it is used to upgrade diamond items into Netherite versions.
It is now the only way to craft netherite gear, as crafting in crafting table was removed.
Enchantments on the diamond item are preserved when upgrading into netherite.