Skip to content

Update dependency kleur to v4#130

Closed
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/kleur-4.x
Closed

Update dependency kleur to v4#130
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/kleur-4.x

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Jun 17, 2020

This PR contains the following updates:

Package Type Update Change
kleur dependencies major ^3.0.3 -> ^4.0.0

Release Notes

lukeed/kleur

v4.1.3

Compare Source

Patches

  • Add existence process.stdout check for browser-like polyfills (#​42): 01963cc
    Bundlers like parcel, webpack, and browserify polyfill process but don't include a stdout implementation.
    Thank you @​tinchoz49~!

v4.1.2

Compare Source

Patches

Chores

  • Adds tests to ensure FORCE_COLOR= works as expected (#​41): b329629
    Much like NO_COLOR, use of FORCE_COLOR= is expected to be truthy.

v4.1.1

Compare Source

Patches

  • (types): Ensure kleur/colors type definitions can be resolved: 06923d0, cc66a6f

v4.1.0

Compare Source

Features

Chores

v4.0.3

Compare Source

Patches

  • Ensure process is defined before setting process-based values (#​36): 303e502
    This allows for kleur to be imported into browsers without any bundle-shimming.

    NOTE: ANSI code support varies between browsers, but typically colors and background-colors work (never modifiers).

v4.0.2

Compare Source

Patches

Before:

$ npx app.js > log.txt
#=> The `log.txt` filled with ANSI codes 

After:

$ npx app.js > log.txt
#=> The `log.txt` is plain text

OVERRIDE:

$ FORCE_COLOR=1 npx app.js > log.txt
#=> The `log.txt` filled with ANSI codes; as requested
```

Chores

  • Add bash tests for ENV detection: 5c7353f
  • Update README with TTY explainer and example: 3a6a272, 3b3742a
  • Update test runner version: 5fd93ba

v4.0.1

Compare Source

Patches

  • Revert to Node 6.x minimum support: 8c01d93
    The code works perfectly in that environment, so there's no reason not to.
    Truth be told, it was only bumped to 10.x because of the test runner constraint.

  • (types) fix kleur/colors overloaded definition: f2f33a8
    Original print order assumed that every export returned null, which is not true.

v4.0.0

Compare Source

Breaking

The minimum Node.js runtime increased from 6.x to 10.x since 10.x is the oldest active LTS version.
If you need to continue supporting Node 6.x, either continue using kleur@3.x or ignore the "engines" constraint of kleur@4.x – its CommonJS files will still execute in a Node 6.x environment.

Features

These changes allow for import statements with kleur.
It's done in a way such that Node.js environments that natively support import will work. For those that don't and are using webpack/Rollup, the "module" entry is made available so that you can still take advantage of the ESM format.

We took this idea one step further with kleur/colors – which individually exports each color, modifier, and background function. This allows you to import only the methods you need, and the unused pieces of code are detached from your code. In other words, kleur/colors is 100% treeshakeable, which is a big advantage of the ESM format. Node.js (with native ESM support), Rollup, and webpack benefit from this, which means that your programs only include/load the kleur code you use.

If you're not ready to use ESM yet, require statements still work for both modules in all environments.

See the Individual Colors documentation for more info

import kleur from 'kleur';
import * as colors from 'kleur/colors';

console.log(
  kleur.underline().green('kleur natively supports ESM~!')
);

console.log(
  colors.white(colors.italic(`... so does "${ colors.green('kleur/colors') }"~!`))
);

Chores


Renovate configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻️ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by WhiteSource Renovate. View repository job log here.

@renovate renovate bot requested review from apfelbox and keichinger as code owners June 17, 2020 11:35
@keichinger keichinger closed this Nov 16, 2020
@keichinger keichinger deleted the branch master November 16, 2020 10:16
@renovate
Copy link
Contributor Author

renovate bot commented Nov 16, 2020

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 4.x releases. But if you manually upgrade to 4.x then Renovate will re-enable minor and patch updates automatically.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

@renovate renovate bot deleted the renovate/kleur-4.x branch November 16, 2020 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants