AlexRogalskiy / charts

📊 Styled Charts API
https://styled-charts.vercel.app/
GNU General Public License v3.0
1 stars 0 forks source link

:arrow_up: Updates gradient-string to v3 #1101

Open renovate[bot] opened 1 month ago

renovate[bot] commented 1 month ago

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
gradient-string ^2.0.1 -> ^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!'); ```

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.

github-actions[bot] commented 1 month ago

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

github-actions[bot] commented 1 month 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 1 month 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 1 month ago

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

Package New capabilities Transitives Size Publisher
npm/@tilt.dev/tilt-inspector@0.1.6 Transitive: environment, eval, filesystem, network, shell, unsafe +437 133 MB nicks

🚮 Removed packages: npm/formidable@2.1.2, npm/git-cz@4.9.0, npm/gradient-string@2.0.2, npm/husky@8.0.3, npm/if-env@1.0.4, npm/isomorphic-unfetch@3.1.0, npm/jest-canvas-mock@2.5.2, npm/jest-circus@28.1.3, npm/jest@28.1.3, npm/jsdom@20.0.3, npm/jsonlint@1.6.3, npm/license-checker@25.0.1, npm/lodash.clonedeep@4.5.0, npm/lodash.isequal@4.5.0, npm/markdown-link-check@3.12.2, npm/nodemon@2.0.22, npm/onchange@7.1.0, npm/opener@1.5.2, npm/plotly.js-dist@2.35.2, npm/plotly.js-geo-dist@2.35.2, npm/prettier@2.8.8, npm/pretty-quick@3.3.1, npm/randomcolor@0.6.2, npm/remark-cli@10.0.1, npm/remark-lint-code-block-style@3.1.2, npm/remark-lint-ordered-list-marker-value@3.1.2, npm/remark-preset-davidtheclark@0.12.0, npm/remark-validate-links@11.0.2, npm/semantic-release@19.0.5, npm/ts-jest@28.0.8, npm/ts-node@10.9.2, npm/typedoc@0.22.18, npm/typescript@4.9.5, npm/validate-commit-msg@2.14.0

View full report↗︎

socket-security[bot] commented 1 month ago

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSourceCI
Critical CVE npm/loader-utils@1.2.3 ⚠︎
Critical CVE npm/shell-quote@1.7.2 ⚠︎

View full report↗︎

Next steps

What is a critical CVE?

Contains a Critical Common Vulnerability and Exposure (CVE).

Remove or replace dependencies that include known critical CVEs. Consumers can use dependency overrides or npm audit fix --force to remove vulnerable dependencies.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/foo@1.0.0 or ignore all packages with @SocketSecurity ignore-all

  • @SocketSecurity ignore npm/loader-utils@1.2.3
  • @SocketSecurity ignore npm/shell-quote@1.7.2