You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[BUGFIX] Fix checksum mismatch between direct git access and golang proxy for v1.7.1. This version contains identical functionality to v1.7.1 but with proper tag creation to ensure consistent checksums across all proxy configurations.
*[IMPROVEMENT]`SelectedFieldNames` now returns dot-delimited nested field paths (e.g. `products`, `products.id`, `products.category`, `products.category.id`). Intermediate container object/list paths are included so resolvers can check for both a branch (`products.category`) and its leaves (`products.category.id`). `HasSelectedField` and `SortedSelectedFieldNames` operate on these paths. This aligns behavior with typical resolver projection needs and fixes missing nested selections.
10
+
*[BUGFIX] Reject object, interface, and input object type definitions that declare zero fields/input values (spec compliance).
11
+
*[IMPROVEMENT] Optimize overlapping field validation to avoid quadratic memory blowups on large sibling field lists.
12
+
*[FEATURE] Add configurable safety valve for overlapping field comparison count with `OverlapValidationLimit(n)` schema option (0 disables the cap). When exceeded validation aborts early with rule `OverlapValidationLimitExceeded`. Disabled by default.
13
+
*[TEST] Add benchmarks & randomized overlap stress test for mixed field/fragment patterns.
*[FEATURE] Add resolver field selection inspection helpers (`SelectedFieldNames`, `HasSelectedField`, `SortedSelectedFieldNames`). Helpers are available by default and compute results lazily only when called. An explicit opt-out (`DisableFieldSelections()` schema option) is provided for applications that want to remove even the minimal context insertion overhead when the helpers are never used.
@@ -32,7 +44,7 @@
32
44
33
45
*[FEATURE] Add types package #437
34
46
*[FEATURE] Expose `packer.Unmarshaler` as `decode.Unmarshaler` to the public #450
35
-
*[FEATURE] Add location fields to type definitions #454
47
+
*[FEATURE] Add location fields to type definitions #454
36
48
*[FEATURE]`errors.Errorf` preserves original error similar to `fmt.Errorf`#456
37
49
*[BUGFIX] Fix duplicated __typename in response (fixes #369) #443
> **NOTE**: This feature is not in the stable release yet. In order to use it you need to run `go get github.com/graph-gophers/graphql-go@master` and in your `go.mod` file you will have something like:
102
-
> ```
103
-
> v1.5.1-0.20230216224648-5aa631d05992
104
-
> ```
105
-
> It is expected to be released in `v1.6.0` soon.
101
+
This feature was released in `v1.6.0`.
106
102
107
103
The GraphQL specification allows for fields with the same name defined in different query types. For example, the schema below is a valid schema definition:
-`PanicHandler(panicHandler errors.PanicHandler)` is used to transform panics into errors during query execution. It defaults to `errors.DefaultPanicHandler`.
-`DisableFieldSelections()` disables capturing child field selections used by helper APIs (see below).
156
+
-`OverlapValidationLimit(n int)` sets a hard cap on examined overlap pairs during validation; exceeding it emits `OverlapValidationLimitExceeded` error.
0 commit comments