Skip to content

Commit

Permalink
chore(deps-dev): Bump @commitlint/cli from 18.4.1 to 18.4.2 (#370)
Browse files Browse the repository at this point in the history
Bumps
[@commitlint/cli](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/cli)
from 18.4.1 to 18.4.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/conventional-changelog/commitlint/releases"><code>@​commitlint/cli</code>'s
releases</a>.</em></p>
<blockquote>
<h2>v18.4.2</h2>
<h2><a
href="https://github.com/conventional-changelog/commitlint/compare/v18.4.1...v18.4.2">18.4.2</a>
(2023-11-16)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>Fix/3768: Consider ESM when selecting cosmiconfig loaders by <a
href="https://github.com/joberstein"><code>@​joberstein</code></a> in <a
href="https://redirect.github.com/conventional-changelog/commitlint/pull/3776">conventional-changelog/commitlint#3776</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/conventional-changelog/commitlint/compare/v18.4.1...v18.4.2">https://github.com/conventional-changelog/commitlint/compare/v18.4.1...v18.4.2</a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/conventional-changelog/commitlint/blob/master/@commitlint/cli/CHANGELOG.md"><code>@​commitlint/cli</code>'s
changelog</a>.</em></p>
<blockquote>
<h2><a
href="https://github.com/conventional-changelog/commitlint/compare/v18.4.1...v18.4.2">18.4.2</a>
(2023-11-16)</h2>
<p><strong>Note:</strong> Version bump only for package
<code>@​commitlint/cli</code></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/conventional-changelog/commitlint/commit/0370a855dcc026dda4dd29122f49ed7db5657de3"><code>0370a85</code></a>
v18.4.2</li>
<li>See full diff in <a
href="https://github.com/conventional-changelog/commitlint/commits/v18.4.2/@commitlint/cli">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@commitlint/cli&package-manager=npm_and_yarn&previous-version=18.4.1&new-version=18.4.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

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-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

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)


</details>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jonghyeon Ko <[email protected]>
  • Loading branch information
dependabot[bot] and manudeli authored Nov 16, 2023
1 parent 74c4888 commit 4e90676
Show file tree
Hide file tree
Showing 3 changed files with 112 additions and 98 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"devDependencies": {
"@arethetypeswrong/cli": "^0.13.0",
"@changesets/cli": "^2.26.2",
"@commitlint/cli": "^18.4.1",
"@commitlint/cli": "^18.4.2",
"@commitlint/config-conventional": "^18.4.0",
"@suspensive/eslint-config": "workspace:*",
"@suspensive/eslint-config-js": "workspace:*",
Expand Down
150 changes: 75 additions & 75 deletions packages/react-query/src/useSuspenseQueries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,28 +36,28 @@ type GetOption<T> =
T extends ToInferWithSelectEnabledOption<infer TQueryFnData, infer TData, infer TQueryKey, false>
? UseQueryOptionsForUseSuspenseQueries<TQueryFnData, TData, TQueryKey, false>
: T extends ToInferWithEnabledOption<infer TQueryFnData, infer TQueryKey, false>
? UseQueryOptionsForUseSuspenseQueries<TQueryFnData, TQueryFnData, TQueryKey, false>
: // enabled: true
T extends ToInferWithSelectEnabledOption<infer TQueryFnData, infer TData, infer TQueryKey, true>
? UseQueryOptionsForUseSuspenseQueries<TQueryFnData, TData, TQueryKey, true>
: T extends ToInferWithEnabledOption<infer TQueryFnData, infer TQueryKey, true>
? UseQueryOptionsForUseSuspenseQueries<TQueryFnData, TQueryFnData, TQueryKey, true>
: // enabled: boolean
T extends ToInferWithSelectEnabledOption<infer TQueryFnData, infer TData, infer TQueryKey, boolean>
? UseQueryOptionsForUseSuspenseQueries<TQueryFnData, TData, TQueryKey, boolean>
: T extends ToInferWithEnabledOption<infer TQueryFnData, infer TQueryKey, boolean>
? UseQueryOptionsForUseSuspenseQueries<TQueryFnData, TQueryFnData, TQueryKey, boolean>
: // enabled: undefined
T extends ToInferWithSelectEnabledOption<infer TQueryFnData, infer TData, infer TQueryKey, undefined>
? UseQueryOptionsForUseSuspenseQueries<TQueryFnData, TData, TQueryKey, true>
: T extends ToInferWithEnabledOption<infer TQueryFnData, infer TQueryKey, undefined>
? UseQueryOptionsForUseSuspenseQueries<TQueryFnData, TQueryFnData, TQueryKey, true>
: // no enabled
T extends ToInferWithSelectOption<infer TQueryFnData, infer TData, infer TQueryKey>
? UseQueryOptionsForUseSuspenseQueries<TQueryFnData, TData, TQueryKey, true>
: T extends ToInferOption<infer TQueryFnData, infer TQueryKey>
? UseQueryOptionsForUseSuspenseQueries<TQueryFnData, TQueryFnData, TQueryKey, true>
: UseQueryOptionsForUseSuspenseQueries
? UseQueryOptionsForUseSuspenseQueries<TQueryFnData, TQueryFnData, TQueryKey, false>
: // enabled: true
T extends ToInferWithSelectEnabledOption<infer TQueryFnData, infer TData, infer TQueryKey, true>
? UseQueryOptionsForUseSuspenseQueries<TQueryFnData, TData, TQueryKey, true>
: T extends ToInferWithEnabledOption<infer TQueryFnData, infer TQueryKey, true>
? UseQueryOptionsForUseSuspenseQueries<TQueryFnData, TQueryFnData, TQueryKey, true>
: // enabled: boolean
T extends ToInferWithSelectEnabledOption<infer TQueryFnData, infer TData, infer TQueryKey, boolean>
? UseQueryOptionsForUseSuspenseQueries<TQueryFnData, TData, TQueryKey, boolean>
: T extends ToInferWithEnabledOption<infer TQueryFnData, infer TQueryKey, boolean>
? UseQueryOptionsForUseSuspenseQueries<TQueryFnData, TQueryFnData, TQueryKey, boolean>
: // enabled: undefined
T extends ToInferWithSelectEnabledOption<infer TQueryFnData, infer TData, infer TQueryKey, undefined>
? UseQueryOptionsForUseSuspenseQueries<TQueryFnData, TData, TQueryKey, true>
: T extends ToInferWithEnabledOption<infer TQueryFnData, infer TQueryKey, undefined>
? UseQueryOptionsForUseSuspenseQueries<TQueryFnData, TQueryFnData, TQueryKey, true>
: // no enabled
T extends ToInferWithSelectOption<infer TQueryFnData, infer TData, infer TQueryKey>
? UseQueryOptionsForUseSuspenseQueries<TQueryFnData, TData, TQueryKey, true>
: T extends ToInferOption<infer TQueryFnData, infer TQueryKey>
? UseQueryOptionsForUseSuspenseQueries<TQueryFnData, TQueryFnData, TQueryKey, true>
: UseQueryOptionsForUseSuspenseQueries

type SuspenseQueriesOptions<
T extends unknown[],
Expand All @@ -66,56 +66,56 @@ type SuspenseQueriesOptions<
> = Depth['length'] extends MAXIMUM_DEPTH
? UseQueryOptionsForUseSuspenseQueries[]
: T extends []
? []
: T extends [infer Head]
? [...Result, GetOption<Head>]
: T extends [infer Head, ...infer Tail]
? SuspenseQueriesOptions<[...Tail], [...Result, GetOption<Head>], [...Depth, 1]>
: unknown[] extends T
? T
: T extends UseQueryOptionsForUseSuspenseQueries<infer TQueryFnData, infer TData, infer TQueryKey>[]
? UseQueryOptionsForUseSuspenseQueries<TQueryFnData, TData, TQueryKey>[]
: UseQueryOptionsForUseSuspenseQueries[]
? []
: T extends [infer Head]
? [...Result, GetOption<Head>]
: T extends [infer Head, ...infer Tail]
? SuspenseQueriesOptions<[...Tail], [...Result, GetOption<Head>], [...Depth, 1]>
: unknown[] extends T
? T
: T extends UseQueryOptionsForUseSuspenseQueries<infer TQueryFnData, infer TData, infer TQueryKey>[]
? UseQueryOptionsForUseSuspenseQueries<TQueryFnData, TData, TQueryKey>[]
: UseQueryOptionsForUseSuspenseQueries[]

// results
type GetResult<T> = T extends { queryFnData: any; data: infer TData }
? UseSuspenseQueryResultOnSuccess<TData>
: T extends { queryFnData: infer TQueryFnData }
? UseSuspenseQueryResultOnSuccess<TQueryFnData>
: T extends { data: infer TData }
? UseSuspenseQueryResultOnSuccess<TData>
: T extends [any, infer TData]
? UseSuspenseQueryResultOnSuccess<TData>
: T extends [infer TQueryFnData]
? UseSuspenseQueryResultOnSuccess<TQueryFnData>
: T extends [infer TQueryFnData]
? UseSuspenseQueryResultOnSuccess<TQueryFnData>
: // enabled: false
T extends ToInferWithSelectEnabledOption<unknown, unknown, QueryKey, false>
? UseSuspenseQueryResultOnLoading
: T extends ToInferWithEnabledOption<unknown, QueryKey, false>
? UseSuspenseQueryResultOnLoading
: // enabled: true
T extends ToInferWithSelectEnabledOption<unknown, infer TData, QueryKey, true>
? UseSuspenseQueryResultOnSuccess<TData>
: T extends ToInferWithEnabledOption<infer TQueryFnData, QueryKey, true>
? UseSuspenseQueryResultOnSuccess<TQueryFnData>
: // enabled: boolean
T extends ToInferWithSelectEnabledOption<unknown, infer TData, QueryKey, boolean>
? UseSuspenseQueryResultOnSuccess<TData> | UseSuspenseQueryResultOnLoading
: T extends ToInferWithEnabledOption<infer TQueryFnData, QueryKey, boolean>
? UseSuspenseQueryResultOnSuccess<TQueryFnData> | UseSuspenseQueryResultOnLoading
: // no enabled
T extends ToInferWithSelectOption<unknown, infer TData, QueryKey>
? UseSuspenseQueryResultOnSuccess<TData>
: T extends ToInferOption<infer TQueryFnData, QueryKey>
? UseSuspenseQueryResultOnSuccess<TQueryFnData>
: // enabled: undefined
T extends ToInferWithSelectEnabledOption<unknown, infer TData, QueryKey, undefined>
? UseSuspenseQueryResultOnSuccess<TData>
: T extends ToInferWithEnabledOption<infer TQueryFnData, QueryKey, undefined>
? UseSuspenseQueryResultOnSuccess<TQueryFnData>
: UseSuspenseQueryResultOnSuccess<unknown>
? UseSuspenseQueryResultOnSuccess<TQueryFnData>
: T extends { data: infer TData }
? UseSuspenseQueryResultOnSuccess<TData>
: T extends [any, infer TData]
? UseSuspenseQueryResultOnSuccess<TData>
: T extends [infer TQueryFnData]
? UseSuspenseQueryResultOnSuccess<TQueryFnData>
: T extends [infer TQueryFnData]
? UseSuspenseQueryResultOnSuccess<TQueryFnData>
: // enabled: false
T extends ToInferWithSelectEnabledOption<unknown, unknown, QueryKey, false>
? UseSuspenseQueryResultOnLoading
: T extends ToInferWithEnabledOption<unknown, QueryKey, false>
? UseSuspenseQueryResultOnLoading
: // enabled: true
T extends ToInferWithSelectEnabledOption<unknown, infer TData, QueryKey, true>
? UseSuspenseQueryResultOnSuccess<TData>
: T extends ToInferWithEnabledOption<infer TQueryFnData, QueryKey, true>
? UseSuspenseQueryResultOnSuccess<TQueryFnData>
: // enabled: boolean
T extends ToInferWithSelectEnabledOption<unknown, infer TData, QueryKey, boolean>
? UseSuspenseQueryResultOnSuccess<TData> | UseSuspenseQueryResultOnLoading
: T extends ToInferWithEnabledOption<infer TQueryFnData, QueryKey, boolean>
? UseSuspenseQueryResultOnSuccess<TQueryFnData> | UseSuspenseQueryResultOnLoading
: // no enabled
T extends ToInferWithSelectOption<unknown, infer TData, QueryKey>
? UseSuspenseQueryResultOnSuccess<TData>
: T extends ToInferOption<infer TQueryFnData, QueryKey>
? UseSuspenseQueryResultOnSuccess<TQueryFnData>
: // enabled: undefined
T extends ToInferWithSelectEnabledOption<unknown, infer TData, QueryKey, undefined>
? UseSuspenseQueryResultOnSuccess<TData>
: T extends ToInferWithEnabledOption<infer TQueryFnData, QueryKey, undefined>
? UseSuspenseQueryResultOnSuccess<TQueryFnData>
: UseSuspenseQueryResultOnSuccess<unknown>

export type QueriesResults<
T extends any[],
Expand All @@ -124,14 +124,14 @@ export type QueriesResults<
> = Depth['length'] extends MAXIMUM_DEPTH
? UseQueryResult[]
: T extends []
? []
: T extends [infer Head]
? [...Result, GetResult<Head>]
: T extends [infer Head, ...infer Tail]
? QueriesResults<[...Tail], [...Result, GetResult<Head>], [...Depth, 1]>
: T extends UseQueryOptionsForUseSuspenseQueries<infer TQueryFnData, infer TData, QueryKey>[]
? UseSuspenseQueryResultOnSuccess<unknown extends TData ? TQueryFnData : TData>[]
: (UseSuspenseQueryResultOnSuccess<unknown> | UseSuspenseQueryResultOnLoading)[]
? []
: T extends [infer Head]
? [...Result, GetResult<Head>]
: T extends [infer Head, ...infer Tail]
? QueriesResults<[...Tail], [...Result, GetResult<Head>], [...Depth, 1]>
: T extends UseQueryOptionsForUseSuspenseQueries<infer TQueryFnData, infer TData, QueryKey>[]
? UseSuspenseQueryResultOnSuccess<unknown extends TData ? TQueryFnData : TData>[]
: (UseSuspenseQueryResultOnSuccess<unknown> | UseSuspenseQueryResultOnLoading)[]

type UseSuspenseQueries = <T extends any[]>(arg: {
queries: readonly [...SuspenseQueriesOptions<T>]
Expand Down
58 changes: 36 additions & 22 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 comments on commit 4e90676

@vercel
Copy link

@vercel vercel bot commented on 4e90676 Nov 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs – ./docs

suspensive.org
www.suspensive.org
docs-git-main-suspensive.vercel.app
docs-suspensive.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 4e90676 Nov 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

visualization – ./websites/visualization

visualization.suspensive.org
visualization-git-main-suspensive.vercel.app
visualization-suspensive.vercel.app

Please sign in to comment.