Prepare the Cranberries: Rinse fresh cranberries under cold running water and remove any bruised, shriveled, or damaged berries. Frozen cranberries can be used directly without thawing.
Dissolve the Sugar: Combine sugar and water or fruit juice in a medium saucepan over medium heat. Stir occasionally until the sugar dissolves and the mixture comes to a boil.
Add Cranberries and Flavorings: Stir in the cranberries, orange zest, cinnamon, and a pinch of salt until evenly combined.
Simmer the Sauce: Reduce the heat and simmer for 10 to 15 minutes, stirring occasionally, until most cranberries burst and the sauce thickens.
Finish and Cool: Remove from heat and stir in vanilla extract, if using. Let the sauce cool for 20 to 30 minutes, then refrigerate for at least 2 hours before serving.