-
Notifications
You must be signed in to change notification settings - Fork 42
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
Propose new dependency structure for 2.0 #247
Comments
Although it seems nicer, I'm not sure it's worth changing so drastically at this point because of the amount of work it would require to change the code using the output. I think we should mostly only make changes to the output that do stuff like adding more detail (ex. imports) or fixing the output for bugs. |
There is at least one piece of info that the current structure is missing for seemingly no reason, the relative specifier text associated with a Although I used the json for illustration, it's really the rust API that's been frustrating me. How open are we to making rust changes and preserving the json in |
Very open. We should discuss major changes before doing them so I appreciate this issue. Also, we should do each change slowly one at a time.
Yeah, I noticed that one, but I'm not sure how important it is to know about for people and the information is somewhat there by using the range against the original text. Is it useful to be able to key on the specifier in this case? Maybe it should just go on the imports like in your other PR?
Agree. I think that should be available regardless of whether it succeeds or not. Also, we should probably remove the
Agree. I had previously opened #133 about this. What do you think about making these changes one PR at a time and without breaking Btw, I did a PR in a rush last week to fix a regression and stored the specifier text in the range without thinking. I guess it does give a bit more resolution though... anyway, I am reverting most of it in #249. |
|
The current
Dependency
definition incurs an extra layer of depth to support an uncommon case like// @deno-types
, we can flatten it with these types:This module gets the following serializations:
Currently
Proposed
cc @dsherret
The text was updated successfully, but these errors were encountered: