@visulima/colorize 1.4.29 → 2.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/README.md +32 -30
- package/dist/gradient.cjs +1 -1
- package/dist/gradient.mjs +1 -1
- package/dist/packem_shared/{GradientBuilder-DjJK22kP.cjs → GradientBuilder-BXOgJeHi.cjs} +1 -2
- package/dist/packem_shared/{GradientBuilder-Ba4Teq6P.mjs → GradientBuilder-DTnSGyYW.mjs} +1 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,38 @@
|
|
|
1
|
+
## @visulima/colorize [2.0.0-alpha.2](https://github.com/visulima/visulima/compare/@visulima/colorize@2.0.0-alpha.1...@visulima/colorize@2.0.0-alpha.2) (2025-12-06)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* add new package image, fixed readme rendering on npm, fixed building of packages ([b790ba2](https://github.com/visulima/visulima/commit/b790ba253ea07fef83528fd822a678facf021b5f))
|
|
6
|
+
|
|
7
|
+
### Miscellaneous Chores
|
|
8
|
+
|
|
9
|
+
* update @anolilab/semantic-release-pnpm and @anolilab/semantic-release-preset to versions 3.2.2 and 12.1.2 across multiple package.json files for improved compatibility ([3921626](https://github.com/visulima/visulima/commit/3921626141fe5da398749bf0ba675f1596f18afb))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Dependencies
|
|
13
|
+
|
|
14
|
+
* **@visulima/is-ansi-color-supported:** upgraded to 3.0.0-alpha.2
|
|
15
|
+
|
|
16
|
+
## @visulima/colorize [2.0.0-alpha.1](https://github.com/visulima/visulima/compare/@visulima/colorize@1.4.29...@visulima/colorize@2.0.0-alpha.1) (2025-12-05)
|
|
17
|
+
|
|
18
|
+
### ⚠ BREAKING CHANGES
|
|
19
|
+
|
|
20
|
+
* change min node version to 22.13
|
|
21
|
+
|
|
22
|
+
### Bug Fixes
|
|
23
|
+
|
|
24
|
+
* update Node.js engine version requirement to >=22.13 in multiple package.json files for improved compatibility ([b828e9a](https://github.com/visulima/visulima/commit/b828e9aeaebfc798eecddccd90e6ec7560c6d36a))
|
|
25
|
+
|
|
26
|
+
### Styles
|
|
27
|
+
|
|
28
|
+
* cs fix ([3ec237b](https://github.com/visulima/visulima/commit/3ec237b85eb4f83801d2c3f73a19e7107778dd5d))
|
|
29
|
+
|
|
30
|
+
### Miscellaneous Chores
|
|
31
|
+
|
|
32
|
+
* moved all packages into groups ([0615e9d](https://github.com/visulima/visulima/commit/0615e9d14a8a886e11da529ce150cf31ca973c10))
|
|
33
|
+
* update dependencies across multiple packages to improve compatibility and performance, including upgrading `@anolilab/semantic-release-pnpm` and `@anolilab/semantic-release-preset` to versions 3.2.0 and 12.1.0 respectively, and updating `react`, `react-dom`, and `next` versions to 19.2.1 and 16.0.7 in various package.json files ([aee8fcd](https://github.com/visulima/visulima/commit/aee8fcd796ae9b8d055903260e7150996ea9f53d))
|
|
34
|
+
* upgrade `vitest` version to 4.0.15 in multiple package.json files and update lockfile for improved compatibility; adjust test cases for ESM package support in tooling tests ([0fba407](https://github.com/visulima/visulima/commit/0fba407e08283ba8c1c9488f99ca1f9ff676c4cf))
|
|
35
|
+
|
|
1
36
|
## @visulima/colorize [1.4.29](https://github.com/visulima/visulima/compare/@visulima/colorize@1.4.28...@visulima/colorize@1.4.29) (2025-11-13)
|
|
2
37
|
|
|
3
38
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -1,20 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
<h3>Visulima Colorize</h3>
|
|
3
|
-
<p>
|
|
4
|
-
Terminal and Console string styling done right, powered by <a href="https://github.com/visulima/visulima/packages/is-ansi-color-supported">@visulima/is-ansi-color-supported</a>.
|
|
1
|
+
<!-- START_PACKAGE_OG_IMAGE_PLACEHOLDER -->
|
|
5
2
|
|
|
6
|
-
|
|
7
|
-
Elevate your terminal experience by effortlessly adding vibrant colors to your output with its clean and straightforward syntax.<br>
|
|
8
|
-
For instance, you can use `green` to make `` green`Hello World!` `` pop, `` red`Error!` `` to signify Errors, or `` black.bgYellow`Warning!` `` to highlight warnings.
|
|
3
|
+
<a href="https://www.anolilab.com/open-source" align="center">
|
|
9
4
|
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
<img src="__assets__/package-og.svg" alt="colorize" />
|
|
6
|
+
|
|
7
|
+
</a>
|
|
8
|
+
|
|
9
|
+
<h3 align="center">Terminal and Console string styling done right.</h3>
|
|
10
|
+
|
|
11
|
+
<!-- END_PACKAGE_OG_IMAGE_PLACEHOLDER -->
|
|
12
12
|
|
|
13
13
|
<br />
|
|
14
14
|
|
|
15
15
|
<div align="center">
|
|
16
16
|
|
|
17
|
-
[![typescript-image]
|
|
17
|
+
[![typescript-image][typescript-badge]][typescript-url]
|
|
18
|
+
[![mit licence][license-badge]][license]
|
|
19
|
+
[![npm downloads][npm-downloads-badge]][npm-downloads]
|
|
20
|
+
[![Chat][chat-badge]][chat]
|
|
21
|
+
[![PRs Welcome][prs-welcome-badge]][prs-welcome]
|
|
18
22
|
|
|
19
23
|
</div>
|
|
20
24
|
|
|
@@ -919,25 +923,23 @@ Gradient:
|
|
|
919
923
|
- [tinygradient](https://github.com/mistic100/tinygradient) - Easily generate color gradients with an unlimited number of color stops and steps.
|
|
920
924
|
- [gradient-string](https://github.com/bokub/gradient-string) - Beautiful color gradients in terminal output
|
|
921
925
|
|
|
926
|
+
## Made with ❤️ at Anolilab
|
|
927
|
+
|
|
928
|
+
This is an open source project and will always remain free to use. If you think it's cool, please star it 🌟. [Anolilab](https://www.anolilab.com/open-source) is a Development and AI Studio. Contact us at [hello@anolilab.com](mailto:hello@anolilab.com) if you need any help with these technologies or just want to say hi!
|
|
929
|
+
|
|
922
930
|
## License
|
|
923
931
|
|
|
924
|
-
The visulima colorize is open-sourced software licensed under the [MIT][license
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
[
|
|
929
|
-
[license
|
|
930
|
-
[
|
|
931
|
-
[npm-
|
|
932
|
-
[
|
|
933
|
-
[
|
|
934
|
-
[
|
|
935
|
-
[
|
|
936
|
-
[
|
|
937
|
-
[
|
|
938
|
-
[ansi-colors]: https://github.com/doowb/ansi-colors
|
|
939
|
-
[kleur]: https://github.com/lukeed/kleur
|
|
940
|
-
[chalk]: https://github.com/chalk/chalk
|
|
941
|
-
[chalk-template]: https://github.com/chalk/chalk-template
|
|
942
|
-
[ansis]: https://github.com/webdiscus/ansis
|
|
943
|
-
[styleText]: https://nodejs.org/api/util.html#utilstyletextformat-text-options
|
|
932
|
+
The visulima colorize is open-sourced software licensed under the [MIT][license]
|
|
933
|
+
|
|
934
|
+
<!-- badges -->
|
|
935
|
+
|
|
936
|
+
[license-badge]: https://img.shields.io/npm/l/@visulima/colorize?style=for-the-badge
|
|
937
|
+
[license]: https://github.com/visulima/visulima/blob/main/LICENSE
|
|
938
|
+
[npm-downloads-badge]: https://img.shields.io/npm/dm/@visulima/colorize?style=for-the-badge
|
|
939
|
+
[npm-downloads]: https://www.npmjs.com/package/@visulima/colorize
|
|
940
|
+
[prs-welcome-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=for-the-badge
|
|
941
|
+
[prs-welcome]: https://github.com/visulima/visulima/blob/main/.github/CONTRIBUTING.md
|
|
942
|
+
[chat-badge]: https://img.shields.io/discord/932323359193186354.svg?style=for-the-badge
|
|
943
|
+
[chat]: https://discord.gg/TtFJY8xkFK
|
|
944
|
+
[typescript-badge]: https://img.shields.io/badge/Typescript-294E80.svg?style=for-the-badge&logo=typescript
|
|
945
|
+
[typescript-url]: https://www.typescriptlang.org/
|
package/dist/gradient.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
4
4
|
|
|
5
5
|
const colorize_server = require('./packem_shared/colorize.server-BA3gZZXz.cjs');
|
|
6
|
-
const GradientBuilder = require('./packem_shared/GradientBuilder-
|
|
6
|
+
const GradientBuilder = require('./packem_shared/GradientBuilder-BXOgJeHi.cjs');
|
|
7
7
|
|
|
8
8
|
const colorize = new colorize_server.Colorize();
|
|
9
9
|
const forbiddenChars = /\s/g;
|
package/dist/gradient.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as Colorize } from './packem_shared/colorize.server-ry9FZNfG.mjs';
|
|
2
|
-
import { GradientBuilder } from './packem_shared/GradientBuilder-
|
|
2
|
+
import { GradientBuilder } from './packem_shared/GradientBuilder-DTnSGyYW.mjs';
|
|
3
3
|
|
|
4
4
|
const colorize = new Colorize();
|
|
5
5
|
const forbiddenChars = /\s/g;
|
|
@@ -431,8 +431,7 @@ class GradientBuilder {
|
|
|
431
431
|
reverse() {
|
|
432
432
|
const stops = [];
|
|
433
433
|
for (const stop of this.stops) {
|
|
434
|
-
const stop_ = { ...stop };
|
|
435
|
-
stop_.position = 1 - stop.position;
|
|
434
|
+
const stop_ = { ...stop, position: 1 - stop.position };
|
|
436
435
|
stops.push(stop_);
|
|
437
436
|
}
|
|
438
437
|
return new GradientBuilder(this.#colorize, stops.reverse());
|
|
@@ -427,8 +427,7 @@ class GradientBuilder {
|
|
|
427
427
|
reverse() {
|
|
428
428
|
const stops = [];
|
|
429
429
|
for (const stop of this.stops) {
|
|
430
|
-
const stop_ = { ...stop };
|
|
431
|
-
stop_.position = 1 - stop.position;
|
|
430
|
+
const stop_ = { ...stop, position: 1 - stop.position };
|
|
432
431
|
stops.push(stop_);
|
|
433
432
|
}
|
|
434
433
|
return new GradientBuilder(this.#colorize, stops.reverse());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visulima/colorize",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-alpha.2",
|
|
4
4
|
"description": "Terminal and Console string styling done right.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"256",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"repository": {
|
|
60
60
|
"type": "git",
|
|
61
61
|
"url": "git+https://github.com/visulima/visulima.git",
|
|
62
|
-
"directory": "packages/colorize"
|
|
62
|
+
"directory": "packages/terminal/colorize"
|
|
63
63
|
},
|
|
64
64
|
"funding": [
|
|
65
65
|
{
|
|
@@ -165,10 +165,10 @@
|
|
|
165
165
|
"LICENSE.md"
|
|
166
166
|
],
|
|
167
167
|
"dependencies": {
|
|
168
|
-
"@visulima/is-ansi-color-supported": "
|
|
168
|
+
"@visulima/is-ansi-color-supported": "3.0.0-alpha.2"
|
|
169
169
|
},
|
|
170
170
|
"engines": {
|
|
171
|
-
"node": ">=
|
|
171
|
+
"node": ">=22.13 <=25.x"
|
|
172
172
|
},
|
|
173
173
|
"os": [
|
|
174
174
|
"darwin",
|