Heat oil in a large heavy saucepan over medium. Add onions and salt; cover and cook 30 minutes or until caramelized. Add honey, pepper, thyme, and cranberries; cook, uncovered, 30 minutes or until cranberries break down and mixture is syrupy.
Remove pan from heat; discard thyme sprigs. Stir in vinegar.