-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
RFC: Allow full unicode range #849
Conversation
be00b2f
to
48d263d
Compare
48d263d
to
983a082
Compare
983a082
to
3694eee
Compare
3694eee
to
383251f
Compare
This factors out the purely editorial changes from #849 to land them earlier and make that particular PR's changes easier to read.
This factors out the purely editorial changes from #849 to land them earlier and make that particular PR's changes easier to read.
383251f
to
4b08e2d
Compare
This factors out the purely editorial changes from #849 to land them earlier and make that particular PR's changes easier to read.
27e6676
to
3b4110d
Compare
e5d241d
to
6c81ed8
Compare
One thing I am not sure yet: should a single surrogate pair be really an error. Wikipedia says: It is possible to unambiguously encode an unpaired surrogate (a high surrogate code point not followed by a low one, or a low one not preceded by a high one) in the format of UTF-16 by using a code unit equal to the code point. The result is not valid UTF-16, but the majority of UTF-16 encoder and decoder implementations do this then when translating between encodings.[citation needed] (But without clear citation as you can see) Looking at the Java and JS internal encoder it seems that they don't throw errors which is consistent with the wiki page. So I am asking if we are trying to be to strict here. As a side effect: not handling single surrogate code points as errors would also simplify implementations. |
I'll be honest that this is on the edge of my expertise with Unicode. I did a ton of reading while working on this and stupidly did not take any notes. I'll try to retrace some steps. Here's an excerpt from the Unicode FAQ:
That is about UTF16 and UTF8 conversions, which is not exactly the domain we are working in the spec. GraphQL does not have an official encoding, it stays at the abstraction of a "sequence of code points" I suppose if your implementation relied on UTF8 under the hood then you would expect the behavior described here, only an error would be appropriate when interpreting the string value. If your implementation relied on "older software" UTF16, as both Java and JavaScript do, then you might just expect them to pass through without error, since that's what the host environment does. I think either way we need to solve for: Given a string which includes a surrogate pair (directly or escaped), we need to describe the string value of code points in a well defined way. So we will have to have this bit of complexity one way or another. Our choice is then what to do with unpaired surrogates:
I'm not sure which of the latter two you'd suggest, though I think we may need to call in for more Unicode brain power 🧠 |
Depends on #3115 Implements RFC at graphql/graphql-spec#849. * Replaces `isSourceCharacter` with `isUnicodeScalarValue` * Adds `isSupplementaryCodePoint`, used in String, BlockStrings, and Comments to ensure correct lexing of JavaScript's UTF-16 source. * Updates `printCodePointAt` to correctly print supplementary code points. * Adds variable-width Unicode escape sequences * Adds explicit support for legacy JSON-style fixed-width Unicode escape sequence surrogate pairs. * Adds `printString` to no longer rely on `JSON.stringify`. Borrows some implementation details from Node.js internals for string printing. Implements: > When producing a {StringValue}, implementations should use escape sequences to > represent non-printable control characters (U+0000 to U+001F and U+007F to > U+009F). Other escape sequences are not necessary, however an implementation may > use escape sequences to represent any other range of code points. Closes #2449 Co-authored-by: Andreas Marek <andimarek@fastmail.fm>
Depends on #3115 Implements RFC at graphql/graphql-spec#849. * Replaces `isSourceCharacter` with `isUnicodeScalarValue` * Adds `isSupplementaryCodePoint`, used in String, BlockStrings, and Comments to ensure correct lexing of JavaScript's UTF-16 source. * Updates `printCodePointAt` to correctly print supplementary code points. * Adds variable-width Unicode escape sequences * Adds explicit support for legacy JSON-style fixed-width Unicode escape sequence surrogate pairs. * Adds `printString` to no longer rely on `JSON.stringify`. Borrows some implementation details from Node.js internals for string printing. Implements: > When producing a {StringValue}, implementations should use escape sequences to > represent non-printable control characters (U+0000 to U+001F and U+007F to > U+009F). Other escape sequences are not necessary, however an implementation may > use escape sequences to represent any other range of code points. Closes #2449 Co-authored-by: Andreas Marek <andimarek@fastmail.fm>
Depends on #3115 Implements RFC at graphql/graphql-spec#849. * Replaces `isSourceCharacter` with `isUnicodeScalarValue` * Adds `isSupplementaryCodePoint`, used in String, BlockStrings, and Comments to ensure correct lexing of JavaScript's UTF-16 source. * Updates `printCodePointAt` to correctly print supplementary code points. * Adds variable-width Unicode escape sequences * Adds explicit support for legacy JSON-style fixed-width Unicode escape sequence surrogate pairs. * Adds `printString` to no longer rely on `JSON.stringify`. Borrows some implementation details from Node.js internals for string printing. Implements: > When producing a {StringValue}, implementations should use escape sequences to > represent non-printable control characters (U+0000 to U+001F and U+007F to > U+009F). Other escape sequences are not necessary, however an implementation may > use escape sequences to represent any other range of code points. Closes #2449 Co-authored-by: Andreas Marek <andimarek@fastmail.fm>
Depends on #3115 Implements RFC at graphql/graphql-spec#849. * Replaces `isSourceCharacter` with `isUnicodeScalarValue` * Adds `isSupplementaryCodePoint`, used in String, BlockStrings, and Comments to ensure correct lexing of JavaScript's UTF-16 source. * Updates `printCodePointAt` to correctly print supplementary code points. * Adds variable-width Unicode escape sequences * Adds explicit support for legacy JSON-style fixed-width Unicode escape sequence surrogate pairs. * Adds `printString` to no longer rely on `JSON.stringify`. Borrows some implementation details from Node.js internals for string printing. Implements: > When producing a {StringValue}, implementations should use escape sequences to > represent non-printable control characters (U+0000 to U+001F and U+007F to > U+009F). Other escape sequences are not necessary, however an implementation may > use escape sequences to represent any other range of code points. Closes #2449 Co-authored-by: Andreas Marek <andimarek@fastmail.fm>
Depends on #3115 Implements RFC at graphql/graphql-spec#849. * Replaces `isSourceCharacter` with `isUnicodeScalarValue` * Adds `isSupplementaryCodePoint`, used in String, BlockStrings, and Comments to ensure correct lexing of JavaScript's UTF-16 source. * Updates `printCodePointAt` to correctly print supplementary code points. * Adds variable-width Unicode escape sequences * Adds explicit support for legacy JSON-style fixed-width Unicode escape sequence surrogate pairs. * Adds `printString` to no longer rely on `JSON.stringify`. Borrows some implementation details from Node.js internals for string printing. Implements: > When producing a {StringValue}, implementations should use escape sequences to > represent non-printable control characters (U+0000 to U+001F and U+007F to > U+009F). Other escape sequences are not necessary, however an implementation may > use escape sequences to represent any other range of code points. Closes #2449 Co-authored-by: Andreas Marek <andimarek@fastmail.fm>
Depends on #3115 Implements RFC at graphql/graphql-spec#849. * Replaces `isSourceCharacter` with `isUnicodeScalarValue` * Adds `isSupplementaryCodePoint`, used in String, BlockStrings, and Comments to ensure correct lexing of JavaScript's UTF-16 source. * Updates `printCodePointAt` to correctly print supplementary code points. * Adds variable-width Unicode escape sequences * Adds explicit support for legacy JSON-style fixed-width Unicode escape sequence surrogate pairs. * Adds `printString` to no longer rely on `JSON.stringify`. Borrows some implementation details from Node.js internals for string printing. Implements: > When producing a {StringValue}, implementations should use escape sequences to > represent non-printable control characters (U+0000 to U+001F and U+007F to > U+009F). Other escape sequences are not necessary, however an implementation may > use escape sequences to represent any other range of code points. Closes #2449 Co-authored-by: Andreas Marek <andimarek@fastmail.fm>
Depends on #3115 Implements RFC at graphql/graphql-spec#849. * Replaces `isSourceCharacter` with `isUnicodeScalarValue` * Adds `isSupplementaryCodePoint`, used in String, BlockStrings, and Comments to ensure correct lexing of JavaScript's UTF-16 source. * Updates `printCodePointAt` to correctly print supplementary code points. * Adds variable-width Unicode escape sequences * Adds explicit support for legacy JSON-style fixed-width Unicode escape sequence surrogate pairs. * Adds `printString` to no longer rely on `JSON.stringify`. Borrows some implementation details from Node.js internals for string printing. Implements: > When producing a {StringValue}, implementations should use escape sequences to > represent non-printable control characters (U+0000 to U+001F and U+007F to > U+009F). Other escape sequences are not necessary, however an implementation may > use escape sequences to represent any other range of code points. Closes #2449 Co-authored-by: Andreas Marek <andimarek@fastmail.fm>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have two open questions, see inline comments.
spec/Section 2 -- Language.md
Outdated
beginning of a file which programs may use to determine the fact that the text | ||
stream is Unicode, and what specific encoding has been used. | ||
|
||
As files are often concatenated, a *Byte Order Mark* may appear anywhere within |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have enough background to judge that. How often and in which areas is that used these days that we need to consider that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UTF-8 doesn't need a BOM, so since that's become the dominant encoding this comment is a little anachronistic (BOM is common in other encodings like UTF-16), but I think still important for completeness.
This same clause appears in the JavaScript spec for similar reasons.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should point out that this is an editorial change. The current spec has this same clause, it was just in an awkward location before we had a space to discuss Unicode support directly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah ... GraphQL Java actually already handles that :-)
spec/Section 2 -- Language.md
Outdated
- "U+000A" | ||
- "U+000D" | ||
- "U+0020–U+FFFF" | ||
- "Any Unicode scalar value" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the one change I can see so far which I am not sure about.
I can see how you want to escape control character in a String, because you really want to be able to express ALL unicode scalar values.
But why unescaped in a document itself? In 6 years GraphQL Java nobody ever wanted to that afaik.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this earlier change to exclude control characters was well intentioned but ultimately more costly than helpful.
In practice I agree with your point, but there are corner cases which have caused real confusion.
First, it only excluded the ascii-range control chars, and not the control chars > 0x7F, so while the intent was to exclude control chars, in practice there were others allowed.
But I think more importantly, the real cost is being different from other languages as a source of complexity and confusion. No other modern language has this kind of source level exclusion, and this ends up being a land-mine for dynamic queries with string concatenation which need to then remember to do additional input sanitation.
Ultimately this previous attempt to exclude control chars was just a source of implementation complexity of dubious value. My intent with the change is to make Unicode source chars no different from nearly all other modern languages.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for explaining. I am happy with it.
spec/Section 2 -- Language.md
Outdated
Strings are sequences of characters wrapped in quotation marks (U+0022). | ||
(ex. {`"Hello World"`}). White space and other otherwise-ignored characters are | ||
significant within a string value. | ||
{StringValue} is a sequence of characters wrapped in quotation marks (U+0022). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is getting a bit meta but I don't think character is completely correct here. It is either a sequence of Unicode Scalar Values or a sequence of Code Points depending on how you look at it.
This is the first public commit in what has been a few months of internal development. Future development will occur in public directly in this repository. Squashed commit of the following: commit 4175b26ed97167c93aa19f596c3329e28c865e70 Author: Nicolas Lagoutte <krementnico@hotmail.fr> Date: Wed Jan 5 15:08:52 2022 +0000 Prevent Infinite Loop in OverlappingFieldsCanBeMergedRule (#3442) Co-authored-by: Ivan Goncharov <ivan.goncharov.ua@gmail.com> commit 29b811fca5f726c9a3aa1d979c70ecbced8b4ec8 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Jan 3 22:50:09 2022 +0200 Fix index.ts files to be compatible with Typedoc (#3447) commit 47bd8c8897c72d3efc17ecb1599a95cee6bac5e8 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Jan 3 22:27:37 2022 +0200 Use 'eslint-plugin-simple-import-sort' to sort imports (#3446) commit 085d1ee89d11093e910912eb5d8cc3fbd6c7a0dc Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Dec 27 15:44:59 2021 +0200 Update deps (#3444) commit f890300dd3a9a6257ea9c1ec266b16ef405eed71 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Dec 26 20:31:09 2021 +0200 ci/checkPackageLock: update only package-lock.json (#3443) commit 872c6b98a2fd21946aec25e757236c6652f16229 Author: Christoph Zwerschke <cito@online.de> Date: Sun Dec 26 10:29:15 2021 +0100 UniqueArgumentDefinitionNamesRule: Improve tests (#3441) Co-authored-by: Ivan Goncharov <ivan.goncharov.ua@gmail.com> commit 533b423f3ec6c9a5624ed16c89589975a21f653f Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Dec 22 16:01:12 2021 +0200 Update deps (#3438) commit db4986e8a254fb833609e03d2e6fe3a3ec9a5bf4 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Dec 20 23:31:13 2021 +0200 CONTRIBUTING.md: remove reference to Facebook bug bounty program (#3437) commit 671e68bca999054693e5e231208d79f7c09c247e Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Dec 20 23:09:56 2021 +0200 gh/actions: make all cloned repo read-only (#3436) commit 67e14cffd4d7e866bf148868906d777b0e5226bd Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Dec 20 23:03:57 2021 +0200 gh/actions: run benchmark & diff-npm-package only on PRs (#3435) commit e2ebf04363d25d172d9c64c82f810e318ddcc5b1 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Dec 20 22:47:33 2021 +0200 gh/actions: remove 'npm dedupe' check since it unexpectadly do update (#3434) commit 71dd289ba323f9d9c4c42311652faba965bd7c4f Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Dec 20 20:02:29 2021 +0200 gh/actions: refactor out action to deploy branches (#3433) commit 3ab82f4981970f50dd3a96e22a11839e4ec5bb7b Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri Dec 17 16:23:06 2021 +0200 16.2.0 commit f17351c10652b1c9a55ca0936bb3b2ac4414b5b7 Author: Christoph Zwerschke <cito@online.de> Date: Fri Dec 17 14:46:23 2021 +0100 assertName-test: test new instead of deprecated function (#3423) Co-authored-by: Ivan Goncharov <ivan.goncharov.ua@gmail.com> commit 779519253a68d7a906f366858aec75cee239452e Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri Dec 17 15:21:02 2021 +0200 gh/actions: run benchmark and NPM diff on correct base commits (#3427) Fixes #3371 commit 95a85f73a9975a0ad6394d11096c57c6872a2cc2 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Dec 14 17:46:33 2021 +0200 type/definition: export `resolve*Thunk` functions (#3426) commit 4f56285ddbef8a18a8eb0bdd3b91c700cd8cd288 Author: Christoph Zwerschke <cito@online.de> Date: Tue Dec 14 14:53:55 2021 +0100 Minor grammar fixes in collectFields documentation (#3422) commit c8bbb0a6197b1b50088f8910fec86704e8bf41b5 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu Dec 9 17:44:08 2021 +0200 resources/utils: extract 'writeGeneratedFile' to utils (#3420) commit 90bd6ff72625173dd39a1f82cfad9336cfad8f65 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Dec 7 23:22:05 2021 +0200 16.1.0 commit ab52ddc9227806fa530e5892173028a656929059 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Dec 7 23:18:48 2021 +0200 package.json: Specify NPM release tag explicitly (#3417) commit 763c1496d8b5b01ace64dd4b82c3f2037ecb0b08 Author: Yaacov Rydzinski <yaacovCR@gmail.com> Date: Tue Dec 7 22:19:42 2021 +0200 fix c8 ignore decorator typos (#3416) commit 6e48d16f92b9a6df8638b1486354c6be2537033b Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sat Dec 4 22:45:25 2021 +0200 ci: add check for unnessary duplicates in package-lock.json (#3407) commit c145cd42afb606e6bee33593b048b977c92f7a0b Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sat Dec 4 22:35:15 2021 +0200 Simplify code by replacing Object.entries with Object.keys (#3406) commit 947165fc33e39631fddaa8e3432263d2e7e0e98f Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sat Dec 4 22:12:01 2021 +0200 Use for '--ignore-scripts' for all `npm ci` & `npm install` (#3405) commit ce4277e94587f51424bffe405bb488f38f1218da Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sat Dec 4 21:22:56 2021 +0200 github/workflows: simplify npm cache setup (#3404) commit 13530ced071abde76ea2c3fcc49bf62a5a939b3a Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sat Dec 4 00:57:04 2021 +0200 ci: add check that 'package-lock.json' doesn't have conflicts (#3403) commit d26f6e91d49ee7d7b95f27c1991a79dd43cb1b58 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri Dec 3 23:08:18 2021 +0200 tests: Improve formating of strings with 'dedent' tag (#3401) commit cbbff7fd01c38bc08979e652463ba94f67cd39e6 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri Dec 3 20:01:42 2021 +0200 expectJSON: improve readability (#3400) commit 01dfa68652f7c11ef08ebd0abe53e5a38a94e0af Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Dec 1 19:39:40 2021 +0200 Update deps (#3399) commit 8540df21ea7d50ab003f8bb8260e15a26246bf4a Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Dec 1 19:17:11 2021 +0200 Switch coverage from nyc to c8 (#3398) commit 36f068e8cca064f9796d35de27ba1ef489873926 Author: Paul Serraino <pserraino99@gmail.com> Date: Wed Dec 1 05:40:11 2021 -0600 Update doc examples to reflect the current API (#3393) commit bc3564ace52be65e391714f3097b1e6ca0a372dc Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Nov 30 20:27:45 2021 +0200 typeFromAST: use exhaustive switch and remove invariant (#3396) commit 79d984f0a88386ac6f606e5852d3d1f0e8874b47 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Nov 30 00:05:26 2021 +0200 Remove $FlowFixMe comments (#3392) commit fca503ec2c3d918444c7e9c1373e1753aa06fb44 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Nov 29 22:40:43 2021 +0200 Enable '@typescript-eslint/switch-exhaustiveness-check' rule (#3391) commit 37ec050c1a47b77003cbf1bd5606fac3fcc647b8 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Nov 29 18:35:05 2021 +0200 Update deps (#3390) commit 39be2f6a785dc8d6b752541a33a10ef604c5cb42 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Nov 29 16:23:16 2021 +0200 package.json: Drop unused '@babel/eslint-parser' (#3389) commit 0fb6afc9c31e16b7c5a752d0baaa829e583aa244 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Nov 28 23:47:08 2021 +0200 Drop "eslint-plugin-istanbul" and implement as internal ESLint rule (#3388) commit 82ff6539a5b961b00367ed7d6ac57a7297af2a9a Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Nov 28 23:04:27 2021 +0200 Update package-lock.json (#3387) commit 2344c47a365515f4716bf418290471f768be54dc Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Nov 28 22:49:36 2021 +0200 Add support for Node17 (#3386) commit e8c946165c902956b9041ea1b39505686cc009f6 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Nov 28 20:15:30 2021 +0200 Preserve non-error values thrown from resolvers (#3384) commit cce8a85fe897a0ff9a71156e83aeb2a83fef6872 Author: Alex Reilly <fabiobean2@gmail.com> Date: Mon Nov 22 23:28:37 2021 -0800 lexer-tests: Use tildas as invalid characters (#3377) commit 0d1297a4305e46b52ee82675f883a9e2772f17a8 Author: Alex Reilly <fabiobean2@gmail.com> Date: Mon Nov 22 23:27:25 2021 -0800 execute: fix spec section names in comments (#3376) commit be1261373e45bfd96676efe612b4e02aa308ce72 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Nov 22 17:22:10 2021 +0200 printSchema: handle descriptions that are non-printable as block strings (#3375) commit 11a08024a35b08104b291627f4fdb2e8c69f8cab Author: Francisco Marques <franciscopcmarques@gmail.com> Date: Tue Nov 16 12:14:50 2021 +0000 Export GRAPHQL_MAX_INT and GRAPHQL_MIN_INT (#3355) commit 085c9efaa4586aa9b4bbf21f80ea612a79069b8d Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Nov 8 17:28:28 2021 +0200 Add devAssert about removal of positional arguments (#3365) commit 30b446938a9b5afeb25c642d8af1ea33f6c849f3 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Nov 1 22:45:53 2021 +0200 16.0.1 commit b262418e816b3852dddbbedf0efad4ddead1a5fe Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Nov 1 22:42:37 2021 +0200 Lexer: fix line & column for multiline BLOCK_STRING tokens (#3354) Fixes #3353 commit 958ac6c9b27b7147b47fa4c36d792c01a8d341a3 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Nov 1 16:46:27 2021 +0200 GraphQLError-test: text how extensions is inherited from originalError (#3348) commit 10c1c3d6cd8e165501fb1471b5babfabd1be1eb1 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri Oct 29 16:36:06 2021 +0300 checkgit.sh: Added a check for local modifications (#3347) commit 7ca43c87bc9cc30b0b931c553908a2db77abb3cc Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu Oct 28 22:49:11 2021 +0300 16.0.0 commit ced56b2df0364a2b7f784e43ada69cc612d6e32a Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu Oct 28 22:46:23 2021 +0300 version-test: fix validation of `versionInfo.preReleaseTag` (#3345) commit 2831917db113caca33c9df0a6cb9c90eed3a1776 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu Oct 28 20:15:05 2021 +0300 build-npm: fix type inference during TS declarations build commit d2eb7bd9de8ed258eb2a4be3825760efeec467e9 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu Oct 28 19:38:50 2021 +0300 version: force proper typing on version literals Types should be generic and stay the same across different versions E.g. `preReleaseTag` should be typed `string | null` even if it's a `null` literal for this particular release commit 6453612a6c40a1f8ad06845f1516c5f0dafa666c Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Oct 27 16:28:04 2021 +0300 16.0.0-rc.7 commit 556ac034ef021ddedfe7af037fefc52c479804fd Author: Yaacov Rydzinski <yaacovCR@gmail.com> Date: Wed Oct 27 16:23:17 2021 +0300 Use default GITHUB_ACTOR if unset (#3331) Co-authored-by: Ivan Goncharov <ivan.goncharov.ua@gmail.com> commit c2435fd1b8b22e034ad1b266bf092ace0e06d015 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Oct 27 15:15:50 2021 +0300 Fix TS error caused by importing internal files directly (#3339) commit a745361c621950f8c3b8895bc13e455c20f7854a Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Oct 26 22:54:21 2021 +0300 GraphQLError: Add test to check order of fields in JSON.stringify (#3336) commit dc1f7a57bd0829fc63a933aacbc1c7b542f21772 Author: Yaacov Rydzinski <yaacovCR@gmail.com> Date: Mon Oct 25 18:17:10 2021 +0300 use GITHUB_TOKEN (#3330) commit 811ba373311006901cc7bbaf34035b60f949fd5e Author: Yaacov Rydzinski <yaacovCR@gmail.com> Date: Mon Oct 25 18:02:36 2021 +0300 Fix release instructions (#3329) commit d35bca5f7e1eea49804c46ef9c7bd35791759b6d Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sat Oct 23 15:33:43 2021 +0300 16.0.0-rc.6 commit fd50cebbd110d95d74b527a6189d2ad1ab348d0e Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sat Oct 23 15:30:48 2021 +0300 GraphQLField: relax default value of TArgs to `any` (#3328) commit 52f17544200f13e0e2d455f834deeecf4953d72d Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri Oct 22 13:48:31 2021 +0300 GraphQLError: enumerate only spec prescribed properties (#3326) commit b93641125a7f75a7cb10bc9c5cf6bd89983834bb Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Oct 20 17:45:53 2021 +0300 GraphQLError: fix empty `locations` if error got nodes without locations (#3325) commit a3d215bdce6fc4eda9f0fce25d52224c3bea2700 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Oct 20 13:19:53 2021 +0300 GraphQLError-test: merge check of source with rest of the properties (#3324) commit cd35c99bbacf65e1096349d844774d2f7c038e56 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Oct 20 12:48:35 2021 +0300 Lexer: use standard JS functions to handle Unicode (#3322) commit 7da9cd31a78fa135d2a44a97d1a4dfad0858b001 Author: Christoph Zwerschke <cito@online.de> Date: Tue Oct 19 11:45:51 2021 +0200 lexer: fix expression to decode surrogate pairs (#3278) commit f42cee922d13576b1452bb5bf6c7b155bf0e2ecd Author: Christoph Zwerschke <cito@online.de> Date: Tue Oct 19 09:53:00 2021 +0200 jsutils: add test for Path functions (#2478) Co-authored-by: Ivan Goncharov <ivan.goncharov.ua@gmail.com> commit 4c9bf037ed32b8a9bd2215b264c8b89e1f6c86c2 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Oct 18 15:16:30 2021 +0300 16.0.0-rc.5 commit e91f3a88bacecd1e656132ea1bb6786999931058 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Oct 18 15:13:58 2021 +0300 Update deps (#3320) commit 7c6bf480b5cfc09451b2951c6303351a76785dc1 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Oct 18 14:52:50 2021 +0300 Add message that we only support TS >= 4.1.0 (#3319) commit ada5ee0d9a720f97b11f7296ec5b1936021088fe Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Oct 18 13:52:57 2021 +0300 Deprecate 'ASTKindToNode' (#3318) commit 73025aa009039c1e2e74f7bbd088ec6ab6e07e94 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Oct 18 12:26:43 2021 +0300 Convert const "enum-like" maps to TS enums (#3317) commit 3deb5cccddd4ffaa123ba03952a947eccf813e5d Author: Yaacov Rydzinski <yaacovCR@gmail.com> Date: Fri Oct 15 11:34:34 2021 +0300 Export OperationTypeNode as value (#3316) commit 06d9cb42b6523a9bca39c6690d47de1c3f52a8cb Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Oct 13 17:07:51 2021 +0300 Change type of error extensions from anonymous Record to named interfaces (#3315) commit 04c6fce07a9c1ee271a637899614e5de5b35eaf8 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Oct 13 14:37:22 2021 +0300 16.0.0-rc.4 commit e289e6412ca59cd6298796d61efa19d78eeb945c Author: Martin Trobäck <lekoaf@users.noreply.github.com> Date: Wed Oct 13 13:34:09 2021 +0200 language: change OperationTypeNode to enum (#3312) Co-authored-by: Ivan Goncharov <ivan.goncharov.ua@gmail.com> commit d48d5028a88f912f8b506a8a8b8dd938de96cb80 Author: jjangga0214 <jjangga@kookmin.ac.kr> Date: Wed Oct 13 19:38:16 2021 +0900 refactor(language/ast.d.ts): use Kind enum type (#2984) Co-authored-by: Ivan Goncharov <ivan.goncharov.ua@gmail.com> commit b1ce2c3567fc34f351fe20cc73d098bfdd474ebc Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Oct 13 11:50:54 2021 +0300 GraphQLError: keep extensions always present (#3313) commit 82900fa245f4c2a6b148de1d71c8bede52d34b7d Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Oct 12 16:02:44 2021 +0300 GraphQLError: use enumerable properties (#3311) commit 01fa86887954685e2fa12c8f8a23cea2d47c13d1 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Oct 12 15:01:11 2021 +0300 expectJSON: return custom object instead of `expect` (#3310) commit f45bc0ade059fbec6c02ecf6ebdf6dbc4adba017 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Oct 12 00:17:00 2021 +0300 Move deprecated `SubscriptionArgs` to 'src/subscription' (#3309) commit 2aad6b44f7a04e3b87be03ce3ad126ba4d57fe71 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Oct 11 23:38:22 2021 +0300 execute: Correctly report missing root type error (#3308) commit 71c7a1413e16fc71bd7435e1c7ca01b4f123d563 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Oct 11 22:47:22 2021 +0300 Reuse `groupBy` in validation rules (#3307) commit 96b146d97f0fc6a06fd2c4b1444c5b00c0da3fd6 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Oct 11 22:11:55 2021 +0300 Added 'GraphQLSchema.getRootType' and deprecate `getOperationRootType` (#3305) commit 2170e4a485e067e68870aabb551f5cd44bd088d4 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Oct 11 18:21:31 2021 +0300 Add 'UniqueArgumentDefinitionNamesRule' validation rule (#3208) commit 6aee19b99c22b62135fa522a88bb17a6b94ad905 Author: Yaacov Rydzinski <yaacovCR@gmail.com> Date: Mon Oct 11 18:08:03 2021 +0300 Deprecate SubscriptionArgs and broaden ExecutionArgs (#3306) Co-authored-by: Ivan Goncharov <ivan.goncharov.ua@gmail.com> commit 302ab18666a2fc7c87fde96812ced577b1ca8eaf Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Oct 11 12:13:29 2021 +0300 README: remove credits for `*.d.ts` files (#3304) commit 2272f9839d73b32fb23825538e26571d462da422 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Oct 10 14:39:00 2021 +0300 Remove unnecessary Promise.resolve and Promise.reject (#3290) commit 239aa33b8a934a8e1ad4a4b4051d17b04efc3439 Author: Yaacov Rydzinski <yaacovCR@gmail.com> Date: Sat Oct 9 11:57:09 2021 +0300 Align calls of buildExecutionContext (#3293) commit 588d096f9b4fe4092d87be90e53b2fcc17bb5445 Author: Yaacov Rydzinski <yaacovCR@gmail.com> Date: Thu Oct 7 16:56:46 2021 +0300 Deprecate 'graphql/subscriptions' and move code to 'execution' (#3292) commit bfc354e78d6093307330a53e88623b674ba6ad4e Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Oct 6 16:58:21 2021 +0300 integrationTests/ts: Simplify extensions tests (#3289) commit ae34b82753730354776e0f4c40ce5e47756bef2f Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Oct 5 19:58:25 2021 +0300 16.0.0-rc.3 commit 577417319062f8ac330b314acc733211bdc09721 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Oct 5 13:48:00 2021 +0300 Move validation of names into `GraphQL*` constructors (#3288) commit 22b95040951348edff7934447a060b5a06295c9a Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Oct 5 12:04:22 2021 +0300 assertValidName: share character classes with lexer (#3287) commit 0c7165a5d0a7054cac4f2a0898ace19ca9d67f76 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri Oct 1 17:40:16 2021 +0300 Improve documentation of validation rules (#3285) * Added missing documentation * Added links to GraphQL spec commit ac8f0c6b484a0d5dca2dc13c387247f96772580a Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri Oct 1 13:37:30 2021 +0300 VariablesAreInputTypesRule: add test for ignoring unknown types (#3284) commit cb48918c603311b20f62e4e36d9f76158a9b5b64 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri Oct 1 12:30:34 2021 +0300 validation: restrict maximum number of errors to 100 by default (#3283) commit 5ed10eff2f9761862a5d025d06fd46b0761097a5 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Sep 29 17:13:33 2021 +0300 integrationTests/ts: split tests into separate files (#3280) commit ec57f067eb15b0ce221c5af547ad1b2fb313e789 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Sep 29 16:07:59 2021 +0300 Make 'extensions' non-optional in schema types (#3279) commit 564757fb62bfd4e2472e6e7465971baad2371805 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Sep 28 13:55:33 2021 +0300 ESLint: enable some of the rules previously blocked by TS conversion (#3277) commit 44613ccb2d1c8e70625692ba01b30763bf38a994 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Sep 27 15:22:45 2021 +0300 Update deps (#3276) commit 8261922bafb8c2b5c5041093ce271bdfcdf133c3 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri Sep 24 19:17:24 2021 +0300 type/introspection: add missing `__Directive.args(includeDeprecated:)` (#3273) commit e95ea9b77986fb4299ac12f423d2b501dcf52050 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri Sep 24 14:27:09 2021 +0300 collectFields/collectSubfields refactor and export as part of public API (#3272) Motivated by #3246 commit a05dcfc39c887e267a3985c5340aa5df7d9fe526 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu Sep 23 18:12:18 2021 +0300 isNode: check exact value of node's `kind` (#3271) commit f4efee9d5bea33ef690bcf4430e95b9fdb7a780c Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu Sep 23 17:41:39 2021 +0300 visitor: speed up visitInParallel by dropping support for unknown nodes (#3270) commit 009142154a0471c442e41e2914dd94d8b6690ac5 Author: Arda TANRIKULU <ardatanrikulu@gmail.com> Date: Mon Sep 20 12:00:14 2021 -0400 Bring `visitorKeys` back (#3250) Co-authored-by: Ivan Goncharov <ivan.goncharov.ua@gmail.com> commit 505b4f8eac7b9c52152fbb3cd0f594407da4140a Author: Christoph Zwerschke <cito@online.de> Date: Mon Sep 20 15:14:12 2021 +0200 lexer: Remove superfluous statement in `readDigits` (#3264) * lexer: Remove superfluous statement in `readDigits` * review changes Co-authored-by: Ivan Goncharov <ivan.goncharov.ua@gmail.com> commit e6820a98b27b0d0c0c880edfe3b5b39a72496a62 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu Sep 16 14:24:28 2021 +0300 integrationTests: increase timeout to 60s (#3263) With previous timeout Webpack test was failing on CI from time to time commit ac9833e4358e1995729a6c54009781ea434d4354 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Sep 15 18:19:07 2021 +0300 integrationTests: small refactoring (#3262) commit e88c58efc3cc56ec2353ef3153bd1f2302fdd629 Author: Tim Griesser <tgriesser10@gmail.com> Date: Wed Sep 15 10:17:31 2021 -0400 Add TResult to GraphQLFieldResolver signature (#3255) commit 9e584e3794e20dd109a165566ba86540ba039c3d Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Sep 15 14:37:54 2021 +0300 Error.toStringTag change return string from 'Object' to 'GraphQLError' (#3261) We maintained this hack for a long time to make our Errors compatible with with chai's `to.deep.equal` commit 2df59f18dd3f3c415eaba57d744131a674079ddf Author: Trevor Scheer <trevor.scheer@gmail.com> Date: Sun Sep 5 21:07:13 2021 -0700 fix: Preserve `deprecationReason` on `GraphQLInputField`s (#3257) Co-authored-by: Ivan Goncharov <ivan.goncharov.ua@gmail.com> commit 8423d33631ae63cdac460f1af67d24d37f694427 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Sep 6 07:04:08 2021 +0300 Deprecate 'formatError' and added 'GraphQLError.toJSON' instead (#3259) commit da685ee1edcffe46bb6902ed48318f0f1905065e Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Aug 30 18:42:22 2021 +0300 Deprecate 'printError' function (#3252) commit 16b3d0404015ccf43a6792a55f1adfcf341e86f1 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Aug 30 16:19:18 2021 +0300 16.0.0-rc.2 commit 976d64b7633c5b3e1123ae3f657804907d7a4800 Author: Laurin Quast <laurinquast@googlemail.com> Date: Fri Aug 27 15:25:44 2021 +0200 Parser: allow classes that extend Parser to access the instance attributes (#3248) commit 2d61e22a6eba93ab5efea69ec1de25e64a48dfec Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu Aug 26 14:05:16 2021 +0300 16.0.0-rc.1 commit d32c5a1348b6d3d0bbede7fe063c56976c1903c3 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu Aug 26 14:02:08 2021 +0300 Update deps (#3244) commit 4bb273de4932ba81fc41bc6581415527df862205 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Aug 25 15:39:06 2021 +0300 parser: add specialized error for extension with descriptions (#3242) Fixes #2568 Fixes #2385 commit 91bc70b64e533af7f442a4fd1207b56feef0ef02 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Aug 18 12:25:13 2021 +0300 docs(buildASTSchema): add Subscription to list of root types (#3240) commit e5be298dff06d06830e967ec87f405a5d1fd0764 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Aug 18 12:06:40 2021 +0300 execute: Forbid to return `null` from `serialize` function (#3239) Fixes #1579 commit 0fef3c49907b63b1ea5a4ff1da7011775f465fc2 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Aug 11 22:48:03 2021 +0300 execute: Forbid to return `null` from `serialize` function (#3231) Fixes #1579 commit 4f21cdc1f1cbd5873735b8426f8aa8b2f8d5db8c Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Aug 10 16:22:33 2021 +0300 Add type params to GraphQLScalar (#3228) commit af878f32ad77587ed9234317f1f417ec2e416ade Author: Jan Melcher <mail@jan-melcher.de> Date: Wed Aug 4 15:09:57 2021 +0200 Disallow "true", "false", and "null" as enum values (#3223) commit 5f86d693fdef398b451679b55bcf520265c568a7 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Aug 4 15:37:31 2021 +0300 Fix failing CI on main (#3209) commit 6a5f51f3bd07f3914c7f1ec01908e9e325b77d58 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Jul 7 17:54:40 2021 +0300 ci: generate diff for NPM package (#3207) commit 8ca3d896794a866e3de6fcba3109874cd84674d8 Author: Lee Byron <lee@leebyron.com> Date: Thu Jul 1 13:45:36 2021 -0700 RFC: Support full Unicode in lexer (#3117) Depends on #3115 Implements RFC at graphql/graphql-spec#849. * Replaces `isSourceCharacter` with `isUnicodeScalarValue` * Adds `isSupplementaryCodePoint`, used in String, BlockStrings, and Comments to ensure correct lexing of JavaScript's UTF-16 source. * Updates `printCodePointAt` to correctly print supplementary code points. * Adds variable-width Unicode escape sequences * Adds explicit support for legacy JSON-style fixed-width Unicode escape sequence surrogate pairs. * Adds `printString` to no longer rely on `JSON.stringify`. Borrows some implementation details from Node.js internals for string printing. Implements: > When producing a {StringValue}, implementations should use escape sequences to > represent non-printable control characters (U+0000 to U+001F and U+007F to > U+009F). Other escape sequences are not necessary, however an implementation may > use escape sequences to represent any other range of code points. Closes #2449 Co-authored-by: Andreas Marek <andimarek@fastmail.fm> commit 4493ca3d1281e01635570824f70867aa68610323 Author: Saihajpreet Singh <saihajpreet.singh@gmail.com> Date: Wed Jun 30 07:01:13 2021 -0400 build: add eslint-plugin-tsdoc (#3146) commit e8bc07b96583095c9599e75a358de65ad0e70594 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Jun 29 11:06:32 2021 +0300 Update deps (#3206) commit d099942faf5a8b1348fdbce74a1e1d078a041582 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Jun 22 12:49:05 2021 +0300 Replace 'Idx' with 'Index' in variable names (#3194) commit df1bddac6e7f2cef730b5c3695126820d075bbfd Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Jun 20 16:52:07 2021 +0300 build-npm: fix assert message about not supported tag (#3190) commit fff43395ef3c4c083793435d21b412ff7cc21c6d Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Jun 20 13:54:06 2021 +0300 instanceOf: add additional tests (#3189) commit 829acf01c0e38add817f0ab7af51b58bb6567054 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Jun 20 11:43:24 2021 +0300 16.0.0-alpha.5 commit 85cc18edebb2208ea5bfb4c1695e15020025d2b0 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Jun 20 11:37:30 2021 +0300 integrationTests: Add test for webpack (#3188) Motivated by #3178 commit dab4f44cd587c2cbb8760f9315f7501712058478 Author: Yaacov Rydzinski <yaacovCR@gmail.com> Date: Fri Jun 18 19:22:01 2021 +0300 refactor: collectFields to separate utility (#3187) commit 40db6398321832946ed649e6d5a5a91696d6c0d6 Author: Janic Duplessis <janicduplessis@gmail.com> Date: Wed Jun 16 03:25:04 2021 -0400 Export TypeKind as value (#3178) commit ffd815814e0403523ca3257237459c57f8d0e42a Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Jun 15 19:14:09 2021 +0300 Switch schema types to use ReadonlyArrays (#3182) commit 4d92729f664a50ea9a722e4b255cecc73a7ea72d Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Jun 15 18:34:11 2021 +0300 Switch tests & internal funcs to accept ReadonlyArrays (#3181) commit 2490f44babea37e6c58f82e622a7967c148347a9 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Jun 15 18:25:16 2021 +0300 simplify validation harness by extracting union types into approriate… (#3180) commit f9bf263cf5e642d2af041bd92e7d249516390b4b Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Jun 14 20:29:13 2021 +0300 KnownDirectivesRule-test: add tests for missing directive locations (#3179) commit 1a9630684ed16076ba19cdb27442e12ae8285648 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Jun 14 18:51:42 2021 +0300 kitchenSinkQuery: add '@onVariableDefinition' directive (#3177) commit 632c0d8b6bb232e98db4d3eac198b070c2ea8a50 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Jun 14 18:20:14 2021 +0300 KnownDirectivesRule-test: remove dependency on harness schema (#3176) commit 0b7625f6f38f2245b38642e4c572712d5d5478be Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Jun 14 13:01:58 2021 +0300 TypeInfo-test: remove dependency on harness schema for validation tests (#3175) commit d39a7b5e42d33a33d99f8b732015389b311f4301 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Jun 14 12:40:03 2021 +0300 ci: use update 'actions/setup-node' to v2 (#3174) commit 96fe0054d58b3444acd1c0eba22789b0c556c69b Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Jun 14 11:44:18 2021 +0300 16.0.0-alpha.4 commit 21b45a7eaf75e16700929959407f6282607b1e1f Author: Saihajpreet Singh <saihajpreet.singh@gmail.com> Date: Mon Jun 14 04:40:29 2021 -0400 fix: broken link to prettier rules (#3173) commit 58122ef35f08175c8d054de427b49f570901536e Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Jun 13 20:25:50 2021 +0300 Avoid relying on constructor.name for instanceOf error check. (#3172) Fixes #2894 commit 81ca7781ec15e2d6b91d6146a3e545afb31af92b Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Jun 13 16:50:56 2021 +0300 Add 'Symbol.toStringTag' into every publicly exported class (#3170) commit 9a04b4ce15d82bbe0c86f43e43c3f6481d50ecee Author: Yaacov Rydzinski <yaacovCR@gmail.com> Date: Thu Jun 10 15:05:39 2021 +0300 allows passing --watch to npm run testonly (#3158) commit 28a382e74a9e86d6a1a0ed4267df592d6991fa9c Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Jun 9 17:03:16 2021 +0300 SingleFieldSubscriptionsRule: fix order of imports (#3167) commit d82c8e2aa603536c6a305b1c66fb329c4d086302 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Jun 9 13:20:05 2021 +0300 SingleFieldSubscriptionsRule-test: extract test schema from harness (#3166) commit 120758aefeb33bc62a962d25e53634e16571678d Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Jun 9 13:03:54 2021 +0300 build-npm: correctly set NPM tag on experimental pre-releases (#3161) Example `v16.0.0-alpha.3.experimental-stream-defer.2` commit dc2a3eb4e7ee81b85dd14d2910f355a8b7844c5f Author: Yaacov Rydzinski <yaacovCR@gmail.com> Date: Tue Jun 8 12:29:08 2021 +0300 execute: Rename resolveField function and update comments (#3159) commit 6d71a1bc3239d8a2d2c8906fed8121f14be0b56b Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri Jun 4 18:09:04 2021 +0300 versions-test: add support for experimental pre-releases (#3160) commit fd3ab05cccaa35db1fb3fac7b989a71c26c5aa73 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri Jun 4 01:58:51 2021 +0300 16.0.0-alpha.3 commit 88a2f4780f33918af0bcd8a5899f83bf03b69101 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri Jun 4 01:56:27 2021 +0300 package.json: fix generating release commit (#3157) commit d5eac891ccb2c0b27b5b38101448d8fc1c3d8f89 Author: Benjie Gillam <benjie@jemjie.com> Date: Thu Jun 3 18:51:43 2021 +0100 RFC: Assert subscription field is not introspection. (#2861) commit fd3d8c9fc5e80b23e2f151c818b94e77aef3922a Author: Lee Byron <lee@leebyron.com> Date: Thu Jun 3 10:34:33 2021 -0700 Refactor Lexer (#3115) Co-authored-by: Ivan Goncharov <ivan.goncharov.ua@gmail.com> commit 1ac35c4a7acb0d4f9b125737328ac19d6c6aed01 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Jun 2 17:36:55 2021 +0300 tsconfig.json: enable 'isolatedModules' (#3154) commit 15148f8080f113899d61e79d7f9d8e987c32dc0f Author: Yaroslav Kukytsyak <kyarik.git@gmail.com> Date: Wed Jun 2 11:06:55 2021 +0200 Fix typescript-4.3 version in the integration tests (#3153) commit 10d26ccc3e6d45c668428ed6b173fce70caf9cbb Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Jun 1 19:00:20 2021 +0300 CI: Add new job to check health of package-lock.json (#3151) commit e08993aed2f71517f22d9c7d8c8a75d6668e0c92 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon May 31 11:48:19 2021 +0300 Update deps (#3149) commit d8478dc43fae917287f4e8445e58121c36b72a73 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri May 28 16:44:15 2021 +0300 ESLint: fail `npm run lint` if any warnings are reported (#3144) commit bf26a52257cc47513d8a0bd8219c57c8fd279d4a Author: Lee Byron <lee.byron@robinhood.com> Date: Wed May 26 22:27:24 2021 -0700 TS: Enable strict mode commit 69b4c59447b32c1014058ecd990e1880aa07e9c4 Author: Lee Byron <lee.byron@robinhood.com> Date: Wed May 26 22:23:48 2021 -0700 TS: Fix strict issues in src/error commit 8066ac9d411921fddf587c83ba3ec49a0786c080 Author: Lee Byron <lee.byron@robinhood.com> Date: Wed May 26 22:18:18 2021 -0700 TS: Fix strict issues in src/execution commit 26bf00ac34c8aaf14f30691508516c8485cb5853 Author: Lee Byron <lee.byron@robinhood.com> Date: Wed May 26 22:10:28 2021 -0700 TS: Fix strict issues in src/jsutils commit 2fadef3f32bbe438d0e4c99db08858ecbbebf1d5 Author: Lee Byron <lee.byron@robinhood.com> Date: Wed May 26 21:51:15 2021 -0700 TS: Fix strict issues in src/language commit a7f3cc68ba081745066b0642ec65522dd27cd46f Author: Lee Byron <lee.byron@robinhood.com> Date: Wed May 26 16:45:47 2021 -0700 TS: Fix strict issues in src/subscription commit ac7098505ac3f5485ad3ac79351f0e64175bde23 Author: Lee Byron <lee.byron@robinhood.com> Date: Wed May 26 16:25:38 2021 -0700 TS: Fix strict issues in src/type commit 5accb29e380bea1cf3bf15e372b73d50e7bf3b6a Author: Lee Byron <lee.byron@robinhood.com> Date: Wed May 26 15:23:18 2021 -0700 TS: Fix strict issues in src/utilities commit 6b95561bb2d76705944abd40a828d9284cafe46d Author: Lee Byron <lee.byron@robinhood.com> Date: Wed May 26 14:45:47 2021 -0700 TS: Fix strict issues in src/validation * Add `"strict": true` to tsconfig.json * Fix all issues that arise within `src/validation` commit c589c3d285cb1ec44b09bf0b50ec041ec083760c Author: saihaj <saihajpreet.singh@gmail.com> Date: Tue Oct 27 10:11:59 2020 -0500 Temporary relax tsconfig and added bunch of error supressions commit 76e0607cd35e418ec4ed9105d0003af2c67e0b4f Author: Saihajpreet Singh <saihajpreet.singh@gmail.com> Date: Sat May 15 10:54:07 2021 -0400 TS Migration: enable tests antd remove flow infra (#3091) commit f1f26dc48a192998240db136e55673efdf5e8434 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon May 24 14:46:03 2021 +0300 Extract TS specific changes from `*.d.ts` files commit 291784031d0dba584b608bd13a88ba40643f114d Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri May 14 17:00:56 2021 +0300 Switch to TS syntax (#3090) commit daf11ba1d81cdeed55da255aed0333fd9efbdac7 Author: Saihajpreet Singh <saihajpreet.singh@gmail.com> Date: Fri May 14 10:05:19 2021 -0400 Migrate to TS: rename `.js` to `.ts` and fix everything in latter PRs (#3088) using this `find src -name "*.js" -exec sh -c 'git mv "$0" "${0%.js}.ts"' {} \;` shell command renamed all files in `src` commit 2d3fcfa34e05351c942fc9df1e43e775df7534e2 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue May 25 03:45:30 2021 +0300 16.0.0-alpha.2 commit 544fe7be283d748683ec20f1674c4400431a73d8 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue May 25 02:40:10 2021 +0300 Synchronise `*.d.ts` with sources converted to TS (#3132) commit 5e062eaf28cf9c69d8a7fea411ea1f72e59ac7ec Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue May 25 01:41:34 2021 +0300 TS: Drop template argument from GraphQLFormattedError (#3131) commit e4283043668dda1a1d4b66f38e4f590e1fec978c Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon May 24 22:54:46 2021 +0300 coerceInputValue: add missing argument in function call (#3130) commit f1f3d8ea270295514af7b926f78b6ecc4bdf3190 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon May 24 13:39:34 2021 +0300 definition.d.ts: correct types (#3129) commit 82a9a6cca21fd7286e7b6211a1606af034a3a859 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon May 24 12:28:11 2021 +0300 definition: Remove deprecation comment (#3128) commit 4def93d03720fb1475b6fde58e2b9e7ff245db1a Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon May 24 12:09:12 2021 +0300 Disable '@typescript-eslint/prefer-readonly' (#3127) commit ea267c7aa350d67a8fe217cd3ef91daeab79d519 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon May 24 00:46:08 2021 +0300 Restrict TS to files inside `src` (#3126) commit 4adac42649442fcd4545f5451734535fd662018a Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun May 23 23:36:49 2021 +0300 TypeInfo: use explicit type for `getFieldDef` arg (#3125) commit 23a404b6b02210ac02d2f9308fb845fe1f7bfcc3 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun May 23 16:24:37 2021 +0300 src/type: correct order of import/exports (#3124) commit 667ad15a085d3d70c7f382400b241713c94b9fa9 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun May 23 16:17:14 2021 +0300 visitor: convert arguments descriptions to JSDoc comments (#3123) commit 4b1f920844191ac337120c67a2543f41fd02ca33 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sat May 22 14:27:15 2021 +0300 valueFromAST: drop unnecessary 'void' since `mixed` already includes it (#3122) commit b4271c1bc0312974a1ef1d81029f704c9edbeafc Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri May 21 19:45:07 2021 +0300 `*.d.ts`: Switch comments to comment to TSDoc (#3121) commit 1bd65a3efe5d4c7dad9c7d1e018610054a962e93 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu May 20 15:09:42 2021 +0300 subscription-test: add missing await (#3120) commit cffcec45029d0823aebd95b253846614231abde9 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu May 20 11:19:25 2021 +0300 Remove empty lines from '*.d.ts' files (#3119) commit d4ca2475162302bfbc29432a04cff35dceebd901 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu May 20 10:09:54 2021 +0300 TS: switch all imports to type imports (#3118) commit e591d0a1e158df03c3a842c7897a08fc232e6cf6 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed May 19 19:11:02 2021 +0300 Drop support for TS 3.7 commit 9a4a228bd6bdac6c006c2aaaed30106dc6e372a9 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed May 19 18:46:18 2021 +0300 gen-version: fix notice comment was polluting 'version.d.ts' commit b39b47d7ee34252432df0428cd8710407d02a2fb Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon May 17 14:15:00 2021 +0300 OverlappingFieldsCanBeMergedRule: futher simplify 'PairSet' (#3108) commit 9b0514a093135e9437acbb858f642c49b290728e Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun May 16 20:03:07 2021 +0300 getLocation: use more explicit `matchAll` instead of `RegExp.exec` (#3105) commit 558b0e0ecb4afbb4c0bc6bbe0094a0a39a48f26f Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun May 16 18:41:22 2021 +0300 ESLint: fix config for '@typescript-eslint/no-throw-literal' (#3103) commit 941ca3f11ff2318fd76896b98c2b1007a007d937 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun May 16 16:09:36 2021 +0300 eslintrc: fix spelling mistake in comment (#3102) commit fb8a3cef8e663ae38b5c6bac331cfb46fb171c79 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun May 16 16:05:13 2021 +0300 Flow: remove unnecessary '%checks' (#3101) commit 27d519b4fcb00a09a18277c7121e20a9d2a2da91 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun May 16 15:58:14 2021 +0300 Flow: add missing arg name in function type (#3100) commit 7fb6c784a57dd42025fe3dc646eeaccad78fa5d3 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun May 16 15:46:48 2021 +0300 OverlappingFieldsCanBeMergedRule: refactor 'PairSet' (#3099) commit b029ef8e35d442fc8d6524b142a320956b60ae08 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun May 16 14:51:57 2021 +0300 mapAsyncIterator: simplify test case (#3098) commit a0670bced1a930b39cada78b397b354c41d388cf Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun May 16 14:23:18 2021 +0300 Flow: use only type imports for importing types (#3097) commit 501b665fe30076daf17dd86e4ee9e93d9218ca10 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun May 16 14:10:14 2021 +0300 Flow: Remove inferrable types (#3096) commit e94c2fa42992bd58f92709189c1ccc4b203d11b5 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sat May 15 19:09:40 2021 +0300 Update prettier to 2.3 (#3094) commit 11d71e4bc8ae5718def8ffc06a84cc19ca1a5bba Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri May 14 16:09:32 2021 +0300 16.0.0-alpha.1 commit 39b69da863fca34f0e921bb9ac6a1b99797e17cf Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu May 13 18:57:12 2021 +0300 Flow: switched to exact object by default (#3085) In preparation for TS migration commit 6fd56074295634a7362df055568a3cd4cb676e47 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu May 13 18:34:59 2021 +0300 getFieldDef: accept FieldNode instead of field name (#3084) commit 266f9fa7317b8ac1828fac7c36807badfff393b3 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu May 13 15:20:48 2021 +0300 execute: inline collectAndExecuteSubfields function (#3083) commit 0ebcb2f7af16e77481608cd6bbe5600b4e0e5d8d Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed May 12 23:11:41 2021 +0300 collectFields: use ES6 collections instead of Object.create(null) (#3082) commit 86523ec5f80b459d43b6b16db80b185f903f49e5 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed May 12 14:11:43 2021 +0300 Flow: Replace force type conversion with explicit $FlowFixMe comments (#3081) In preparation for TS convertion commit 0bb8500f6f8f6f771d829579ec6eb1075f6f8eaf Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed May 12 13:43:35 2021 +0300 Workaround for Flow issue with 'String.raw' (#3080) In preparation for TS migration commit 33ec4ef3d95aafeb7bb1261dba26e7795d68adfd Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed May 12 13:31:29 2021 +0300 dedent: simplify implementation (#3079) commit 740de807adef1ca1bc50bece08594e6e688ca601 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed May 12 13:21:11 2021 +0300 babel: Stop transpiling optional chaining operator (#3078) commit 98dcac3e6a84156658601bfe303575f448e5fa14 Author: Lee Byron <lee@leebyron.com> Date: Mon May 10 15:24:05 2021 -0700 Simplify printSchema directive printing (#3075) commit 78d5f832b6f4c11d7f0af8aab68ff4229ba4f46f Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon May 10 21:08:55 2021 +0300 Improve naming 'err => error' and 'arr => array' (#3073) commit 3cfb2bef1673aa82b5ee2e25d2a0d183992f1aeb Author: Christoph Zwerschke <cito@online.de> Date: Mon May 10 15:23:38 2021 +0200 Improve grammar in execution error messages (#3068) commit bd5583c6b2e75461dff149e42838f1ba0b543797 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon May 10 15:10:33 2021 +0300 Flow: add missing names to arguments of function types (#3072) In preparation to TS convertion commit d695f530b3b94e3a37435a3eb5788e8f39b5fe1b Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon May 10 12:43:28 2021 +0300 subscription-test: standardize generator names (#3070) commit 1af561f355d9cb1429b90701c600815f38caf92c Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon May 10 11:55:25 2021 +0300 subscription-test: use separate dummy query type (#3069) commit 513eacc33ed29e389fa6790e3dba00dbc5f9aa83 Author: Lee Byron <lee@leebyron.com> Date: Fri May 7 23:22:09 2021 -0700 Refine parse and AST to represent ConstValue (#3059) This adds: * ConstValueNode - A subtype of ValueNode which recursively excludes Variables * Improved syntax error when encountering variable in a const value * parseConstValue(): ConstValueNode * isConstValue(): ConstValueNode * Various refinements to AST types to use ConstValueNode (or a type which includes it) to better align to the spec. commit 5579180f4a659f9b6fc3083869b765c6630bcc50 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sat May 8 09:14:22 2021 +0300 mapAsyncIterator-test: check that return value is passed on early return (#3066) commit 960f207390615588111a4cf0238e62403c9c7eed Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu May 6 19:56:35 2021 +0300 mapAsyncIterator: refactor async iterator (#3064) commit 83751a9f638470211c7627e715ea9a77e4ee71a4 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu May 6 17:55:52 2021 +0300 mapAsyncIterator: refactor async iterator (#3062) commit 9ba6b1739c5b55790b4b0d8d0d122cbc58685fe0 Author: Lee Byron <lee@leebyron.com> Date: Thu May 6 00:56:58 2021 -0700 Refine getNamedType() for Input and Output types (#3063) This introduces type definitions `GraphQLNamedInputType` and `GraphQLNamedOutputType` as the subsets of `GraphQLNamedType`, and adds function overrides for `getNamedType()` such that if an input or output type is provided, one of these refined subset types is returned. commit 2673bdf851a32a81e1dd609ecaab94b02725a98b Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu May 6 08:52:52 2021 +0300 subscribe-test: general cleanup and simplify test setups (#3058) commit 2a040191db5444b18a5018f5fa1edeb953968066 Author: Lee Byron <lee.byron@robinhood.com> Date: Wed May 5 20:54:42 2021 -0700 Fix build commit 5010bb8a95a9acd914b7857c1163a5d381aec04c Author: Lee Byron <lee.byron@robinhood.com> Date: Wed May 5 20:44:46 2021 -0700 Add test for #3061 commit 002fb91b25c035403dbaf785cd04c3d1c6a2e004 Author: Lee Byron <lee@leebyron.com> Date: Wed May 5 20:42:58 2021 -0700 Improve parser location API (#3061) This replaces manual assignment of `loc` on each node in Parser with a `node()` function. This simplifies the parser and also ensures the `loc` field does not appear at all when `noLocation` is provided. commit a4e9bc9bb8e05916ac926233394a164b5e129062 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed May 5 19:53:14 2021 +0300 Update deps (#3057) commit 44b32fceec61b6314269c3dc3d5618ec6dbef962 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed May 5 17:40:29 2021 +0300 Drop Node v15 (#3055) commit dba69acd5764edfe8b4f39118849ba40979677af Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue May 4 22:54:37 2021 +0300 Test with Node v16 (#3054) commit 777c7e9fc564a8aeca9b935b1c786c5c10b40bd8 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue May 4 20:52:15 2021 +0300 Forbid non-ASCII characters in JS files (#3053) commit 676c775f6dcf5d4261a096cce5fd9dfba49d4861 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue May 4 14:50:10 2021 +0300 Fix Flow issues with Symbol.asyncIterator (#3043) commit 917befd7a54fe99d6141fa0ed92bc2b82544625f Author: Lee Byron <lee@leebyron.com> Date: Mon Apr 26 23:59:41 2021 -0700 Generalize defineArguments() (#3050) Fields and Directives both define arguments according to identical logic. This generalizes that and shares the implementation across both constructions. commit 2d48fbbeb8718e4a0152d458145a9fe2111c0f8d Author: Kei Kamikawa <Code-Hex@users.noreply.github.com> Date: Wed Apr 21 00:27:35 2021 +0900 Use specifiedBy instead of specifiedByUrl (#3032) commit b9fd53bfc23124c26954e25de40ebb3b27bf9367 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu Apr 15 23:49:25 2021 +0300 Remove superficial usages of 'Array.from' (#3042) commit 947ca289828e071743412e53dcb14dfe8169dfc8 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu Apr 15 16:11:52 2021 +0300 Use correct terminology around iterators and iterable (#3041) commit a75e95b873575434910c215a69ddcc3ac9000ac2 Author: Saihajpreet Singh <saihajpreet.singh@gmail.com> Date: Wed Apr 14 15:10:22 2021 -0500 simplify predicate-test type (#3039) Co-authored-by: Ivan Goncharov <ivan.goncharov.ua@gmail.com> commit 33e3a33107ba59a99123332b7f227bf36016219c Author: Saihajpreet Singh <saihajpreet.singh@gmail.com> Date: Mon Apr 12 18:02:18 2021 -0500 TS: improve types mapAsyncIterator-test (#3038) commit f1039240e0954273a85e28b05c598865c104778b Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Apr 12 13:08:54 2021 +0300 Update deps (#3037) commit f58b95349a582ad98c99bc4f5ef70a64251ebdc4 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Apr 12 01:36:28 2021 +0300 integrationTests: test package with TS 4.2 (#3036) commit ff5419514feab989531d52d775b1cbe33e6ce51e Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Apr 12 00:05:55 2021 +0300 printSchema: replace array concat with spead + update comment (#3035) commit 264f758bf650aad67f57a5bd53d6771d61ef6713 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Apr 11 23:53:41 2021 +0300 visitor-test: cleanup test for nodes with unknown kinds (#3034) commit 0460fe967fdfe0e541e8bf6b163af4c97518a52a Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri Apr 9 16:50:58 2021 +0300 Drop experimental online parser (#3031) Drop in order to speedup and simplify TS convertion Plan is to clean it up (rewrite code, add tests, etc.) andd merge it back after 16.0.0 release. commit 7f40198a080ab3ea5ff3e1ecc9bf7ade130ec1bf Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Apr 5 00:54:19 2021 +0300 mapAsyncIterator: move promise resolution into mapResult (#3028) commit 541a058ebe17136118a619d351a9a49bfa9f333c Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Apr 5 00:25:58 2021 +0300 subscribe: drop mapping of AsyncIterable errors (#3027) commit 179e47912c1559530248fb1b713cfbdd3fad6dca Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Apr 4 22:23:18 2021 +0300 Switch some of 'Object.keys' to more modern ES6 constructs (#3026) commit 954913b42fd00f97b29f66ec8a75bd624395301e Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Apr 4 19:17:46 2021 +0300 subscribe: simplify root field extraction (#3025) commit 39581581acc184301cfbb0ee348d0f4b6a21a99f Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Apr 4 18:53:16 2021 +0300 subscribe: simplify by rewriting as async functions (#3024) commit 814169b3c805e93ca1b0ae216710e633e50ca894 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Apr 4 16:55:23 2021 +0300 predicate-test: improve typecheck (#3023) commit 1ee3dc58a439dbd3fe0cd6658e6ad9232216c08f Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Apr 4 16:52:14 2021 +0300 memoize3: remove unnecessary mixed type (#3022) commit 657605c506af945b63940759d453f5d40db00d38 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Apr 4 16:24:45 2021 +0300 gen-version: prettify source code (#3021) commit 7707f856a963be021a091a8f405d682d15186fca Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Apr 4 14:08:20 2021 +0300 Update deps (#3020) commit 60417a901ad7a71f69f0a7459454da54e0a1833a Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Apr 4 13:48:04 2021 +0300 inline-invariant: switch to use false instead of 0 (#3019) commit 142ca1ff1f411728624c57b1a0f013cc0d8adf44 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Apr 4 13:27:42 2021 +0300 build: run prettier on generated files (#3018) commit 10bd6fec22f5e6aa06b7f7ce4e3c73e7a3a00399 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sat Apr 3 20:21:05 2021 +0300 Update deps (#3017) commit 98feb57b9e0af59b3a0dfa5179565cb3acf4fa9e Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri Apr 2 18:26:39 2021 +0300 printer-test: do more check on kitchen sink tests (#3016) commit 31b442eb0a499e88064a61cd9b131fb60747652c Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri Apr 2 18:21:14 2021 +0300 printer-test: switch to dedentString (#3015) commit 665fc9c8ad8246f66ff672372a21346f6d7143c4 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri Apr 2 17:44:09 2021 +0300 mapAsyncIterator: simplify abruptClose (#3014) commit 382dfe2138c1ad39734d142a6f0b88010d8f3721 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri Apr 2 17:40:50 2021 +0300 mapAsyncIterator: simplify mapResult (#3013) commit 6c53a274f50ea7965e92fe314e95cef6bd57c440 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri Apr 2 17:33:21 2021 +0300 mapAsyncIterator: allow 'rejectCallback' to only be synchronous (#3012) commit 0f3e91f95507a98639d829edc00b5d54e5371935 Author: Saihajpreet Singh <saihajpreet.singh@gmail.com> Date: Fri Apr 2 09:28:00 2021 -0500 testUtils: refactor out dedentString from dedent (#3010) commit 5ed55b89d526c637eeb9c440715367eec8a2adec Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu Apr 1 16:41:46 2021 +0300 mapAsyncIterator: add default value for 'rejectCallback' (#3011) commit ecf732fe03df2dd5a355cc2c7912245164a48301 Author: Saihajpreet Singh <saihajpreet.singh@gmail.com> Date: Wed Mar 31 11:05:16 2021 -0500 TS: use proper type for async generator (#3009) commit 953148684f3da79649729376665bd008771452b8 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Mar 31 17:43:30 2021 +0300 ESLint: enable 'func-names' (#3008) commit 83525433ed580964764c925de6cd4ed25f419b53 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Mar 30 23:18:05 2021 +0300 TS integration test: add check for possibility to refine extension types (#3007) commit 5974fefc461311a0d66b5aa87fe89f05c9a5e03c Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Mar 30 23:02:12 2021 +0300 ts: Switch extension values to unknown to match Flow types (#3006) commit 47e6bd185eb856e2541337324eac3b09c328b65d Author: Saihajpreet Singh <saihajpreet.singh@gmail.com> Date: Tue Mar 30 14:46:40 2021 -0500 ts: switch to use ObjMap utility type (#3005) commit b800c57bd9f78ab23774430fc1c14f003bf1585f Author: Saihajpreet Singh <saihajpreet.singh@gmail.com> Date: Tue Mar 30 13:30:09 2021 -0500 feat: add types for internal Parser class (#3002) commit 673cb95835185377b89fc6f9506941f53bdfe049 Author: Saihajpreet Singh <saihajpreet.singh@gmail.com> Date: Tue Mar 30 13:29:34 2021 -0500 TS: use `unknown` (TS) for `mixed` (flow) (#3003) commit e0bd06f769d2ca1bc70c66e38d5b89cfb20807d2 Author: Saihajpreet Singh <saihajpreet.singh@gmail.com> Date: Tue Mar 30 13:28:29 2021 -0500 GraphQLGrammarType: no need to code in d.ts can just export type (#3004) commit 71ba4c63ec07d24f7755796366fef78398185deb Author: Saihajpreet Singh <saihajpreet.singh@gmail.com> Date: Tue Mar 30 12:42:56 2021 -0500 feat: add .d.ts for jsutils (#3000) commit 58b9cd5e418ea0925362245ba639a72f207b2983 Author: Saihajpreet Singh <saihajpreet.singh@gmail.com> Date: Tue Mar 30 09:26:01 2021 -0500 fix: discrepancies between Flow and TS types (#3001) commit 2616dc797a8aed516bd51a746dbe015d66160e75 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Mar 29 15:52:16 2021 +0300 tests: replace 'invariant' with 'expect' assertion whenever possible (#2999) commit 33c069ce64ebad1379d8c6a7937f98952ad40e63 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Mar 29 02:36:03 2021 +0300 Simplify testing AST nodes in buildSchema/extendedSchema tests (#2998) commit 1e46389a1970bb3609f33029cfcf0a41f65ad999 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Mar 28 23:13:45 2021 +0300 print/printSchema: remove trailing new line (#2997) Remove special behaviour for printing `DocumentNode` that added trailing new line. This change allows to tools to add newline only if it required by code convention or OS convention. Scripts and CLI tool can return previous behaviour by adding `\n`. commit a6a65b26d78d2656ac3eccce9cd70b15a23258c4 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Mar 28 18:22:46 2021 +0300 extensionASTNodes: always populate with empty array (#2996) commit 491ddd50a3aa3ef9a2251d0dcf0dce312b3499ac Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Mar 28 17:48:59 2021 +0300 introspection-test: fix test to correctly check for exceptions (#2995) commit 326348ea6926dac0a72a4b719d2fec00326211e9 Author: Saihajpreet Singh <saihajpreet.singh@gmail.com> Date: Sun Mar 28 09:04:23 2021 -0500 fix: update introspection types (#2991) commit d4bcde8d3e7a7cb8462044ff21122a3996af8655 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sat Mar 27 12:33:30 2021 +0200 Update deps (#2993) commit c52b595f7571843efc5f78d9d9cd1760fbfb5366 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri Mar 26 02:32:07 2021 +0200 flow: Improve typings for exported definitions (#2992) commit d720b5bcfe1e80aedc947773308b56f10e81e31e Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu Mar 25 16:50:17 2021 +0200 Switch instanceOf to be named export (#2990) commit 050c508645782fa5c5773d61cfb983b5e0674cc8 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu Mar 25 15:25:50 2021 +0200 Switch indexOf to includes whenever possible (#2989) commit 2f876b64b0eac728e6d6dc09b435090a67328757 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu Mar 25 13:08:50 2021 +0200 Replace 'Array.reduce' with 'for of' (#2988) Results in measurable perfomance increase and significantly lower memory usage in a few benchmarks. commit 494a3d294ab04f65ac3cdac66010d53e002db154 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Mar 24 12:25:57 2021 +0200 Synchronise TS typings for graphql.js/execute.js/subscribe.js (#2987) Removal of positional args was done in #2904 but TS typings were not updated. commit 32a053bbf40e3fb713d3e68b82be1a2e94c8dd4d Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Mar 24 00:52:43 2021 +0200 benchmark: use more readable spelling of V8 flag (#2982) commit a50dbd24e7ee4ca60e4405bb5794385460ddb7db Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Mar 23 19:39:40 2021 +0200 printSourceLocation: simplifying by using padStart (#2981) commit 911013592710bed36b9c638aeb5081ac1e94d0f8 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Mar 23 19:31:01 2021 +0200 internal: simplify 'exec' function (#2978) commit 540f33605ee047ab86e0d9666f4a60526d56ff0f Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sat Mar 20 15:03:56 2021 +0200 dedent-test: change test data to pass spell check (#2977) commit 4528057cf4af4abcbc40d747520e0edb769a049a Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu Mar 18 15:44:12 2021 +0200 Remove deprecated `rmdirSync` usage from internal scripts (#2972) commit 00ef21739731d1ea7fc61e4294b5bec5a2e535f2 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Mar 17 18:32:41 2021 +0200 benchmark: refactor args parsing code (#2971) commit c581573aa634b1a782ac73043b509b8a7f253f65 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Mar 14 01:31:20 2021 +0200 Remove override of `node/global-require` rule for `resources` dir (#2970) commit f8155ac385a47def8eb5d4b41916029dbf2289be Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Mar 14 01:23:00 2021 +0200 ESLint: cleanup rule overrides (#2969) commit 5c323b99c26bf4fa793563427f01a5ac9e3ce75b Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Mar 14 00:23:33 2021 +0200 ESLint: Allow 'async' functions (#2968) ATM, minimal supported Node.js version is 12 so we drop this restriction commit 4f4135507f6c9121e6bd3ffb29f946b69af31136 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Mar 14 00:20:11 2021 +0200 flow: improve typings of exported definitions (#2967) commit 8109e42dd6527f92cf244653acea12bc4cabe087 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sat Mar 13 20:32:42 2021 +0200 blockString-fuzz: improve `lexValue` typing (#2966) commit afffdfeeb8d2f05b1030cdeeae49a0ffa9139d92 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sat Mar 13 20:04:00 2021 +0200 parser: improve type checking of 'parseTypeReference' function (#2965) commit 26e4568df9d42d5f5a2568f5071fa7dd1bb755e2 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sat Mar 13 19:55:07 2021 +0200 Simplified memoize3 and improve type checking (#2964) commit aa80e1b20999cad2b69a7a6f6d1db28594465f3e Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sat Mar 13 19:50:22 2021 +0200 printer: simplify printing of query short form (#2963) commit e6f20dae9205f0096fa2db26cef580683d053705 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sat Mar 13 19:12:29 2021 +0200 flow-typed: fix unresolved types (#2962) commit 3f6034a3376410bbf1b1aa11c1d465a70c446544 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sat Mar 13 17:55:07 2021 +0200 flow-typed: update Mocha typings (#2961) commit eb284011e3a2d11786ed5884d2e5f068c52eeb12 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sat Mar 13 17:43:07 2021 +0200 Update deps (#2960) commit 3e916ef1969eadd2e770af536e7537860b236c81 Author: Saihajpreet Singh <saihajpreet.singh@gmail.com> Date: Sat Mar 13 09:26:54 2021 -0600 feat: convert Thunk to ThunkArray and ThunkObjMap (#2955) commit 789a98afe963095e47ba5d3891ba33e88c68bbbc Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sat Mar 13 16:33:31 2021 +0200 ASTVisitor: use type intersection instead of type union (#2959) commit 2c2d87e7bfff5017cb712aa2febfbdf72dcbdbe5 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri Mar 12 20:07:28 2021 +0200 visitor: remove 4th form of visitor (#2957) Visitor in 4th form can always be written as 2nd form. This is PR part of general effort to simplify `visit` typings before TS migration. commit 3ce28cef725addeed3d58384e19b93c7b454911e Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri Mar 12 19:43:02 2021 +0200 buildClientSchema-test: correctly wrap test case (#2956) commit fff5f7afdad9afba7ee5ef4b42c5a008afe4247f …
This is the first public commit in what has been a few months of internal development. Future development will occur in public directly in this repository. Squashed commit of the following: commit 4175b26ed97167c93aa19f596c3329e28c865e70 Author: Nicolas Lagoutte <krementnico@hotmail.fr> Date: Wed Jan 5 15:08:52 2022 +0000 Prevent Infinite Loop in OverlappingFieldsCanBeMergedRule (#3442) Co-authored-by: Ivan Goncharov <ivan.goncharov.ua@gmail.com> commit 29b811fca5f726c9a3aa1d979c70ecbced8b4ec8 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Jan 3 22:50:09 2022 +0200 Fix index.ts files to be compatible with Typedoc (#3447) commit 47bd8c8897c72d3efc17ecb1599a95cee6bac5e8 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Jan 3 22:27:37 2022 +0200 Use 'eslint-plugin-simple-import-sort' to sort imports (#3446) commit 085d1ee89d11093e910912eb5d8cc3fbd6c7a0dc Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Dec 27 15:44:59 2021 +0200 Update deps (#3444) commit f890300dd3a9a6257ea9c1ec266b16ef405eed71 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Dec 26 20:31:09 2021 +0200 ci/checkPackageLock: update only package-lock.json (#3443) commit 872c6b98a2fd21946aec25e757236c6652f16229 Author: Christoph Zwerschke <cito@online.de> Date: Sun Dec 26 10:29:15 2021 +0100 UniqueArgumentDefinitionNamesRule: Improve tests (#3441) Co-authored-by: Ivan Goncharov <ivan.goncharov.ua@gmail.com> commit 533b423f3ec6c9a5624ed16c89589975a21f653f Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Dec 22 16:01:12 2021 +0200 Update deps (#3438) commit db4986e8a254fb833609e03d2e6fe3a3ec9a5bf4 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Dec 20 23:31:13 2021 +0200 CONTRIBUTING.md: remove reference to Facebook bug bounty program (#3437) commit 671e68bca999054693e5e231208d79f7c09c247e Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Dec 20 23:09:56 2021 +0200 gh/actions: make all cloned repo read-only (#3436) commit 67e14cffd4d7e866bf148868906d777b0e5226bd Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Dec 20 23:03:57 2021 +0200 gh/actions: run benchmark & diff-npm-package only on PRs (#3435) commit e2ebf04363d25d172d9c64c82f810e318ddcc5b1 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Dec 20 22:47:33 2021 +0200 gh/actions: remove 'npm dedupe' check since it unexpectadly do update (#3434) commit 71dd289ba323f9d9c4c42311652faba965bd7c4f Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Dec 20 20:02:29 2021 +0200 gh/actions: refactor out action to deploy branches (#3433) commit 3ab82f4981970f50dd3a96e22a11839e4ec5bb7b Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri Dec 17 16:23:06 2021 +0200 16.2.0 commit f17351c10652b1c9a55ca0936bb3b2ac4414b5b7 Author: Christoph Zwerschke <cito@online.de> Date: Fri Dec 17 14:46:23 2021 +0100 assertName-test: test new instead of deprecated function (#3423) Co-authored-by: Ivan Goncharov <ivan.goncharov.ua@gmail.com> commit 779519253a68d7a906f366858aec75cee239452e Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri Dec 17 15:21:02 2021 +0200 gh/actions: run benchmark and NPM diff on correct base commits (#3427) Fixes #3371 commit 95a85f73a9975a0ad6394d11096c57c6872a2cc2 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Dec 14 17:46:33 2021 +0200 type/definition: export `resolve*Thunk` functions (#3426) commit 4f56285ddbef8a18a8eb0bdd3b91c700cd8cd288 Author: Christoph Zwerschke <cito@online.de> Date: Tue Dec 14 14:53:55 2021 +0100 Minor grammar fixes in collectFields documentation (#3422) commit c8bbb0a6197b1b50088f8910fec86704e8bf41b5 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu Dec 9 17:44:08 2021 +0200 resources/utils: extract 'writeGeneratedFile' to utils (#3420) commit 90bd6ff72625173dd39a1f82cfad9336cfad8f65 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Dec 7 23:22:05 2021 +0200 16.1.0 commit ab52ddc9227806fa530e5892173028a656929059 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Dec 7 23:18:48 2021 +0200 package.json: Specify NPM release tag explicitly (#3417) commit 763c1496d8b5b01ace64dd4b82c3f2037ecb0b08 Author: Yaacov Rydzinski <yaacovCR@gmail.com> Date: Tue Dec 7 22:19:42 2021 +0200 fix c8 ignore decorator typos (#3416) commit 6e48d16f92b9a6df8638b1486354c6be2537033b Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sat Dec 4 22:45:25 2021 +0200 ci: add check for unnessary duplicates in package-lock.json (#3407) commit c145cd42afb606e6bee33593b048b977c92f7a0b Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sat Dec 4 22:35:15 2021 +0200 Simplify code by replacing Object.entries with Object.keys (#3406) commit 947165fc33e39631fddaa8e3432263d2e7e0e98f Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sat Dec 4 22:12:01 2021 +0200 Use for '--ignore-scripts' for all `npm ci` & `npm install` (#3405) commit ce4277e94587f51424bffe405bb488f38f1218da Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sat Dec 4 21:22:56 2021 +0200 github/workflows: simplify npm cache setup (#3404) commit 13530ced071abde76ea2c3fcc49bf62a5a939b3a Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sat Dec 4 00:57:04 2021 +0200 ci: add check that 'package-lock.json' doesn't have conflicts (#3403) commit d26f6e91d49ee7d7b95f27c1991a79dd43cb1b58 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri Dec 3 23:08:18 2021 +0200 tests: Improve formating of strings with 'dedent' tag (#3401) commit cbbff7fd01c38bc08979e652463ba94f67cd39e6 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri Dec 3 20:01:42 2021 +0200 expectJSON: improve readability (#3400) commit 01dfa68652f7c11ef08ebd0abe53e5a38a94e0af Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Dec 1 19:39:40 2021 +0200 Update deps (#3399) commit 8540df21ea7d50ab003f8bb8260e15a26246bf4a Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Dec 1 19:17:11 2021 +0200 Switch coverage from nyc to c8 (#3398) commit 36f068e8cca064f9796d35de27ba1ef489873926 Author: Paul Serraino <pserraino99@gmail.com> Date: Wed Dec 1 05:40:11 2021 -0600 Update doc examples to reflect the current API (#3393) commit bc3564ace52be65e391714f3097b1e6ca0a372dc Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Nov 30 20:27:45 2021 +0200 typeFromAST: use exhaustive switch and remove invariant (#3396) commit 79d984f0a88386ac6f606e5852d3d1f0e8874b47 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Nov 30 00:05:26 2021 +0200 Remove $FlowFixMe comments (#3392) commit fca503ec2c3d918444c7e9c1373e1753aa06fb44 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Nov 29 22:40:43 2021 +0200 Enable '@typescript-eslint/switch-exhaustiveness-check' rule (#3391) commit 37ec050c1a47b77003cbf1bd5606fac3fcc647b8 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Nov 29 18:35:05 2021 +0200 Update deps (#3390) commit 39be2f6a785dc8d6b752541a33a10ef604c5cb42 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Nov 29 16:23:16 2021 +0200 package.json: Drop unused '@babel/eslint-parser' (#3389) commit 0fb6afc9c31e16b7c5a752d0baaa829e583aa244 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Nov 28 23:47:08 2021 +0200 Drop "eslint-plugin-istanbul" and implement as internal ESLint rule (#3388) commit 82ff6539a5b961b00367ed7d6ac57a7297af2a9a Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Nov 28 23:04:27 2021 +0200 Update package-lock.json (#3387) commit 2344c47a365515f4716bf418290471f768be54dc Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Nov 28 22:49:36 2021 +0200 Add support for Node17 (#3386) commit e8c946165c902956b9041ea1b39505686cc009f6 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Nov 28 20:15:30 2021 +0200 Preserve non-error values thrown from resolvers (#3384) commit cce8a85fe897a0ff9a71156e83aeb2a83fef6872 Author: Alex Reilly <fabiobean2@gmail.com> Date: Mon Nov 22 23:28:37 2021 -0800 lexer-tests: Use tildas as invalid characters (#3377) commit 0d1297a4305e46b52ee82675f883a9e2772f17a8 Author: Alex Reilly <fabiobean2@gmail.com> Date: Mon Nov 22 23:27:25 2021 -0800 execute: fix spec section names in comments (#3376) commit be1261373e45bfd96676efe612b4e02aa308ce72 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Nov 22 17:22:10 2021 +0200 printSchema: handle descriptions that are non-printable as block strings (#3375) commit 11a08024a35b08104b291627f4fdb2e8c69f8cab Author: Francisco Marques <franciscopcmarques@gmail.com> Date: Tue Nov 16 12:14:50 2021 +0000 Export GRAPHQL_MAX_INT and GRAPHQL_MIN_INT (#3355) commit 085c9efaa4586aa9b4bbf21f80ea612a79069b8d Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Nov 8 17:28:28 2021 +0200 Add devAssert about removal of positional arguments (#3365) commit 30b446938a9b5afeb25c642d8af1ea33f6c849f3 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Nov 1 22:45:53 2021 +0200 16.0.1 commit b262418e816b3852dddbbedf0efad4ddead1a5fe Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Nov 1 22:42:37 2021 +0200 Lexer: fix line & column for multiline BLOCK_STRING tokens (#3354) Fixes #3353 commit 958ac6c9b27b7147b47fa4c36d792c01a8d341a3 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Nov 1 16:46:27 2021 +0200 GraphQLError-test: text how extensions is inherited from originalError (#3348) commit 10c1c3d6cd8e165501fb1471b5babfabd1be1eb1 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri Oct 29 16:36:06 2021 +0300 checkgit.sh: Added a check for local modifications (#3347) commit 7ca43c87bc9cc30b0b931c553908a2db77abb3cc Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu Oct 28 22:49:11 2021 +0300 16.0.0 commit ced56b2df0364a2b7f784e43ada69cc612d6e32a Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu Oct 28 22:46:23 2021 +0300 version-test: fix validation of `versionInfo.preReleaseTag` (#3345) commit 2831917db113caca33c9df0a6cb9c90eed3a1776 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu Oct 28 20:15:05 2021 +0300 build-npm: fix type inference during TS declarations build commit d2eb7bd9de8ed258eb2a4be3825760efeec467e9 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu Oct 28 19:38:50 2021 +0300 version: force proper typing on version literals Types should be generic and stay the same across different versions E.g. `preReleaseTag` should be typed `string | null` even if it's a `null` literal for this particular release commit 6453612a6c40a1f8ad06845f1516c5f0dafa666c Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Oct 27 16:28:04 2021 +0300 16.0.0-rc.7 commit 556ac034ef021ddedfe7af037fefc52c479804fd Author: Yaacov Rydzinski <yaacovCR@gmail.com> Date: Wed Oct 27 16:23:17 2021 +0300 Use default GITHUB_ACTOR if unset (#3331) Co-authored-by: Ivan Goncharov <ivan.goncharov.ua@gmail.com> commit c2435fd1b8b22e034ad1b266bf092ace0e06d015 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Oct 27 15:15:50 2021 +0300 Fix TS error caused by importing internal files directly (#3339) commit a745361c621950f8c3b8895bc13e455c20f7854a Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Oct 26 22:54:21 2021 +0300 GraphQLError: Add test to check order of fields in JSON.stringify (#3336) commit dc1f7a57bd0829fc63a933aacbc1c7b542f21772 Author: Yaacov Rydzinski <yaacovCR@gmail.com> Date: Mon Oct 25 18:17:10 2021 +0300 use GITHUB_TOKEN (#3330) commit 811ba373311006901cc7bbaf34035b60f949fd5e Author: Yaacov Rydzinski <yaacovCR@gmail.com> Date: Mon Oct 25 18:02:36 2021 +0300 Fix release instructions (#3329) commit d35bca5f7e1eea49804c46ef9c7bd35791759b6d Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sat Oct 23 15:33:43 2021 +0300 16.0.0-rc.6 commit fd50cebbd110d95d74b527a6189d2ad1ab348d0e Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sat Oct 23 15:30:48 2021 +0300 GraphQLField: relax default value of TArgs to `any` (#3328) commit 52f17544200f13e0e2d455f834deeecf4953d72d Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri Oct 22 13:48:31 2021 +0300 GraphQLError: enumerate only spec prescribed properties (#3326) commit b93641125a7f75a7cb10bc9c5cf6bd89983834bb Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Oct 20 17:45:53 2021 +0300 GraphQLError: fix empty `locations` if error got nodes without locations (#3325) commit a3d215bdce6fc4eda9f0fce25d52224c3bea2700 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Oct 20 13:19:53 2021 +0300 GraphQLError-test: merge check of source with rest of the properties (#3324) commit cd35c99bbacf65e1096349d844774d2f7c038e56 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Oct 20 12:48:35 2021 +0300 Lexer: use standard JS functions to handle Unicode (#3322) commit 7da9cd31a78fa135d2a44a97d1a4dfad0858b001 Author: Christoph Zwerschke <cito@online.de> Date: Tue Oct 19 11:45:51 2021 +0200 lexer: fix expression to decode surrogate pairs (#3278) commit f42cee922d13576b1452bb5bf6c7b155bf0e2ecd Author: Christoph Zwerschke <cito@online.de> Date: Tue Oct 19 09:53:00 2021 +0200 jsutils: add test for Path functions (#2478) Co-authored-by: Ivan Goncharov <ivan.goncharov.ua@gmail.com> commit 4c9bf037ed32b8a9bd2215b264c8b89e1f6c86c2 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Oct 18 15:16:30 2021 +0300 16.0.0-rc.5 commit e91f3a88bacecd1e656132ea1bb6786999931058 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Oct 18 15:13:58 2021 +0300 Update deps (#3320) commit 7c6bf480b5cfc09451b2951c6303351a76785dc1 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Oct 18 14:52:50 2021 +0300 Add message that we only support TS >= 4.1.0 (#3319) commit ada5ee0d9a720f97b11f7296ec5b1936021088fe Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Oct 18 13:52:57 2021 +0300 Deprecate 'ASTKindToNode' (#3318) commit 73025aa009039c1e2e74f7bbd088ec6ab6e07e94 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Oct 18 12:26:43 2021 +0300 Convert const "enum-like" maps to TS enums (#3317) commit 3deb5cccddd4ffaa123ba03952a947eccf813e5d Author: Yaacov Rydzinski <yaacovCR@gmail.com> Date: Fri Oct 15 11:34:34 2021 +0300 Export OperationTypeNode as value (#3316) commit 06d9cb42b6523a9bca39c6690d47de1c3f52a8cb Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Oct 13 17:07:51 2021 +0300 Change type of error extensions from anonymous Record to named interfaces (#3315) commit 04c6fce07a9c1ee271a637899614e5de5b35eaf8 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Oct 13 14:37:22 2021 +0300 16.0.0-rc.4 commit e289e6412ca59cd6298796d61efa19d78eeb945c Author: Martin Trobäck <lekoaf@users.noreply.github.com> Date: Wed Oct 13 13:34:09 2021 +0200 language: change OperationTypeNode to enum (#3312) Co-authored-by: Ivan Goncharov <ivan.goncharov.ua@gmail.com> commit d48d5028a88f912f8b506a8a8b8dd938de96cb80 Author: jjangga0214 <jjangga@kookmin.ac.kr> Date: Wed Oct 13 19:38:16 2021 +0900 refactor(language/ast.d.ts): use Kind enum type (#2984) Co-authored-by: Ivan Goncharov <ivan.goncharov.ua@gmail.com> commit b1ce2c3567fc34f351fe20cc73d098bfdd474ebc Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Oct 13 11:50:54 2021 +0300 GraphQLError: keep extensions always present (#3313) commit 82900fa245f4c2a6b148de1d71c8bede52d34b7d Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Oct 12 16:02:44 2021 +0300 GraphQLError: use enumerable properties (#3311) commit 01fa86887954685e2fa12c8f8a23cea2d47c13d1 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Oct 12 15:01:11 2021 +0300 expectJSON: return custom object instead of `expect` (#3310) commit f45bc0ade059fbec6c02ecf6ebdf6dbc4adba017 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Oct 12 00:17:00 2021 +0300 Move deprecated `SubscriptionArgs` to 'src/subscription' (#3309) commit 2aad6b44f7a04e3b87be03ce3ad126ba4d57fe71 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Oct 11 23:38:22 2021 +0300 execute: Correctly report missing root type error (#3308) commit 71c7a1413e16fc71bd7435e1c7ca01b4f123d563 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Oct 11 22:47:22 2021 +0300 Reuse `groupBy` in validation rules (#3307) commit 96b146d97f0fc6a06fd2c4b1444c5b00c0da3fd6 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Oct 11 22:11:55 2021 +0300 Added 'GraphQLSchema.getRootType' and deprecate `getOperationRootType` (#3305) commit 2170e4a485e067e68870aabb551f5cd44bd088d4 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Oct 11 18:21:31 2021 +0300 Add 'UniqueArgumentDefinitionNamesRule' validation rule (#3208) commit 6aee19b99c22b62135fa522a88bb17a6b94ad905 Author: Yaacov Rydzinski <yaacovCR@gmail.com> Date: Mon Oct 11 18:08:03 2021 +0300 Deprecate SubscriptionArgs and broaden ExecutionArgs (#3306) Co-authored-by: Ivan Goncharov <ivan.goncharov.ua@gmail.com> commit 302ab18666a2fc7c87fde96812ced577b1ca8eaf Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Oct 11 12:13:29 2021 +0300 README: remove credits for `*.d.ts` files (#3304) commit 2272f9839d73b32fb23825538e26571d462da422 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Oct 10 14:39:00 2021 +0300 Remove unnecessary Promise.resolve and Promise.reject (#3290) commit 239aa33b8a934a8e1ad4a4b4051d17b04efc3439 Author: Yaacov Rydzinski <yaacovCR@gmail.com> Date: Sat Oct 9 11:57:09 2021 +0300 Align calls of buildExecutionContext (#3293) commit 588d096f9b4fe4092d87be90e53b2fcc17bb5445 Author: Yaacov Rydzinski <yaacovCR@gmail.com> Date: Thu Oct 7 16:56:46 2021 +0300 Deprecate 'graphql/subscriptions' and move code to 'execution' (#3292) commit bfc354e78d6093307330a53e88623b674ba6ad4e Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Oct 6 16:58:21 2021 +0300 integrationTests/ts: Simplify extensions tests (#3289) commit ae34b82753730354776e0f4c40ce5e47756bef2f Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Oct 5 19:58:25 2021 +0300 16.0.0-rc.3 commit 577417319062f8ac330b314acc733211bdc09721 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Oct 5 13:48:00 2021 +0300 Move validation of names into `GraphQL*` constructors (#3288) commit 22b95040951348edff7934447a060b5a06295c9a Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Oct 5 12:04:22 2021 +0300 assertValidName: share character classes with lexer (#3287) commit 0c7165a5d0a7054cac4f2a0898ace19ca9d67f76 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri Oct 1 17:40:16 2021 +0300 Improve documentation of validation rules (#3285) * Added missing documentation * Added links to GraphQL spec commit ac8f0c6b484a0d5dca2dc13c387247f96772580a Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri Oct 1 13:37:30 2021 +0300 VariablesAreInputTypesRule: add test for ignoring unknown types (#3284) commit cb48918c603311b20f62e4e36d9f76158a9b5b64 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri Oct 1 12:30:34 2021 +0300 validation: restrict maximum number of errors to 100 by default (#3283) commit 5ed10eff2f9761862a5d025d06fd46b0761097a5 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Sep 29 17:13:33 2021 +0300 integrationTests/ts: split tests into separate files (#3280) commit ec57f067eb15b0ce221c5af547ad1b2fb313e789 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Sep 29 16:07:59 2021 +0300 Make 'extensions' non-optional in schema types (#3279) commit 564757fb62bfd4e2472e6e7465971baad2371805 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Sep 28 13:55:33 2021 +0300 ESLint: enable some of the rules previously blocked by TS conversion (#3277) commit 44613ccb2d1c8e70625692ba01b30763bf38a994 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Sep 27 15:22:45 2021 +0300 Update deps (#3276) commit 8261922bafb8c2b5c5041093ce271bdfcdf133c3 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri Sep 24 19:17:24 2021 +0300 type/introspection: add missing `__Directive.args(includeDeprecated:)` (#3273) commit e95ea9b77986fb4299ac12f423d2b501dcf52050 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri Sep 24 14:27:09 2021 +0300 collectFields/collectSubfields refactor and export as part of public API (#3272) Motivated by #3246 commit a05dcfc39c887e267a3985c5340aa5df7d9fe526 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu Sep 23 18:12:18 2021 +0300 isNode: check exact value of node's `kind` (#3271) commit f4efee9d5bea33ef690bcf4430e95b9fdb7a780c Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu Sep 23 17:41:39 2021 +0300 visitor: speed up visitInParallel by dropping support for unknown nodes (#3270) commit 009142154a0471c442e41e2914dd94d8b6690ac5 Author: Arda TANRIKULU <ardatanrikulu@gmail.com> Date: Mon Sep 20 12:00:14 2021 -0400 Bring `visitorKeys` back (#3250) Co-authored-by: Ivan Goncharov <ivan.goncharov.ua@gmail.com> commit 505b4f8eac7b9c52152fbb3cd0f594407da4140a Author: Christoph Zwerschke <cito@online.de> Date: Mon Sep 20 15:14:12 2021 +0200 lexer: Remove superfluous statement in `readDigits` (#3264) * lexer: Remove superfluous statement in `readDigits` * review changes Co-authored-by: Ivan Goncharov <ivan.goncharov.ua@gmail.com> commit e6820a98b27b0d0c0c880edfe3b5b39a72496a62 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu Sep 16 14:24:28 2021 +0300 integrationTests: increase timeout to 60s (#3263) With previous timeout Webpack test was failing on CI from time to time commit ac9833e4358e1995729a6c54009781ea434d4354 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Sep 15 18:19:07 2021 +0300 integrationTests: small refactoring (#3262) commit e88c58efc3cc56ec2353ef3153bd1f2302fdd629 Author: Tim Griesser <tgriesser10@gmail.com> Date: Wed Sep 15 10:17:31 2021 -0400 Add TResult to GraphQLFieldResolver signature (#3255) commit 9e584e3794e20dd109a165566ba86540ba039c3d Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Sep 15 14:37:54 2021 +0300 Error.toStringTag change return string from 'Object' to 'GraphQLError' (#3261) We maintained this hack for a long time to make our Errors compatible with with chai's `to.deep.equal` commit 2df59f18dd3f3c415eaba57d744131a674079ddf Author: Trevor Scheer <trevor.scheer@gmail.com> Date: Sun Sep 5 21:07:13 2021 -0700 fix: Preserve `deprecationReason` on `GraphQLInputField`s (#3257) Co-authored-by: Ivan Goncharov <ivan.goncharov.ua@gmail.com> commit 8423d33631ae63cdac460f1af67d24d37f694427 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Sep 6 07:04:08 2021 +0300 Deprecate 'formatError' and added 'GraphQLError.toJSON' instead (#3259) commit da685ee1edcffe46bb6902ed48318f0f1905065e Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Aug 30 18:42:22 2021 +0300 Deprecate 'printError' function (#3252) commit 16b3d0404015ccf43a6792a55f1adfcf341e86f1 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Aug 30 16:19:18 2021 +0300 16.0.0-rc.2 commit 976d64b7633c5b3e1123ae3f657804907d7a4800 Author: Laurin Quast <laurinquast@googlemail.com> Date: Fri Aug 27 15:25:44 2021 +0200 Parser: allow classes that extend Parser to access the instance attributes (#3248) commit 2d61e22a6eba93ab5efea69ec1de25e64a48dfec Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu Aug 26 14:05:16 2021 +0300 16.0.0-rc.1 commit d32c5a1348b6d3d0bbede7fe063c56976c1903c3 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu Aug 26 14:02:08 2021 +0300 Update deps (#3244) commit 4bb273de4932ba81fc41bc6581415527df862205 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Aug 25 15:39:06 2021 +0300 parser: add specialized error for extension with descriptions (#3242) Fixes #2568 Fixes #2385 commit 91bc70b64e533af7f442a4fd1207b56feef0ef02 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Aug 18 12:25:13 2021 +0300 docs(buildASTSchema): add Subscription to list of root types (#3240) commit e5be298dff06d06830e967ec87f405a5d1fd0764 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Aug 18 12:06:40 2021 +0300 execute: Forbid to return `null` from `serialize` function (#3239) Fixes #1579 commit 0fef3c49907b63b1ea5a4ff1da7011775f465fc2 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Aug 11 22:48:03 2021 +0300 execute: Forbid to return `null` from `serialize` function (#3231) Fixes #1579 commit 4f21cdc1f1cbd5873735b8426f8aa8b2f8d5db8c Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Aug 10 16:22:33 2021 +0300 Add type params to GraphQLScalar (#3228) commit af878f32ad77587ed9234317f1f417ec2e416ade Author: Jan Melcher <mail@jan-melcher.de> Date: Wed Aug 4 15:09:57 2021 +0200 Disallow "true", "false", and "null" as enum values (#3223) commit 5f86d693fdef398b451679b55bcf520265c568a7 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Aug 4 15:37:31 2021 +0300 Fix failing CI on main (#3209) commit 6a5f51f3bd07f3914c7f1ec01908e9e325b77d58 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Jul 7 17:54:40 2021 +0300 ci: generate diff for NPM package (#3207) commit 8ca3d896794a866e3de6fcba3109874cd84674d8 Author: Lee Byron <lee@leebyron.com> Date: Thu Jul 1 13:45:36 2021 -0700 RFC: Support full Unicode in lexer (#3117) Depends on #3115 Implements RFC at graphql/graphql-spec#849. * Replaces `isSourceCharacter` with `isUnicodeScalarValue` * Adds `isSupplementaryCodePoint`, used in String, BlockStrings, and Comments to ensure correct lexing of JavaScript's UTF-16 source. * Updates `printCodePointAt` to correctly print supplementary code points. * Adds variable-width Unicode escape sequences * Adds explicit support for legacy JSON-style fixed-width Unicode escape sequence surrogate pairs. * Adds `printString` to no longer rely on `JSON.stringify`. Borrows some implementation details from Node.js internals for string printing. Implements: > When producing a {StringValue}, implementations should use escape sequences to > represent non-printable control characters (U+0000 to U+001F and U+007F to > U+009F). Other escape sequences are not necessary, however an implementation may > use escape sequences to represent any other range of code points. Closes #2449 Co-authored-by: Andreas Marek <andimarek@fastmail.fm> commit 4493ca3d1281e01635570824f70867aa68610323 Author: Saihajpreet Singh <saihajpreet.singh@gmail.com> Date: Wed Jun 30 07:01:13 2021 -0400 build: add eslint-plugin-tsdoc (#3146) commit e8bc07b96583095c9599e75a358de65ad0e70594 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Jun 29 11:06:32 2021 +0300 Update deps (#3206) commit d099942faf5a8b1348fdbce74a1e1d078a041582 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Jun 22 12:49:05 2021 +0300 Replace 'Idx' with 'Index' in variable names (#3194) commit df1bddac6e7f2cef730b5c3695126820d075bbfd Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Jun 20 16:52:07 2021 +0300 build-npm: fix assert message about not supported tag (#3190) commit fff43395ef3c4c083793435d21b412ff7cc21c6d Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Jun 20 13:54:06 2021 +0300 instanceOf: add additional tests (#3189) commit 829acf01c0e38add817f0ab7af51b58bb6567054 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Jun 20 11:43:24 2021 +0300 16.0.0-alpha.5 commit 85cc18edebb2208ea5bfb4c1695e15020025d2b0 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Jun 20 11:37:30 2021 +0300 integrationTests: Add test for webpack (#3188) Motivated by #3178 commit dab4f44cd587c2cbb8760f9315f7501712058478 Author: Yaacov Rydzinski <yaacovCR@gmail.com> Date: Fri Jun 18 19:22:01 2021 +0300 refactor: collectFields to separate utility (#3187) commit 40db6398321832946ed649e6d5a5a91696d6c0d6 Author: Janic Duplessis <janicduplessis@gmail.com> Date: Wed Jun 16 03:25:04 2021 -0400 Export TypeKind as value (#3178) commit ffd815814e0403523ca3257237459c57f8d0e42a Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Jun 15 19:14:09 2021 +0300 Switch schema types to use ReadonlyArrays (#3182) commit 4d92729f664a50ea9a722e4b255cecc73a7ea72d Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Jun 15 18:34:11 2021 +0300 Switch tests & internal funcs to accept ReadonlyArrays (#3181) commit 2490f44babea37e6c58f82e622a7967c148347a9 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Jun 15 18:25:16 2021 +0300 simplify validation harness by extracting union types into approriate… (#3180) commit f9bf263cf5e642d2af041bd92e7d249516390b4b Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Jun 14 20:29:13 2021 +0300 KnownDirectivesRule-test: add tests for missing directive locations (#3179) commit 1a9630684ed16076ba19cdb27442e12ae8285648 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Jun 14 18:51:42 2021 +0300 kitchenSinkQuery: add '@onVariableDefinition' directive (#3177) commit 632c0d8b6bb232e98db4d3eac198b070c2ea8a50 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Jun 14 18:20:14 2021 +0300 KnownDirectivesRule-test: remove dependency on harness schema (#3176) commit 0b7625f6f38f2245b38642e4c572712d5d5478be Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Jun 14 13:01:58 2021 +0300 TypeInfo-test: remove dependency on harness schema for validation tests (#3175) commit d39a7b5e42d33a33d99f8b732015389b311f4301 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Jun 14 12:40:03 2021 +0300 ci: use update 'actions/setup-node' to v2 (#3174) commit 96fe0054d58b3444acd1c0eba22789b0c556c69b Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Jun 14 11:44:18 2021 +0300 16.0.0-alpha.4 commit 21b45a7eaf75e16700929959407f6282607b1e1f Author: Saihajpreet Singh <saihajpreet.singh@gmail.com> Date: Mon Jun 14 04:40:29 2021 -0400 fix: broken link to prettier rules (#3173) commit 58122ef35f08175c8d054de427b49f570901536e Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Jun 13 20:25:50 2021 +0300 Avoid relying on constructor.name for instanceOf error check. (#3172) Fixes #2894 commit 81ca7781ec15e2d6b91d6146a3e545afb31af92b Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Jun 13 16:50:56 2021 +0300 Add 'Symbol.toStringTag' into every publicly exported class (#3170) commit 9a04b4ce15d82bbe0c86f43e43c3f6481d50ecee Author: Yaacov Rydzinski <yaacovCR@gmail.com> Date: Thu Jun 10 15:05:39 2021 +0300 allows passing --watch to npm run testonly (#3158) commit 28a382e74a9e86d6a1a0ed4267df592d6991fa9c Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Jun 9 17:03:16 2021 +0300 SingleFieldSubscriptionsRule: fix order of imports (#3167) commit d82c8e2aa603536c6a305b1c66fb329c4d086302 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Jun 9 13:20:05 2021 +0300 SingleFieldSubscriptionsRule-test: extract test schema from harness (#3166) commit 120758aefeb33bc62a962d25e53634e16571678d Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Jun 9 13:03:54 2021 +0300 build-npm: correctly set NPM tag on experimental pre-releases (#3161) Example `v16.0.0-alpha.3.experimental-stream-defer.2` commit dc2a3eb4e7ee81b85dd14d2910f355a8b7844c5f Author: Yaacov Rydzinski <yaacovCR@gmail.com> Date: Tue Jun 8 12:29:08 2021 +0300 execute: Rename resolveField function and update comments (#3159) commit 6d71a1bc3239d8a2d2c8906fed8121f14be0b56b Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri Jun 4 18:09:04 2021 +0300 versions-test: add support for experimental pre-releases (#3160) commit fd3ab05cccaa35db1fb3fac7b989a71c26c5aa73 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri Jun 4 01:58:51 2021 +0300 16.0.0-alpha.3 commit 88a2f4780f33918af0bcd8a5899f83bf03b69101 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri Jun 4 01:56:27 2021 +0300 package.json: fix generating release commit (#3157) commit d5eac891ccb2c0b27b5b38101448d8fc1c3d8f89 Author: Benjie Gillam <benjie@jemjie.com> Date: Thu Jun 3 18:51:43 2021 +0100 RFC: Assert subscription field is not introspection. (#2861) commit fd3d8c9fc5e80b23e2f151c818b94e77aef3922a Author: Lee Byron <lee@leebyron.com> Date: Thu Jun 3 10:34:33 2021 -0700 Refactor Lexer (#3115) Co-authored-by: Ivan Goncharov <ivan.goncharov.ua@gmail.com> commit 1ac35c4a7acb0d4f9b125737328ac19d6c6aed01 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Jun 2 17:36:55 2021 +0300 tsconfig.json: enable 'isolatedModules' (#3154) commit 15148f8080f113899d61e79d7f9d8e987c32dc0f Author: Yaroslav Kukytsyak <kyarik.git@gmail.com> Date: Wed Jun 2 11:06:55 2021 +0200 Fix typescript-4.3 version in the integration tests (#3153) commit 10d26ccc3e6d45c668428ed6b173fce70caf9cbb Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Jun 1 19:00:20 2021 +0300 CI: Add new job to check health of package-lock.json (#3151) commit e08993aed2f71517f22d9c7d8c8a75d6668e0c92 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon May 31 11:48:19 2021 +0300 Update deps (#3149) commit d8478dc43fae917287f4e8445e58121c36b72a73 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri May 28 16:44:15 2021 +0300 ESLint: fail `npm run lint` if any warnings are reported (#3144) commit bf26a52257cc47513d8a0bd8219c57c8fd279d4a Author: Lee Byron <lee.byron@robinhood.com> Date: Wed May 26 22:27:24 2021 -0700 TS: Enable strict mode commit 69b4c59447b32c1014058ecd990e1880aa07e9c4 Author: Lee Byron <lee.byron@robinhood.com> Date: Wed May 26 22:23:48 2021 -0700 TS: Fix strict issues in src/error commit 8066ac9d411921fddf587c83ba3ec49a0786c080 Author: Lee Byron <lee.byron@robinhood.com> Date: Wed May 26 22:18:18 2021 -0700 TS: Fix strict issues in src/execution commit 26bf00ac34c8aaf14f30691508516c8485cb5853 Author: Lee Byron <lee.byron@robinhood.com> Date: Wed May 26 22:10:28 2021 -0700 TS: Fix strict issues in src/jsutils commit 2fadef3f32bbe438d0e4c99db08858ecbbebf1d5 Author: Lee Byron <lee.byron@robinhood.com> Date: Wed May 26 21:51:15 2021 -0700 TS: Fix strict issues in src/language commit a7f3cc68ba081745066b0642ec65522dd27cd46f Author: Lee Byron <lee.byron@robinhood.com> Date: Wed May 26 16:45:47 2021 -0700 TS: Fix strict issues in src/subscription commit ac7098505ac3f5485ad3ac79351f0e64175bde23 Author: Lee Byron <lee.byron@robinhood.com> Date: Wed May 26 16:25:38 2021 -0700 TS: Fix strict issues in src/type commit 5accb29e380bea1cf3bf15e372b73d50e7bf3b6a Author: Lee Byron <lee.byron@robinhood.com> Date: Wed May 26 15:23:18 2021 -0700 TS: Fix strict issues in src/utilities commit 6b95561bb2d76705944abd40a828d9284cafe46d Author: Lee Byron <lee.byron@robinhood.com> Date: Wed May 26 14:45:47 2021 -0700 TS: Fix strict issues in src/validation * Add `"strict": true` to tsconfig.json * Fix all issues that arise within `src/validation` commit c589c3d285cb1ec44b09bf0b50ec041ec083760c Author: saihaj <saihajpreet.singh@gmail.com> Date: Tue Oct 27 10:11:59 2020 -0500 Temporary relax tsconfig and added bunch of error supressions commit 76e0607cd35e418ec4ed9105d0003af2c67e0b4f Author: Saihajpreet Singh <saihajpreet.singh@gmail.com> Date: Sat May 15 10:54:07 2021 -0400 TS Migration: enable tests antd remove flow infra (#3091) commit f1f26dc48a192998240db136e55673efdf5e8434 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon May 24 14:46:03 2021 +0300 Extract TS specific changes from `*.d.ts` files commit 291784031d0dba584b608bd13a88ba40643f114d Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri May 14 17:00:56 2021 +0300 Switch to TS syntax (#3090) commit daf11ba1d81cdeed55da255aed0333fd9efbdac7 Author: Saihajpreet Singh <saihajpreet.singh@gmail.com> Date: Fri May 14 10:05:19 2021 -0400 Migrate to TS: rename `.js` to `.ts` and fix everything in latter PRs (#3088) using this `find src -name "*.js" -exec sh -c 'git mv "$0" "${0%.js}.ts"' {} \;` shell command renamed all files in `src` commit 2d3fcfa34e05351c942fc9df1e43e775df7534e2 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue May 25 03:45:30 2021 +0300 16.0.0-alpha.2 commit 544fe7be283d748683ec20f1674c4400431a73d8 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue May 25 02:40:10 2021 +0300 Synchronise `*.d.ts` with sources converted to TS (#3132) commit 5e062eaf28cf9c69d8a7fea411ea1f72e59ac7ec Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue May 25 01:41:34 2021 +0300 TS: Drop template argument from GraphQLFormattedError (#3131) commit e4283043668dda1a1d4b66f38e4f590e1fec978c Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon May 24 22:54:46 2021 +0300 coerceInputValue: add missing argument in function call (#3130) commit f1f3d8ea270295514af7b926f78b6ecc4bdf3190 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon May 24 13:39:34 2021 +0300 definition.d.ts: correct types (#3129) commit 82a9a6cca21fd7286e7b6211a1606af034a3a859 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon May 24 12:28:11 2021 +0300 definition: Remove deprecation comment (#3128) commit 4def93d03720fb1475b6fde58e2b9e7ff245db1a Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon May 24 12:09:12 2021 +0300 Disable '@typescript-eslint/prefer-readonly' (#3127) commit ea267c7aa350d67a8fe217cd3ef91daeab79d519 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon May 24 00:46:08 2021 +0300 Restrict TS to files inside `src` (#3126) commit 4adac42649442fcd4545f5451734535fd662018a Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun May 23 23:36:49 2021 +0300 TypeInfo: use explicit type for `getFieldDef` arg (#3125) commit 23a404b6b02210ac02d2f9308fb845fe1f7bfcc3 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun May 23 16:24:37 2021 +0300 src/type: correct order of import/exports (#3124) commit 667ad15a085d3d70c7f382400b241713c94b9fa9 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun May 23 16:17:14 2021 +0300 visitor: convert arguments descriptions to JSDoc comments (#3123) commit 4b1f920844191ac337120c67a2543f41fd02ca33 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sat May 22 14:27:15 2021 +0300 valueFromAST: drop unnecessary 'void' since `mixed` already includes it (#3122) commit b4271c1bc0312974a1ef1d81029f704c9edbeafc Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri May 21 19:45:07 2021 +0300 `*.d.ts`: Switch comments to comment to TSDoc (#3121) commit 1bd65a3efe5d4c7dad9c7d1e018610054a962e93 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu May 20 15:09:42 2021 +0300 subscription-test: add missing await (#3120) commit cffcec45029d0823aebd95b253846614231abde9 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu May 20 11:19:25 2021 +0300 Remove empty lines from '*.d.ts' files (#3119) commit d4ca2475162302bfbc29432a04cff35dceebd901 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu May 20 10:09:54 2021 +0300 TS: switch all imports to type imports (#3118) commit e591d0a1e158df03c3a842c7897a08fc232e6cf6 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed May 19 19:11:02 2021 +0300 Drop support for TS 3.7 commit 9a4a228bd6bdac6c006c2aaaed30106dc6e372a9 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed May 19 18:46:18 2021 +0300 gen-version: fix notice comment was polluting 'version.d.ts' commit b39b47d7ee34252432df0428cd8710407d02a2fb Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon May 17 14:15:00 2021 +0300 OverlappingFieldsCanBeMergedRule: futher simplify 'PairSet' (#3108) commit 9b0514a093135e9437acbb858f642c49b290728e Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun May 16 20:03:07 2021 +0300 getLocation: use more explicit `matchAll` instead of `RegExp.exec` (#3105) commit 558b0e0ecb4afbb4c0bc6bbe0094a0a39a48f26f Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun May 16 18:41:22 2021 +0300 ESLint: fix config for '@typescript-eslint/no-throw-literal' (#3103) commit 941ca3f11ff2318fd76896b98c2b1007a007d937 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun May 16 16:09:36 2021 +0300 eslintrc: fix spelling mistake in comment (#3102) commit fb8a3cef8e663ae38b5c6bac331cfb46fb171c79 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun May 16 16:05:13 2021 +0300 Flow: remove unnecessary '%checks' (#3101) commit 27d519b4fcb00a09a18277c7121e20a9d2a2da91 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun May 16 15:58:14 2021 +0300 Flow: add missing arg name in function type (#3100) commit 7fb6c784a57dd42025fe3dc646eeaccad78fa5d3 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun May 16 15:46:48 2021 +0300 OverlappingFieldsCanBeMergedRule: refactor 'PairSet' (#3099) commit b029ef8e35d442fc8d6524b142a320956b60ae08 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun May 16 14:51:57 2021 +0300 mapAsyncIterator: simplify test case (#3098) commit a0670bced1a930b39cada78b397b354c41d388cf Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun May 16 14:23:18 2021 +0300 Flow: use only type imports for importing types (#3097) commit 501b665fe30076daf17dd86e4ee9e93d9218ca10 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun May 16 14:10:14 2021 +0300 Flow: Remove inferrable types (#3096) commit e94c2fa42992bd58f92709189c1ccc4b203d11b5 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sat May 15 19:09:40 2021 +0300 Update prettier to 2.3 (#3094) commit 11d71e4bc8ae5718def8ffc06a84cc19ca1a5bba Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri May 14 16:09:32 2021 +0300 16.0.0-alpha.1 commit 39b69da863fca34f0e921bb9ac6a1b99797e17cf Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu May 13 18:57:12 2021 +0300 Flow: switched to exact object by default (#3085) In preparation for TS migration commit 6fd56074295634a7362df055568a3cd4cb676e47 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu May 13 18:34:59 2021 +0300 getFieldDef: accept FieldNode instead of field name (#3084) commit 266f9fa7317b8ac1828fac7c36807badfff393b3 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu May 13 15:20:48 2021 +0300 execute: inline collectAndExecuteSubfields function (#3083) commit 0ebcb2f7af16e77481608cd6bbe5600b4e0e5d8d Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed May 12 23:11:41 2021 +0300 collectFields: use ES6 collections instead of Object.create(null) (#3082) commit 86523ec5f80b459d43b6b16db80b185f903f49e5 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed May 12 14:11:43 2021 +0300 Flow: Replace force type conversion with explicit $FlowFixMe comments (#3081) In preparation for TS convertion commit 0bb8500f6f8f6f771d829579ec6eb1075f6f8eaf Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed May 12 13:43:35 2021 +0300 Workaround for Flow issue with 'String.raw' (#3080) In preparation for TS migration commit 33ec4ef3d95aafeb7bb1261dba26e7795d68adfd Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed May 12 13:31:29 2021 +0300 dedent: simplify implementation (#3079) commit 740de807adef1ca1bc50bece08594e6e688ca601 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed May 12 13:21:11 2021 +0300 babel: Stop transpiling optional chaining operator (#3078) commit 98dcac3e6a84156658601bfe303575f448e5fa14 Author: Lee Byron <lee@leebyron.com> Date: Mon May 10 15:24:05 2021 -0700 Simplify printSchema directive printing (#3075) commit 78d5f832b6f4c11d7f0af8aab68ff4229ba4f46f Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon May 10 21:08:55 2021 +0300 Improve naming 'err => error' and 'arr => array' (#3073) commit 3cfb2bef1673aa82b5ee2e25d2a0d183992f1aeb Author: Christoph Zwerschke <cito@online.de> Date: Mon May 10 15:23:38 2021 +0200 Improve grammar in execution error messages (#3068) commit bd5583c6b2e75461dff149e42838f1ba0b543797 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon May 10 15:10:33 2021 +0300 Flow: add missing names to arguments of function types (#3072) In preparation to TS convertion commit d695f530b3b94e3a37435a3eb5788e8f39b5fe1b Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon May 10 12:43:28 2021 +0300 subscription-test: standardize generator names (#3070) commit 1af561f355d9cb1429b90701c600815f38caf92c Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon May 10 11:55:25 2021 +0300 subscription-test: use separate dummy query type (#3069) commit 513eacc33ed29e389fa6790e3dba00dbc5f9aa83 Author: Lee Byron <lee@leebyron.com> Date: Fri May 7 23:22:09 2021 -0700 Refine parse and AST to represent ConstValue (#3059) This adds: * ConstValueNode - A subtype of ValueNode which recursively excludes Variables * Improved syntax error when encountering variable in a const value * parseConstValue(): ConstValueNode * isConstValue(): ConstValueNode * Various refinements to AST types to use ConstValueNode (or a type which includes it) to better align to the spec. commit 5579180f4a659f9b6fc3083869b765c6630bcc50 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sat May 8 09:14:22 2021 +0300 mapAsyncIterator-test: check that return value is passed on early return (#3066) commit 960f207390615588111a4cf0238e62403c9c7eed Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu May 6 19:56:35 2021 +0300 mapAsyncIterator: refactor async iterator (#3064) commit 83751a9f638470211c7627e715ea9a77e4ee71a4 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu May 6 17:55:52 2021 +0300 mapAsyncIterator: refactor async iterator (#3062) commit 9ba6b1739c5b55790b4b0d8d0d122cbc58685fe0 Author: Lee Byron <lee@leebyron.com> Date: Thu May 6 00:56:58 2021 -0700 Refine getNamedType() for Input and Output types (#3063) This introduces type definitions `GraphQLNamedInputType` and `GraphQLNamedOutputType` as the subsets of `GraphQLNamedType`, and adds function overrides for `getNamedType()` such that if an input or output type is provided, one of these refined subset types is returned. commit 2673bdf851a32a81e1dd609ecaab94b02725a98b Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu May 6 08:52:52 2021 +0300 subscribe-test: general cleanup and simplify test setups (#3058) commit 2a040191db5444b18a5018f5fa1edeb953968066 Author: Lee Byron <lee.byron@robinhood.com> Date: Wed May 5 20:54:42 2021 -0700 Fix build commit 5010bb8a95a9acd914b7857c1163a5d381aec04c Author: Lee Byron <lee.byron@robinhood.com> Date: Wed May 5 20:44:46 2021 -0700 Add test for #3061 commit 002fb91b25c035403dbaf785cd04c3d1c6a2e004 Author: Lee Byron <lee@leebyron.com> Date: Wed May 5 20:42:58 2021 -0700 Improve parser location API (#3061) This replaces manual assignment of `loc` on each node in Parser with a `node()` function. This simplifies the parser and also ensures the `loc` field does not appear at all when `noLocation` is provided. commit a4e9bc9bb8e05916ac926233394a164b5e129062 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed May 5 19:53:14 2021 +0300 Update deps (#3057) commit 44b32fceec61b6314269c3dc3d5618ec6dbef962 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed May 5 17:40:29 2021 +0300 Drop Node v15 (#3055) commit dba69acd5764edfe8b4f39118849ba40979677af Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue May 4 22:54:37 2021 +0300 Test with Node v16 (#3054) commit 777c7e9fc564a8aeca9b935b1c786c5c10b40bd8 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue May 4 20:52:15 2021 +0300 Forbid non-ASCII characters in JS files (#3053) commit 676c775f6dcf5d4261a096cce5fd9dfba49d4861 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue May 4 14:50:10 2021 +0300 Fix Flow issues with Symbol.asyncIterator (#3043) commit 917befd7a54fe99d6141fa0ed92bc2b82544625f Author: Lee Byron <lee@leebyron.com> Date: Mon Apr 26 23:59:41 2021 -0700 Generalize defineArguments() (#3050) Fields and Directives both define arguments according to identical logic. This generalizes that and shares the implementation across both constructions. commit 2d48fbbeb8718e4a0152d458145a9fe2111c0f8d Author: Kei Kamikawa <Code-Hex@users.noreply.github.com> Date: Wed Apr 21 00:27:35 2021 +0900 Use specifiedBy instead of specifiedByUrl (#3032) commit b9fd53bfc23124c26954e25de40ebb3b27bf9367 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu Apr 15 23:49:25 2021 +0300 Remove superficial usages of 'Array.from' (#3042) commit 947ca289828e071743412e53dcb14dfe8169dfc8 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu Apr 15 16:11:52 2021 +0300 Use correct terminology around iterators and iterable (#3041) commit a75e95b873575434910c215a69ddcc3ac9000ac2 Author: Saihajpreet Singh <saihajpreet.singh@gmail.com> Date: Wed Apr 14 15:10:22 2021 -0500 simplify predicate-test type (#3039) Co-authored-by: Ivan Goncharov <ivan.goncharov.ua@gmail.com> commit 33e3a33107ba59a99123332b7f227bf36016219c Author: Saihajpreet Singh <saihajpreet.singh@gmail.com> Date: Mon Apr 12 18:02:18 2021 -0500 TS: improve types mapAsyncIterator-test (#3038) commit f1039240e0954273a85e28b05c598865c104778b Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Apr 12 13:08:54 2021 +0300 Update deps (#3037) commit f58b95349a582ad98c99bc4f5ef70a64251ebdc4 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Apr 12 01:36:28 2021 +0300 integrationTests: test package with TS 4.2 (#3036) commit ff5419514feab989531d52d775b1cbe33e6ce51e Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Apr 12 00:05:55 2021 +0300 printSchema: replace array concat with spead + update comment (#3035) commit 264f758bf650aad67f57a5bd53d6771d61ef6713 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Apr 11 23:53:41 2021 +0300 visitor-test: cleanup test for nodes with unknown kinds (#3034) commit 0460fe967fdfe0e541e8bf6b163af4c97518a52a Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri Apr 9 16:50:58 2021 +0300 Drop experimental online parser (#3031) Drop in order to speedup and simplify TS convertion Plan is to clean it up (rewrite code, add tests, etc.) andd merge it back after 16.0.0 release. commit 7f40198a080ab3ea5ff3e1ecc9bf7ade130ec1bf Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Apr 5 00:54:19 2021 +0300 mapAsyncIterator: move promise resolution into mapResult (#3028) commit 541a058ebe17136118a619d351a9a49bfa9f333c Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Apr 5 00:25:58 2021 +0300 subscribe: drop mapping of AsyncIterable errors (#3027) commit 179e47912c1559530248fb1b713cfbdd3fad6dca Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Apr 4 22:23:18 2021 +0300 Switch some of 'Object.keys' to more modern ES6 constructs (#3026) commit 954913b42fd00f97b29f66ec8a75bd624395301e Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Apr 4 19:17:46 2021 +0300 subscribe: simplify root field extraction (#3025) commit 39581581acc184301cfbb0ee348d0f4b6a21a99f Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Apr 4 18:53:16 2021 +0300 subscribe: simplify by rewriting as async functions (#3024) commit 814169b3c805e93ca1b0ae216710e633e50ca894 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Apr 4 16:55:23 2021 +0300 predicate-test: improve typecheck (#3023) commit 1ee3dc58a439dbd3fe0cd6658e6ad9232216c08f Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Apr 4 16:52:14 2021 +0300 memoize3: remove unnecessary mixed type (#3022) commit 657605c506af945b63940759d453f5d40db00d38 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Apr 4 16:24:45 2021 +0300 gen-version: prettify source code (#3021) commit 7707f856a963be021a091a8f405d682d15186fca Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Apr 4 14:08:20 2021 +0300 Update deps (#3020) commit 60417a901ad7a71f69f0a7459454da54e0a1833a Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Apr 4 13:48:04 2021 +0300 inline-invariant: switch to use false instead of 0 (#3019) commit 142ca1ff1f411728624c57b1a0f013cc0d8adf44 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Apr 4 13:27:42 2021 +0300 build: run prettier on generated files (#3018) commit 10bd6fec22f5e6aa06b7f7ce4e3c73e7a3a00399 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sat Apr 3 20:21:05 2021 +0300 Update deps (#3017) commit 98feb57b9e0af59b3a0dfa5179565cb3acf4fa9e Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri Apr 2 18:26:39 2021 +0300 printer-test: do more check on kitchen sink tests (#3016) commit 31b442eb0a499e88064a61cd9b131fb60747652c Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri Apr 2 18:21:14 2021 +0300 printer-test: switch to dedentString (#3015) commit 665fc9c8ad8246f66ff672372a21346f6d7143c4 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri Apr 2 17:44:09 2021 +0300 mapAsyncIterator: simplify abruptClose (#3014) commit 382dfe2138c1ad39734d142a6f0b88010d8f3721 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri Apr 2 17:40:50 2021 +0300 mapAsyncIterator: simplify mapResult (#3013) commit 6c53a274f50ea7965e92fe314e95cef6bd57c440 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri Apr 2 17:33:21 2021 +0300 mapAsyncIterator: allow 'rejectCallback' to only be synchronous (#3012) commit 0f3e91f95507a98639d829edc00b5d54e5371935 Author: Saihajpreet Singh <saihajpreet.singh@gmail.com> Date: Fri Apr 2 09:28:00 2021 -0500 testUtils: refactor out dedentString from dedent (#3010) commit 5ed55b89d526c637eeb9c440715367eec8a2adec Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu Apr 1 16:41:46 2021 +0300 mapAsyncIterator: add default value for 'rejectCallback' (#3011) commit ecf732fe03df2dd5a355cc2c7912245164a48301 Author: Saihajpreet Singh <saihajpreet.singh@gmail.com> Date: Wed Mar 31 11:05:16 2021 -0500 TS: use proper type for async generator (#3009) commit 953148684f3da79649729376665bd008771452b8 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Mar 31 17:43:30 2021 +0300 ESLint: enable 'func-names' (#3008) commit 83525433ed580964764c925de6cd4ed25f419b53 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Mar 30 23:18:05 2021 +0300 TS integration test: add check for possibility to refine extension types (#3007) commit 5974fefc461311a0d66b5aa87fe89f05c9a5e03c Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Mar 30 23:02:12 2021 +0300 ts: Switch extension values to unknown to match Flow types (#3006) commit 47e6bd185eb856e2541337324eac3b09c328b65d Author: Saihajpreet Singh <saihajpreet.singh@gmail.com> Date: Tue Mar 30 14:46:40 2021 -0500 ts: switch to use ObjMap utility type (#3005) commit b800c57bd9f78ab23774430fc1c14f003bf1585f Author: Saihajpreet Singh <saihajpreet.singh@gmail.com> Date: Tue Mar 30 13:30:09 2021 -0500 feat: add types for internal Parser class (#3002) commit 673cb95835185377b89fc6f9506941f53bdfe049 Author: Saihajpreet Singh <saihajpreet.singh@gmail.com> Date: Tue Mar 30 13:29:34 2021 -0500 TS: use `unknown` (TS) for `mixed` (flow) (#3003) commit e0bd06f769d2ca1bc70c66e38d5b89cfb20807d2 Author: Saihajpreet Singh <saihajpreet.singh@gmail.com> Date: Tue Mar 30 13:28:29 2021 -0500 GraphQLGrammarType: no need to code in d.ts can just export type (#3004) commit 71ba4c63ec07d24f7755796366fef78398185deb Author: Saihajpreet Singh <saihajpreet.singh@gmail.com> Date: Tue Mar 30 12:42:56 2021 -0500 feat: add .d.ts for jsutils (#3000) commit 58b9cd5e418ea0925362245ba639a72f207b2983 Author: Saihajpreet Singh <saihajpreet.singh@gmail.com> Date: Tue Mar 30 09:26:01 2021 -0500 fix: discrepancies between Flow and TS types (#3001) commit 2616dc797a8aed516bd51a746dbe015d66160e75 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Mar 29 15:52:16 2021 +0300 tests: replace 'invariant' with 'expect' assertion whenever possible (#2999) commit 33c069ce64ebad1379d8c6a7937f98952ad40e63 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Mon Mar 29 02:36:03 2021 +0300 Simplify testing AST nodes in buildSchema/extendedSchema tests (#2998) commit 1e46389a1970bb3609f33029cfcf0a41f65ad999 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Mar 28 23:13:45 2021 +0300 print/printSchema: remove trailing new line (#2997) Remove special behaviour for printing `DocumentNode` that added trailing new line. This change allows to tools to add newline only if it required by code convention or OS convention. Scripts and CLI tool can return previous behaviour by adding `\n`. commit a6a65b26d78d2656ac3eccce9cd70b15a23258c4 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Mar 28 18:22:46 2021 +0300 extensionASTNodes: always populate with empty array (#2996) commit 491ddd50a3aa3ef9a2251d0dcf0dce312b3499ac Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Mar 28 17:48:59 2021 +0300 introspection-test: fix test to correctly check for exceptions (#2995) commit 326348ea6926dac0a72a4b719d2fec00326211e9 Author: Saihajpreet Singh <saihajpreet.singh@gmail.com> Date: Sun Mar 28 09:04:23 2021 -0500 fix: update introspection types (#2991) commit d4bcde8d3e7a7cb8462044ff21122a3996af8655 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sat Mar 27 12:33:30 2021 +0200 Update deps (#2993) commit c52b595f7571843efc5f78d9d9cd1760fbfb5366 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri Mar 26 02:32:07 2021 +0200 flow: Improve typings for exported definitions (#2992) commit d720b5bcfe1e80aedc947773308b56f10e81e31e Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu Mar 25 16:50:17 2021 +0200 Switch instanceOf to be named export (#2990) commit 050c508645782fa5c5773d61cfb983b5e0674cc8 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu Mar 25 15:25:50 2021 +0200 Switch indexOf to includes whenever possible (#2989) commit 2f876b64b0eac728e6d6dc09b435090a67328757 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu Mar 25 13:08:50 2021 +0200 Replace 'Array.reduce' with 'for of' (#2988) Results in measurable perfomance increase and significantly lower memory usage in a few benchmarks. commit 494a3d294ab04f65ac3cdac66010d53e002db154 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Mar 24 12:25:57 2021 +0200 Synchronise TS typings for graphql.js/execute.js/subscribe.js (#2987) Removal of positional args was done in #2904 but TS typings were not updated. commit 32a053bbf40e3fb713d3e68b82be1a2e94c8dd4d Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Mar 24 00:52:43 2021 +0200 benchmark: use more readable spelling of V8 flag (#2982) commit a50dbd24e7ee4ca60e4405bb5794385460ddb7db Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Mar 23 19:39:40 2021 +0200 printSourceLocation: simplifying by using padStart (#2981) commit 911013592710bed36b9c638aeb5081ac1e94d0f8 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Tue Mar 23 19:31:01 2021 +0200 internal: simplify 'exec' function (#2978) commit 540f33605ee047ab86e0d9666f4a60526d56ff0f Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sat Mar 20 15:03:56 2021 +0200 dedent-test: change test data to pass spell check (#2977) commit 4528057cf4af4abcbc40d747520e0edb769a049a Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Thu Mar 18 15:44:12 2021 +0200 Remove deprecated `rmdirSync` usage from internal scripts (#2972) commit 00ef21739731d1ea7fc61e4294b5bec5a2e535f2 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Wed Mar 17 18:32:41 2021 +0200 benchmark: refactor args parsing code (#2971) commit c581573aa634b1a782ac73043b509b8a7f253f65 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Mar 14 01:31:20 2021 +0200 Remove override of `node/global-require` rule for `resources` dir (#2970) commit f8155ac385a47def8eb5d4b41916029dbf2289be Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Mar 14 01:23:00 2021 +0200 ESLint: cleanup rule overrides (#2969) commit 5c323b99c26bf4fa793563427f01a5ac9e3ce75b Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Mar 14 00:23:33 2021 +0200 ESLint: Allow 'async' functions (#2968) ATM, minimal supported Node.js version is 12 so we drop this restriction commit 4f4135507f6c9121e6bd3ffb29f946b69af31136 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sun Mar 14 00:20:11 2021 +0200 flow: improve typings of exported definitions (#2967) commit 8109e42dd6527f92cf244653acea12bc4cabe087 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sat Mar 13 20:32:42 2021 +0200 blockString-fuzz: improve `lexValue` typing (#2966) commit afffdfeeb8d2f05b1030cdeeae49a0ffa9139d92 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sat Mar 13 20:04:00 2021 +0200 parser: improve type checking of 'parseTypeReference' function (#2965) commit 26e4568df9d42d5f5a2568f5071fa7dd1bb755e2 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sat Mar 13 19:55:07 2021 +0200 Simplified memoize3 and improve type checking (#2964) commit aa80e1b20999cad2b69a7a6f6d1db28594465f3e Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sat Mar 13 19:50:22 2021 +0200 printer: simplify printing of query short form (#2963) commit e6f20dae9205f0096fa2db26cef580683d053705 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sat Mar 13 19:12:29 2021 +0200 flow-typed: fix unresolved types (#2962) commit 3f6034a3376410bbf1b1aa11c1d465a70c446544 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sat Mar 13 17:55:07 2021 +0200 flow-typed: update Mocha typings (#2961) commit eb284011e3a2d11786ed5884d2e5f068c52eeb12 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sat Mar 13 17:43:07 2021 +0200 Update deps (#2960) commit 3e916ef1969eadd2e770af536e7537860b236c81 Author: Saihajpreet Singh <saihajpreet.singh@gmail.com> Date: Sat Mar 13 09:26:54 2021 -0600 feat: convert Thunk to ThunkArray and ThunkObjMap (#2955) commit 789a98afe963095e47ba5d3891ba33e88c68bbbc Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Sat Mar 13 16:33:31 2021 +0200 ASTVisitor: use type intersection instead of type union (#2959) commit 2c2d87e7bfff5017cb712aa2febfbdf72dcbdbe5 Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri Mar 12 20:07:28 2021 +0200 visitor: remove 4th form of visitor (#2957) Visitor in 4th form can always be written as 2nd form. This is PR part of general effort to simplify `visit` typings before TS migration. commit 3ce28cef725addeed3d58384e19b93c7b454911e Author: Ivan Goncharov <ivan.goncharov.ua@gmail.com> Date: Fri Mar 12 19:43:02 2021 +0200 buildClientSchema-test: correctly wrap test case (#2956) commit fff5f7afdad9afba7ee5ef4b42c5a008afe42…
b45b7de
to
354780b
Compare
✅ Deploy Preview for graphql-spec-draft ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
This spec text implements #687 (full context and details there) and also introduces a new escape sequence. Three distinct changes: 1. Change SourceCharacter to allow points above 0xFFFF, now to 0x10FFFF. 2. Allow surrogate pairs within StringValue. This handles illegal pairs with a parse error. 3. Introduce new syntax for full range code point EscapedUnicode. This syntax (`\u{1F37A}`) has been adopted by many other languages and I propose GraphQL adopt it as well. (As a bonus, this removes the last instance of a regex in the lexer grammar!)
Co-authored-by: Andreas Marek <andimarek@fastmail.fm>
a9acc2b
to
14040d6
Compare
14040d6
to
6871305
Compare
This spec text implements #687 (full context and details there) and also introduces a new escape sequence.
Three distinct changes:
\u{1F37A}
) has been adopted by many other languages and I propose GraphQL adopt it as well.(As a bonus, this removes the last instance of a regex in the lexer grammar!)
Reference implementation graphql/graphql-js#3117
Closes #687
Closes #214