AlexRogalskiy / code-formats

🔣 Styled Code Formats API
https://styled-code-formats.vercel.app
GNU General Public License v3.0
5 stars 1 forks source link

:arrow_up: Updates gradient-string to v3 #1041

Open renovate[bot] opened 2 months ago

renovate[bot] commented 2 months ago

This PR contains the following updates:

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

Release Notes

bokub/gradient-string (gradient-string) ### [`v3.0.0`](https://redirect.github.com/bokub/gradient-string/releases/tag/3.0.0) [Compare Source](https://redirect.github.com/bokub/gradient-string/compare/2.0.2...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 #### :warning: 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 ```diff - 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. ```diff // 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!'); ``` ```diff // 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!'); ``` ```diff // 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!'); ``` ### [`v2.0.2`](https://redirect.github.com/bokub/gradient-string/releases/tag/2.0.2) [Compare Source](https://redirect.github.com/bokub/gradient-string/compare/2.0.1...2.0.2) - Upgrade dependencies to patch security issues ### [`v2.0.1`](https://redirect.github.com/bokub/gradient-string/releases/tag/2.0.1) [Compare Source](https://redirect.github.com/bokub/gradient-string/compare/2.0.0...2.0.1) - Upgrade dependencies to patch security issues ### [`v2.0.0`](https://redirect.github.com/bokub/gradient-string/releases/tag/2.0.0) [Compare Source](https://redirect.github.com/bokub/gradient-string/compare/1.2.0...2.0.0) - **gradient-string** now needs Node.js >=10. For older versions, please keep using version `1.2.0` - Updated dependencies, especially chalk, which [massively improves performance ](https://redirect.github.com/chalk/chalk/pull/337), and brings a better color detection.

Configuration

📅 Schedule: Branch creation - "after 10pm every weekday,before 5am every weekday,every weekend" in timezone Europe/Moscow, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



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

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
styled-code-formats ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 28, 2024 5:55am
github-actions[bot] commented 2 months ago

Thanks for opening an issue! Make sure you've followed CONTRIBUTING.md.

github-actions[bot] commented 2 months ago

Hello from PR Helper

Is your PR ready for review and processing? Mark the PR ready by including #pr-ready in a comment.

If you still have work to do, even after marking this ready. Put the PR on hold by including #pr-onhold in a comment.

github-actions[bot] commented 2 months ago

Thanks for the PR!

This section of the codebase is owner by https://github.com/AlexRogalskiy/ - if they write a comment saying "LGTM" then it will be merged.

socket-security[bot] commented 2 months ago

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@typescript-eslint/eslint-plugin@5.62.0 Transitive: environment, filesystem +34 6.74 MB jameshenry
npm/@typescript-eslint/parser@5.62.0 Transitive: environment, filesystem +23 1.91 MB jameshenry
npm/eslint-config-prettier@8.10.0 None 0 19.9 kB lydell
npm/eslint-plugin-jest@27.9.0 filesystem Transitive: environment +30 3.28 MB simenb
npm/eslint@8.57.1 environment, filesystem Transitive: eval, shell, unsafe +63 11 MB eslintbot
npm/gradient-string@3.0.0 None +1 62.5 kB bokub

🚮 Removed packages: npm/@types/lunr@2.3.3, npm/@typescript-eslint/eslint-plugin@4.15.1, npm/@typescript-eslint/parser@4.15.1, npm/eslint-config-prettier@6.15.0, npm/eslint-plugin-jest@23.20.0, npm/eslint@7.20.0, npm/gradient-string@1.2.0

View full report↗︎