Skip to content

Commit

Permalink
chore: bump deps
Browse files Browse the repository at this point in the history
  • Loading branch information
maraisr committed May 17, 2023
1 parent e8d9efd commit 3589f9e
Show file tree
Hide file tree
Showing 13 changed files with 195 additions and 253 deletions.
4 changes: 1 addition & 3 deletions examples/basic/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ import { meros } from 'meros';
async function run() {
const app = document.querySelector('#app');

const parts = await fetch('/data').then((r) =>
meros<{ letter: string }>(r),
);
const parts = await fetch('/data').then((r) => meros<{ letter: string }>(r));

for await (let part of parts) {
const el = document.createElement('div');
Expand Down
8 changes: 1 addition & 7 deletions examples/relay-with-helix/app/relay.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
import type { ExecutionPatchResult } from 'graphql';
import { meros } from 'meros/browser';
import type { FetchFunction } from 'relay-runtime';
import {
Environment,
Network,
Observable,
RecordSource,
Store,
} from 'relay-runtime';
import { Environment, Network, Observable, RecordSource, Store } from 'relay-runtime';

const STORE_ENTRIES = 150;
const STORE_CACHE_RELEASE_TIME = 2 * 60 * 1000; // 2 mins
Expand Down
20 changes: 4 additions & 16 deletions examples/relay-with-helix/schema.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
import {
GraphQLList,
GraphQLObjectType,
GraphQLSchema,
GraphQLString,
} from 'graphql';
import { GraphQLList, GraphQLObjectType, GraphQLSchema, GraphQLString } from 'graphql';

export const schema = new GraphQLSchema({
query: new GraphQLObjectType({
Expand All @@ -22,9 +17,7 @@ export const schema = new GraphQLSchema({
),
resolve: async function* () {
for (let letter = 65; letter <= 90; letter++) {
await new Promise((resolve) =>
setTimeout(resolve, 500),
);
await new Promise((resolve) => setTimeout(resolve, 500));
yield { char: String.fromCharCode(letter) };
}
},
Expand All @@ -42,20 +35,15 @@ export const schema = new GraphQLSchema({
resolve: () =>
new Promise((resolve) =>
setTimeout(
() =>
resolve(
"Next time won't you sing with me?",
),
() => resolve("Next time won't you sing with me?"),
5000,
),
),
},
}),
}),
resolve: () =>
new Promise((resolve) =>
setTimeout(() => resolve('goodbye'), 1000),
),
new Promise((resolve) => setTimeout(() => resolve('goodbye'), 1000)),
},
}),
}),
Expand Down
7 changes: 1 addition & 6 deletions examples/relay-with-helix/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,7 @@ app.use('/graphql', async (req, res) => {
}

const chunk = Buffer.from(JSON.stringify(result), 'utf8');
const data = [
'',
'Content-Type: application/json; charset=utf-8',
'',
chunk,
];
const data = ['', 'Content-Type: application/json; charset=utf-8', '', chunk];

if (!result.extensions.is_final) {
data.push('---');
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@
},
"prettier": "@marais/prettier",
"devDependencies": {
"@marais/prettier": "0.0.1",
"@marais/tsconfig": "0.0.3",
"@marais/prettier": "0.0.2",
"@marais/tsconfig": "0.0.4",
"@n1ru4l/push-pull-async-iterable-iterator": "3.2.0",
"@types/node": "18.7.16",
"@types/node": "20.1.7",
"bundt": "2.0.0-next.5",
"prettier": "2.7.1",
"tsm": "2.2.2",
"typescript": "4.8.3",
"prettier": "2.8.8",
"tsm": "2.3.0",
"typescript": "5.0.4",
"uvu": "0.5.3"
},
"peerDependencies": {
Expand Down
Loading

0 comments on commit 3589f9e

Please sign in to comment.