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

refactor(cli): runtime compiler APIs consolidated to Deno.emit() #8799

Merged
merged 5 commits into from
Dec 31, 2020

Conversation

kitsonk
Copy link
Contributor

@kitsonk kitsonk commented Dec 17, 2020

Closes: #4752

This is a breaking change that replaces the unstable Deno.compile(), Deno.bundle(), and Deno.transpileOnly() APIs with a single API, Deno.emit() which behaves more in line with the way deno run, deno cache, and deno bundle work, where there is a check option which determines if the program is checked or not. In addition, the Deno.emit() API supports import maps, which the previous APIs did not. (It should be noted, that Deno does not transform any paths with an import map, so any consumers of the emitted code would need to be able to leverage the same resolutions as the import map).

@kitsonk kitsonk added the breaking change a change or feature that breaks existing semantics label Dec 17, 2020
@kitsonk kitsonk added this to the 1.7.0 milestone Dec 17, 2020
Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

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

LGTM, I have only a few minor comments.

I'm strongly in favor of this change, but wouldn't mind a bit more of bike-shedding on the API name.

cli/dts/lib.deno.unstable.d.ts Outdated Show resolved Hide resolved
cli/dts/lib.deno.unstable.d.ts Outdated Show resolved Hide resolved
cli/module_graph.rs Show resolved Hide resolved
cli/ops/runtime_compiler.rs Outdated Show resolved Hide resolved
@kitsonk
Copy link
Contributor Author

kitsonk commented Dec 31, 2020

but wouldn't mind a bit more of bike-shedding on the API name

Like what? It isn't bike-shedding if there isn't a suggestion.

@kitsonk kitsonk mentioned this pull request Dec 31, 2020
22 tasks
@bartlomieju
Copy link
Member

but wouldn't mind a bit more of bike-shedding on the API name

Like what? It isn't bike-shedding if there isn't a suggestion.

Alright, I retract my words, I can't come up with a better name for this API. LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change a change or feature that breaks existing semantics
2 participants