Follow-up to #3070521 Provide option to enable javascript deprecation warnings

Created on 19 September 2019, almost 5 years ago
Updated 24 July 2024, about 2 months ago

Problem/Motivation

Javascript functions and properties can now be deprecated, which triggers a warning in the console.
#3070521: Trigger deprecation notifications on JavaScript deprecations to notify developers that deprecated code is being used β†’

By default, these warnings are suppressed, and can be enabled by overriding the suppressDeprecationWarnings setting.

Developers do not have an easy, clear option to enable the warnings similar to the "Logging and Events" page for php warnings and errors, and may not be aware these warnings can be enabled.

Proposed resolution

Decide on the best way to make javascript deprecation warnings more visible to developers, and how to toggle the deprecation warnings.

For example:

  1. Connect the suppressDeprecationWarnings to some other existing setting, such as whether PHP assertions are on
  2. Provide a module to override the setting
  3. Connect to an existing config option, such as system.logging.error_level
  4. Create a new config page (or option on existing page) for javascript warnings only

Remaining tasks

  1. Decide on approach

API changes

Release notes snippet

✨ Feature request
Status

Closed: outdated

Version

11.0 πŸ”₯

Component
JavascriptΒ  β†’

Last updated 1 day ago

Created by

πŸ‡ΊπŸ‡ΈUnited States zrpnr UTC-7

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡³πŸ‡ΏNew Zealand quietone New Zealand

    According to #5 this has been addressed and there has been no discussion in 5 years to indicate otherwise. Therefore, closing as outdated. If that is wrong, add a comment and set the status to active.

Production build 0.71.5 2024