I happened upon a book (not about biology) containing this text:
A life-changing birth occurred on the planet about 190 million years ago [...] the first tiny shrew like creature brought forth an infant and began suckling her young. [...] this furry little mammal embodied a huge leap in biological evolution
The description is nicely dramatic, but it doesn't ring true for me. While I know that evolution likely wasn't as gradual as high school books represent it, the thought that a non-mammal bore a daughter with fully functional mammary glands who actively suckled her young is a bit too much for me to swallow. For other body systems, I have read stories how they emerged gradually, for example the oldest species having a few nerve cells, then new ones having a whole nervous "network" with a few ganglions, before actual brains emerged. Or similarly, worms having a patch of photosensitive cells on the skin evolved into animals with eyes. I know that platypuses have mammary glands without nipples, but presumably even they are already much more sophisticated than the first mammary glands.
So what are proto-mammary glands thought to have been like? Did they evolve de novo especially for feeding babies, or were they maybe repurposed sweat glands or something like that? What are they supposed to have functioned like?