tagify
tagify copied to clipboard
Consider changing whitelist and blacklist usage for allowlist and denylist
The words blacklist and whitelist could be replaced for more inclusive ones, like allowlist or denylist (useful reading).
Some frameworks and libraries have already implemented this, for example:
chromedriver: https://github.com/SeleniumHQ/selenium/pull/11409drupal: https://www.drupal.org/project/drupal/issues/3470895 (commit)
Chromedriver followed a soft deprecation approach, adding the new options, and showing those in the documentation. The old names are no longer documented but still accepted in the code, so as not to break existing integrations.
This could be implemented in two phases:
- Add the new options, document them in favor of the old ones and map the old option to the new ones in the code. Optionally trigger a deprecation message somehow.
- Remove the old options permanently. I guess this can only happen on a big version jump, so backwards compatibility is not broken.
I will ponder over this