tagify icon indicating copy to clipboard operation
tagify copied to clipboard

Consider changing whitelist and blacklist usage for allowlist and denylist

Open fjgarlin opened this issue 7 months ago • 1 comments

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/11409
  • drupal: 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:

  1. 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.
  2. Remove the old options permanently. I guess this can only happen on a big version jump, so backwards compatibility is not broken.

fjgarlin avatar Jun 06 '25 09:06 fjgarlin

I will ponder over this

yairEO avatar Jun 06 '25 11:06 yairEO