Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exploratory PR for backwards-compatible changes & cross-env alignment: timeFormat #915

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Commits on Nov 3, 2022

  1. Adds timeFormat property, deprecates hideDate and aligns behavior acr…

    …oss browser and Node
    
    * Adds timeFormat option to debug instances, settable as DEBUG_TIME_FORMAT env var
    * Deprecates hideDate option, equated to timeFormat === 'none'
    * Allows timeFormat of choice: none, iso, diff, or localized (taking into account process.env.TZ)
    * Normalizes behavior across browser & Node: all timeFormats are available in both, but the defaults are kept as-is.
    * Deprecates createDebug.humanize and adds createDebug.withTimeFormat helper instead
    webketje committed Nov 3, 2022
    Configuration menu
    Copy the full SHA
    815678e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    28f7b6d View commit details
    Browse the repository at this point in the history
  3. Adds tests for timeFormat property. Demonstrates how debug output can…

    … be tested against both browser & NodeJS envs
    webketje committed Nov 3, 2022
    Configuration menu
    Copy the full SHA
    eedb474 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3e02f72 View commit details
    Browse the repository at this point in the history