Bpy.utils.previews removed in 2.80?

I can no longer use bpy.utils.previews.new() to load custom icons. What this removed or renamed in 2.80 and what is the alternative?


Edit: Nevermind. For some reason Blender suddenly decided that just importing bpy was not enough anymore.

FYI: You need to import bpy.utils.previews before the call.

I used import bpy for a year now and it worked. But now after a UI rework it stopped working, even on 2.79. No idea why. But I got it working now, so all is good.