1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-11-01 19:07:38 +01:00
unleash.unleash/src/lib/util
renovate[bot] c7498dcac6
chore(deps): update dependency @biomejs/biome to v1.4.0 (#5288)
[![Mend Renovate logo
banner](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@biomejs/biome](https://biomejs.dev)
([source](https://togithub.com/biomejs/biome)) | [`1.3.3` ->
`1.4.0`](https://renovatebot.com/diffs/npm/@biomejs%2fbiome/1.3.3/1.4.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@biomejs%2fbiome/1.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@biomejs%2fbiome/1.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@biomejs%2fbiome/1.3.3/1.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@biomejs%2fbiome/1.3.3/1.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>biomejs/biome (@&#8203;biomejs/biome)</summary>

###
[`v1.4.0`](https://togithub.com/biomejs/biome/blob/HEAD/CHANGELOG.md#140-2023-11-27)

[Compare
Source](af24597c18...889593e3f9)

##### CLI

- Remove the CLI options from the `lsp-proxy`, as they were never meant
to be passed to that command. Contributed by
[@&#8203;ematipico](https://togithub.com/ematipico)

- Add option `--config-path` to `lsp-proxy` and `start` commands. It's
now possible to tell the Daemon server to load `biome.json` from a
custom path. Contributed by
[@&#8203;ematipico](https://togithub.com/ematipico)

- Add new `--diagnostic-level` option to let users control the level of
diagnostics printed by the CLI. Possible values are: `"info"`, `"warn"`,
`"hint"`. Contributed by
[@&#8203;simonxabris](https://togithub.com/simonxabris)

- Add option `--line-feed` to the `format` command. Contributed by
[@&#8203;SuperchupuDev](https://togithub.com/SuperchupuDev)

- Add option `--bracket-same-line` to the `format` command. Contributed
by [@&#8203;faultyserve](https://togithub.com/faultyserve)

- Add option `--bracket-spacing` to the `format` command. Contributed by
[@&#8203;faultyserve](https://togithub.com/faultyserve)

##### Bug fixes

- Fix the command `format`, now it returns a non-zero exit code when if
there pending diffs. Contributed by
[@&#8203;ematipico](https://togithub.com/ematipico)

##### Configuration

- Add option `formatter.lineFeed`. Contributed by
[@&#8203;SuperchupuDev](https://togithub.com/SuperchupuDev)
- Add option `javascript.formatter.bracketSameLine`. Contributed by
[@&#8203;faultyserve](https://togithub.com/faultyserve)
- Add option `javascript.formatter.bracketSpacing`. Contributed by
[@&#8203;faultyserve](https://togithub.com/faultyserve)

##### Formatter

##### New features

- Add a new option
[`--line-ending`](https://biomejs.dev/reference/configuration/#formatterlineending).
This option allows changing the type of line endings. Contributed by
[@&#8203;SuperchupuDev](https://togithub.com/SuperchupuDev)
- Added a new option called `--bracket-spacing` to the formatter. This
option allows you to control whether spaces are inserted around the
brackets of object literals.
[#&#8203;627](https://togithub.com/biomejs/biome/issues/627).
Contributed by [@&#8203;faultyserver](https://togithub.com/faultyserver)
- Added a new option called `--bracket-same-line` to the formatter. This
option allows you to control whether spaces are inserted around the
brackets of object literals.
[#&#8203;627](https://togithub.com/biomejs/biome/issues/627).
Contributed by [@&#8203;faultyserver](https://togithub.com/faultyserver)

##### Bug fixes

- Fix [#&#8203;832](https://togithub.com/biomejs/biome/issues/832), the
formatter no longer keeps an unnecessary trailing comma in type
parameter lists. Contributed by
[@&#8203;Conaclos](https://togithub.com/Conaclos)

- Fix [#&#8203;301](https://togithub.com/biomejs/biome/issues/301), the
formatter should not break before the `in` keyword. Contributed by
[@&#8203;ematipico](https://togithub.com/ematipico)

##### Linter

##### Promoted rules

-
[a11y/noInteractiveElementToNoninteractiveRole](https://biomejs.dev/linter/rules/no-interactive-element-to-noninteractive-role)
-
[complexity/noThisInStatic](https://biomejs.dev/linter/rules/no-this-in-static)
-
[complexity/useArrowFunction](https://biomejs.dev/linter/rules/use-arrow-function)
-
[correctness/noEmptyCharacterClassInRegex](https://biomejs.dev/linter/rules/no-empty-character-class-in-regex)
-
[correctness/noInvalidNewBuiltin](https://biomejs.dev/linter/rules/no-invalid-new-builtin)
-
[style/noUselessElse](https://biomejs.dev/linter/rules/no-useless-else)
-
[style/useAsConstAssertion](https://biomejs.dev/linter/rules/use-as-const-assertion)
-
[style/useShorthandAssign](https://biomejs.dev/linter/rules/use-shorthand-assign)
-
[suspicious/noApproximativeNumericConstant](https://biomejs.dev/linter/rules/no-approximative-numeric-constant)
-
[suspicious/noMisleadingInstantiator](https://biomejs.dev/linter/rules/no-misleading-instantiator)
-
[suspicious/noMisrefactoredShorthandAssign](https://biomejs.dev/linter/rules/no-misrefactored-shorthand-assign)

The following rules are now recommended:

-   [a11y/noAccessKey](https://biomejs.dev/linter/rules/no-access-key)
-
[a11y/useHeadingContent](https://biomejs.dev/linter/rules/use-heading-content)
-
[complexity/useSimpleNumberKeys](https://biomejs.dev/linter/use-simple-number-keys)

The following rules are now deprecated:

-
[correctness/noNewSymbol](https://biomejs.dev/linter/rules/no-new-symbol)
The rule is replaced by
[correctness/noInvalidNewBuiltin](https://biomejs.dev/linter/rules/no-invalid-new-builtin)

##### New features

- Add
[noDefaultExport](https://biomejs.dev/linter/rules/no-default-export)
which disallows `export default`. Contributed by
[@&#8203;Conaclos](https://togithub.com/Conaclos)

- Add
[noAriaHiddenOnFocusable](https://biomejs.dev/linter/rules/no-aria-hidden-on-focusable)
which reports hidden and focusable elements. Contributed by
[@&#8203;vasucp1207](https://togithub.com/vasucp1207)

- Add
[noImplicitAnyLet](https://biomejs.dev/linter/rules/no-implicit-any-let)
that reports variables declared with `let` and without initialization
and type annotation. Contributed by
[@&#8203;TaKO8Ki](https://togithub.com/TaKO8Ki) and
[@&#8203;b4s36t4](https://togithub.com/b4s36t4)

- Add [useAwait](https://biomejs.dev/linter/rules/use-await) that
reports `async` functions that don't use an `await` expression.

- Add
[useValidAriaRole](https://biomejs.dev/linter/rules/use-valid-aria-role).
Contributed by [@&#8203;vasucp1207](https://togithub.com/vasucp1207)

- Add [useRegexLiterals](https://biomejs.dev/linter/use-regex-literals)
that suggests turning call to the regex constructor into regex literals.
COntributed by [@&#8203;Yuiki](https://togithub.com/Yuiki)

##### Enhancements

- Add an unsafe code fix for
[a11y/useAriaActivedescendantWithTabindex](https://biomejs.dev/linter/rules/use-aria-activedescendant-with-tabindex)

##### Bug fixes

- Fix [#&#8203;639](https://togithub.com/biomejs/biome/issues/639) by
ignoring unused TypeScript's mapped key. Contributed by
[@&#8203;Conaclos](https://togithub.com/Conaclos)

- Fix [#&#8203;565](https://togithub.com/biomejs/biome/issues/565) by
handling several `infer` with the same name in extends clauses of
TypeScript's conditional types. Contributed by
[@&#8203;Conaclos](https://togithub.com/Conaclos)

- Fix [#&#8203;653](https://togithub.com/biomejs/biome/issues/653).
[noUnusedImports](https://biomejs.dev/linter/rules/no-unused-imports)
now correctly removes the entire line where the unused `import` is.
Contributed by [@&#8203;Conaclos](https://togithub.com/Conaclos)

- Fix [#&#8203;607](https://togithub.com/biomejs/biome/issues/609)
`useExhaustiveDependencies`, ignore optional chaining, Contributed by
[@&#8203;msdlisper](https://togithub.com/msdlisper)

- Fix [#&#8203;676](https://togithub.com/biomejs/biome/issues/676), by
using the correct node for the `"noreferrer"` when applying the code
action. Contributed by
[@&#8203;ematipico](https://togithub.com/ematipico)

- Fix [#&#8203;455](https://togithub.com/biomejs/biome/issues/455). The
CLI can now print complex emojis to the console correctly.

- Fix [#&#8203;727](https://togithub.com/biomejs/biome/issues/727).
[noInferrableTypes](https://biomejs.dev/linter/rules/no-inferrable-types)
now correctly keeps type annotations when the initialization expression
is `null`. Contributed by
[@&#8203;Conaclos](https://togithub.com/Conaclos)

- Fix [#&#8203;784](https://togithub.com/biomejs/biome/issues/784),
[noSvgWithoutTitle](https://biomejs.dev/linter/rules/no-svg-without-title)
fixes false-positives to `aria-label` and reports svg's role attribute
is implicit. Contributed by
[@&#8203;unvalley](https://togithub.com/unvalley)

- Fix [#&#8203;834](https://togithub.com/biomejs/biome/issues/834) that
made
[noUselessLoneBlockStatements](https://biomejs.dev/linter/rules/no-useless-lone-block-statements)
reports block statements of switch clauses. Contributed by
[@&#8203;vasucp1207](https://togithub.com/vasucp1207)

- Fix [#&#8203;783](https://togithub.com/biomejs/biome/issues/834) that
made
[noUselessLoneBlockStatements](https://biomejs.dev/linter/rules/no-useless-lone-block-statements)
reports block statements of `try-catch` structures. Contributed by
[@&#8203;hougesen](https://togithub.com/hougesen)

- Fix [#&#8203;69](https://togithub.com/biomejs/biome/issues/69) that
made
[correctness/noUnnecessaryContinue](https://biomejs.dev/linter/rules/no-unnecessary-continue)
incorrectly reports a `continue` used to break a switch clause.
Contributed by [@&#8203;TaKO8Ki](https://togithub.com/TaKO8Ki)

- Fix [#&#8203;664](https://togithub.com/biomejs/biome/issues/664) by
improving the diagnostic of
[style/useNamingConvention](https://biomejs.dev/linter/use-naming-convention)
when double capital are detected in strict camel case mode. Contributed
by [@&#8203;vasucp1207](https://togithub.com/vasucp1207)

- Fix [#&#8203;643](https://togithub.com/biomejs/biome/issues/643) that
erroneously parsed the option of
[complexity/useExhaustiveDependencies](https://biomejs.dev/linter/use-naming-convention).
Contributed by [@&#8203;arendjr](https://togithub.com/arendjr)

##### Parser

##### Bug fixes

- Fix [#&#8203;846](https://togithub.com/biomejs/biome/issues/846) that
erroneously parsed `<const T,>() => {}` as a JSX tag instead of an arrow
function when both TypeScript and JSX are enabled.

##### VSCode

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40Ni4wIiwidXBkYXRlZEluVmVyIjoiMzcuNTkuOCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Christopher Kolstad <chriswk@getunleash.io>
2023-11-28 09:32:00 +00:00
..
validators Clean up old errors (#3633) 2023-05-11 11:10:57 +02:00
allSettledWithRejection.test.ts fix: prevent concurrent queries from running out of transaction (#5412) 2023-11-24 11:11:26 +01:00
allSettledWithRejection.ts fix: prevent concurrent queries from running out of transaction (#5412) 2023-11-24 11:11:26 +01:00
anonymise.test.ts test: add anonymise unit tests (#3722) 2023-05-09 14:20:39 +01:00
anonymise.ts fix: anonymise PII fields in user access if flag is set (#3773) 2023-05-15 14:12:03 +02:00
anyEventEmitter.test.ts feat: embed proxy endpoints (#1926) 2022-08-16 15:33:33 +02:00
anyEventEmitter.ts feat: shared event emitter (#3241) 2023-03-02 09:52:19 +01:00
arraysHaveSameItems.test.ts fix: require equal environments when moving toggles (#1595) 2022-05-18 11:07:01 +02:00
arraysHaveSameItems.ts
collapseHourlyMetrics.test.ts fix: fix variant metrics (#3947) 2023-06-09 12:48:32 +00:00
collapseHourlyMetrics.ts fix: fix variant metrics (#3947) 2023-06-09 12:48:32 +00:00
collect-ids.ts feat: add segments (#1426) 2022-03-29 14:59:14 +02:00
constants.ts feat: roles unification (#3999) 2023-06-19 09:41:40 +01:00
constantTimeCompare.test.ts Feat/add alias to api tokens (#1931) 2022-08-19 10:48:33 +02:00
constantTimeCompare.ts
db-lock.test.ts feat: promise timeout on lock (#5108) 2023-10-20 12:10:18 +02:00
db-lock.ts feat: promise timeout on lock (#5108) 2023-10-20 12:10:18 +02:00
ensureArray.ts feat: Advanced playground table (#3978) 2023-06-15 09:29:31 +00:00
ensureStringValue.test.ts
ensureStringValue.ts
escape-regex.ts Fix crashing search bars (#2765) 2022-12-28 12:35:27 +02:00
extract-user.test.ts fix: extract username from user should not return undefined (#5061) 2023-10-17 09:18:44 +01:00
extract-user.ts fix: extract username from user should not return undefined (#5061) 2023-10-17 09:18:44 +01:00
findDuplicates.test.ts feat: import service validate duplicates (#4558) 2023-08-24 10:05:21 +02:00
findDuplicates.ts feat: biome lint (#4853) 2023-09-29 14:18:21 +02:00
findPublicFolder.ts Merge frontend with backend (#1962) 2022-08-26 07:25:31 +00:00
flag-resolver.test.ts fix: properly handle flag resolver variants (#3808) 2023-05-18 17:04:55 +01:00
flag-resolver.ts fix: properly handle flag resolver variants (#3808) 2023-05-18 17:04:55 +01:00
format-base-uri.test.ts Migrate to jest (#854) 2021-05-28 11:10:24 +02:00
format-base-uri.ts chore: drop event hook (#3565) 2023-04-21 09:44:18 +02:00
generateImageUrl.test.ts feat: replace gravatar-url with inline function (#5128) 2023-10-24 10:07:26 +02:00
generateImageUrl.ts feat: replace gravatar-url with inline function (#5128) 2023-10-24 10:07:26 +02:00
get-prop-from-string.ts Clean up old errors (#3633) 2023-05-11 11:10:57 +02:00
graceful-shutdown.ts Feat/api key scoping (#941) 2021-09-15 20:28:10 +02:00
index.ts refactor: playground in feature oriented architecture (#3942) 2023-06-09 12:55:54 +02:00
is-email.test.ts chore: add linter rules for regexp (#3500) 2023-04-17 07:11:22 +00:00
is-email.ts fix: some security vulnerabilities (#4143) 2023-07-05 11:51:27 +02:00
isDefined.test.ts refactor: add schemas to user admin controller (#1692) 2022-06-22 14:55:43 +02:00
isDefined.ts
isEmpty.ts Poc: calculate etag based on query and latest revison id (#3062) 2023-03-17 14:10:21 +01:00
load-index-html.ts fix: correct escaping of ui flags for plausible (#3907) 2023-07-07 17:40:37 +02:00
map-values.test.ts refactor: add soft response schema validation (#1657) 2022-06-08 08:01:14 +02:00
map-values.ts
metrics-helper.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
omit-keys.test.ts refactor: add soft response schema validation (#1657) 2022-06-08 08:01:14 +02:00
omit-keys.ts chore(deps): update dependency @biomejs/biome to v1.4.0 (#5288) 2023-11-28 09:32:00 +00:00
parseEnvVar.test.ts feat: add CORS instance settings (#1957) 2022-08-26 09:09:48 +02:00
parseEnvVar.ts chore: drop event hook (#3565) 2023-04-21 09:44:18 +02:00
random-id.ts
rewriteHTML.test.ts task: Add Unit test result check task (#3695) 2023-05-25 11:03:54 +00:00
rewriteHTML.ts task: Add Unit test result check task (#3695) 2023-05-25 11:03:54 +00:00
segments.ts chore: expand default segment limits to 1000 (#3710) 2023-05-08 14:44:48 +02:00
semver.test.ts
semver.ts refactor: avoid inlining segments for supported clients (#1640) 2022-06-02 14:07:46 +02:00
snakeCase.test.ts feat: Move environments to enterprise (#935) 2021-09-13 15:57:38 +02:00
snakeCase.ts
time-utils.test.ts
time-utils.ts
timer.test.ts
timer.ts
unique.test.ts feat: expose project members (#3310) 2023-03-14 16:27:57 +01:00
unique.ts feat: expose project members (#3310) 2023-03-14 16:27:57 +01:00
validateJsonString.test.ts fix: when payload type is 'json' validate value on toggle variable validation (#1704) 2022-06-14 13:08:38 +02:00
validateJsonString.ts
validateOrigin.test.ts
validateOrigin.ts feat: add CORS instance settings (#1957) 2022-08-26 09:09:48 +02:00
version.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00