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

[Snyk] Upgrade @biomejs/biome from 1.7.2 to 1.7.3 #228

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

DeltaV93
Copy link
Member

This PR was automatically created by Snyk using the credentials of a real user.


![snyk-top-banner](https://github.com/andygongea/OWASP-Benchmark/assets/818805/c518c423-16fe-447e-b67f-ad5a49b5d123)

Snyk has created this PR to upgrade @biomejs/biome from 1.7.2 to 1.7.3.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 3 versions ahead of your current version.

  • The recommended version was released on a month ago.

Release notes
Package name: @biomejs/biome
  • 1.7.3 - 2024-05-06

    CLI

    Bug fixes

    • The stdin-file-path option now works correctly for Astro/Svelte/Vue files (#2686)

      Fix #2225 where lint output become empty for Vue files.

      Contributed by @ tasshi-me

    • biome migrate eslint now correctly resolve @ scope/eslint-config (#2705). Contributed by @ Conaclos

    Linter

    New features

    Bug fixes

    • noBlankTarget no longer hangs when applying a code fix (#2675).

      Previously, the following code made Biome hangs when applying a code fix.

      <a href="https://example.com" rel="" target="_blank"></a>

      Contributed by @ Conaclos

    • noRedeclare no longer panics on conditional type (#2659).

      This is a regression introduced by #2394.
      This regression makes noRedeclare panics on every conditional types with infer bindings.

      Contributed by @ Conaclos

    • noUnusedLabels and noConfusingLabels now ignore svelte reactive statements (#2571).

      The rules now ignore reactive Svelte blocks in Svelte components.

      <script>
      $: { /* reactive block */ }
      </script>

      Contributed by @ Conaclos

    • useExportType no longer removes leading comments (#2685).

      Previously, useExportType removed leading comments when it factorized the type qualifier.
      It now provides a code fix that preserves the leading comments:

      - export {
      + export type {
          /**leading comment*/
      -   type T
      +   T
        }

      Contributed by @ Conaclos

    • useJsxKeyInIterable no longer reports false positive when iterating on non-jsx items (#2590).

      The following snipet of code no longer triggers the rule:

      <>{data.reduce((total, next) => total + next, 0)}</>

      Contributed by @ dyc3

    • Fix typo by renaming useConsistentBuiltinInstatiation to useConsistentBuiltinInstantiation
      Contributed by @ minht11

    What's Changed

    Other changes

    New Contributors

    Full Changelog: cli/v1.7.2...cli/v1.7.3

  • 1.7.3-nightly.d74b584 - 2024-05-09
  • 1.7.3-nightly.af70ac2 - 2024-05-23
  • 1.7.2 - 2024-04-30

    Analyzer

    Bug fixes

    • Import sorting now ignores side effect imports (#817).

      A side effect import consists now in its own group.
      This ensures that side effect imports are not reordered.

      Here is an example of how imports are now sorted:

        import "z"
      - import { D } from "d";
        import { C } from "c";
      + import { D } from "d";
        import "y"
        import "x"
      - import { B } from "b";
        import { A } from "a";
      + import { B } from "b";
        import "w"

      Contributed by @ Conaclos

    • Import sorting now adds spaces where needed (#1665)
      Contributed by @ Conaclos

    CLI

    Bug fixes

    • biome migrate eslint now handles cyclic references.

      Some plugins and configurations export objects with cyclic references.
      This causes biome migrate eslint to fail or ignore them.
      These edge cases are now handled correctly.

      Contributed by @ Conaclos

    Formatter

    Bug fixes

    • Correctly handle placement of comments inside named import clauses. #2566. Contributed by @ ah-yu

    Linter

    New features

    Bug fixes

    • noDuplicateJsonKeys no longer crashes when a JSON file contains an unterminated string (#2357).
      Contributed by @ Conaclos

    • noRedeclare now reports redeclarations of parameters in a functions body (#2394).

      The rule was unable to detect redeclarations of a parameter or type parameter in the function body.
      The following two redeclarations are now reported:

      function f<T>(a) {
        type T = number; // redeclaration
        const a = 0; // redeclaration
      }

      Contributed by @ Conaclos

    • noRedeclare no longer reports overloads in object types (#2608).

      The rule no longer report redeclarations in the following code:

      type Overloads = {
        ({ a }: { a: number }): number,
        ({ a }: { a: string }): string,
      };

      Contributed by @ Conaclos

    • noRedeclare now merge default function export declarations and types (#2372).

      The following code is no longer reported as a redeclaration:

      interface Foo {}
      export default function Foo() {}

      Contributed by @ Conaclos

    • noUndeclaredVariables no longer reports variable-only and type-only exports (#2637).
      Contributed by @ Conaclos

    • [noUnusedVariables] no longer crash Biome when encountering a malformed conditional type (#1695).
      Contributed by @ Conaclos

    • useConst now ignores a variable that is read before its assignment.

      Previously, the rule reported the following example:

      let x;
      x; // read
      x = 0; // write

      It is now correctly ignored.

      Contributed by @ Conaclos

    • useShorthandFunctionType now suggests correct code fixes when parentheses are required (#2595).

      Previously, the rule didn't add parentheses when they were needed.
      It now adds parentheses when the function signature is inside an array, a union, or an intersection.

      - type Union = { (): number } | string;
      + type Union = (() => number) | string;

      Contributed by @ Conaclos

    • useTemplate now correctly escapes strings (#2580).

      Previously, the rule didn't correctly escape characters preceded by an escaped character.

      Contributed by @ Conaclos

    • noMisplacedAssertion now allow these matchers

      • expect.any()
      • expect.anything()
      • expect.closeTo
      • expect.arrayContaining
      • expect.objectContaining
      • expect.stringContaining
      • expect.stringMatching
      • expect.extend
      • expect.addEqualityTesters
      • expect.addSnapshotSerializer

      Contributed by @ fujiyamaorange

    Parser

    Bug fixes

    • The language parsers no longer panic on unterminated strings followed by a newline and a space (#2606, #2410).

      The following example is now parsed without making Biome panics:

      "
       "
      

      Contributed by @ Conaclos

    What's Changed

    Other changes

    New Contributors

    Full Changelog: cli/v1.7.1...cli/v1.7.2

from @biomejs/biome GitHub release notes

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

Snyk has created this PR to upgrade @biomejs/biome from 1.7.2 to 1.7.3.

See this package in npm:
@biomejs/biome

See this project in Snyk:
https://app.snyk.io/org/deltav93/project/53db190c-61d6-4ce0-b72a-c3fd07a47e07?utm_source=github&utm_medium=referral&page=upgrade-pr
Copy link

cloudflare-workers-and-pages bot commented Jun 19, 2024

Deploying tbc-members-core-ui with  Cloudflare Pages  Cloudflare Pages

Latest commit: b945f92
Status: ✅  Deploy successful!
Preview URL: https://a7dca3bf.tbc-members-core-ui.pages.dev
Branch Preview URL: https://snyk-upgrade-4547b5a4b31a1a3.tbc-members-core-ui.pages.dev

View logs

Copy link

netlify bot commented Jun 19, 2024

Deploy Preview for golden-granita-1292b5 ready!

Name Link
🔨 Latest commit b945f92
🔍 Latest deploy log https://app.netlify.com/sites/golden-granita-1292b5/deploys/667316188252ba0008812782
😎 Deploy Preview https://deploy-preview-228--golden-granita-1292b5.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 87 (🟢 up 10 from production)
Accessibility: 97 (no change from production)
Best Practices: 92 (no change from production)
SEO: 75 (no change from production)
PWA: -
View the detailed breakdown and full score reports

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

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.

🐛 --apply / --write broken for vue files on stdin
2 participants