Releases: graphql/graphql-js
Releases · graphql/graphql-js
v16.0.0-alpha.2
v16.0.0-alpha.2 (2021-05-25)
Breaking Change 💥
- #3114 Drop support for TS 3.7 (@IvanGoncharov)
- #3131 TS: Drop template argument from GraphQLFormattedError (@IvanGoncharov)
- #3132 Synchronise
*.d.ts
with sources converted to TS (@IvanGoncharov)
Bug Fix 🐞
- #3129 definition.d.ts: correct types (@IvanGoncharov)
Docs 📝
- #3121
*.d.ts
: Switch comments to comment to TSDoc (@IvanGoncharov)
Polish 💅
16 PRs were merged
- #3096 Flow: Remove inferrable types (@IvanGoncharov)
- #3097 Flow: use only type imports for importing types (@IvanGoncharov)
- #3098 mapAsyncIterator: simplify test case (@IvanGoncharov)
- #3099 OverlappingFieldsCanBeMergedRule: refactor 'PairSet' (@IvanGoncharov)
- #3100 Flow: add missing arg name in function type (@IvanGoncharov)
- #3101 Flow: remove unnecessary '%checks' (@IvanGoncharov)
- #3105 getLocation: use more explicit
matchAll
instead ofRegExp.exec
(@IvanGoncharov) - #3108 OverlappingFieldsCanBeMergedRule: futher simplify 'PairSet' (@IvanGoncharov)
- #3118 TS: switch all imports to type imports (@IvanGoncharov)
- #3120 subscription-test: add missing await (@IvanGoncharov)
- #3122 valueFromAST: drop unnecessary 'void' since
mixed
already includes it (@IvanGoncharov) - #3123 visitor: convert arguments descriptions to JSDoc comments (@IvanGoncharov)
- #3124 src/type: correct order of import/exports (@IvanGoncharov)
- #3125 TypeInfo: use explicit type for
getFieldDef
arg (@IvanGoncharov) - #3128 definition: Remove deprecation comment (@IvanGoncharov)
- #3130 coerceInputValue: add missing argument in function call (@IvanGoncharov)
Internal 🏠
6 PRs were merged
- #3102 eslintrc: fix spelling mistake in comment (@IvanGoncharov)
- #3103 ESLint: fix config for '@typescript-eslint/no-throw-literal' (@IvanGoncharov)
- #3112 gen-version: fix notice comment was polluting 'version.d.ts' (@IvanGoncharov)
- #3119 Remove empty lines from '*.d.ts' files (@IvanGoncharov)
- #3126 Restrict TS to files inside
src
(@IvanGoncharov) - #3127 Disable '@typescript-eslint/prefer-readonly' (@IvanGoncharov)
Dependency 📦
- #3094 Update prettier to 2.3 (@IvanGoncharov)
Committers: 1
- Ivan Goncharov(@IvanGoncharov)
v16.0.0-alpha.1
v16.0.0-alpha.1 (2021-05-14)
Breaking Change 💥
- #2896 Remove deprecated rule aliases (@IvanGoncharov)
- #2897 Remove 'findDeprecatedUsages' that was previously deprecated (@IvanGoncharov)
- #2898 Remove 'GraphQLSchema::isPossibleType' that was previously deprecated (@IvanGoncharov)
- #2900 Drop support for long deprecated comments as descriptions (@IvanGoncharov)
- #2902 Remove deprecated {GraphQLEnumValue, GraphQLField}::isDeprecated (@IvanGoncharov)
- #2903 Removed parser support for legacy syntax (@IvanGoncharov)
- #2904 Remove support for positional args in graphql/execute/subscribe func (@IvanGoncharov)
- #2905 resolveType: remove support for returning GraphQLObjectType (@IvanGoncharov)
- #2906 Convert GraphQLList and GraphQLNonNull into proper classes (@IvanGoncharov)
- #2907 Remove 'find' polyfill (@IvanGoncharov)
- #2911 Remove 'isFinite' & 'isInteger' polyfills (@IvanGoncharov)
- #2912 Drop 'Array.from' polyfill (@IvanGoncharov)
- #2913 Remove polyfills for Symbol (@IvanGoncharov)
- #2914 Remove Node's custom inspect function (@IvanGoncharov)
- #2915 Drop support for TS before 3.7 (@IvanGoncharov)
- #2916 refactor: replace default exports with named exports (@IvanGoncharov)
- #2917 Drop support for non-iteratable ArrayLike objects (@IvanGoncharov)
- #2918 Drop support for older browsers (@IvanGoncharov)
- #2919 Remove polyfills for 'Object.values' & 'Object.entries' (@IvanGoncharov)
- #2920 Deprecate fragments with variables and reflect that in naming (@IvanGoncharov)
- #2921 Deprecate 'getFieldDefFn' arg of 'TypeInfo' and move it last (@IvanGoncharov)
- #2923 Drop support for Node10 (@IvanGoncharov)
- #2930 visitor: remove
visitorKeys
argument (@IvanGoncharov) - #2931 visit: remove template arguments for possible nodes (@IvanGoncharov)
- #2951 Forbid null & undefined as return value of 'interfaces' thunk (@IvanGoncharov)
- #2952 Restrict Thunks to support only ObjMap and Array (@IvanGoncharov)
- #2955 feat: convert Thunk to ThunkArray and ThunkObjMap (@saihaj)
- #2957 visitor: remove 4th form of visitor (@IvanGoncharov)
- #2997 print/printSchema: remove trailing new line (@IvanGoncharov)
- #3003 TS: use
unknown
(TS) formixed
(flow) (@saihaj) - #3006 ts: Switch extension values to unknown to match Flow types (@IvanGoncharov)
- #3027 subscribe: drop mapping of AsyncIterable errors (@IvanGoncharov)
- #3031 Drop experimental online parser (@IvanGoncharov)
- #3032 Use specifiedBy instead of specifiedByUrl (@Code-Hex)
- #3055 Drop Node v15 (@IvanGoncharov)
New Feature 🚀
- #2932 print: remove indentation inside of block strings (@IvanGoncharov)
- #2996 extensionASTNodes: always populate with empty array (@IvanGoncharov)
- #3059 Refine parse and AST to represent ConstValue (@leebyron)
- #3063 Refine getNamedType() for Input and Output types (@leebyron)
Bug Fix 🐞
- #2852 introspectionFromSchema: enable 'specifiedByUrl' by default (@IvanGoncharov)
- #2855 introspection: Add missing support for deprecated input values (@IvanGoncharov)
- #2859 separateOperations: distinguish query and fragment names (@IvanGoncharov)
- #2876 Replace 'localeCompare' with function independent from locale (@IvanGoncharov)
- #2959 ASTVisitor: use type intersection instead of type union (@IvanGoncharov)
- #2987 Synchronise TS typings for graphql.js/execute.js/subscribe.js (@IvanGoncharov)
- #2991 fix: update introspection types (@saihaj)
- #3001 fix: discrepancies between Flow and TS types (@saihaj)
- #3009 TS: use proper type for async generator (@saihaj)
Docs 📝
- #2849 README: add instructions on using experimental features (@robrichard)
Polish 💅
75 PRs were merged
- #2847 Add tests for supporting Iterable collections across the lib (@IvanGoncharov)
- #2851 tests: update 'getIntrospectionQuery' tests to use custom matchers (@IvanGoncharov)
- #2858 separateOperations-test: refactor tests to look like snapshots (@IvanGoncharov)
- #2868 Extract types for normalized configs into named types (@IvanGoncharov)
- #2878 fix: type annotation cannot appear on a constructor declaration (@saihaj)
- #2879 fix: no need to mark param optional if default value is given (@saihaj)
- #2889 Simplify isAsyncIterable (@IvanGoncharov)
- #2928 refactor: use regexp-exec (@saihaj)
- #2933 printer: remove 'addDescription' wrapper (@IvanGoncharov)
- #2934 printer: use
wrap
util function in more places (@IvanGoncharov) - #2935 VariablesAreInputTypesRule: remove incorrect return type (@IvanGoncharov)
- #2936 schema-test: use chai's
keys
instead of undocumentedkey
(@IvanGoncharov) - #2937 validateSchema: inline 'getAllNodes' fu...
v15.5.0
v15.5.0 (2021-01-26)
Bug Fix 🐞
- #2852 introspectionFromSchema: enable 'specifiedByUrl' by default (@IvanGoncharov)
- #2855 introspection: Add missing support for deprecated input values (@IvanGoncharov)
- #2859 separateOperations: distinguish query and fragment names (@IvanGoncharov)
- #2876 Replace 'localeCompare' with function independent from locale (@IvanGoncharov)
- #2893 Fix handling of input objects with 'length' property (@IvanGoncharov)
Docs 📝
- #2849 README: add instructions on using experimental features (@robrichard)
Polish 💅
7 PRs were merged
- #2847 Add tests for supporting Iterable collections across the lib (@IvanGoncharov)
- #2851 tests: update 'getIntrospectionQuery' tests to use custom matchers (@IvanGoncharov)
- #2858 separateOperations-test: refactor tests to look like snapshots (@IvanGoncharov)
- #2868 Extract types for normalized configs into named types (@IvanGoncharov)
- #2878 fix: type annotation cannot appear on a constructor declaration (@saihaj)
- #2879 fix: no need to mark param optional if default value is given (@saihaj)
- #2889 Simplify isAsyncIterable (@IvanGoncharov)
Internal 🏠
7 PRs were merged
- #2831 build: add support for experimental releases (@IvanGoncharov)
- #2836 CI: test on node 15 (@IvanGoncharov)
- #2837 Flow: remove support for measuring Flow coverage (@IvanGoncharov)
- #2838 TS: exclude integration tests from root tsconfig.json (@IvanGoncharov)
- #2840 resources: use named groups in RegExp (@IvanGoncharov)
- #2886 Use correct flags for rmdir/mkdir functions (@IvanGoncharov)
- #2891 benchmark: fix temp dir creation (@IvanGoncharov)
Dependency 📦
5 PRs were merged
- #2835 Update deps (@IvanGoncharov)
- #2844 Update deps (@IvanGoncharov)
- #2850 Update deps (@IvanGoncharov)
- #2884 Update deps (@IvanGoncharov)
- #2890 Update deps (@IvanGoncharov)
Committers: 3
- Ivan Goncharov(@IvanGoncharov)
- Rob Richard(@robrichard)
- Saihajpreet Singh(@saihaj)
v15.4.0
v15.4.0 (2020-10-26)
New Feature 🚀
- #2731 execute/subscribe: simplify to improve debugging experience (@IvanGoncharov)
- #2733 Allow deprecating input fields and arguments (@IvanGoncharov)
- #2744 parser: Export
Parser
class as unstable API (@IvanGoncharov) - #2749 Add 'TypedQueryDocumentNode' TS type (@IvanGoncharov)
- #2770 Adding experimental online parser (@hereisnaman)
- #2797 Make print() break arguments over multiple lines (@draperunner)
Bug Fix 🐞
- #2696 GraphQLScalarType: default 'parseLiteral' should handle variables (@IvanGoncharov)
- #2706 buildASTSchema: should match order of default types and directives (@IvanGoncharov)
- #2784 Change
devAsserts
for checkingsource
argument (@IvanGoncharov) - #2786 fix: ensure variance of types matches how values are used (@ForbesLindesay)
- #2788 Make specifiedByUrl in IntrospectionScalarType's flow type optional (@mjmahone)
- #2793 resolveType: add workaround for transformed schemas (@IvanGoncharov)
- #2795 subscribe: correct Flow definitions (@IvanGoncharov)
- #2804 Added check for specific symbols in polyfills/symbols (@dionisnote)
Docs 📝
4 PRs were merged
Polish 💅
40 PRs were merged
- #2695 Merge all tests for standard scalars into one file (@IvanGoncharov)
- #2697 Cleanup valueFromAST & valueFromASTUntyped tests (@IvanGoncharov)
- #2698 list-test: Simplify utility function (@IvanGoncharov)
- #2700 Deprecate 'isDeprecated' (@IvanGoncharov)
- #2701 introspection: simpify 'includeDeprecated' logic (@IvanGoncharov)
- #2702 Improve readability of readToken function (@IvanGoncharov)
- #2703 lexer: inline positionAfterWhitespace function (@IvanGoncharov)
- #2704 readToken: improve readability by rearranging character groups (@IvanGoncharov)
- #2705 lexer: Fix formatting (@IvanGoncharov)
- #2707 introspection-test: convert schemas to SDL (@IvanGoncharov)
- #2708 introspection-test: simplify tests for description fields (@IvanGoncharov)
- #2709 introspection-test: improve testing of trivial resolvers (@IvanGoncharov)
- #2710 validation-test: Improve typings (@IvanGoncharov)
- #2720 NoDeprecatedCustomRule-test: simplify test cases (@IvanGoncharov)
- #2724 Remove Flow file annotations & add missing 3rd-party typings (@IvanGoncharov)
- #2729 execute: simplify check for promises inside collections (@IvanGoncharov)
- #2736 list-test: improve tests readability (@IvanGoncharov)
- #2737 list-test: improve test readability (part 2) (@IvanGoncharov)
- #2738 list-test: improve test readability (part 3) (@IvanGoncharov)
- #2745 blockString-test: add test for not escaping characters (@IvanGoncharov)
- #2748 getBlockStringIndentation: simplify implementation (@IvanGoncharov)
- #2755 lists-test: remove unneeded async (@IvanGoncharov)
- #2756 lists-test: simplify generator test (@IvanGoncharov)
- #2759 parser: improve formatting of the comments (@IvanGoncharov)
- #2760 parser: generalize parsing of lists with delimiters (@IvanGoncharov)
- #2761 Switch all code to create GraphQLList/GraphQLNonNull instances with new (@IvanGoncharov)
- #2762 Enable 'new-cap' ESLint rule (@IvanGoncharov)
- #2765 Flow: add more typings for function arguments and return values (@IvanGoncharov)
- #2766 printer: simplify a few utility functions (@IvanGoncharov)
- #2774 isCollection: add test that generator function is not iterable (@IvanGoncharov)
- #2775 Move 'isAsyncIterable' into 'jsutils' (@IvanGoncharov)
- #2776 Flow: add hack to support 'Symbol.asyncIterator' (@IvanGoncharov)
- #2777 Remove polyfill for 'flatMap' (@IvanGoncharov)
- #2778 Add 'resolveOnNextTick' to use in tests (@IvanGoncharov)
- #2780 buildASTSchema-test: expend SDL descriptions test (@IvanGoncharov)
- #2781 buildASTSchema-test: expend SDL descriptions test (@IvanGoncharov)
- #2790 abstract-test: unify sync and async tests (@IvanGoncharov)
- #2791 Move
__typename
type resolution tests into appropriate file (@IvanGoncharov) - #2796 subscribe-test: remove dependency on Node's EventEmitter (@IvanGoncharov)
- #2816 Convert fixtures to be JS files (@IvanGoncharov)
Internal 🏠
13 PRs were merged
- #2689 Update ignore files to ignore only top-level files (@IvanGoncharov)
- #2690 Isolate integration tests from repository (@IvanGoncharov)
- #2742 integrationTests: add tests for supported Node versions ([@IvanGoncharov](htt...
v14.7.0
v14.7.0 (2020-07-06)
New Feature 🚀
- Backport #2688 Added new 'FormattedExecutionResult' type (@IvanGoncharov)
Committers: 1
- Ivan Goncharov(@IvanGoncharov)
v15.3.0
v15.3.0 (2020-07-05)
New Feature 🚀
- #2688 Added new 'FormattedExecutionResult' type (@IvanGoncharov)
Docs 📝
3 PRs were merged
- #2680 Docs: some language cleanup in readme and API reference (@rmcteggart-r7)
- #2681 Sync JSDoc comments with docs changes (@danielrearden)
- #2687 Make documentation for 'getFieldDef' more accurate (@Cito)
Polish 💅
2 PRs were merged
- #2679 mapAsyncIterator-test: replace 'invariant' with expect chains (@IvanGoncharov)
- #2686 ESLint: remove 'ts-lint' commits (@IvanGoncharov)
Internal 🏠
- #2685 workflows: check commit for ignored files (@IvanGoncharov)
Dependency 📦
2 PRs were merged
- #2678 Update deps (@IvanGoncharov)
- #2683 Update deps (@IvanGoncharov)
Committers: 4
- Christoph Zwerschke(@Cito)
- Daniel Rearden(@danielrearden)
- Ivan Goncharov(@IvanGoncharov)
- @rmcteggart-r7
v15.2.0
v15.2.0 (2020-06-29)
New Feature 🚀
- #2465 Change type of extensions from anonymous Record to named interfaces (@benjie)
- #2600 Add NoSchemaIntrospectionCustomRule (@danielrearden)
- #2605 Add NoDeprecatedCustomRule and deprecate findDeprecatedUsages (@danielrearden)
- #2644 ExecutionResult: add 'extensions' field (@IvanGoncharov)
- #2669 Add parentType to path to avoid path ambiguity (@benjie)
- #2671 Added 'executeSync': promise free version of
execute
. (@IvanGoncharov)
Bug Fix 🐞
- #2608 buildSchema: allow to reference introspection types (@IvanGoncharov)
Docs 📝
- #2677 README: use local references (@IvanGoncharov)
Polish 💅
4 PRs were merged
- #2655 tests: Improve type coverage (@IvanGoncharov)
- #2660 union-interface-test: Improve typings (@IvanGoncharov)
- #2668 Switch to alternative format for type imports (@IvanGoncharov)
- #2674 Switch unused imports to type imports (@IvanGoncharov)
Internal 🏠
20 PRs were merged
- #2630 Remove unintended 'console.log' (@IvanGoncharov)
- #2636 CI: add initial support of Deno build (@IvanGoncharov)
- #2637 CI: fix publishing of
npm
anddeno
branches (@IvanGoncharov) - #2638 CI: fix execution of gitpublish script (@IvanGoncharov)
- #2639 CI: various fixes in 'gitpublish.sh' (@IvanGoncharov)
- #2640 CI: use bash to run 'gitpublish.sh' (@IvanGoncharov)
- #2641 ci: use '.js' extension for deno build (@IvanGoncharov)
- #2642 instanceOf: support Deno (@IvanGoncharov)
- #2647 Integration tests for TS (@IvanGoncharov)
- #2650 Remove dtslint check (@IvanGoncharov)
- #2651 Cleanup TS integration test (@IvanGoncharov)
- #2652 integrationTests: suppress warnings from 'npm install' (@IvanGoncharov)
- #2653 Revert "instanceOf: support Deno (#2642)" (@IvanGoncharov)
- #2654 Move prettier down in the order of tests (@IvanGoncharov)
- #2656 Simplify ESLint config (@IvanGoncharov)
- #2658 Update Flow (@IvanGoncharov)
- #2662 Simplify prettier config (@IvanGoncharov)
- #2665 Run cspell on entire project (@IvanGoncharov)
- #2667 Run ESLint on the entire repo (@IvanGoncharov)
- #2672 Remove swap file accidentally committed in #2560 (@IvanGoncharov)
Dependency 📦
2 PRs were merged
- #2627 Update deps (@IvanGoncharov)
- #2659 Update deps (@IvanGoncharov)
Committers: 3
- Benjie Gillam(@benjie)
- Daniel Rearden(@danielrearden)
- Ivan Goncharov(@IvanGoncharov)
v15.1.0
v15.1.0 (2020-06-07)
New Feature 🚀
- #2276 Add
@specifiedBy
directive (@m14t) - #2626 TS: add TData template argument to ExecutionResult type (@IvanGoncharov)
Bug Fix 🐞
- #2513 Fix #2504 access field astNode's type by optional chaining (@josephktcheung)
- #2547 ts: add missing
schemaDescription
option ofgetIntrospectionQuery
(@IvanGoncharov) - #2560 BlockString: print multi line for trailing backslash (@hereisnaman)
- #2563 TS: Fix incorrect enum typing in findBreakingChanges (@mwinstanley)
- #2571 Add missing exports for the new specifiedBy directive (@Cito)
- #2594 Exported
Token
andLocation
as ES6 classes (@IvanGoncharov) - #2622 getOperationAST: make
operationName
optional (@IvanGoncharov) - #2623 TS: sync TS typings with Flow typings (@IvanGoncharov)
- #2625 TS: made
GraphQLError
constructor's second argument optional (@IvanGoncharov)
Polish 💅
19 PRs were merged
- #2527 Enable '@typescript-eslint/method-signature-style' lint rule (@IvanGoncharov)
- #2528 Enable '@typescript-eslint/no-invalid-void-type' lint rule (@IvanGoncharov)
- #2534 Simplify 'getOperationTypeNode' function (@IvanGoncharov)
- #2535 Make 'toJSON' definition explicit (@IvanGoncharov)
- #2537 extendSchema-test: improve test coverage (@IvanGoncharov)
- #2540 Switch to SDL for validation tests (@IvanGoncharov)
- #2543 printSchema-test: cleanup and simplify (@IvanGoncharov)
- #2574 blockString-test: add fuzzing test for 'printBlockString' (@IvanGoncharov)
- #2575 Move fuzzing tests into separate files (@IvanGoncharov)
- #2576 ESLint: Enable 'dot-notation' rule (@IvanGoncharov)
- #2583 ts: enable more tslint checks (@IvanGoncharov)
- #2584 ts: use
typeof
instead of private types (@IvanGoncharov) - #2585 ts: switch more types to interfaces (@IvanGoncharov)
- #2586 ts: used named export for 'Maybe' type (@IvanGoncharov)
- #2587 ts: cleanup definition files (@IvanGoncharov)
- #2607 buildASTSchema: pass empty schema as literal (@IvanGoncharov)
- #2617 schema-parser-test: Fix order of properties in expect chain (@IvanGoncharov)
- #2619 Improve formatting of 'istanbul ignore' comments (@IvanGoncharov)
- #2621 Moved
Maybe
tojsutils
folder and removetsutils
(@IvanGoncharov)
Internal 🏠
28 PRs were merged
- #2529 Add node v14 to the test matrix (@IvanGoncharov)
- #2530 Don't deploy on forks (@MichaelDeBoey)
- #2531 Remove single quotes from Node.js versions (@MichaelDeBoey)
- #2538 [cspell] migrate custom words to upstream dictionaries (@hereisnaman)
- #2545 ESLint: replace deprecated rules with
eslint-plugin-node
(@IvanGoncharov) - #2548 cspell: correctly check 'resources' folder (@IvanGoncharov)
- #2550 resources: cleanup scripts (@IvanGoncharov)
- #2551 package.json: change how 'eslint-plugin-graphql-internal' installed (@IvanGoncharov)
- #2552 Switch to 'package-lock.json' (@IvanGoncharov)
- #2553 Switch to GitHub Actions (@IvanGoncharov)
- #2556 flowconfig: remove iterall from ignored (@IvanGoncharov)
- #2557 Fix deployment to 'npm' branch (@IvanGoncharov)
- #2558 Create base temp dir for benchmarks if not existing (@Cito)
- #2564 package.json: use only exact versions (@IvanGoncharov)
- #2565 Enable linting for istanbul ignore comments (@IvanGoncharov)
- #2572 Move
dedent
into new__testUtils__
folder (@IvanGoncharov) - #2573 ESLint: Forbid usage of test utils inside production code (@IvanGoncharov)
- #2578 CI: Fix copy-paster errors in 'fuzz' flow (@IvanGoncharov)
- #2580 resources: correctly report errors in top level premisses (@IvanGoncharov)
- #2581 ci: add benchmark job (@IvanGoncharov)
- #2592 gitignore: remove unused entry (@IvanGoncharov)
- #2593 package.json: remove yarn from engines (@IvanGoncharov)
- #2596 ci: update 'cache' action (@IvanGoncharov)
- #2611 Rename
eslint-graphql-internal
toeslint-internal-rules
(@IvanGoncharov) - #2612 ESLint: fix updated paths inside comment (@IvanGoncharov)
- #2613 ci: remove Node v13 after it's end of life (@IvanGoncharov)
- #2620 inline-invariant: stop inserting
// istanbul ignore next
comments (@IvanGoncharov) - #2624 ci: fail CI if coverage is not 100% but still upload to codecov (@IvanGoncharov)
Dependency 📦
11 PRs were merged
- #2526 Update deps (@IvanGoncharov)
- #2536 Update deps (@IvanGoncharov)
- #2544 Update deps (@IvanGoncharov)
- #2549 Update deps (@IvanGoncharov)
- #2555 Update deps ([@IvanGoncharov](https:/...
v15.0.0
v15.0.0 (2020-04-02)
Breaking Change 💥
- #1827 Update built-in scalar's parseLiteral method to throw TypeError (@danielrearden)
- #2084 RFC: Allow interfaces to implement other interfaces (@mike-marcacci)
- #2117 Removes non-standard properties from field objects (@IvanGoncharov)
- #2121 Drop Support for Node 6 (@IvanGoncharov)
- #2124 Remove deprecated 'introspectionQuery' constant (@IvanGoncharov)
- #2126 Remove deprecated 'isValidJSValue' function (@IvanGoncharov)
- #2127 Remove deprecated 'isValidLiteralValue' function (@IvanGoncharov)
- #2128 Remove deprecated 'coerceValue' function (@IvanGoncharov)
- #2129 Remove deprecated 'allowedLegacyNames' property of 'GraphQLSchema' (@IvanGoncharov)
- #2130 ValidationContext: Remove deprecated 'getErrors' and make 'onError' r… (@IvanGoncharov)
- #2132 GraphQLArgument: make 'description' undefined by default (@IvanGoncharov)
- #2148 GraphQLEnumType: Drop support for 'undefined' custom value (@IvanGoncharov)
- #2149 Errors if empty string is provided as operationName (@IvanGoncharov)
- #2164 RFC: Number lexer lookahead restriction (@leebyron)
- #2184 toConfig: allows 'extensionASTNodes' to be undefined (@IvanGoncharov)
- #2196 Change 'isSpecified*' & 'isIntrospectionType' accept only correct types (@IvanGoncharov)
- #2209 Lexer: remove passthrough options (@IvanGoncharov)
- #2210 Switch Lexer to be a proper class, remove 'createLexer' (@IvanGoncharov)
- #2223 printSchema: don't break description lines (@IvanGoncharov)
- #2233 parser: convert Location to be an ES6 class (@IvanGoncharov)
- #2234 lexer: convert Token to be an ES6 class (@IvanGoncharov)
- #2248 buildSchema/extendSchema: add support for extensions (@IvanGoncharov)
- #2274 Resolve import cycle by moving 'visitWithTypeInfo' into 'TypeInfo.js' (@IvanGoncharov)
- #2284 Replace all instances of Flow existential type (@IvanGoncharov)
- #2290 Drop Support for Node 8 (@IvanGoncharov)
- #2328 Removes default values for required fields in GraphQL*Config types (@IvanGoncharov)
- #2334 enum: 'parseLiteral/parseValue/serialize' now throw on invalid values (@IvanGoncharov)
- #2339 introspection: expose fields/values with empty deprecationReason (@IvanGoncharov)
- #2402 Add 'Rule' suffix to all validation rules (@IvanGoncharov)
- #2411 schemaPrinter: preserve order of types (@IvanGoncharov)
- #2424 isValidNameError: Remove node argument (@IvanGoncharov)
- #2438 NaN values should be checked inside scalar's
serialize
method (@IvanGoncharov) - #2488 TS(definition): remove TS-specific TArgs (@IvanGoncharov)
- #2490 TS: remove TS-specific TData from ExecutionResult (@IvanGoncharov)
New Feature 🚀
- #2229 Convert AST nodes types to be exact objects (@IvanGoncharov)
- #2364 Remove 'iterall' as dependency. 'graphql' becomes zero dependency lib 🎉 (@IvanGoncharov)
- #2379 build: mjs files import other files using full paths with extensions (@IvanGoncharov)
- #2382 Change serialization for Int, Float and Boolean to work with objects (@alex-knyazev)
- #2394 suggestionList: lexicographically sort options with the same lexical distance (@IvanGoncharov)
- #2395 FieldsOnCorrectType: implement stable sort order for suggested types (@IvanGoncharov)
- #2399 validation: Add missing rule exports (@IvanGoncharov)
- #2408 schema: Always validate basic config structure (@IvanGoncharov)
- #2410 Schema: keep order of user provided types (@IvanGoncharov)
- #2413 validation: Export rules missing in <14.6.0 using legacy names (@IvanGoncharov)
- #2415 findBreakingChanges: add check for removing repeatable from directive (@IvanGoncharov)
- #2416 introspection: Add support for repeatable directives (@IvanGoncharov)
- #2419 Add support for adding description to schema (@IvanGoncharov)
- #2430 Change 'toConfig' to always return 'extensionASTNodes' as array (@IvanGoncharov)
Bug Fix 🐞
- #2160 Validation: unify error messages (@IvanGoncharov)
- #2161 Unify rest of error messages (@IvanGoncharov)
- #2167 Allow empty string as valid 'deprecationReason' (@IvanGoncharov)
- #2175 parser: Convert error messages to match common standard of this lib (@IvanGoncharov)
- #2176 parser: Show empty strings in error messages (@IvanGoncharov)
- #2177 printSchema: support empty descriptions (@IvanGoncharov)
- #2178 Fix bunch of edge cases with empty strings (@IvanGoncharov)
- #2187 Scalars: convert errors from 'TypeError' to 'GraphQLError' (@IvanGoncharov)
- #2192 Fixes variable values of non-null type with default value (@IvanGoncharov)
- #2202 tstypes: Synchronise TS typings for
GraphQL*
types (@IvanGoncharov) - #2204 findBreakingChanges: better message for removing standard scalar (@IvanGoncharov)
- #2224 Fix typescript definition for getVariableValues (@ivome)
- [#2231](h...
v15.0.0-rc.2
v15.0.0-rc.2 (2020-02-10)
Breaking Change 💥
- #2339 introspection: expose fields/values with empty deprecationReason (@IvanGoncharov)
- #2402 Add 'Rule' suffix to all validation rules (@IvanGoncharov)
- #2411 schemaPrinter: preserve order of types (@IvanGoncharov)
- #2424 isValidNameError: Remove node argument (@IvanGoncharov)
- #2438 NaN values should be checked inside scalar's
serialize
method (@IvanGoncharov)
New Feature 🚀
- #2364 Remove 'iterall' as dependency. 'graphql' becomes zero dependency lib 🎉 (@IvanGoncharov)
- #2379 build: mjs files import other files using full paths with extensions (@IvanGoncharov)
- #2382 Change serialization for Int, Float and Boolean to work with objects (@alex-knyazev)
- #2394 suggestionList: lexicographically sort options with the same lexical distance (@IvanGoncharov)
- #2395 FieldsOnCorrectType: implement stable sort order for suggested types (@IvanGoncharov)
- #2399 validation: Add missing rule exports (@IvanGoncharov)
- #2408 schema: Always validate basic config structure (@IvanGoncharov)
- #2410 Schema: keep order of user provided types (@IvanGoncharov)
- #2413 validation: Export rules missing in <14.6.0 using legacy names (@IvanGoncharov)
- #2415 findBreakingChanges: add check for removing repeatable from directive (@IvanGoncharov)
- #2416 introspection: Add support for repeatable directives (@IvanGoncharov)
- #2419 Add support for adding description to schema (@IvanGoncharov)
- #2430 Change 'toConfig' to always return 'extensionASTNodes' as array (@IvanGoncharov)
Bug Fix 🐞
- #2348 valueFromAST: fixed coercing of null variables on non-nullable type (@IvanGoncharov)
- #2401 Add missing export for 'ExecutableDefinitionsRule' (@IvanGoncharov)
- #2407 Fixing double 'Rule' suffix that was accidentally introduced in #2402 (@IvanGoncharov)
- #2437 astFromValue: reject non-finite numbers (@IvanGoncharov)
- #2446 UniqueDirectivesPerLocation: check for directive uniqueness in extensions (@IvanGoncharov)
Docs 📝
- #2435 docs: Add note about 'NODE_ENV=production' (@IvanGoncharov)
Polish 💅
43 PRs were merged
- #2347 valueFromAST-test: improve readability (@IvanGoncharov)
- #2349 valueFromAST-test: improve coverage (@IvanGoncharov)
- #2350 astFromValue-test: improve coverage (@IvanGoncharov)
- #2351 ValuesOfCorrectType: improve coverage (@IvanGoncharov)
- #2352 OverlappingFieldsCanBeMerged: remove excessive caching (@IvanGoncharov)
- #2353 mapAsyncIterator: improve coverage (@IvanGoncharov)
- #2354 Remove unused "asyncIteratorReject" utility method (@IvanGoncharov)
- #2355 subscribe: improve coverage (@IvanGoncharov)
- #2358 Bring coverage to 100% 🎉 (@IvanGoncharov)
- #2363 Use native "Symbol.asyncIterator" in tests (@IvanGoncharov)
- #2366 eslint-plugin-import: Enable more checks (@IvanGoncharov)
- #2367 Define 'toStringTag' directly inside class definitions (@IvanGoncharov)
- #2369 GraphQLError: convert to ES6 class (@IvanGoncharov)
- #2371 Flow: enable 'sketchy-null-bool' lint rule (@IvanGoncharov)
- #2372 Restore coverage to 100% (@IvanGoncharov)
- #2374 ESLint: enable '@typescript-eslint/no-unused-vars' rule (@IvanGoncharov)
- #2375 ESLint: enable more rules for TS code (@IvanGoncharov)
- #2376 ESLint: require empty line between import groups (@IvanGoncharov)
- #2377 ESLint: Forbid importing directories (@IvanGoncharov)
- #2383 tests: remove a few invariants (@IvanGoncharov)
- #2387 TS: switch to 'Array<*>' style of array types (@IvanGoncharov)
- #2390 ESLint: enable bunch of TS lint rules (@IvanGoncharov)
- #2391 buildClientSchema: small code refactoring (@IvanGoncharov)
- #2392 ESLint: enable 'no-unnecessary-type-arguments' check (@IvanGoncharov)
- #2393 FieldsOnCorrectType: refactor error message (@IvanGoncharov)
- #2404 FieldsOnCorrectTypeRule: improve type coverage (@IvanGoncharov)
- #2406 buildClientSchema-test: remove dependency on order of types (@IvanGoncharov)
- #2412 Improve description for lexicographicSortSchema (@IvanGoncharov)
- #2417 schema-parser-test: fix description of a test case (@IvanGoncharov)
- #2418 introspection: use consistent naming for 'resolve' args (@IvanGoncharov)
- #2421 Use explicit default arguments (@IvanGoncharov)
- #2423 Use nullish coalescing operator in all appropriate places (@IvanGoncharov)
- #2426 Rename 'schemaPrinter.js' to 'printSchema.js' (@IvanGoncharov)
- #2429 Simplify 'concatMaybeArrays' (@IvanGoncharov)
- #2431 buildASTSchema: remove useless code (@IvanGoncharov)
- #2432 parser: simplify parsing of null, boolean and enum values (@IvanGoncharov)
- #2433 Flow: Remove 'any's or improve their locality ([@IvanGoncharov](ht...