Skip to content

Conversation

HasanAlrimawi
Copy link
Contributor

@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.

@HasanAlrimawi
Copy link
Contributor Author

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

@HasanAlrimawi
Copy link
Contributor Author

Hello @dsherret ,
Just another kind reminder if you could review the latest changes of this PR?

@dsherret dsherret added this to the 1.45 milestone Jul 4, 2024
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. Thanks!

@dsherret dsherret enabled auto-merge (squash) July 9, 2024 01:31
@dsherret dsherret merged commit c3b168f into denoland:main Jul 9, 2024
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.

4 participants