Skip to content

Commit

Permalink
chore(deps): upgrade and migrate
Browse files Browse the repository at this point in the history
  • Loading branch information
enisdenjo committed Feb 1, 2023
1 parent c10d0bf commit 016d701
Show file tree
Hide file tree
Showing 7 changed files with 2,002 additions and 1,757 deletions.
823 changes: 0 additions & 823 deletions .yarn/releases/yarn-3.3.1.cjs

This file was deleted.

873 changes: 873 additions & 0 deletions .yarn/releases/yarn-3.4.0.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: '@yarnpkg/plugin-interactive-tools'

yarnPath: .yarn/releases/yarn-3.3.1.cjs
yarnPath: .yarn/releases/yarn-3.4.0.cjs
23 changes: 8 additions & 15 deletions docs/interfaces/server.ServerOptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -513,24 +513,17 @@ ___

▸ (`schema`, `documentAST`, `rules?`, `options?`, `typeInfo?`): `ReadonlyArray`<`GraphQLError`\>

Implements the "Validation" section of the spec.
A custom GraphQL validate function allowing you to apply your
own validation rules.

Validation runs synchronously, returning an array of encountered errors, or
an empty array if no errors were encountered and the document is valid.
Returned, non-empty, array of `GraphQLError`s will be communicated
to the client through the `ErrorMessage`. Use an empty array if the
document is valid and no errors have been encountered.

A list of specific validation rules may be provided. If not provided, the
default list of rules defined by the GraphQL specification will be used.
Will not be used when implementing a custom `onSubscribe`.

Each validation rules is a function which returns a visitor
(see the language/visitor API). Visitor methods are expected to return
GraphQLErrors, or Arrays of GraphQLErrors when invalid.

Validate will stop validation after a `maxErrors` limit has been reached.
Attackers can send pathologically invalid queries to induce a DoS attack,
so by default `maxErrors` set to 100 errors.

Optionally a custom TypeInfo instance may be provided. If not provided, one
will be created from the provided schema.
Throwing an error from within this function will close the socket
with the `Error` message in the close event reason.

##### Parameters

Expand Down
50 changes: 25 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"engines": {
"node": ">=10"
},
"packageManager": "yarn@3.3.1",
"packageManager": "yarn@3.4.0",
"types": "lib/index.d.ts",
"main": "lib/index.js",
"module": "lib/index.mjs",
Expand Down Expand Up @@ -93,45 +93,45 @@
"graphql": ">=0.11 <=16"
},
"devDependencies": {
"@babel/core": "^7.20.7",
"@babel/core": "^7.20.12",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
"@babel/plugin-proposal-optional-chaining": "^7.20.7",
"@babel/preset-env": "^7.20.2",
"@babel/preset-typescript": "^7.18.6",
"@fastify/websocket": "^7.1.1",
"@rollup/plugin-terser": "^0.2.1",
"@rollup/plugin-typescript": "^10.0.1",
"@fastify/websocket": "^7.1.2",
"@rollup/plugin-terser": "^0.4.0",
"@rollup/plugin-typescript": "^11.0.0",
"@semantic-release/changelog": "^6.0.2",
"@semantic-release/git": "^10.0.1",
"@types/eslint": "^8.4.10",
"@types/glob": "^8.0.0",
"@types/jest": "^29.2.4",
"@types/ws": "^8.5.3",
"@typescript-eslint/eslint-plugin": "^5.47.0",
"@typescript-eslint/parser": "^5.47.0",
"babel-jest": "^29.3.1",
"eslint": "^8.30.0",
"eslint-config-prettier": "^8.5.0",
"fastify": "^4.10.2",
"@types/glob": "^8.0.1",
"@types/jest": "^29.4.0",
"@types/ws": "^8.5.4",
"@typescript-eslint/eslint-plugin": "^5.50.0",
"@typescript-eslint/parser": "^5.50.0",
"babel-jest": "^29.4.1",
"eslint": "^8.33.0",
"eslint-config-prettier": "^8.6.0",
"fastify": "^4.12.0",
"fastify-websocket": "4.2.2",
"glob": "^8.0.3",
"glob": "^8.1.0",
"graphql": "^16.6.0",
"jest": "^29.3.1",
"jest-environment-jsdom": "^29.3.1",
"jest-jasmine2": "^29.3.1",
"prettier": "^2.8.1",
"jest": "^29.4.1",
"jest-environment-jsdom": "^29.4.1",
"jest-jasmine2": "^29.4.1",
"prettier": "^2.8.3",
"replacestream": "^4.0.3",
"rollup": "^3.8.1",
"semantic-release": "^19.0.5",
"rollup": "^3.12.1",
"semantic-release": "^20.1.0",
"subscriptions-transport-ws": "^0.11.0",
"tslib": "^2.4.1",
"typedoc": "^0.23.23",
"tslib": "^2.5.0",
"typedoc": "^0.23.24",
"typedoc-plugin-markdown": "^3.14.0",
"typescript": "^4.9.4",
"typescript": "^4.9.5",
"uWebSockets.js": "uNetworking/uWebSockets.js#v20.15.0",
"ws": "^8.11.0",
"ws": "^8.12.0",
"ws7": "npm:ws@^7.5.9"
}
}
2 changes: 1 addition & 1 deletion src/__tests__/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ it('should not send the complete message if the socket is not open', async () =>
close = () => this.close();
}

public send(data: unknown) {
public send(data: string) {
if (this.readyState !== WebSocket.OPEN)
fail("Shouldn't send anything through a non-OPEN socket");
super.send(data);
Expand Down
Loading

0 comments on commit 016d701

Please sign in to comment.