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(unstable): remove --compat mode #15678

Merged
merged 8 commits into from
Sep 3, 2022

Conversation

bartlomieju
Copy link
Member

@bartlomieju bartlomieju commented Aug 29, 2022

This commit removes "compat" mode. We shipped support for "npm:" specifier support in v1.25 and that is preferred way to interact with Node code that we will iterate and improve upon. Compat mode adds a loooot of complexity and is ridden with strange bugs.

I'm still not sure about removal of --compat - on one hand removal will break people's CIs, on the other I think it's better to break explicitly than accept this flag which will still break CI.

Effectively all issues below become irrelevant

@bartlomieju
Copy link
Member Author

Raised by @kt3k there's a question of polyfilling child_process.fork. Before merging this PR we need to figure out how to handle that.

@bartlomieju bartlomieju requested a review from dsherret September 1, 2022 14:31
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!

@bartlomieju bartlomieju merged commit e324151 into denoland:main Sep 3, 2022
@bartlomieju bartlomieju deleted the remove_compat_mode branch September 3, 2022 16:19
kt3k pushed a commit that referenced this pull request Sep 9, 2022
This commit removes "compat" mode. We shipped support for "npm:" specifier
support in v1.25 and that is preferred way to interact with Node code that we
will iterate and improve upon.
@kt3k kt3k mentioned this pull request Sep 9, 2022
4 tasks
@jsejcksn
Copy link
Contributor

It looks like the manual wasn't updated in step with this change. Is there any process for coordinating changes and manual updates?

@dsherret
Copy link
Member

dsherret commented Sep 10, 2022

As noted in denoland/manual#388, the manual is being completely rewritten so it's tracked there, but yeah this was missed.

@jsejcksn
Copy link
Contributor

As noted in denoland/manual#388, the manual is being completely rewritten so it's tracked there, but yeah this was missed.

@dsherret Thanks. I'm still interested to know if the rewrite will include some kind of process for coordinating manual updates when changes happen — in order to reduce the likelihood of these misalignments. Is that already the case or not at this time?

@dsherret
Copy link
Member

The current process is to update the manual when making a CLI feature change. As stated, this was just missed (probably because it's unstable).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment