You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

graphql-ruby-client

Package Overview
Dependencies
Maintainers
0
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-ruby-client - npm Package Versions

1345
8

1.13.0

Diff
rmosolgo
published 1.13.0 •

Changelog

Source

1.13.0 (24 November 2021)

Since this version, GraphQL-Ruby is tested on Ruby 2.4+ and Rails 4+ only.

Breaking changes

  • ActionCable Subscriptions: No update is delivered if all subscriptions return NO_UPDATE #3713
  • Subscription classes: If a subscription has a scope ... configuration, then a scope: option is required in .trigger(...). Use scope ..., optional: true to get the old behavior. #3692
  • Arguments whose default values are used aren't checked for authorization #3665
  • Complexity: Connection fields have a default complexity implementation based on first/last/max_page_size #3609
  • Arguments: if arguments are configured to return false for .visible?(context), their default values won't be applied

New features

  • Visibility: A schema may contain multiple members with the same name. For each name, GraphQL-Ruby will use the one that returns true for .visible?(context) for each query (and raise an error if multiple objects with the same name are visible). #3651 #3716 #3725
  • Dataloader: nonblocking: true will make GraphQL::Dataloader use Fiber.scheduler to run fields and load data with sources, supporting non-blocking IO. #3482
  • null: true and required: true are now default. GraphQL-Ruby includes some RuboCop cops, GraphQL/DefaultNullTrue and GraphQL/DefaultRequiredTrue, which identify and remove those needless configurations. #3612
  • Interfaces may implement ... other interfaces #3613

Bug fixes

  • Enum value(...) and Input Object argument(...) methods return the defined object #3727
  • When a field returns an array of mixed errors and values, the result will contain nil where there were errors in the list #3656
rmosolgo
published 1.12.1 •

Changelog

Source

1.12.1 (25 January 2021)

Bug fixes

  • GraphQL::Dataloader: properly support selections with multiple fields #3297
rmosolgo
published 1.12.0 •

Changelog

Source

1.12.0 (20 January 2021)

Breaking changes

  • GraphQL::Schema defaults to GraphQL::Execution::Interpreter, GraphQL::Analysis::AST, GraphQL::Pagination::Connections, and GraphQL::Execution::Errors. (#3145) To get the previous (deprecated) behaviors:

    # Revert to deprecated execution behaviors:
    use GraphQL::Execution::Execute
    use GraphQL::Analysis
    # Disable the new connection implementation:
    self.connections = nil
    
  • GraphQL::Execution::Interpreter::Arguments instances are frozen (#3138). (Usually, GraphQL code doesn't interact with these objects, but they're used some places under the hood.)

Deprecations

  • Many, many legacy classes and methods were deprecated. #3275 Deprecation errors include links to migration documentation. For a full list, see: https://github.com/rmosolgo/graphql-ruby/issues/3056

New features

  • Rails-like argument validations (#3207)
  • Fiber-based GraphQL::Dataloader for batch-loading data #3264
  • Connection and edge behaviors are available as mixins #3071
  • Schema definition supports schema directives #3224

Bug fixes

rmosolgo
published 1.11.10 •

Changelog

Source

1.11.10 (5 Nov 2021)

Bug fixes

  • Properly hook up Schema.max_validation_errors at query runtime #3690
rmosolgo
published 1.11.9 •

Changelog

Source

1.11.9 (1 Nov 2021)

New Features

  • Schema.max_validation_errors(val) limits the number of errors that can be added during static validation #3675
rmosolgo
published 1.11.8 •

Changelog

Source

1.11.8 (12 Feb 2021)

Bug fixes

  • Improve performance of Schema.possible_types(t) for object types #3172
rmosolgo
published 1.11.7 •

Changelog

Source

1.11.7 (18 January 2021)

Breaking changes

  • Incoming integer values are properly bound (as per the spec) #3206 To continue receiving out-of-bound integer values, add this to your schema's def self.type_error(err, ctx) hook:

    def self.type_error(err, ctx)
      if err.is_a?(GraphQL::IntegerDecodingError)
        return err.integer_value # return it anyways, since this is how graphql-ruby used to work
      end
      # ...
    end
    

New features

  • Support Ruby 3.0 #3278
  • Add validation timeout option #3234
  • Support Prometheus custom_labels in GraphQLCollector #3215

Bug fixes

  • Handle GraphQL::UnauthorizedError in interpreter in from arguments #3276
  • Set description for auto-generated input: argument #3141
  • Improve performance of fields will merge validation #3228
  • Use Float graphql type for ActiveRecord decimal columns #3246
  • Add some custom methods to ArrayConnection #3238
  • Fix generated fields for types ending Connection #3223
  • Improve runtime performance #3217
  • Improve argument handling when extensions shortcut the defined resolve #3212
  • Bind scalar ints as per the spec #3206
  • Validate that input object names are unique #3205
rmosolgo
published 1.11.6 •

Changelog

Source

1.11.6 (29 October 2020)

Breaking changes

FieldExtension: pass extended values instead of originals to after_resolve #3168

Deprecations

New features

  • Accept additional options in global_id_field macro #3196

Bug fixes

  • Use graphql_name in UnauthorizedError default message (fixes #3174) #3176
  • Improve error handling for base 64 decoding (in UniqueWithinType) #3179
  • Fix .valid_isolated_input? on parsed schemas (fixes #3181) #3182
  • Fix fields nullability in subscriptions documentation #3194
  • Update RangeAdd to use new connections when available #3195
rmosolgo
published 1.11.5 •

Changelog

Source

1.11.5 (30 September 2020)

New features

  • SanitizedPrinter: accept inline_variables: false option and add #redact_argument_value? and #redacted_argument_value hooks #3167
  • GraphQL::Schema::Timeoout#max_seconds(query) can provide a per-query timeout duration #3167
  • Implement Interpreter::Arguments#fetch
  • Assign current_{path,field,arguments,object} in query.context #3139. The values at these keys change while the query is running.
  • ActionCableSubscriptions: accept use(..., namespace: "...") for running multiple schemas in the same application #3076
  • Add deprecation_reason: to arguments #3015

Bug fixes

  • SanitizedPrinter: Fix lists and JSON scalars #3171
  • Improve retained memory in Schema.from_definition #3153
  • Make it easier to cache schema parsing #3153
  • Make sure deprecated arguments aren't required #3137
  • Use .empty? instead of .length.zero? in lexer #3134
  • Return a proper error when a stack error happens #3129
  • Assert valid input types on arguments #3120
  • Improve Validator#validate performance #3125
  • Don't wrap RawValue in ConnectionExtension #3122
  • Fix interface possible types visibility #3124
rmosolgo
published 1.11.4 •

Changelog

Source

1.11.4 (24 August 2020)

Breaking changes

New features

  • Add node_nullable option for edge_type #3083
  • Use module namespacing for template generators #3098

Bug fixes

  • Rescue SystemStackErrors during validation #3107
  • Add require 'digest/sha2' for fingerprint #3103
  • Optimize GraphQL::Query::Context#dig #3090
  • Check if new connections before calling method on it (fixes #3059) #3100
  • Thread field owner type through interpreter runtime (fixes #3086) #3099
  • Check for visible interfaces on the type in warden #3096
  • Update AppOpticsTracing with latest changes in PlatformTracing #3097
  • Use throw instead of raise to halt subscriptions early #3084
  • Optimize GraphQL::Query::Context#fetch #3081