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

Remove validation check for deprecation until #83

Merged
merged 1 commit into from
Jan 27, 2021

Conversation

pzuraq
Copy link
Contributor

@pzuraq pzuraq commented Jan 27, 2021

This transform currently verifies that deprecate() has a meta object
with id and until. This info is helpful, but there are potential
cases where the until may not be known, but we still want this
stripping functionality.

For instance, we're planning on adding deprecate to Glimmer VM. We
still want the VM to be able to strip out these deprecate calls, but
the VM ultimately isn't responsible for determining the major versions
when the feature will be removed - that's up to the host environment.
The plan is to have the host environment add until dynamically.

I believe id is the only bit of metadata that is universal, so I
decided to keep it.d

This transform currently verifies that `deprecate()` has a meta object
with `id` and `until`. This info is helpful, but there are potential
cases where the `until` may not be known, but we still want this
stripping functionality.

For instance, we're planning on adding `deprecate` to Glimmer VM. We
still want the VM to be able to strip out these `deprecate` calls, but
the VM ultimately isn't responsible for determining the major versions
when the feature will be removed - that's up to the host environment.
The plan is to have the host environment add `until` dynamically.

I believe `id` is the only bit of metadata that is universal, so I
decided to keep it.d
@rwjblue rwjblue merged commit 9fab34a into master Jan 27, 2021
@rwjblue rwjblue deleted the remove-validation-check-for-until branch January 27, 2021 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants