You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
Should this not require a major version number increase, given that it is a breaking change, no longer supporting versions of node lower than 8.0? This is causing issues for us now since we're on Node 6.10
The reason will be displayed to describe this comment to others. Learn more.
I know this is late to the game - but is there any documentation about why this change was made? Most of the tools that use source-map did not update to 0.7 because this was a major breaking API change that is difficult/impossible for people to pull in without having to do their own breaking API change (babel is still on 0.5 because they would need to make their entire API async to land this as one example).
Looking at the actual change I can't immediately see any benefits of making this async - I'm sure there were reasons for it but it would be good to have some documentation about it somewhere.
The reason will be displayed to describe this comment to others. Learn more.
@loganfsmyth Ah ok, makes complete sense - just looking at this commit in isolation made it seem unrelated, but if it's related to the WASM change that seems right. Thanks for the response.
f0e7420
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this not require a major version number increase, given that it is a breaking change, no longer supporting versions of node lower than 8.0? This is causing issues for us now since we're on Node 6.10
f0e7420
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It did. Below 1.0, a 0.X bump is considered a breaking change.
f0e7420
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know this is late to the game - but is there any documentation about why this change was made? Most of the tools that use source-map did not update to 0.7 because this was a major breaking API change that is difficult/impossible for people to pull in without having to do their own breaking API change (babel is still on 0.5 because they would need to make their entire API async to land this as one example).
Looking at the actual change I can't immediately see any benefits of making this async - I'm sure there were reasons for it but it would be good to have some documentation about it somewhere.
f0e7420
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Best to continue this in #331 if you'd like, but the short answer is that this module now uses WASM, and loading WASM synchronously is mostly a no-go.
f0e7420
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@loganfsmyth Ah ok, makes complete sense - just looking at this commit in isolation made it seem unrelated, but if it's related to the WASM change that seems right. Thanks for the response.