I was around in the first dot-com boom/bust, and do understand it could happen again, but I'm less pessimistic that things would crash again as hard and as fast. From an IT perspective, there's simply more technology powering more people's lives and businesses than there was 10-12 years ago. Mobile computing, cheap computers, widespread internet have all made "the web" far more entrenched and important to all collapse at the same time. The support/demand for all the IT jobs is too broad across too many sectors.
Doesn't mean demand won't fluctuate or slow down or reverse, but not likely all at once within just a few months.
Gentle plug: http://indieconf.com is an upcoming conference to help freelancers learn about and deal with these sorts of issues - self-employment, boom/bust cycles, pricing, legal, etc. :)
I'm guessing that in the past, one can run a successful and profitable "web-design" business easily as there aren't too many software like Drupal, Wordpress, phpBB, and the customers aren't necessarily "educated" in the sense that they could google these software and learn or hire some high-school kids cheaply out there.
Ditto with custom software like PoS, accounting software, CRM, etc. These days people would go with Salesforce, NetSuite, MS Dynamics, and the like.
Consultants have to become more specialized and there is a lifespan for those niches as the companies behind those software would like to increase their profits as "agile" as possible. This is definitely tougher on the consultants.
You're right that adaptation is key too. 15 years ago, I was writing desktop VB apps on the client-side and Perl scripts on the server-side. Now I'm writing HTML5 apps on the client-side and JavaScript nearly everywhere. 15 years from now, I wonder if I'll still be using JavaScript at all?
I find it surprising that the technology is gaining more traction for consultants (as opposed for the hot up-n-coming silicon valley startups).
Mind to share the type of clients that are looking for your services in this area?