Battery technology changes won't cause your ebike to become obsolete, cause they will offer spare parts... If your bike manufacturer goes out of business, they you have to find someone willing to rebuild the old one.. more of a challenge.
The way around all this is to buy and build an ebike...