Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps-dev): bump gradient-string from 2.0.2 to 3.0.0 #123

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 28, 2024

Bumps gradient-string from 2.0.2 to 3.0.0.

Release notes

Sourced from gradient-string's releases.

3.0.0

  • 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!');
Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Bumps [gradient-string](https://github.com/bokub/gradient-string) from 2.0.2 to 3.0.0.
- [Release notes](https://github.com/bokub/gradient-string/releases)
- [Commits](bokub/gradient-string@2.0.2...3.0.0)

---
updated-dependencies:
- dependency-name: gradient-string
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Oct 28, 2024
@SmallTeddy SmallTeddy merged commit 0312478 into master Nov 26, 2024
1 of 3 checks passed
@SmallTeddy SmallTeddy deleted the dependabot/npm_and_yarn/gradient-string-3.0.0 branch November 26, 2024 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file json
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants