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

fix: add warning for invalid unstable feature use in deno.json/jsonc #24120

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

HasanAlrimawi
Copy link

@HasanAlrimawi HasanAlrimawi commented Jun 6, 2024

Added warning message when using invalid unstable feature within deno.json or deno.jsonc

The commit is made to address issue #21987 .

Code changes

A) Added logic to compare the used unstable features within deno.json with the supported/valid unstable features to decide to whether warn or not.
_P.S: The Supported features were retrieved from (UNSTABLE_GRANULAR_FLAGS) within deno/runtime/lib.rs and the rest of the flags (bare-node-builtins, byonm, sloppy-imports) by refering to the link_

B) Added test to make sure the issue is solved compeletely. Test: deno\tests\specs\task\invalid_unstable_feature

@littledivy

@CLAassistant
Copy link

CLAassistant commented Jun 6, 2024

CLA assistant check
All committers have signed the CLA.

cli/args/mod.rs Outdated Show resolved Hide resolved
@HasanAlrimawi
Copy link
Author

Hello @dsherret ,
Could you please review changes and trigger the checks whenever you have some free time?
Thanks.

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.

None yet

3 participants