Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

fix(deps): update dependency graphql to v0.13.2 #83

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Jul 23, 2018

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
graphql 0.11.7 -> 0.13.2 age adoption passing confidence

Release Notes

graphql/graphql-js

v0.13.2

Compare Source

New:

  • Allow buildSchema() to take options (#​1249)
  • Update to Flow v0.68 (#​1290)

Fixes:

v0.13.1

Compare Source

New:

  • Publish .mjs files for module code to support native esmodules (#​1244)
  • Interface type definitions may now be extended with extendSchema (#​1222)
  • isValidNameError utility is now exported as a non-throwing alternative to assertValidName (#​1237)
  • ExectuableDefinitionNode Flow type is now exported (#​1241)

Fixes:

  • extendSchema now preserves (and allows extending) a list of legacy field names which would otherwise be considered invalid (#​1235)
  • Replaced a misplaced licensing header (7e68984)

v0.13.0

Compare Source

Breaking:

  • Updated to latest spec for SDL for multiple interface implementations (#​1169)

    To continue to support the pre-spec variation, use parse(text, {allowLegacySDLImplementsInterfaces: true})

  • Internal module 'graphql/language/kinds' no longer directly exports enum values #​1221

    Not that you were relying on internal modules, were you :)

New:

  • getDescription helper function is now exported (#​1165)
  • Allows parsing pre-spec object type SDL with parse(text, {allowLegacySDLEmptyFields: true}) (#​1171)
  • Add introspectionFromSchema utility function (#​1187)
  • Add lexicographicSortSchema utility function (#​1208) (#​1220)
  • Allow use of legacy names during schema validation with {allowedLegacyNames: ['__badName']} (#​1194)

Fixed:

  • Only trigger "one instance of graphql" error in DEV environments, removing false errors from minified bundles. (#​1174)
  • Fix 'astFromValue' to correctly handle integers and strings (#​1181)
  • Fix getTypeMap() not including input types used in directives (#​1189)
  • Support executeSync with mutations. (#​1198)
  • Fix block string printing edge cases (#​1190, #​1212)
  • Fix SourceLocation incorrect export causing rollup bundling to fail (#​1210)
  • Preserve allowedLegacyNames when using extendSchema (#​1226) (added since v0.13.0-rc.1)

v0.12.3

Compare Source

Fixes:

  • Excluded lock files from deployed npm package

v0.12.2

Compare Source

Fixes:

  • Properly deploy a package on npm which contains es6-modules (#​1161)
  • Support 5-year-old legacy GraphQL services (#​1162)

v0.12.1

Compare Source

Flow Type Fixes:

  • Removed experimental.const_params Flow option to ensure support for projects which do not enable this option (#​1157, #​1160)
  • Changed visit() to return any instead of mixed to reduce the scope of the breaking change of adding Flow types for this function.

v0.12.0

Compare Source

🎁 Happy Holidays, GraphQL.js v0.12.0 is brings some of the biggest new changes of the year 🎉

This release includes new spec-compliance to existing experimental features, dramatically improves the quality of flow types, and introduces a number of new features and improved behaviors. As a result, there are a number of breaking changes to be aware of, especially for those building tools with GraphQL.js. A huge thank you to everyone who contributes to and uses GraphQL.js.

For a complete list of everything new, see the comparison to the last release.

New and Potentially Breaking:

  • Schema is now validated as part of a new exported function validateSchema() instead of during construction. (#​1124)

    This exciting change allows the creating GraphQLSchema instances which are not yet valid, for example: representing types which don't yet have fields. This is very useful for those building schema directly from the new schema definition language. The new function validateSchema(), much like the existing validate(), will return an Array of GraphQLError describing all issues with a schema. This also now includes blame sites in the original schema definition language, allowing much more helpful error messages when a schema is invalid. This might be breaking if your codebase relied on GraphQLSchema or any of the GraphQL type definition classes

  • Validation errors for value literals (and variable values) are greatly improved, doing so results in a change to the standard set of validation rules. (#​1126, #​1133, #​1144, #​1153)

    Code which relied on repeating the standard validation rules, or filtered them down using whitelists or blacklists may need to be updated. The rules ArgumentsOfCorrectTypeRule and DefaultValuesOfCorrectTypeRule have been removed and are replaced with two new rules ValuesOfCorrectTypeRule and VariablesDefaultValueAllowedRule. While the quality of validation errors are improved by this change, this does not actually cause any existing valid documents to become invalid or vice-versa.

  • GraphQL can now execute synchronously if all resolvers are synchronous functions. This means execute() may no longer return a Promise if execution completed synchronously. The graphql() function will still always return a Promise, but a new graphqlSync() function guarantees synchronous completion (or throws if any resolver does not complete). This unlocks exciting new use cases for querying over static data-sets and caches. (#​1115, #​1120)

  • Update to match Schema definition language latest specification. (#​1102, #​1117, #​1139)

    The schema definition language has some slight changes from the original experimental version through the standardization process. New extend forms were added and previously valid forms which omit fields like type Foo {} are now syntax errors and can be replaced with type Foo to indicate that fields are not yet defined.

  • Descriptions in the schema definition language are now represented as preceding strings rather than comments. (#​927)

    This change follows the latest updates to the spec proposal (https://github.com/facebook/graphql/pull/90) after a long discussion between the merits of comments vs. literals as descriptions. To ease the migration to this latest change, existing comment-descriptions can still be used by providing options to the relevant functions. To read a SDL that uses comments as descriptions, buildASTSchema(document, { commentDescriptions: true }); to write an SDL using comments as descriptions, printSchema(schema, { commentDescriptions: true }).

  • Allow serializing scalars as null. (#​1104)

    Since null is a potentially valid value for a scalar to serialize to in some rare conditions, this change ensures that scalars which serialize to null no longer produce errors. This is breaking since custom scalars which relied on returning null to indicate failure should now either return undefined or throw an Error.

  • Flow types for the parsed GraphQL AST and GraphQL Errors are now read only. This may result in new flow errors being detected in your codebase if you manipulate ASTs and Errors. (#​1116, #​1121, #​1122)

New & Improved:

  • Flow types have been added to visit(). As with any flow type improvement, this could expose real issues with your existing codebase. (#​1155)
  • New predicate functions are exported for all GraphQL types. This should remove the need to use instanceof for any use of GraphQL.js (#​1137)
  • The Wrapping Types GraphQLNonNull and GraphQLList are now flow typed as covariant and operate like a function instead of a class. This means that you should no longer type new GraphQLList(someType) and instead favor GraphQLList(someType). (#​1136)
  • A new function printError() is exported which highlights any blame lines from the original sources. Useful for printing errors to consoles. (#​1129, #​1131)
  • Improved aggregate NullableType and InputType flow types. As with any flow type improvement, this could expose real issues with your existing codebase. (#​1128)
  • A new function getIntrospectionQuery() is exported, and the existing introspectionQuery constant is deprecated. This helps improve the flow types and allows for some flexibility and options. (#​1113)
  • Export ES6 modules so tools like Rollup and Webpack can use "tree shaking" for smaller builds. (#​1105)
  • More strict flow typing for Introspection results. (#​1082)
  • Improve error quality when receiving bad introspection data. (#​1063)
  • Ability to extend GraphQL errors with additional "extensions" properties. (#​928)
  • New value literal "Block String" for writing long-form text (#​926)
  • New predicate functions isSpecifiedScalarType, isIntrospectionType, and isSpecifiedDirective (#​924).
  • Better coverage for findBreakingChanges() and findDangerousChanges()
    • Detect breaking changes within directives (#​1152)
    • Detect added nullable input field or added nullable argument. (#​1096)
    • Adding an interface to a type is a dangerous change. (#​992)

Fixed:

  • Fix path argument for visit() for leaving visitors. (#​1149)
  • Errors concerning multiple instances of GraphQL.js being in use at the same time are now reported much more clearly and in more scenarios. (73b804b)
  • The GraphQLArgs flow type is now exported. (#​1118)
  • Fix a possible infinite loop during validation for invalid queries in the OverlappingFields rule. (#​1111)
  • Subscriptions now ensure resolver errors are reported properly during initialization. (#​1106, #​1107)
  • Ensure uniform parsing of named queries and anonymous queries (#​1094)
  • Fix elasticsearch errors being mistaken for GraphQL errors. (#​1090)
  • Avoid process is undefined error when used in the browser. (#​1058)
  • Fix mistake in how TypeInfo handles inline fragments without type (#​1041)
  • Fix mistake in how TypeInfo collects input types (#​1143)
  • Check isDeprecated instead of deprecationReason in printDeprecated() (#​1035)
  • Fix flow types for 'path' & 'parentType' of GraphQLResolveInfo (#​1033)
  • Fix utilization of argument default values in buildASTSchema(), extendSchema() and buildClientSchema(). (#​903)

Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by WhiteSource Renovate. View repository job log here.

@codecov
Copy link

codecov bot commented Jul 23, 2018

Codecov Report

Merging #83 into develop will decrease coverage by 60.15%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##           develop      #83       +/-   ##
============================================
- Coverage    98.47%   38.31%   -60.16%     
============================================
  Files           24       24               
  Lines          328      321        -7     
  Branches        43       43               
============================================
- Hits           323      123      -200     
- Misses           5      198      +193
Impacted Files Coverage Δ
src/schema/types/resolvers/podcast.js 10.63% <0%> (-88.3%) ⬇️
src/schema/types/resolvers/episode.js 18.75% <0%> (-81.25%) ⬇️
.../queries/resolvers/podcastForFeedWithIdentifier.js 19.29% <0%> (-78.95%) ⬇️
src/schema/types/resolvers/post.js 22.22% <0%> (-77.78%) ⬇️
src/schema/types/resolvers/enclosure.js 27.27% <0%> (-72.73%) ⬇️
src/schema/types/resolvers/podcastItem.js 28.57% <0%> (-71.43%) ⬇️
src/schema/queries/resolvers/podcasts.js 40% <0%> (-60%) ⬇️
src/schema/enums/dateFormat.js 80% <0%> (-20%) ⬇️
src/connectors/connection.js 87.5% <0%> (+7.5%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 777a817...0e284b1. Read the comment docs.

@renovate renovate bot changed the title Update dependency graphql to v0.13.2 fix(deps): update dependency graphql to v0.13.2 Feb 18, 2019
@renovate renovate bot force-pushed the renovate/graphql-0.x branch from c53d6fb to 0e284b1 Compare March 19, 2019 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant