At first I was furious and a bit depressed and that's when I said enough is enough, I will never let anyone else in a position over me, I'm done being an employee, I will never be let go ever again.
A year later I was working insane hours as a freelancer, just learning the ropes with enough pay to get by on. Fast forward to year 3 and I am a consultant making more than I did at the ecommerce company. I am my own boss. I can fire my clients instead of the other way around. Pay is great, hours are insanely good - I work just a couple of hours per week with occasional bursts of power sessions exceeding 3-4 hours. I get to spend most of my time with my kid.
The downside is having to always have business lined up but I have been fortunate to never really have any downtime. I'm slowly building out my marketing channels and once everything is in place I can pick and choose really carefully who I work with. Oh, and if I want a raise I just increase my weekly retainer.