Minecraft wiki entry for Development_versions, associated text: Revamped the trading system, for each villager type.
An experience bar shows the player the villager's level and how many trades are available.
Players now receive a discount from villager trades while they have the Hero of the Village status effect.