Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependency version resolution. #10

Merged
merged 7 commits into from
May 10, 2018
Merged

Dependency version resolution. #10

merged 7 commits into from
May 10, 2018

Conversation

mbostock
Copy link
Member

Fixes #9.

Fixes #9. This commit allows the resolver to be asynchronous, and changes the
default resolver to resolve the version of dependencies by loading the
package.json from unpkg. The package.json is also used to resolve the exact
version and file of a requested module such that equivalent requests (such as
for d3-array and d3-array@1) are coalesced.
@mbostock mbostock changed the title [wip] Dependency version resolution. Dependency version resolution. May 10, 2018
@mbostock mbostock requested a review from jashkenas May 10, 2018 20:31
@mbostock
Copy link
Member Author

Renamed resolve to require.resolve. That way, we can continue to support the (deprecated) synchronous resolve in the notebook-stdlib. Look good, @jashkenas?

Copy link
Contributor

@jashkenas jashkenas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I love it.

@mbostock mbostock merged commit 90f763c into master May 10, 2018
@mbostock mbostock deleted the resolution branch May 10, 2018 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants