Re:Node Modules at War: Why CommonJS and ES Modules Can’t Ge...
by cel1ne on Thursday August 06, 2020 @10:23AM
(#24071123)
Version the API and switch to Java-time everywhere. Or forward everything to another class.
[ Parent
| on HN ]
Re:Node Modules at War: Why CommonJS and ES Modules Can’t Ge...
by Macha on Thursday August 06, 2020 @10:52AM
(#24071421)
Unless you're going to duplicate the logic too, you're still going to have the facade class providing the legacy Joda API that also needs to use the new types to forward onto the new API.
That class doing that transformation will need to refer to both the Joda and java.time class.