Closed loewenheim closed 3 months ago
lgtm. you still keep the
index
around in some places. does that really make sense to still expose it in some way? if it still exists internally, you might as well keep the APIs around for backwards compatibility.
That's unintentional then, I'll have to take another look.
Can we have this merged/publsihed?
Can we have this merged/publsihed?
Sorry, I lost track of this for a bit. Will give it a once-over and merge it soon.
@Swatinem I just looked over this again; I don't think there's any index
left (in the sense of the field of SourceMap
that orders tokens). Did you mean something else?
Yeah, I also lost context by now. Anyway, I approved the PR back then, so just merge and profit :-)
Thank you!
@kdy1 It's released.
The fact that the tokens in a sourcemap can be arbitrarily ordered causes a substantial amount of complication (we have to keep a sorted index in addition) for no benefit that I've ever seen. Therefore, we now sort tokens upon creation and remove all the
Index
rigmarole. This is a breaking change because it removes some types and functions.