It'd be much easier to use the same library with different sidechains that support different features, since it affects serialization and signing capabilities.
See XRPLF/xrpl.js#2692 for the equivalent xrpl.js issue (and the progress made over there)