Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^3.0.3
->^4.0.0
Release Notes
lukeed/kleur
v4.1.5
Compare Source
Patches
Node16
TypeScript module resolution (#57):06f28e0
Thank you @calebeby~!
process.env
with fallback (#54):ec20016
For browser/vite support. Thank you @farnabaz~!
v4.1.4
Compare Source
Chores
Replace
includes()
usage withindexOf
to allow support for older browsers (#45):86a7db8
No behavioral differences. Simply allows
kleur
to run in old browsers (eg, IE8-11) without requiring a polyfill.Thank you @Krinkle~!
Update benchmarks to reflect
includes
->indexOf
update:19764d4
v4.1.3
Compare Source
Patches
process.stdout
check for browser-like polyfills (#42):01963cc
Bundlers like
parcel
,webpack
, andbrowserify
polyfillprocess
but don't include astdout
implementation.Thank you @tinchoz49~!
v4.1.2
Compare Source
Patches
NO_COLOR
disables colorization if any value is received (#38, #39, #40, #41):ef5d4a8
,b329629
Now properly adheres to the
NO_COLOR
spec.Thank you @stramel and @chocolateboy~!
Chores
FORCE_COLOR=
works as expected (#41):b329629
Much like
NO_COLOR
, use ofFORCE_COLOR=
is expected to be truthy.v4.1.1
Compare Source
Patches
kleur/colors
type definitions can be resolved:06923d0
,cc66a6f
v4.1.0
Compare Source
Features
NO_COLOR
standard (#37):d839af7
Thank you @stramel~! 🎉
Chores
16bc034
v4.0.3
Compare Source
Patches
Ensure
process
is defined before settingprocess
-based values (#36):303e502
This allows for
kleur
to be imported into browsers without any bundle-shimming.v4.0.2
Compare Source
Patches
Disable colorization if inside a TTY context (#33):
5c7353f
Thank you @ai~!
Before:
After:
OVERRIDE:
Chores
5c7353f
3a6a272
,3b3742a
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 returnednull
, 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
[email protected]
or ignore the "engines" constraint of[email protected]
– its CommonJS files will still execute in a Node 6.x environment.Features
Added native ESM support with
exports
map (for Node 12.18.x, Node 14+) (#30):2da16a9
Thank you @kristoferbaxter~!
Added
module
package entry (for bundler and PikaCDN) (#31):2da16a9
Added new
kleur/colors
entry module:049c080
These changes allow for
import
statements withkleur
.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 thekleur
code you use.If you're not ready to use ESM yet,
require
statements still work for both modules in all environments.Chores
f0b5da4
,88f9f72
c8
for code coverage:06e3ba4
kleur/colors
tests:f39b294
46cc8d8
,61d0d58
,049c080
e2291ef
,9f09249
,840d3c0
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - 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.
This PR has been generated by Mend Renovate. View repository job log here.