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

BREAKING: Remove unstable Deno.emit and Deno.formatDiagnostics APIs #14463

Merged
merged 8 commits into from
May 17, 2022

Conversation

bartlomieju
Copy link
Member

Closes #14461

@bartlomieju bartlomieju changed the title Remove unstable Deno.emit and Deno.formatDiagnostics APIs BREAKING: Remove unstable Deno.emit and Deno.formatDiagnostics APIs May 3, 2022
Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

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

LGTM

@kitsonk
Copy link
Contributor

kitsonk commented May 3, 2022

I strongly believe we shouldnt remove it until we have an alternative upgrade path. Removing it on a whim us irresponsible and not a sane plan.

Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

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

LGTM

Unfortunately after almost a year of planning we've still been unable to provide a userland version of this. We need to not stagnate on stuff like this - this is a small API used by a small number of projects. Removing it will force development of https://github.com/denoland/deno_emit

This is an unstable API - there was never a promise of continuity.

@ry ry merged commit f57aac7 into denoland:main May 17, 2022
@bartlomieju bartlomieju deleted the remove_deno_emit branch May 17, 2022 17:54
@jsejcksn
Copy link
Contributor

this is a small API used by a small number of projects

@ry I'm not arguing anything about the decision in this PR, but that comment seems rather nearsighted:

Some APIs are simply not designed for widespread use, and the projects which do use them can have quite massive downstream influence in the ecosystem/community, and so changes to such APIs can actually be very disruptive because of dependency impact. I think it would be beneficial to rethink using that as a metric for future decision-making.

@dsherret
Copy link
Member

@jsejcksn IMO that's a bad decision for those projects to depend on unstable APIs in a runtime. The situation is better for them now because they can depend on a versioned API that isn't linked to the runtime at https://github.com/denoland/deno_emit

@jsejcksn
Copy link
Contributor

jsejcksn commented May 19, 2022

IMO that's a bad decision for those projects to depend on unstable APIs in a runtime

@dsherret I agree with that, and nothing in my comment was specifically about emit or unstable APIs: rather it was just about factors to consider when making any breaking changes. When considering a "small number of projects", one must consider not just direct dependents but all dependents of dependents recursively, which might be very different than the former.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move Deno.emit to deno.land/x
5 participants