Skip to content

Commit

Permalink
chore: Bump the prettier group with 1 update (#2119)
Browse files Browse the repository at this point in the history
Bumps the prettier group with 1 update:
[prettier](https://github.com/prettier/prettier).

<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/prettier/prettier/releases">prettier's
releases</a>.</em></p>
<blockquote>
<h2>3.0.0</h2>
<p><a
href="https://github.com/prettier/prettier/compare/3.0.0-alpha.6...3.0.0">diff</a></p>
<p>🔗 <a href="https://prettier.io/blog/2023/07/05/3.0.0.html">Release
note</a></p>
<h2>3.0.0-alpha.6</h2>
<h2>What's Changed</h2>
<ul>
<li>Update <code>.d.ts</code> files of plugins to use <code>export
default ...</code> by <a
href="https://github.com/fisker"><code>@​fisker</code></a> in <a
href="https://redirect.github.com/prettier/prettier/pull/14435">prettier/prettier#14435</a></li>
</ul>
<p>Other changes since v2, see <a
href="https://github.com/prettier/prettier/releases/tag/3.0.0-alpha.1"><code>3.0.0-alpha.1</code>
release notes</a></p>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/prettier/prettier/compare/3.0.0-alpha.5...3.0.0-alpha.6">https://github.com/prettier/prettier/compare/3.0.0-alpha.5...3.0.0-alpha.6</a></p>
<h2>3.0.0-alpha.5</h2>
<h2>What's Changed</h2>
<ul>
<li>Add <code>.d.ts</code> files by <a
href="https://github.com/sosukesuzuki"><code>@​sosukesuzuki</code></a>
in <a
href="https://redirect.github.com/prettier/prettier/pull/14212">prettier/prettier#14212</a></li>
<li>Support TypeScript 5 via <code>babel-ts</code> parser by <a
href="https://github.com/fisker"><code>@​fisker</code></a> in <a
href="https://redirect.github.com/prettier/prettier/pull/14391">prettier/prettier#14391</a></li>
</ul>
<p>Other changes since v2, see <a
href="https://github.com/prettier/prettier/releases/tag/3.0.0-alpha.1"><code>3.0.0-alpha.1</code>
release notes</a></p>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/prettier/prettier/compare/3.0.0-alpha.4...3.0.0-alpha.5">https://github.com/prettier/prettier/compare/3.0.0-alpha.4...3.0.0-alpha.5</a></p>
<h2>3.0.0-alpha.4</h2>
<h2>What's Changed</h2>
<ul>
<li>Remove support for Flow comment types by <a
href="https://github.com/thorn0"><code>@​thorn0</code></a> in <a
href="https://redirect.github.com/prettier/prettier/pull/13687">prettier/prettier#13687</a></li>
<li>Make <code>resolveParser</code> work like v2 by <a
href="https://github.com/fisker"><code>@​fisker</code></a> in <a
href="https://redirect.github.com/prettier/prettier/pull/13732">prettier/prettier#13732</a></li>
<li>Add <code>__debug</code> apis to cjs version by <a
href="https://github.com/fisker"><code>@​fisker</code></a> in <a
href="https://redirect.github.com/prettier/prettier/pull/13731">prettier/prettier#13731</a></li>
</ul>
<p>Other changes since v2, see <a
href="https://github.com/prettier/prettier/releases/tag/3.0.0-alpha.1"><code>3.0.0-alpha.1</code>
release notes</a></p>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/prettier/prettier/compare/3.0.0-alpha.3...3.0.0-alpha.4">https://github.com/prettier/prettier/compare/3.0.0-alpha.3...3.0.0-alpha.4</a></p>
<h2>3.0.0-alpha.3</h2>
<ul>
<li>Fix <code>exports</code> field in <code>package.json</code>
file</li>
</ul>
<p>Other changes since v2, see <a
href="https://github.com/prettier/prettier/releases/tag/3.0.0-alpha.1"><code>3.0.0-alpha.1</code>
release notes</a></p>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/prettier/prettier/compare/3.0.0-alpha.2...3.0.0-alpha.3">https://github.com/prettier/prettier/compare/3.0.0-alpha.2...3.0.0-alpha.3</a></p>
<h2>3.0.0-alpha.2</h2>
<ul>
<li>Fix bundled <code>index.cjs</code> file</li>
</ul>
<p>Other changes since v2, see <a
href="https://github.com/prettier/prettier/releases/tag/3.0.0-alpha.1"><code>3.0.0-alpha.1</code>
release notes</a></p>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/prettier/prettier/compare/3.0.0-alpha.1...3.0.0-alpha.2">https://github.com/prettier/prettier/compare/3.0.0-alpha.1...3.0.0-alpha.2</a></p>
<h2>3.0.0-alpha.1</h2>
<p><strong>If you are a plugin developer, please try this version and
send us feedback! Feel free to ping <a
href="https://github.com/fisker"><code>@​fisker</code></a> if you have
any questions about v3 migration.</strong></p>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/prettier/prettier/blob/main/CHANGELOG.md">prettier's
changelog</a>.</em></p>
<blockquote>
<h1>3.0.0</h1>
<p><a
href="https://github.com/prettier/prettier/compare/3.0.0-alpha.6...3.0.0">diff</a></p>
<p>🔗 <a href="https://prettier.io/blog/2023/07/05/3.0.0.html">Release
Notes</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/prettier/prettier/commit/186e0966b010d57a0be1185494ce772becf5dac4"><code>186e096</code></a>
Release 3.0.0</li>
<li><a
href="https://github.com/prettier/prettier/commit/44979b0a37983857797a17d0e2308ad45e815048"><code>44979b0</code></a>
Remove test step from release script (<a
href="https://redirect.github.com/prettier/prettier/issues/15011">#15011</a>)</li>
<li><a
href="https://github.com/prettier/prettier/commit/e12afe89f3a3cc0fa2624a59447c57b48a7980dc"><code>e12afe8</code></a>
Regenerate yarn.lock file (<a
href="https://redirect.github.com/prettier/prettier/issues/15010">#15010</a>)</li>
<li><a
href="https://github.com/prettier/prettier/commit/db31fd602ef00ef19299309c572fee6f1f3f0331"><code>db31fd6</code></a>
Regenerate yarn.lock file for website (<a
href="https://redirect.github.com/prettier/prettier/issues/15009">#15009</a>)</li>
<li><a
href="https://github.com/prettier/prettier/commit/1a0d9ed80064b67350602c15f44a411a7d4f0958"><code>1a0d9ed</code></a>
chore(deps): update dependency cosmiconfig to v8.2.0 (<a
href="https://redirect.github.com/prettier/prettier/issues/14901">#14901</a>)</li>
<li><a
href="https://github.com/prettier/prettier/commit/25fa483e3524d4505f79d641d4d3911e533780fc"><code>25fa483</code></a>
chore(deps): update dependency typescript to v5.1.5 (<a
href="https://redirect.github.com/prettier/prettier/issues/14896">#14896</a>)</li>
<li><a
href="https://github.com/prettier/prettier/commit/d0759650b866ee7060d1d7ab51bd7aba7a4ba532"><code>d075965</code></a>
chore(deps): update dependency webpack to v5.88.1 (<a
href="https://redirect.github.com/prettier/prettier/issues/14994">#14994</a>)</li>
<li><a
href="https://github.com/prettier/prettier/commit/d97f78db99fb26c6147b8d53d9d505bbbef782e3"><code>d97f78d</code></a>
chore(deps): update dependency webpack to v5.88.1 (<a
href="https://redirect.github.com/prettier/prettier/issues/14995">#14995</a>)</li>
<li><a
href="https://github.com/prettier/prettier/commit/f1ef433e98b8b4695bf0db959d57a7dc214a40a9"><code>f1ef433</code></a>
chore(deps): update dependency flow-parser to v0.211.0 (<a
href="https://redirect.github.com/prettier/prettier/issues/15002">#15002</a>)</li>
<li><a
href="https://github.com/prettier/prettier/commit/61804e2516b35a8855df8d3bbab14ac7f0cfcecd"><code>61804e2</code></a>
chore(deps): update dependency espree to v9.6.0 (<a
href="https://redirect.github.com/prettier/prettier/issues/15000">#15000</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/prettier/prettier/compare/2.8.8...3.0.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=prettier&package-manager=npm_and_yarn&previous-version=2.8.8&new-version=3.0.0)](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


</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] authored Jul 7, 2023
1 parent 80b9a36 commit 4991daa
Show file tree
Hide file tree
Showing 46 changed files with 183 additions and 168 deletions.
2 changes: 1 addition & 1 deletion .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const config: StorybookConfig = {
plugins: nuxtViteConfig.plugins,
define: nuxtViteConfig.define,
},
config
config,
)
},
}
Expand Down
2 changes: 1 addition & 1 deletion .yarn/releases/yarn-3.3.0.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apollo/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const cache = new InMemoryCache({

export function cacheCurrentUser(
cache: ApolloCache<any>,
user: MeQuery['me'] | null
user: MeQuery['me'] | null,
): void {
cache.writeQuery({
query: gql(/* GraphQL */ `
Expand Down
4 changes: 2 additions & 2 deletions components/DocumentEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,10 @@ const { result } = useQuery(
`),
() => ({
documentId: props.documentId,
})
}),
)
const document = computed(() =>
useFragment(DocumentDetails, result.value?.userDocument)
useFragment(DocumentDetails, result.value?.userDocument),
)
function formatAuthor(author: PersonFullDetailsFragment) {
Expand Down
2 changes: 1 addition & 1 deletion components/LandingPageGetInvolved.vue
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,6 @@ const // @ts-expect-error: https://github.com/nuxt/framework/issues/6910
// @ts-expect-error: https://github.com/nuxt/framework/issues/6910
transform: (data) =>
data.split('\n').filter((member) => member.length > 0),
}
},
)
</script>
2 changes: 1 addition & 1 deletion components/NavBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ const { mutate: logout, onDone } = useMutation(
update(cache, _data) {
cacheCurrentUser(cache, null)
},
}
},
)
onDone(() => {
Expand Down
4 changes: 2 additions & 2 deletions components/SideBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,12 @@ export default defineComponent({
}
}
}
`)
`),
)
const groups = useResult(
result,
null,
(data) => data?.me?.groups
(data) => data?.me?.groups,
) as unknown as any[]
const uiStore = useUiStore()
Expand Down
4 changes: 2 additions & 2 deletions components/tagify.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default defineComponent({
this.tagify = new Tagify(
this.$el as HTMLTextAreaElement | HTMLInputElement,
tagifySettings
tagifySettings,
)
},
unmounted() {
Expand All @@ -85,7 +85,7 @@ export default defineComponent({
// Update value prop
this.$emit(
'input',
(event.target as HTMLInputElement | null)?.value || []
(event.target as HTMLInputElement | null)?.value || [],
)
},
},
Expand Down
2 changes: 1 addition & 1 deletion composables/util.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export function notEmpty<TValue>(
value: TValue | null | undefined
value: TValue | null | undefined,
): value is TValue {
return value !== null && value !== undefined
}
2 changes: 1 addition & 1 deletion config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export enum Environment {
*/
function enumFromStringValue<T>(
enm: { [s: string]: T },
value: string
value: string,
): T | undefined {
return (Object.values(enm) as unknown as string[]).includes(value)
? (value as unknown as T)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
"nuxt-vitest": "^0.9.0",
"patch-package": "^7.0.0",
"postinstall-postinstall": "^2.1.0",
"prettier": "^2.8.8",
"prettier": "^3.0.0",
"prettier-plugin-organize-imports": "^3.2.1",
"prisma": "^4.16.2",
"redis-mock": "^0.56.3",
Expand Down
22 changes: 16 additions & 6 deletions pages/_storybook/external-iframe.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import * as TTextareaStories from '~/components/t-textarea.stories'
export function renderToCanvas(
{ title, name, storyFn, showMain, showError }: RenderContext<VueRenderer>,
domElement: HTMLElement
domElement: HTMLElement,
): void {
const element = storyFn()
Expand Down Expand Up @@ -83,7 +83,7 @@ export default defineComponent({
TTextareaStories,
],
undefined,
false
false,
)
},
})
Expand Down Expand Up @@ -140,9 +140,17 @@ export default defineComponent({
left: 0;
right: 0;
padding: 20px;
font-family: 'Nunito Sans', -apple-system, '.SFNSText-Regular',
'San Francisco', BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica,
Arial, sans-serif;
font-family:
'Nunito Sans',
-apple-system,
'.SFNSText-Regular',
'San Francisco',
BlinkMacSystemFont,
'Segoe UI',
'Helvetica Neue',
Helvetica,
Arial,
sans-serif;
-webkit-font-smoothing: antialiased;
overflow: auto;
}
Expand Down Expand Up @@ -334,7 +342,9 @@ export default defineComponent({
.sb-argstableBlock-body {
border-radius: 4px;
box-shadow: rgba(0, 0, 0, 0.1) 0 1px 3px 1px, rgba(0, 0, 0, 0.065) 0 0 0 1px;
box-shadow:
rgba(0, 0, 0, 0.1) 0 1px 3px 1px,
rgba(0, 0, 0, 0.065) 0 0 0 1px;
}
.sb-argstableBlock-body tr {
background: transparent;
Expand Down
2 changes: 1 addition & 1 deletion pages/change-password/[token].vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export default defineComponent({
newPassword: password.value,
},
},
})
}),
)
onDone(() => {
void navigateTo({ name: 'user-login' })
Expand Down
7 changes: 4 additions & 3 deletions pages/dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,12 @@ const { result, fetchMore } = useQuery(
fetchPolicy: ui.activeSearchQuery
? ('no-cache' as WatchQueryFetchPolicy)
: ('cache-first' as WatchQueryFetchPolicy),
})
}),
)
const documents = computed(() =>
result.value?.me?.documents.edges.map((edge) => edge.node).filter(notEmpty)
const documents = computed(
() =>
result.value?.me?.documents.edges.map((edge) => edge.node).filter(notEmpty),
)
const onScrollToBottom = () => {
Expand Down
2 changes: 1 addition & 1 deletion pages/user/forgot-password.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default defineComponent({
email: email.value,
},
},
})
}),
)
return { email, error, called, forgotPassword }
},
Expand Down
2 changes: 1 addition & 1 deletion pages/user/login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ const {
cacheCurrentUser(cache, null)
}
},
}
},
)
onDone((result) => {
if (result.data?.login?.__typename === 'UserReturned') {
Expand Down
4 changes: 2 additions & 2 deletions pages/user/register.vue
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ export default defineComponent({
cache,
data?.signup?.__typename === 'UserReturned'
? data?.signup?.user
: null
: null,
)
},
})
}),
)
onDone(() => {
void navigateTo({ path: '/dashboard' })
Expand Down
12 changes: 6 additions & 6 deletions server/api.e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe('invalid query', () => {
name
}
}
`
`,
)
.variables({ id: '' })

Expand All @@ -36,7 +36,7 @@ describe('request without query', () => {

expect(response.statusCode).toBe(400)
expect(response.text).toContain(
'GraphQL operations must contain a non-empty `query`'
'GraphQL operations must contain a non-empty `query`',
)
})
})
Expand All @@ -51,10 +51,10 @@ describe('preflight', () => {
expect(response.body).toStrictEqual({})
expect(response.statusCode).toBe(204)
expect(response.get('access-control-allow-methods')).toBe(
'GET,POST,OPTIONS'
'GET,POST,OPTIONS',
)
expect(response.get('access-control-allow-origin')).toBe(
'https://studio.apollographql.com'
'https://studio.apollographql.com',
)
expect(response.get('access-control-allow-headers')).toBe('Content-Type')
})
Expand All @@ -68,10 +68,10 @@ describe('preflight', () => {
expect(response.body).toStrictEqual({})
expect(response.statusCode).toBe(204)
expect(response.get('access-control-allow-methods')).toBe(
'GET,POST,OPTIONS'
'GET,POST,OPTIONS',
)
expect(response.get('access-control-allow-origin')).toBe(
'https://studio.apollographql.com'
'https://studio.apollographql.com',
)
expect(response.get('access-control-allow-headers')).toBe('Content-Type')
})
Expand Down
2 changes: 1 addition & 1 deletion server/api/getLatestRelease.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default defineEventHandler(async () => {
return {
version: response?.data?.repository?.releases?.nodes[0].tagName.replace(
'v',
''
'',
), // something like 5.7
}
})
2 changes: 1 addition & 1 deletion server/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ http.OutgoingMessage.prototype.setHeader = function setHeader(name, value) {

// CHANGED: Extra logic to find kOutHeaders symbol in `this`
const kOutHeaders = Object.getOwnPropertySymbols(this).find(
(sym) => sym.toString() === 'Symbol(kOutHeaders)'
(sym) => sym.toString() === 'Symbol(kOutHeaders)',
)

// @ts-expect-error: Is workaround anyway
Expand Down
6 changes: 3 additions & 3 deletions server/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export interface Context {
getUser: () => User | null
authenticate: (
strategyName: string,
options?: Record<string, unknown>
options?: Record<string, unknown>,
) => Promise<AuthenticateReturn<User>>
login: (user: User, options?: Record<string, unknown>) => Promise<void>
logout: () => void
Expand All @@ -31,7 +31,7 @@ export function buildContext({
const session = event.req.session
if (!session) {
throw new Error(
'Login sessions require session support. Did you forget to use `express-session` middleware?'
'Login sessions require session support. Did you forget to use `express-session` middleware?',
)
}
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access
Expand All @@ -54,7 +54,7 @@ export function buildContext({
event.req.sessionID,
useRuntimeConfig().session.primarySecret,
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
session.cookie.data
session.cookie.data,
)
resolve()
})
Expand Down
8 changes: 4 additions & 4 deletions server/database/truncate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@ export async function truncate(): Promise<void> {

try {
for (const { tablename } of (await prisma.$queryRawUnsafe(
`SELECT tablename FROM pg_tables WHERE schemaname='${dbSchemaName}';`
`SELECT tablename FROM pg_tables WHERE schemaname='${dbSchemaName}';`,
)) as any) {
await prisma.$queryRawUnsafe(
`TRUNCATE TABLE "${dbSchemaName}"."${tablename as string}" CASCADE;`
`TRUNCATE TABLE "${dbSchemaName}"."${tablename as string}" CASCADE;`,
)
}
for (const { relname } of (await prisma.$queryRawUnsafe(
`SELECT c.relname FROM pg_class AS c JOIN pg_namespace AS n ON c.relnamespace = n.oid WHERE c.relkind='S' AND n.nspname='${dbSchemaName}';`
`SELECT c.relname FROM pg_class AS c JOIN pg_namespace AS n ON c.relnamespace = n.oid WHERE c.relkind='S' AND n.nspname='${dbSchemaName}';`,
)) as any) {
await prisma.$queryRawUnsafe(
`ALTER SEQUENCE "${dbSchemaName}"."${
relname as string
}" RESTART WITH 1;`
}" RESTART WITH 1;`,
)
}
} finally {
Expand Down
6 changes: 3 additions & 3 deletions server/documents/integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ describe('roundtrip', () => {
"errors": undefined,
},
}
`
`,
)

if (addResult.body.kind !== 'single') {
Expand Down Expand Up @@ -336,7 +336,7 @@ describe('roundtrip', () => {
"errors": undefined,
},
}
`
`,
)
})
it('update user document + query', async () => {
Expand Down Expand Up @@ -441,7 +441,7 @@ describe('roundtrip', () => {
"errors": undefined,
},
}
`
`,
)
})
})
Expand Down
2 changes: 1 addition & 1 deletion server/documents/resolvers.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ describe('mutation', () => {
},
},
},
context
context,
)
expect(userDocumentService.addDocument).toHaveBeenCalledWith({
added: undefined,
Expand Down
Loading

0 comments on commit 4991daa

Please sign in to comment.