Open
Conversation
Author
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.0Release Notes
lukeed/kleur
v4.1.5Compare Source
Patches
Node16TypeScript module resolution (#57):06f28e0Thank you @calebeby~!
process.envwith fallback (#54):ec20016For browser/vite support. Thank you @farnabaz~!
v4.1.4Compare Source
Chores
Replace
includes()usage withindexOfto allow support for older browsers (#45):86a7db8No behavioral differences. Simply allows
kleurto run in old browsers (eg, IE8-11) without requiring a polyfill.Thank you @Krinkle~!
Update benchmarks to reflect
includes->indexOfupdate:19764d4v4.1.3Compare Source
Patches
process.stdoutcheck for browser-like polyfills (#42):01963ccBundlers like
parcel,webpack, andbrowserifypolyfillprocessbut don't include astdoutimplementation.Thank you @tinchoz49~!
v4.1.2Compare Source
Patches
NO_COLORdisables colorization if any value is received (#38, #39, #40, #41):ef5d4a8,b329629Now properly adheres to the
NO_COLORspec.Thank you @stramel and @chocolateboy~!
Chores
FORCE_COLOR=works as expected (#41):b329629Much like
NO_COLOR, use ofFORCE_COLOR=is expected to be truthy.v4.1.1Compare Source
Patches
kleur/colorstype definitions can be resolved:06923d0,cc66a6fv4.1.0Compare Source
Features
NO_COLORstandard (#37):d839af7Thank you @stramel~! 🎉
Chores
16bc034v4.0.3Compare Source
Patches
Ensure
processis defined before settingprocess-based values (#36):303e502This allows for
kleurto be imported into browsers without any bundle-shimming.v4.0.2Compare Source
Patches
Disable colorization if inside a TTY context (#33):
5c7353fThank you @ai~!
Before:
After:
OVERRIDE:
Chores
5c7353f3a6a272,3b3742a5fd93bav4.0.1Compare Source
Patches
Revert to Node 6.x minimum support:
8c01d93The 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/colorsoverloaded definition:f2f33a8Original
printorder assumed that every export returnednull, which is not true.v4.0.0Compare 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.xor ignore the "engines" constraint ofkleur@4.x– its CommonJS files will still execute in a Node 6.x environment.Features
Added native ESM support with
exportsmap (for Node 12.18.x, Node 14+) (#30):2da16a9Thank you @kristoferbaxter~!
Added
modulepackage entry (for bundler and PikaCDN) (#31):2da16a9Added new
kleur/colorsentry module:049c080These changes allow for
importstatements withkleur.It's done in a way such that Node.js environments that natively support
importwill 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/colorsis 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 thekleurcode you use.If you're not ready to use ESM yet,
requirestatements still work for both modules in all environments.Chores
f0b5da4,88f9f72c8for code coverage:06e3ba4kleur/colorstests:f39b29446cc8d8,61d0d58,049c080e2291ef,9f09249,840d3c0Configuration
📅 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.