yarnpkg / berry

📦🐈 Active development trunk for Yarn ⚒
https://yarnpkg.com
BSD 2-Clause "Simplified" License
7.37k stars 1.1k forks source link

[Feature] Replace `whitelist` with an inclusive term like `allowlist` #4134

Open trivikr opened 2 years ago

trivikr commented 2 years ago

Describe the user story

The yarn configuration options uses a non-inclusive term whitelist in unsafeHttpWhitelist which was introduced in https://github.com/yarnpkg/berry/pull/416

The term whitelist is amongst the tier 1 non-inclusive words

The underlying assumption of the whitelist/blacklist metaphor is that white = good and black = bad. In the case of whitelist/blacklist, the terms originate in the publishing industry – one dominated by the USA and England, two countries which participated in slavery and which grapple with their racist legacies to this day.

Describe the solution you'd like

Deprecate unsafeHttpWhitelist in favor of inclusive term like unsafeHttpAllowlist

Describe the drawbacks of your solution

N/A

Describe alternatives you've considered

Continue to use unsafeHttpWhitelist in yarn configuration.

trivikr commented 2 years ago

Prior attempt in https://github.com/yarnpkg/berry/issues/2002