Add all ingredients to a medium saucepan and mix to combine. Bring to a simmer over medium heat. Continue cooking, stirring occasionally, until the cranberries burst and the mixture has thickened, about 15 minutes. Season to taste with salt and sugar, as desired, and let cool completely before serving. The cranberries will continue to thicken as they cool.