Skip to content

fix(deps): update dependency gradient-string to v3#141

Merged
twlite merged 1 commit intomainfrom
renovate/gradient-string-3.x
May 16, 2025
Merged

fix(deps): update dependency gradient-string to v3#141
twlite merged 1 commit intomainfrom
renovate/gradient-string-3.x

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented May 16, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
gradient-string ^2.0.2 -> ^3.0.0 age adoption passing confidence

Release Notes

bokub/gradient-string (gradient-string)

v3.0.0

Compare Source

  • gradient-string v3 is now written in TypeScript & pure ESM
  • All dependencies are up-to-date, all security issues patched
  • New super-fast unit tests made with Vitest
  • Improved documentation

⚠️ v2 to v3 migration

Breaking changes
  • gradient-string requires Node.js 14+ (instead of 10 before)
  • You cannot require gradient-string anymore, you have to import it
    - const gradient = require('gradient-string');
    + import gradient, { rainbow } from 'gradient-string';
Deprecated

The following recommendations are not breaking changes, but you should migrate your code to avoid problems in the future.
N.B You may see @deprecated warnings or TypeScript errors/warnings if you decide not to.

// Don't use aliases like this
- import gradient from 'gradient-string';
- gradient.rainbow('Hello, World!');

// Import aliases separately instead
+ import { rainbow } from 'gradient-string';
+ rainbow('Hello, World!');
// Don't separate your colors in different arguments
- const coolGradient = gradient('red', 'blue')('Hello, World!');

// Use an array instead
+ const coolGradient = gradient(['red', 'blue'])('Hello, World!');
// Don't pass your options when you call your already initialized gradient
- const coolGradient = gradient(['red', 'blue'])
- coolGradient('Hello, World!', { interpolation: 'hsv' }); // Options were needed here
// Pass your options directly when you initialize it
+ const coolGradient = gradient(['red', 'blue'], { interpolation: 'hsv' }) // Pass them here
+ coolGradient('Hello, World!');

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.


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

This PR was generated by Mend Renovate. View the repository job log.

@twlite twlite merged commit a1987c1 into main May 16, 2025
@netlify
Copy link

netlify bot commented May 16, 2025

Deploy Preview for commandkit ready!

Name Link
🔨 Latest commit 6c25ac9
🔍 Latest deploy log https://app.netlify.com/projects/commandkit/deploys/682712f0b4ce930008091dcf
😎 Deploy Preview https://deploy-preview-141--commandkit.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@renovate renovate bot deleted the renovate/gradient-string-3.x branch May 16, 2025 10:38
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.

1 participant