Skip to content

Commit

Permalink
chore(deps): update
Browse files Browse the repository at this point in the history
  • Loading branch information
enisdenjo committed Jan 16, 2024
1 parent 1fb7729 commit c497008
Show file tree
Hide file tree
Showing 7 changed files with 1,307 additions and 1,267 deletions.
34 changes: 17 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,37 +103,37 @@
},
"devDependencies": {
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.5",
"@rollup/plugin-typescript": "^11.1.6",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@types/eslint": "^8.44.7",
"@types/eslint": "^8.56.2",
"@types/eventsource": "^1.1.15",
"@types/express": "^4.17.21",
"@types/glob": "^8.1.0",
"@types/koa": "^2.13.12",
"@types/koa-bodyparser": "^4",
"@types/koa": "^2.14.0",
"@types/koa-bodyparser": "^4.3.12",
"@types/koa-mount": "^4.0.5",
"@typescript-eslint/eslint-plugin": "^6.13.1",
"@typescript-eslint/parser": "^6.13.1",
"eslint": "^8.54.0",
"eslint-config-prettier": "^9.0.0",
"@typescript-eslint/eslint-plugin": "^6.19.0",
"@typescript-eslint/parser": "^6.19.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eventsource": "^2.0.2",
"express": "^4.18.2",
"fastify": "^4.24.3",
"fastify": "^4.25.2",
"glob": "^10.3.10",
"graphql": "^16.8.1",
"koa": "^2.14.2",
"koa": "^2.15.0",
"koa-bodyparser": "^4.4.1",
"koa-mount": "^4.0.0",
"prettier": "^3.1.0",
"rollup": "^4.6.0",
"rollup-plugin-gzip": "^3.1.0",
"semantic-release": "^22.0.8",
"prettier": "^3.2.2",
"rollup": "^4.9.5",
"rollup-plugin-gzip": "^3.1.1",
"semantic-release": "^23.0.0",
"tslib": "^2.6.2",
"typedoc": "^0.25.4",
"typedoc": "^0.25.7",
"typedoc-plugin-markdown": "^3.17.1",
"typescript": "^5.3.2",
"vitest": "^0.34.6"
"typescript": "^5.3.3",
"vitest": "^1.2.0"
},
"workspaces": [
"website"
Expand Down
36 changes: 18 additions & 18 deletions tests/__snapshots__/handler.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ exports[`distinct connections mode > should stream query operations to connected

exports[`distinct connections mode > should stream query operations to connected event stream and then disconnect 2`] = `
"event: next
data: {\\"data\\":{\\"getValue\\":\\"value\\"}}
data: {"data":{"getValue":"value"}}
"
`;
Expand All @@ -28,7 +28,7 @@ exports[`distinct connections mode > should stream query operations to connected

exports[`distinct connections mode > should stream query operations to connected event stream and then disconnect 5`] = `
"event: next
data: {\\"data\\":{\\"getValue\\":\\"value\\"}}
data: {"data":{"getValue":"value"}}
"
`;
Expand All @@ -48,35 +48,35 @@ exports[`distinct connections mode > should stream subscription operations to co

exports[`distinct connections mode > should stream subscription operations to connected event stream and then disconnect 2`] = `
"event: next
data: {\\"data\\":{\\"greetings\\":\\"Hi\\"}}
data: {"data":{"greetings":"Hi"}}
"
`;

exports[`distinct connections mode > should stream subscription operations to connected event stream and then disconnect 3`] = `
"event: next
data: {\\"data\\":{\\"greetings\\":\\"Bonjour\\"}}
data: {"data":{"greetings":"Bonjour"}}
"
`;

exports[`distinct connections mode > should stream subscription operations to connected event stream and then disconnect 4`] = `
"event: next
data: {\\"data\\":{\\"greetings\\":\\"Hola\\"}}
data: {"data":{"greetings":"Hola"}}
"
`;

exports[`distinct connections mode > should stream subscription operations to connected event stream and then disconnect 5`] = `
"event: next
data: {\\"data\\":{\\"greetings\\":\\"Ciao\\"}}
data: {"data":{"greetings":"Ciao"}}
"
`;

exports[`distinct connections mode > should stream subscription operations to connected event stream and then disconnect 6`] = `
"event: next
data: {\\"data\\":{\\"greetings\\":\\"Zdravo\\"}}
data: {"data":{"greetings":"Zdravo"}}
"
`;
Expand All @@ -96,35 +96,35 @@ exports[`distinct connections mode > should stream subscription operations to co

exports[`distinct connections mode > should stream subscription operations to connected event stream and then disconnect 9`] = `
"event: next
data: {\\"data\\":{\\"greetings\\":\\"Hi\\"}}
data: {"data":{"greetings":"Hi"}}
"
`;

exports[`distinct connections mode > should stream subscription operations to connected event stream and then disconnect 10`] = `
"event: next
data: {\\"data\\":{\\"greetings\\":\\"Bonjour\\"}}
data: {"data":{"greetings":"Bonjour"}}
"
`;

exports[`distinct connections mode > should stream subscription operations to connected event stream and then disconnect 11`] = `
"event: next
data: {\\"data\\":{\\"greetings\\":\\"Hola\\"}}
data: {"data":{"greetings":"Hola"}}
"
`;

exports[`distinct connections mode > should stream subscription operations to connected event stream and then disconnect 12`] = `
"event: next
data: {\\"data\\":{\\"greetings\\":\\"Ciao\\"}}
data: {"data":{"greetings":"Ciao"}}
"
`;

exports[`distinct connections mode > should stream subscription operations to connected event stream and then disconnect 13`] = `
"event: next
data: {\\"data\\":{\\"greetings\\":\\"Zdravo\\"}}
data: {"data":{"greetings":"Zdravo"}}
"
`;
Expand All @@ -138,42 +138,42 @@ data:

exports[`single connection mode > should stream subscription operations to connected event stream 2`] = `
"event: next
data: {\\"id\\":\\"1\\",\\"payload\\":{\\"data\\":{\\"greetings\\":\\"Hi\\"}}}
data: {"id":"1","payload":{"data":{"greetings":"Hi"}}}
"
`;

exports[`single connection mode > should stream subscription operations to connected event stream 3`] = `
"event: next
data: {\\"id\\":\\"1\\",\\"payload\\":{\\"data\\":{\\"greetings\\":\\"Bonjour\\"}}}
data: {"id":"1","payload":{"data":{"greetings":"Bonjour"}}}
"
`;

exports[`single connection mode > should stream subscription operations to connected event stream 4`] = `
"event: next
data: {\\"id\\":\\"1\\",\\"payload\\":{\\"data\\":{\\"greetings\\":\\"Hola\\"}}}
data: {"id":"1","payload":{"data":{"greetings":"Hola"}}}
"
`;

exports[`single connection mode > should stream subscription operations to connected event stream 5`] = `
"event: next
data: {\\"id\\":\\"1\\",\\"payload\\":{\\"data\\":{\\"greetings\\":\\"Ciao\\"}}}
data: {"id":"1","payload":{"data":{"greetings":"Ciao"}}}
"
`;

exports[`single connection mode > should stream subscription operations to connected event stream 6`] = `
"event: next
data: {\\"id\\":\\"1\\",\\"payload\\":{\\"data\\":{\\"greetings\\":\\"Zdravo\\"}}}
data: {"id":"1","payload":{"data":{"greetings":"Zdravo"}}}
"
`;

exports[`single connection mode > should stream subscription operations to connected event stream 7`] = `
"event: complete
data: {\\"id\\":\\"1\\"}
data: {"id":"1"}
"
`;
4 changes: 2 additions & 2 deletions tests/__snapshots__/parser.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`should accept valid events only 1`] = `"Invalid stream event \\"done\\""`;
exports[`should accept valid events only 1`] = `[Error: Invalid stream event "done"]`;

exports[`should accept valid events only 2`] = `"Invalid stream event \\"value\\""`;
exports[`should accept valid events only 2`] = `[Error: Invalid stream event "value"]`;

exports[`should ignore comments 1`] = `
[
Expand Down
10 changes: 5 additions & 5 deletions tests/client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -974,11 +974,11 @@ it('should support distinct connections mode with EventSource', async () => {
}),
).resolves.toMatchInlineSnapshot(`
[
"{\\"data\\":{\\"greetings\\":\\"Hi\\"}}",
"{\\"data\\":{\\"greetings\\":\\"Bonjour\\"}}",
"{\\"data\\":{\\"greetings\\":\\"Hola\\"}}",
"{\\"data\\":{\\"greetings\\":\\"Ciao\\"}}",
"{\\"data\\":{\\"greetings\\":\\"Zdravo\\"}}",
"{"data":{"greetings":"Hi"}}",
"{"data":{"greetings":"Bonjour"}}",
"{"data":{"greetings":"Hola"}}",
"{"data":{"greetings":"Ciao"}}",
"{"data":{"greetings":"Zdravo"}}",
]
`);
});
Expand Down
30 changes: 15 additions & 15 deletions tests/handler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ it('should only accept valid accept headers', async () => {
'application/json; charset=utf-8',
);
expect(body).toMatchInlineSnapshot(
'"{\\"errors\\":[{\\"message\\":\\"Missing query\\"}]}"',
`"{"errors":[{"message":"Missing query"}]}"`,
);

[body, init] = await handler('GET', {
Expand All @@ -47,7 +47,7 @@ it('should only accept valid accept headers', async () => {
'application/json; charset=utf-8',
);
expect(body).toMatchInlineSnapshot(
'"{\\"errors\\":[{\\"message\\":\\"Missing query\\"}]}"',
`"{"errors":[{"message":"Missing query"}]}"`,
);
});

Expand Down Expand Up @@ -159,7 +159,7 @@ it('should detect execution args in onSubscribe return value', async () => {
{
"done": false,
"value": "event: next
data: {\\"data\\":{\\"getValue\\":\\"value\\"}}
data: {"data":{"getValue":"value"}}
",
}
Expand All @@ -182,7 +182,7 @@ describe('single connection mode', () => {
'application/json; charset=utf-8',
);
expect(body).toMatchInlineSnapshot(
'"{\\"errors\\":[{\\"message\\":\\"Stream not found\\"}]}"',
`"{"errors":[{"message":"Stream not found"}]}"`,
);

const search = new URLSearchParams();
Expand All @@ -194,7 +194,7 @@ describe('single connection mode', () => {
'application/json; charset=utf-8',
);
expect(body).toMatchInlineSnapshot(
'"{\\"errors\\":[{\\"message\\":\\"Stream not found\\"}]}"',
`"{"errors":[{"message":"Stream not found"}]}"`,
);

[body, init] = await handler('DELETE', { search });
Expand All @@ -203,7 +203,7 @@ describe('single connection mode', () => {
'application/json; charset=utf-8',
);
expect(body).toMatchInlineSnapshot(
'"{\\"errors\\":[{\\"message\\":\\"Stream not found\\"}]}"',
`"{"errors":[{"message":"Stream not found"}]}"`,
);
});

Expand Down Expand Up @@ -231,7 +231,7 @@ describe('single connection mode', () => {
});
expect(init.status).toBe(400);
expect(body).toMatchInlineSnapshot(
'"{\\"errors\\":[{\\"message\\":\\"Missing query\\"}]}"',
`"{"errors":[{"message":"Missing query"}]}"`,
);
});

Expand Down Expand Up @@ -280,7 +280,7 @@ describe('single connection mode', () => {

expect(init.status).toBe(400);
expect(body).toMatchInlineSnapshot(
'"{\\"errors\\":[{\\"message\\":\\"Operation ID is missing\\"}]}"',
`"{"errors":[{"message":"Operation ID is missing"}]}"`,
);
});

Expand Down Expand Up @@ -318,7 +318,7 @@ describe('single connection mode', () => {
{
"done": false,
"value": "event: next
data: {\\"id\\":\\"1\\",\\"payload\\":{\\"data\\":{\\"getValue\\":\\"value\\"}}}
data: {"id":"1","payload":{"data":{"getValue":"value"}}}
",
}
Expand All @@ -328,7 +328,7 @@ describe('single connection mode', () => {
{
"done": false,
"value": "event: complete
data: {\\"id\\":\\"1\\"}
data: {"id":"1"}
",
}
Expand Down Expand Up @@ -425,7 +425,7 @@ describe('single connection mode', () => {
});
expect(init.status).toBe(400);
expect(body).toMatchInlineSnapshot(
'"{\\"errors\\":[{\\"message\\":\\"Cannot query field \\\\\\"notExists\\\\\\" on type \\\\\\"Subscription\\\\\\".\\",\\"locations\\":[{\\"line\\":1,\\"column\\":16}]}]}"',
`"{"errors":[{"message":"Cannot query field \\"notExists\\" on type \\"Subscription\\".","locations":[{"line":1,"column":16}]}]}"`,
);

// stream remains open
Expand Down Expand Up @@ -477,7 +477,7 @@ describe('single connection mode', () => {
{
"done": false,
"value": "event: next
data: {\\"id\\":\\"1\\",\\"payload\\":{\\"errors\\":[{\\"message\\":\\"Kaboom!\\",\\"locations\\":[{\\"line\\":1,\\"column\\":16}],\\"path\\":[\\"throwing\\"]}]}}
data: {"id":"1","payload":{"errors":[{"message":"Kaboom!","locations":[{"line":1,"column":16}],"path":["throwing"]}]}}
",
}
Expand Down Expand Up @@ -575,7 +575,7 @@ describe('distinct connections mode', () => {
{
"done": false,
"value": "event: next
data: {\\"errors\\":[{\\"message\\":\\"Cannot query field \\\\\\"notExists\\\\\\" on type \\\\\\"Query\\\\\\".\\",\\"locations\\":[{\\"line\\":1,\\"column\\":3}]}]}
data: {"errors":[{"message":"Cannot query field \\"notExists\\" on type \\"Query\\".","locations":[{"line":1,"column":3}]}]}
",
}
Expand Down Expand Up @@ -641,7 +641,7 @@ describe('distinct connections mode', () => {
for await (const msg of stream) {
expect(msg).toMatchInlineSnapshot(`
"event: next
data: {\\"data\\":{\\"greetings\\":\\"Hi\\"}}
data: {"data":{"greetings":"Hi"}}
"
`);
Expand All @@ -655,7 +655,7 @@ describe('distinct connections mode', () => {
{
"done": false,
"value": "event: next
data: {\\"data\\":{\\"greetings\\":\\"Bonjour\\"}}
data: {"data":{"greetings":"Bonjour"}}
",
}
Expand Down
14 changes: 7 additions & 7 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@
"build": "next build && next-sitemap --config next-sitemap.config.cjs"
},
"dependencies": {
"@theguild/components": "^6.1.0",
"clsx": "^2.0.0",
"next": "^14.0.3",
"@theguild/components": "^6.1.1",
"clsx": "^2.1.0",
"next": "^14.0.4",
"next-sitemap": "^4.2.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-icons": "^4.12.0"
"react-icons": "^5.0.1"
},
"devDependencies": {
"@theguild/algolia": "^2.1.0",
"@theguild/tailwind-config": "^0.3.0",
"@types/react": "^18.2.39",
"typescript": "^5.3.2"
"@theguild/tailwind-config": "^0.3.1",
"@types/react": "^18.2.48",
"typescript": "^5.3.3"
}
}
Loading

0 comments on commit c497008

Please sign in to comment.