BIP38 is a standard process to encrypt Bitcoin and crypto currency private keys that is less susceptible to brute force attacks thus protecting the user.
Yes. If you want to retain compatibility with your code, you can continue to use 1.x. 2.x changed. See https://github.com/bitcoinjs/bip38#api If you have anymore questions, feel free to ask us.
My code stopped working, did the API change? Could you make clear how to use the library now?
I get:
TypeError: Bip38 is not a function