Skip to content

Commit

Permalink
Upgrade deps (#3676)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock authored Sep 14, 2024
1 parent 5886b51 commit fcd7e60
Show file tree
Hide file tree
Showing 89 changed files with 18,628 additions and 6,863 deletions.
18 changes: 12 additions & 6 deletions .github/actions/discord-message/action.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@ const WEBHOOK_URL = process.env.DISCORD_WEBHOOK_URL;

const octokit = github.getOctokit(GITHUB_TOKEN);

const formatBody = (input) => {
const formatBody = input => {
const titleRe = /(?:^|\n)#+[^\n]+/g;
const updatedDepsRe = /\n-\s*Updated dependencies[\s\S]+\n(\n\s+-[\s\S]+)*/gi;
const markdownLinkRe = /\[([^\]]+)\]\(([^\)]+)\)/g;
const creditRe = new RegExp(`Submitted by (?:undefined|${markdownLinkRe.source})`, 'ig');
const creditRe = new RegExp(
`Submitted by (?:undefined|${markdownLinkRe.source})`,
'ig'
);
const repeatedNewlineRe = /(?:\n[ ]*)*(\n[ ]*)/g;
return input
.replace(titleRe, '')
Expand All @@ -20,7 +23,7 @@ const formatBody = (input) => {
return `Submitted by [${text}](${url})`;
})
.replace(markdownLinkRe, (_match, text, url) => `[${text}](<${url}>)`)
.replace(repeatedNewlineRe, (_match, text) => text ? ` ${text}` : '\n')
.replace(repeatedNewlineRe, (_match, text) => (text ? ` ${text}` : '\n'))
.trim();
};

Expand Down Expand Up @@ -51,12 +54,12 @@ async function main() {
}

// Get releases
const releasePromises = packages.map((entry) => {
const releasePromises = packages.map(entry => {
return getReleaseBody(entry.name, entry.version);
});

const content = (await Promise.allSettled(releasePromises))
.map((x) => x.status === 'fulfilled' && x.value)
.map(x => x.status === 'fulfilled' && x.value)
.filter(Boolean)
.join('\n\n');

Expand All @@ -70,7 +73,10 @@ async function main() {
});

if (!response.ok) {
console.error('Something went wrong while sending the discord webhook.', response.status);
console.error(
'Something went wrong while sending the discord webhook.',
response.status
);
console.error(await response.text());
}
}
Expand Down
8 changes: 3 additions & 5 deletions .github/actions/pnpm-run/action.mjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { execa } from 'execa';

const run = execa(
'pnpm',
['run', process.env.INPUT_COMMAND],
{ cwd: process.cwd(), }
);
const run = execa('pnpm', ['run', process.env.INPUT_COMMAND], {
cwd: process.cwd(),
});

run.stdout.pipe(process.stdout);
run.stderr.pipe(process.stderr);
Expand Down
2 changes: 1 addition & 1 deletion docs/advanced/server-side-rendering.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ import { UrqlProvider, ssrExchange, cacheExchange, fetchExchange, createClient }
export default function Layout({ children }: React.PropsWithChildren) {
const [client, ssr] = useMemo(() => {
const ssr = ssrExchange({
isClient: typeof window !== 'undefined'
isClient: typeof window !== 'undefined',
});
const client = createClient({
url: 'https://trygql.formidable.dev/graphql/web-collections',
Expand Down
2 changes: 1 addition & 1 deletion docs/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Any GraphQL request can be abstracted into its query documents and its variables
import { gql } from '@urql/core';

const query = gql`
query($name: String!) {
query ($name: String!) {
helloWorld(name: $name)
}
`;
Expand Down
8 changes: 4 additions & 4 deletions docs/basics/vue.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const app = createApp(Root);

app.use(urql, {
url: 'http://localhost:3000/graphql',
exchanges: [cacheExchange, fetchExchange]
exchanges: [cacheExchange, fetchExchange],
});

app.mount('#app');
Expand Down Expand Up @@ -587,7 +587,7 @@ import { gql, useMutation } from '@urql/vue';
export default {
setup() {
const { executeMutation: updateTodo } = useMutation(gql`
mutation($id: ID!, $title: String!) {
mutation ($id: ID!, $title: String!) {
updateTodo(id: $id, title: $title) {
id
title
Expand Down Expand Up @@ -623,7 +623,7 @@ import { gql, useMutation } from '@urql/vue';
export default {
setup() {
const updateTodoResult = useMutation(gql`
mutation($id: ID!, $title: String!) {
mutation ($id: ID!, $title: String!) {
updateTodo(id: $id, title: $title) {
id
title
Expand Down Expand Up @@ -664,7 +664,7 @@ import { gql, useMutation } from '@urql/vue';
export default {
setup() {
const updateTodoResult = useMutation(gql`
mutation($id: ID!, $title: String!) {
mutation ($id: ID!, $title: String!) {
updateTodo(id: $id, title: $title) {
id
title
Expand Down
4 changes: 2 additions & 2 deletions docs/graphcache/local-directives.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ import { relayPagination } from '@urql/exchange-graphcache/extras';

cacheExchange({
directives: {
simplePagination: (options) => simplePagination({ ...options }),
relayPagination: (options) => relayPagination({ ...options }),
simplePagination: options => simplePagination({ ...options }),
relayPagination: options => relayPagination({ ...options }),
},
});
```
Expand Down
48 changes: 24 additions & 24 deletions examples/with-apq/index.html
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>with-apq</title>
<style>
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>with-apq</title>
<style>
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans',
'Helvetica Neue', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}
</style>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/index.jsx"></script>
</body>
code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}
</style>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/index.jsx"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion examples/with-defer-stream-directives/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand Down
48 changes: 24 additions & 24 deletions examples/with-graphcache-pagination/index.html
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>with-graphcache-pagination</title>
<style>
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>with-graphcache-pagination</title>
<style>
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans',
'Helvetica Neue', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}
</style>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/index.jsx"></script>
</body>
code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}
</style>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/index.jsx"></script>
</body>
</html>
48 changes: 24 additions & 24 deletions examples/with-graphcache-updates/index.html
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>with-graphcache-updates</title>
<style>
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>with-graphcache-updates</title>
<style>
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans',
'Helvetica Neue', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}
</style>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/index.jsx"></script>
</body>
code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}
</style>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/index.jsx"></script>
</body>
</html>
48 changes: 24 additions & 24 deletions examples/with-infinite-pagination/index.html
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>with-pagination</title>
<style>
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>with-pagination</title>
<style>
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans',
'Helvetica Neue', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}
</style>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/index.jsx"></script>
</body>
code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}
</style>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/index.jsx"></script>
</body>
</html>
48 changes: 24 additions & 24 deletions examples/with-multipart/index.html
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>with-multipart</title>
<style>
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>with-multipart</title>
<style>
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans',
'Helvetica Neue', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}
</style>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/index.jsx"></script>
</body>
code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}
</style>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/index.jsx"></script>
</body>
</html>
Loading

0 comments on commit fcd7e60

Please sign in to comment.