AC/DC 5V converter for project - Looking to shrink my project

I would choose these encapsulated versions: