Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update deps #3017

Merged
merged 1 commit into from Apr 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions .eslintrc.yml
Expand Up @@ -143,7 +143,7 @@ rules:
import/dynamic-import-chunkname: off

##############################################################################
# ESLint builtin rules list based on `v7.22.x`
# ESLint builtin rules list based on `v7.23.x`
##############################################################################

# Possible Errors
Expand Down Expand Up @@ -502,7 +502,7 @@ overrides:
- plugin:import/typescript
rules:
##########################################################################
# `@typescript-eslint/eslint-plugin` rule list based on `v4.19.x`
# `@typescript-eslint/eslint-plugin` rule list based on `v4.20.x`
##########################################################################

# Supported Rules
Expand Down
2 changes: 1 addition & 1 deletion .flowconfig
Expand Up @@ -39,4 +39,4 @@ include_warnings=true
no_flowlib=true

[version]
^0.147.0
^0.148.0
585 changes: 302 additions & 283 deletions package-lock.json

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions package.json
Expand Up @@ -44,22 +44,22 @@
"gitpublish:deno": "bash ./resources/gitpublish.sh deno denoDist"
},
"devDependencies": {
"@babel/core": "7.13.10",
"@babel/eslint-parser": "7.13.10",
"@babel/core": "7.13.14",
"@babel/eslint-parser": "7.13.14",
"@babel/plugin-transform-flow-strip-types": "7.13.0",
"@babel/preset-env": "7.13.12",
"@babel/register": "7.13.8",
"@typescript-eslint/eslint-plugin": "4.19.0",
"@typescript-eslint/parser": "4.19.0",
"@babel/register": "7.13.14",
"@typescript-eslint/eslint-plugin": "4.20.0",
"@typescript-eslint/parser": "4.20.0",
"chai": "4.3.4",
"cspell": "5.3.9",
"eslint": "7.22.0",
"cspell": "5.3.10",
"eslint": "7.23.0",
"eslint-plugin-flowtype": "5.4.0",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-internal-rules": "file:./resources/eslint-internal-rules",
"eslint-plugin-istanbul": "0.1.2",
"eslint-plugin-node": "11.1.0",
"flow-bin": "0.147.0",
"flow-bin": "0.148.0",
"mocha": "8.3.2",
"nyc": "15.1.0",
"prettier": "2.2.1",
Expand Down
11 changes: 8 additions & 3 deletions src/jsutils/instanceOf.js
Expand Up @@ -4,13 +4,13 @@
* See: https://expressjs.com/en/advanced/best-practice-performance.html#set-node_env-to-production
* See: https://webpack.js.org/guides/production/
*/
export const instanceOf: (mixed, mixed) => boolean =
export const instanceOf: (mixed, Constructor) => boolean =
process.env.NODE_ENV === 'production'
? // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')
function instanceOf(value: mixed, constructor: mixed): boolean {
function instanceOf(value: mixed, constructor: Constructor): boolean {
return value instanceof constructor;
}
: function instanceOf(value: any, constructor: any): boolean {
: function instanceOf(value: any, constructor: Constructor): boolean {
if (value instanceof constructor) {
return true;
}
Expand All @@ -36,3 +36,8 @@ spurious results.`,
}
return false;
};

type Constructor = {
name: string,
...
};
6 changes: 4 additions & 2 deletions src/jsutils/isAsyncIterable.js
Expand Up @@ -2,8 +2,10 @@
* Returns true if the provided object implements the AsyncIterator protocol via
* either implementing a `Symbol.asyncIterator` or `"@@asyncIterator"` method.
*/
declare function isAsyncIterable(value: mixed): boolean %checks(value instanceof
AsyncIterable);
declare function isAsyncIterable(
value: mixed,
// $FlowFixMe[invalid-in-rhs]
): boolean %checks(value instanceof AsyncIterable);

// eslint-disable-next-line no-redeclare
export function isAsyncIterable(maybeAsyncIterable) {
Expand Down
1 change: 1 addition & 0 deletions src/jsutils/isIteratableObject.js
Expand Up @@ -16,6 +16,7 @@
*/
declare function isIteratableObject(
value: mixed,
// $FlowFixMe[invalid-in-rhs]
): boolean %checks(value instanceof Iterable);

// eslint-disable-next-line no-redeclare
Expand Down