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

Mark root objects as referenced #3

Closed
wants to merge 897 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
897 commits
Select commit Hold shift + click to select a range
8952e69
Add SDL test for repeatable
maartenvanvliet Jun 25, 2020
1ed8942
Add repeatable to sdl render
maartenvanvliet Jun 25, 2020
5e3ad7e
Add repeatable keyword to directive notation
maartenvanvliet Dec 4, 2020
7c34ec6
Add isRepeatable field to introspection schema
maartenvanvliet Dec 4, 2020
f4ec6b0
Mark built in directives as non repeatable explicitly
maartenvanvliet Dec 4, 2020
0c2cf64
Add repeatable directive in PetsSchema
maartenvanvliet Dec 4, 2020
3a55241
Add phase checking repeatable directives
maartenvanvliet Dec 4, 2020
fd5c286
Add repeatable to formatter
maartenvanvliet Dec 4, 2020
4430c12
Add repeatable directives to document pipeline
maartenvanvliet Dec 4, 2020
cf76e23
Update directive type to match spec
maartenvanvliet Dec 5, 2020
373c398
account for nil schema node in argument type suggestions
eotopalik-nr Dec 8, 2020
0f7d52c
make custom scalar more generic
eotopalik-nr Dec 8, 2020
07cbdb6
Merge pull request #1000 from emeryotopalik/argument_of_correct_type_bug
binaryseed Dec 8, 2020
d55f527
test bump to mix lock
binaryseed Dec 8, 2020
3eb5a59
Merge pull request #1001 from absinthe-graphql/fix-nil
binaryseed Dec 8, 2020
72ff9f9
Bump version 1.5.5
binaryseed Dec 8, 2020
fb08870
Merge branch 'master' of github.com:absinthe-graphql/absinthe
dylan-chong Dec 15, 2020
792f1da
Merge pull request #3 from solvedata/pull/upstream-master
justinakoh Dec 15, 2020
a8c4f1a
Add test for macro testing and fix bug in function
justinakoh Dec 15, 2020
d0240ad
Fix description function evaluation
justinakoh Dec 16, 2020
f390aeb
Add new tests testing normal functions to ensure expected behaviour
justinakoh Dec 16, 2020
a1bb493
Update formatting and layout of tests
justinakoh Dec 16, 2020
cc8a053
Update tests to reduce duplications
justinakoh Dec 16, 2020
44fe0ae
Formatting and adding in one more test for string:
justinakoh Dec 16, 2020
4bd51be
Fix description block
dylan-chong Dec 16, 2020
a9bc536
Fix enum with description param
dylan-chong Dec 16, 2020
f962b93
Remove wrap_in_reformat_description for consistency between descriptions
dylan-chong Dec 16, 2020
c29c262
Description for input_object
dylan-chong Dec 16, 2020
65618af
Fix object
dylan-chong Dec 16, 2020
bccf70a
Fix field description kw arg
dylan-chong Dec 16, 2020
a28730b
Fix arg kw arg
dylan-chong Dec 16, 2020
ec144b4
Fix update description
dylan-chong Dec 16, 2020
4f82158
Remember to commit function wrap_in_unquote
dylan-chong Dec 16, 2020
e39ec48
Merge pull request #4 from solvedata/fix/description-evaluation
justinakoh Dec 16, 2020
95480bc
Update test files to be in a separate module
justinakoh Dec 17, 2020
0aaf957
Update code tp include tests for description attribute
justinakoh Dec 17, 2020
477b789
Update comment
dylan-chong Dec 17, 2020
85fb8e7
Update code to include tests for description macro
justinakoh Dec 17, 2020
f8917a5
Update tests for input object
justinakoh Dec 17, 2020
4e0adf8
Add in more tests for field keyword attribute
justinakoh Dec 17, 2020
b3e0cbe
Add more tests for input object attribute description
justinakoh Dec 17, 2020
c192ec8
NEW LINE
justinakoh Dec 17, 2020
435246b
Update tests to include tests for macro description
justinakoh Dec 17, 2020
34f72ce
Add new test files for testing to test things
justinakoh Dec 17, 2020
aac0a7e
Add test for mutation test
justinakoh Dec 17, 2020
ccb6cf3
Fix module attributes don't work with multiple types files
dylan-chong Dec 17, 2020
dbcb7de
Add test for import types with module attribute
dylan-chong Dec 17, 2020
99ee813
Better import types test
dylan-chong Dec 21, 2020
46d5b66
Rename standard_library_function_works
dylan-chong Dec 21, 2020
aa538d8
Add external_module_function_call test
dylan-chong Dec 21, 2020
de73de0
Mix format
dylan-chong Dec 21, 2020
be8e3b8
Rename module_attribute_string_concat
dylan-chong Dec 21, 2020
ce742ef
Rename function_nested_in_module
dylan-chong Dec 21, 2020
7df5c50
Rename test
dylan-chong Dec 21, 2020
25b347e
Rename expected_value
dylan-chong Dec 21, 2020
ef90531
Rename function_call_using_absolute_path
dylan-chong Dec 21, 2020
1c8ac87
Move stuff into fixtures
dylan-chong Dec 21, 2020
043040d
Fixtures
dylan-chong Dec 21, 2020
bac3f1b
Object test
dylan-chong Dec 21, 2020
4baef8f
Shorten fixtures names
dylan-chong Dec 21, 2020
9780fa0
More object tests
dylan-chong Dec 21, 2020
e9403e8
Reduce dupe
dylan-chong Dec 21, 2020
c8feac5
Directive tests and fix
dylan-chong Dec 21, 2020
a235e43
Directive arg test
dylan-chong Dec 21, 2020
93c21a6
Scalar description
dylan-chong Dec 22, 2020
fba1663
Fix union types and add tests
dylan-chong Dec 22, 2020
3e7f316
Update comment
dylan-chong Dec 22, 2020
9cb0900
Merge pull request #999 from maartenvanvliet/add-repeatable-directives
benwilson512 Dec 22, 2020
2e193de
Make test naming consistent
dylan-chong Dec 22, 2020
5ef5b90
Bad find and replace
dylan-chong Dec 22, 2020
6ed99ae
Fix cache key for plt
binaryseed Dec 24, 2020
ecf55d4
Merge pull request #1007 from binaryseed/fix-action-plt-caching
binaryseed Dec 24, 2020
d714fa1
Add isRepeatable to Introspection query
binaryseed Dec 24, 2020
eb697f3
Merge pull request #1005 from solvedata/Fix-description-function-calls
benwilson512 Dec 24, 2020
2b8be12
changelog entry
benwilson512 Dec 24, 2020
2678d02
Merge pull request #1008 from binaryseed/is-repeatable-introspection
binaryseed Dec 24, 2020
670a05a
Ensure interface nullable types can be implemented by non-nullable types
maartenvanvliet Dec 21, 2020
eaedd98
Merge pull request #1009 from maartenvanvliet/issues/987
benwilson512 Dec 25, 2020
b02eea0
Fix docs malformed links and html tags
jeepers3327 Dec 28, 2020
bd0efe3
Merge pull request #1011 from jeepers3327/fix-docs
benwilson512 Dec 28, 2020
8d41b34
Type System Directives SDL rendering (#1010)
binaryseed Dec 28, 2020
b4e946c
Changelog tweaks
binaryseed Dec 28, 2020
c707638
Add support for interface implementing other interfaces (#1012)
maartenvanvliet Dec 29, 2020
d2528e0
Remove commented code (#1013)
maartenvanvliet Dec 30, 2020
41cf20d
Add phase to reformat descriptions
binaryseed Jan 1, 2021
b4ed4d8
Merge pull request #1014 from binaryseed/reformat-descriptions
binaryseed Jan 1, 2021
99dbae1
Conform built in types to spec
maartenvanvliet Dec 20, 2020
2317702
Capture err during expected warning
binaryseed Jan 1, 2021
e154739
Inline ValidSchema to prevent warnings
binaryseed Jan 1, 2021
fcd1ba5
Merge pull request #1018 from binaryseed/silence-expected-warning
binaryseed Jan 2, 2021
b9893d4
Show introspection bug with import_fields and input
binaryseed Jan 1, 2021
1613534
Exclude __typename from being imported into an input
binaryseed Jan 1, 2021
d437a58
Always exclude __typename
binaryseed Jan 1, 2021
4cb5beb
Merge pull request #1015 from binaryseed/import_fields-input-__typename
binaryseed Jan 2, 2021
4a2573e
Merge pull request #1017 from maartenvanvliet/issues/conform-introspe…
binaryseed Jan 2, 2021
e74c9d5
Update changelog
binaryseed Jan 2, 2021
5155721
Cleanup on __TypeKind
binaryseed Jan 2, 2021
678b8e7
Changelog note
binaryseed Jan 2, 2021
0f3df91
Merge pull request #1019 from binaryseed/type-kind-updates
binaryseed Jan 2, 2021
3e8bd0b
Add variable_definition to __DirectiveLocation
binaryseed Jan 2, 2021
e43fdf4
Changelog note
binaryseed Jan 2, 2021
3de5beb
Don't duplicate full introspection query
binaryseed Jan 2, 2021
9014438
Merge pull request #1020 from binaryseed/update-directive-loc-introsp…
binaryseed Jan 2, 2021
db73038
Merge pull request #1021 from binaryseed/introspection-query
binaryseed Jan 2, 2021
27e5367
Check imports in schema phase
maartenvanvliet Jan 2, 2021
d770ad3
Remove loaded check for A.{B, C} imports in notation
maartenvanvliet Jan 2, 2021
4392bfa
Merge pull request #1022 from maartenvanvliet/issues/937
binaryseed Jan 2, 2021
17f72bb
Maintenance fixes (#1016)
maartenvanvliet Jan 2, 2021
37d7281
Bump version 1.6.0-rc.0
binaryseed Jan 2, 2021
5e54c50
Reduce amount of subscription data stored in Elixir registry (#1006)
zoldar Jan 9, 2021
2aed570
Allow directives on variable variable_definition_test (#1028)
maartenvanvliet Jan 11, 2021
4154c91
Fix/add tests for compile time default value evaluation (#1026)
dylan-chong Jan 11, 2021
97a281e
Update builtin types according to spec (#1029)
maartenvanvliet Jan 12, 2021
70d7073
Support dynamic Enum value (#1023)
binaryseed Jan 14, 2021
80780bb
Bump version 1.6.0-rc.1
binaryseed Jan 14, 2021
bbda80d
Make tests async where possible (#1030)
maartenvanvliet Jan 15, 2021
eed2a5f
Mini dep bump
binaryseed Jan 15, 2021
f928288
Bump version 1.6.0
binaryseed Jan 15, 2021
fd567c7
Improved serialization failure messages (#1033)
benwilson512 Jan 20, 2021
ffb5e12
Render null default values in SDL (#1032)
maartenvanvliet Jan 20, 2021
6b136fa
Changelog entry
binaryseed Jan 20, 2021
fe4884c
Adopt official GH action (#1036)
binaryseed Feb 1, 2021
c5db6d1
Hibernate Schema.Manager (#1037)
binaryseed Feb 1, 2021
c8b77c3
Bump version 1.6.1
binaryseed Feb 1, 2021
daa79c0
Clarify placement of @schema_provider (#1039)
dmarkow Feb 2, 2021
19f1e8d
Workaround for values defined as list of atoms (#1041)
binaryseed Feb 5, 2021
cd34b7f
Bump version 1.6.2
binaryseed Feb 5, 2021
fa2ebdc
Debugging dialyzer (#1042)
binaryseed Feb 5, 2021
eb7c307
Demonstrate edge cases with "format_raw_parse_error" sample (#1044)
mattbaker Feb 10, 2021
b6150ca
Bump version 1.6.3
binaryseed Feb 10, 2021
9c8433d
Optimize actions (#1051)
binaryseed Mar 21, 2021
f271d2f
Support only 2 latest versions of Elixir (#1053)
dolfinus Mar 22, 2021
1e219c6
Update README (#1055)
dolfinus Mar 23, 2021
659d15d
Better solve deadlocks on Elixir v1.12+ (#1057)
binaryseed Mar 26, 2021
34cd95d
Compress registry tables by default (#1058)
josevalim Mar 29, 2021
ecdbf89
Fix string serialization error raising (#1062)
emeryotopalik Apr 16, 2021
b09e9be
Bump version 1.6.4
binaryseed Apr 16, 2021
414236f
formatting
benwilson512 Apr 22, 2021
bee16a9
inline functions always when using persistent_term backend
benwilson512 Apr 23, 2021
f755ae4
changelog entry
benwilson512 Apr 23, 2021
185764d
formatting changes from 1.11
benwilson512 Apr 23, 2021
4bdeabf
Dep Cleanup (#1065)
benwilson512 Apr 23, 2021
bcfd47f
Fix typos in documentation (#1070)
davidwebster48 May 14, 2021
56a98ba
example of multiple aliases test
benwilson512 May 20, 2021
4b40f3d
Document behavior on Absinthe.Type.Object (#1073)
Nickforall May 20, 2021
c232f39
Fix Mix Format (#1079)
maennchen Jun 2, 2021
6269157
Fix a small grammar issue in the guides (#1082)
mackshkatz Jun 13, 2021
fe02d15
Clarify the dataloader integration (#1076)
nathanl Jun 13, 2021
1948513
Support passing through object scalars (#1069)
kdawgwilk Jun 15, 2021
2f0c14c
Account for prototype schema when generating SDL (#1086)
kdawgwilk Jul 9, 2021
62483e4
Fix union render with no types (#1085)
kdawgwilk Jul 15, 2021
bf88b6a
Allow interface fields to reference other interfaces (#1089) (#1091)
jerelmiller Aug 2, 2021
f517348
Bump version 1.6.5
binaryseed Aug 2, 2021
5d41e37
Fix exception when field name contains all invalid characters (#1096)
aaronrenner Aug 12, 2021
adf9659
Update telemetry dependency to stable ~> 1.0 (#1097)
bmuller Aug 24, 2021
50bbaae
Use makeup_graphql to get GraphQL syntax highlighting in docs (#1099)
Billzabob Sep 3, 2021
bdb0531
Fix typos in the documentation (#1101)
Sep 10, 2021
9ab7af0
Bump version 1.6.6
binaryseed Sep 28, 2021
73bd4a5
Replace put_opts with put_options in subscriptions guide (#1111)
dorian-marchal Oct 11, 2021
c10eff9
Add missing information in 1.5 upgrade guide (#1112)
dorian-marchal Oct 13, 2021
d7837a7
Convert `Absinthe.Language.*` structs to graphql representation (#1114)
maartenvanvliet Nov 11, 2021
738f97b
Use inspect/1 to safely encode bad binary samples (#1121)
mattbaker Nov 22, 2021
1ac2654
Invert the instructions for installing subscriptions with phoenix. (#…
JonRowe Nov 25, 2021
a26549a
Check interfaces on interfaces for valid types
maartenvanvliet Nov 25, 2021
2a77c4d
Fix assertion on non-transitive interface error
maartenvanvliet Nov 25, 2021
852f72f
Check transitive interfaces in schema validation phase
maartenvanvliet Nov 25, 2021
6d3fcb8
Format according to elixir 1.11
maartenvanvliet Nov 25, 2021
97179cb
Ensure resolve_type resolves to a type
maartenvanvliet Nov 26, 2021
6889e0b
Merge pull request #1127 from maartenvanvliet/issues/1080
tlvenn Nov 26, 2021
cd0905a
Prevent key :is_type_of not found error on interfaces
maennchen Jun 2, 2021
1bc0e50
Switch to find_implementors based fix
maennchen Nov 26, 2021
991feb9
Add `telemetry_span_context` following conventions (#1128)
andrewhr Nov 28, 2021
a30aeee
Bump version in README.md (#1130)
rmoorman Dec 5, 2021
b735555
Remove unused transform walk functions (#1122)
maartenvanvliet Dec 7, 2021
e4f3ffe
Fix tests to expect only concrete implementors
tlvenn Dec 9, 2021
e09cd6b
Lookup implementors only when needed
tlvenn Dec 9, 2021
1ad9f67
Merge pull request #1078 from jshmrtn/interface_resolve_type_only_object
tlvenn Dec 9, 2021
b594d7a
Add unique field names validation (#1135)
maartenvanvliet Jan 4, 2022
75c717d
Ensure input/output types are correctly placed for SDL schemas (#1142)
maartenvanvliet Jan 18, 2022
790e1c8
Improve type checks on variables (#1141)
maartenvanvliet Jan 18, 2022
6ac7a05
Apply type system directives in macro based schemas (#1140)
maartenvanvliet Jan 18, 2022
9913bfa
Fix wrapped unknown types (#1138)
maartenvanvliet Jan 18, 2022
646cadd
version bump
benwilson512 Jan 18, 2022
caa23ac
Update changelog and improve docs (#1143)
maartenvanvliet Jan 19, 2022
b298824
Parse constant values separate from locations that permit variables.
maartenvanvliet Jan 12, 2022
e061062
prep for 1.7.0
benwilson512 Jan 19, 2022
db9ccd9
Update non_null.ex with details about adding and removing (#1146)
Jan 20, 2022
0925f8c
fix formatting
benwilson512 Jan 20, 2022
a38ae27
Add `__private__` field to EnumValueDefinition struct (#1148)
maartenvanvliet Jan 24, 2022
102360e
Return rest in post_traverse to avoid future deprecations (#1151)
josevalim Feb 14, 2022
a2223a6
Test on new elixir versions (#1155)
kdawgwilk Feb 17, 2022
9dcfbcc
Convert SDL Language.* structs to SDL notation
maartenvanvliet Feb 17, 2022
4ca325f
Add changelog entry
maartenvanvliet Feb 17, 2022
fa20603
Fix bug in Schema.__absinthe_types__(:all) for Persistent Term (#1161)
maartenvanvliet Feb 22, 2022
c3b7ed3
Merge branch 'master' into sdl_language_inspect
maartenvanvliet Feb 22, 2022
15eb346
Start Absinthe.Schema for persistent term schema (#1159)
andersonmcook Mar 7, 2022
e869dbb
Add import_directives (#1158)
kdawgwilk Mar 11, 2022
3d8792a
Merge branch 'master' into sdl_language_inspect
benwilson512 Apr 25, 2022
ee32739
Merge pull request #1160 from maartenvanvliet/sdl_language_inspect
benwilson512 Apr 25, 2022
c919549
Move struct_to_kind helper function
maartenvanvliet Feb 15, 2022
4b616f0
Convert `extend` language struct to bp struct
maartenvanvliet Feb 15, 2022
8449ad7
Visit schema definition type_extensions in bp walk
maartenvanvliet Feb 15, 2022
e45e494
Add refs to type extensions structs
maartenvanvliet Feb 15, 2022
bd4842a
Apply type extensions to schema
maartenvanvliet Feb 15, 2022
185bab4
Add macro support for type extensions
maartenvanvliet Feb 16, 2022
69c3d26
Add `extend/1` to locals_without_parens
maartenvanvliet Feb 16, 2022
c229ba9
Simplify sdl tests
maartenvanvliet Feb 16, 2022
7950640
Test sdl type extension imports
maartenvanvliet Feb 16, 2022
733ddb8
Walk TypeExtension structs and validate references
maartenvanvliet Feb 16, 2022
32923f8
Fix test warnings
maartenvanvliet Feb 16, 2022
b4d56d2
Use more succinct syntax for `extend` macro
maartenvanvliet Feb 16, 2022
101e268
Fix docs
maartenvanvliet Feb 17, 2022
2ed568b
Add changelog entry
maartenvanvliet Feb 17, 2022
209dccd
Move type_extensions import in separate phase
maartenvanvliet Feb 18, 2022
5756a0c
Allow extension of builtin types
maartenvanvliet Feb 18, 2022
5d4b2b6
Add deprecated directive fields through type extension
maartenvanvliet Feb 18, 2022
0cb93d1
Move default imports to pipeline configuration
maartenvanvliet Feb 18, 2022
acd1819
Ensure extend meta attributes work
maartenvanvliet Feb 20, 2022
323ff76
Allow meta attributes on directives
maartenvanvliet Feb 20, 2022
10e5baa
Fix typos
maartenvanvliet Mar 11, 2022
658d510
Merge pull request #1157 from maartenvanvliet/issues/type_extensions
benwilson512 Apr 26, 2022
df41b03
Add telemetry events to async middleware
andrewhr May 5, 2022
453fd12
Merge pull request #1169 from andrewhr/async-middleware-telemetry
benwilson512 May 8, 2022
573283e
Allow single atom for macro directives
kdawgwilk May 17, 2022
ffb03e7
Add end_time_mono to telemetry :stop events
cheerfulstoic May 31, 2022
2768d10
Merge pull request #1174 from Vic-ai/master
benwilson512 Jun 7, 2022
9539806
Merge pull request #1171 from kdawgwilk/kaden/directive_ergonomics
benwilson512 Jun 7, 2022
8b1e9f2
Apply type extension to schema declaration
maartenvanvliet Jun 29, 2022
179822b
Walk SchemaDeclaration structs
maartenvanvliet Jun 29, 2022
c0fbc78
Skip schema declaration check in extensions
maartenvanvliet Jun 29, 2022
bdfb58b
Create schema declaration when none defined yet
maartenvanvliet Jun 29, 2022
8ab3617
Reverse order of ApplyDeclaration and ApplyTypeExtensions
maartenvanvliet Jun 29, 2022
a97a327
Fix schema description returning description of __schema
maartenvanvliet Jun 29, 2022
c8cf2d6
Add declaration extension test for SDL
maartenvanvliet Jun 29, 2022
0987b64
Support declaration extension in macro schema
maartenvanvliet Jun 29, 2022
347d3a9
Remove ad-hoc schema declaration rendering
maartenvanvliet Jun 29, 2022
e7a905e
Cleanup SDL rendering
maartenvanvliet Jun 29, 2022
0814afb
Also extend declaration field definitions
maartenvanvliet Jun 29, 2022
039c3b0
Remove commented code
maartenvanvliet Jun 29, 2022
70ca9ef
Support schema declaration at top level
maartenvanvliet Jun 29, 2022
33df833
Remove reserved identifiers check from notation
maartenvanvliet Jun 29, 2022
c55107d
Add test for extending builtin query type
maartenvanvliet Jun 29, 2022
b0047e4
Add changelog entry
maartenvanvliet Jun 30, 2022
dc0390a
update old specification links
addstar34 Jul 25, 2022
cbc2ac4
Merge pull request #1182 from addstar34/update-old-specification-links
benwilson512 Jul 25, 2022
3406d8a
Fixed a typo preventing to format files located in priv
GRoguelon Jul 26, 2022
6ecb147
Merge pull request #1183 from GRoguelon/doc/formatter
benwilson512 Aug 9, 2022
a276684
Merge pull request #1176 from maartenvanvliet/schema_declaration_dire…
benwilson512 Aug 9, 2022
c3c60e5
Merge pull request #1145 from maartenvanvliet/const-parsing
benwilson512 Aug 9, 2022
97ec561
Ensure root objects are marked as referenced correctly
maartenvanvliet Aug 26, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .dialyzer_ignore.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[
{":0:unknown_function Function :persistent_term.get/1 does not exist."},
{":0:unknown_function Function :persistent_term.put/2 does not exist."}
]
18 changes: 14 additions & 4 deletions .formatter.exs
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,28 @@ locals_without_parens = [
config: 1,
deprecate: 1,
description: 1,
directive: 1,
directive: 2,
directive: 3,
enum: 2,
enum: 3,
expand: 1,
extend: 1,
extend: 2,
field: 2,
field: 3,
field: 4,
import_directives: 1,
import_directives: 2,
import_fields: 2,
import_fields: 1,
import_types: 1,
import_types: 2,
import_type_extensions: 1,
import_type_extensions: 2,
import_sdl: 1,
import_sdl: 2,
input_object: 3,
instruction: 1,
interface: 1,
interface: 3,
interfaces: 1,
Expand All @@ -31,8 +41,7 @@ locals_without_parens = [
object: 3,
on: 1,
parse: 1,
record_object!: 4,
recordable!: 4,
repeatable: 1,
resolve: 1,
resolve_type: 1,
scalar: 2,
Expand All @@ -43,12 +52,13 @@ locals_without_parens = [
union: 3,
value: 1,
value: 2,
values: 1
]

[
inputs: ["mix.exs", "{config,lib,test}/**/*.{ex,exs}"],
locals_without_parens: locals_without_parens,
export: [
locals_without_parens: locals_without_parens,
locals_without_parens: locals_without_parens
]
]
71 changes: 71 additions & 0 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: CI

on:
push:
pull_request:
branches:
- master

jobs:
test:
name: Elixir ${{matrix.elixir}} / OTP ${{matrix.otp}}
runs-on: ubuntu-latest

strategy:
matrix:
elixir:
- "1.10"
- "1.11"
- "1.12"
- "1.13"
otp:
- "22"
- "23"
- "24"
exclude:
- elixir: "1.10"
otp: "24"
include:
- elixir: "1.13"
otp: "24"
format: true

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up Elixir
uses: erlef/setup-elixir@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}

- name: Restore deps cache
uses: actions/cache@v2
with:
path: |
deps
_build
key: deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }}-${{ github.sha }}
restore-keys: |
deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }}
deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}

- name: Install package dependencies
run: mix deps.get

- name: Check Formatting
run: mix format --check-formatted
if: ${{ matrix.format }}

- name: Run unit tests
run: |
mix clean
mix test

- name: Run unit tests with persistent_term backend
run: |
mix clean
mix test
env:
SCHEMA_PROVIDER: persistent_term
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@ erl_crash.dump
src/*.erl
.tool-versions*
missing_rules.rb
.DS_Store
.DS_Store
/priv/plts/*.plt
/priv/plts/*.plt.hash
/tmp
12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

141 changes: 138 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,142 @@
# Changelog

For changes pre v1.5 see the [v1.4](https://github.com/absinthe-graphql/absinthe/blob/v1.4/CHANGELOG.md) branch
## Unreleased

## v1.5.0-dev
- Feature: [Convert SDL Language.\* structs to SDL notation](https://github.com/absinthe-graphql/absinthe/pull/1160)
- Feature: [Add support for type extensions](https://github.com/absinthe-graphql/absinthe/pull/1157)
- Bug Fix: [Add `__private__` field to EnumValueDefinition](https://github.com/absinthe-graphql/absinthe/pull/1148)
- Bug Fix: [Fix bug in Schema.**absinthe_types**(:all) for Persistent Term](https://github.com/absinthe-graphql/absinthe/pull/1161)
- Feature: [Add `import_directives` macro](https://github.com/absinthe-graphql/absinthe/pull/1158)
- Feature: [Support type extensions on schema declarations](https://github.com/absinthe-graphql/absinthe/pull/1176)

- Complete rewrite of schema internals
## 1.7.0

- POTENTIALLY BREAKING Bug Fix: [Validate variable usage in according to spec](https://github.com/absinthe-graphql/absinthe/pull/1141). This could break incoming documents previously considered valid. Skip the `Absinthe.Phase.Document.Arguments.VariableTypesMatch` phase to avoid this check. See `Absinthe.Pipeline` on adjusting the document pipeline.

- Feature: [Add GraphQL document formatter](https://github.com/absinthe-graphql/absinthe/pull/1114)
- Bug Fix: [Fix Phase.Schema.Validation.InputOutputTypesCorrectlyPlaced not applied to SDL schema's](https://github.com/absinthe-graphql/absinthe/pull/1142/files)
- Bug Fix: [Use inspect/1 to safely encode bad binary samples](https://github.com/absinthe-graphql/absinthe/pull/1121)
- Bug Fix: [key :is_type_of not found on Interface ](https://github.com/absinthe-graphql/absinthe/issues/1077)
- Bug Fix: [Validate object/interfaces implement all transitive interfaces](https://github.com/absinthe-graphql/absinthe/pull/1127)
- Bug Fix: [Fix check unknown types to also cover wrapped types](https://github.com/absinthe-graphql/absinthe/pull/1138) This could break incoming documents previously considered valid. Skip the `Absinthe.Phase.Validation.KnownTypeNames` phase to avoid this check. See `Absinthe.Pipeline` on adjusting the document pipeline.
- Bug Fix: [Validate field names are unique to an object, interface or an input object](https://github.com/absinthe-graphql/absinthe/pull/1135)

## 1.6.7 (Retired)

Originally included the items from 1.7.0, but the spec validation fix was considered
too impactful for a patch release.

## 1.6.6

- Feature: [Update telemetry dependency to stable ~> 1.0](https://github.com/absinthe-graphql/absinthe/pull/1097)
- Feature: [Use makeup_graphql to get GraphQL syntax highlighting in docs](https://github.com/absinthe-graphql/absinthe/pull/1099)
- Bug Fix: [Fix exception when field name contains all invalid characters](https://github.com/absinthe-graphql/absinthe/pull/1096)

## 1.6.5

- Bug Fix: [Fix interface compilation behavior difference between SDL & DSL](https://github.com/absinthe-graphql/absinthe/pull/1091)
- Bug Fix: [Allow SDL syntax to contain union without member types](https://github.com/absinthe-graphql/absinthe/pull/1085)
- Bug Fix: [Account for prototype schema when rendering SDL via mix task](https://github.com/absinthe-graphql/absinthe/pull/1086)
- Feature: Always inline functions when using persistent_term backend.
- Feature: [Support optional open ended scalars](https://github.com/absinthe-graphql/absinthe/pull/1069)

## 1.6.4

- Feature: [Compress registry tables by default](https://github.com/absinthe-graphql/absinthe/pull/1058)
- Bug Fix: [Fix compilation deadlocks on type imports](https://github.com/absinthe-graphql/absinthe/pull/1056)
- Bug Fix: [Raise a better error when string serialization fails](https://github.com/absinthe-graphql/absinthe/pull/1062)

## 1.6.3

- Bug Fix: [Fix unicode bug when encoding parse error](https://github.com/absinthe-graphql/absinthe/pull/1044)

## 1.6.2

- Bug Fix: [Fix regression in SDL rendering for enum values](https://github.com/absinthe-graphql/absinthe/pull/1041)

## 1.6.1

- Feature: [Improved serialization failure messages](https://github.com/absinthe-graphql/absinthe/pull/1033)
- Bug Fix: [Render null default values in SDL](https://github.com/absinthe-graphql/absinthe/pull/1032)
- Bug Fix: [Reduce memory usage of Schema.Manager](https://github.com/absinthe-graphql/absinthe/pull/1037)

## 1.6.0

- Feature: [Interfaces can now implement Interfaces](https://github.com/absinthe-graphql/absinthe/pull/1012), matching the latest spec
- Feature: Support for the [`repeatable` directive](https://github.com/absinthe-graphql/absinthe/pull/999)
- Feature: Enable [rendering](https://github.com/absinthe-graphql/absinthe/pull/1010) of Type System Directives in SDL based schemas.
- Feature: Correctly match [Introspection type specs](https://github.com/absinthe-graphql/absinthe/pull/1017)
- Bug Fix: Restore dynamic [description support](https://github.com/absinthe-graphql/absinthe/pull/1005) (Note: the `description`s are evaluated once --- at compile time)
- Bug Fix: Restore dynamic [default_value support](https://github.com/absinthe-graphql/absinthe/pull/1026) (Note: the `default_value`s evaluated once --- at compile time)
- Bug Fix: Restore dynamic [Enum value support](https://github.com/absinthe-graphql/absinthe/pull/1023) (Note: the `value` is evaluated once --- at compile time)
- Bug Fix: [Interface nullability](https://github.com/absinthe-graphql/absinthe/pull/1009) corrections
- Bug Fix: Fix [field listing for Inputs](https://github.com/absinthe-graphql/absinthe/pull/1015) that import fields
- Bug Fix: Properly [trim all descriptions](https://github.com/absinthe-graphql/absinthe/pull/1014) no matter the mechanism used to specify them
- Bug Fix: Fix incorrect specification of [`__TypeKind`](https://github.com/absinthe-graphql/absinthe/pull/1019)
- Bug Fix: Better match [introspection schema specification](https://github.com/absinthe-graphql/absinthe/pull/1029)
- Bug Fix: Add missing value to [`__DirectiveLocation`](https://github.com/absinthe-graphql/absinthe/pull/1020)
- Bug Fix: Fix [compilation problems with `import_types`](https://github.com/absinthe-graphql/absinthe/pull/1022)
- Bug Fix: Reduce [memory consumption of Subscriptions](https://github.com/absinthe-graphql/absinthe/pull/1006)

## 1.5.5

- Bug Fix: Fix for `nil` in [`ArgumentsOfCorrectType` suggestions](https://github.com/absinthe-graphql/absinthe/pull/1000)

## 1.5.4

- Feature: Ensure [stable ordering in introspection results](https://github.com/absinthe-graphql/absinthe/pull/997).
- Bug Fix: Fix [rendering of interfaces in SDL](https://github.com/absinthe-graphql/absinthe/pull/979)
- Bug Fix: Properly [escape single line descriptions in SDL](https://github.com/absinthe-graphql/absinthe/pull/968)
- Bug Fix: Fix [`:meta` on fields](https://github.com/absinthe-graphql/absinthe/pull/973)
- Bug Fix: Validate that [DirectivesMustBeValid](https://github.com/absinthe-graphql/absinthe/pull/954)
- Bug Fix: Handle [default value rendering with partial field set](https://github.com/absinthe-graphql/absinthe/pull/998)

## 1.5.3

- Bug Fix: Handle null propagation with `non_null(list_of(non_null(type)))` properly
- Bug Fix: Fix [double escaping issue](https://github.com/absinthe-graphql/absinthe/pull/962) with string literal arguments.

## 1.5.2

- Bug Fix: Fix issue with persistent term backend.

## 1.5.1

- Bug Fix: Enable hydrating resolve_type on unions. #938
- Bug Fix: #922

## v1.5.0 (Rc)

- Breaking Bug Fix: Variable types must align exactly with the argument type. Previously
Absinthe allowed variables of different types to be used by accident as long as the data parsed.
- Feature (Experimental): `:persistent_term` based schema backend
- Breaking Change: `telemetry` event keys [changed](https://github.com/absinthe-graphql/absinthe/pull/901) since the beta release.

## v1.5.0 (Beta)

- Feature: SDL directives, other improvements
- Feature: Output rendered SDL for a schema
- Feature: Substantially lower subscription memory usage.
- Documentation: Testing guide, numerous fixes and updates
- Breaking Change: Scalar outputs are now type checked and will raise exceptions if the result tries to send the wrong data type in the result.
- Breaking Change: `telemetry` event names [changed](https://github.com/absinthe-graphql/absinthe/pull/782) from the `alpha` to match an emerging naming convention for tracing.
- Breaking Change: Added phase to check validity of field names according to GraphQL spec. Might break existing schema's. Remove the `Absinthe.Phase.Schema.Validation.NamesMustBeValid` from the schema pipeline if you want to ignore this.
- Breaking Change: To match the GraphQL spec, we [no longer](https://github.com/absinthe-graphql/absinthe/pull/816) add a non-null error when a resolver on a non-null field explicitly returns its own error.
- Breaking Change: Removed `Absinthe.Traversal` module

## v1.5.0 (Alpha)

Alpha 0 note: 1.5.0 alpha is safe to use on existing schemas. However, there are no schema validations at the moment, so when writing new ones you may get undefined behaviour if you write an invalid schema.

- COLUMN NUMBERS! The Absinthe Lexer has been rewritten using `nimble_parsec` and now Absinthe includes column information.
- Complete rewrite of schema internals. This fixes a number of long standing bugs, and provides a variety of new features
- Feature: SDL support
- Feature: Schema decorators
- Feature: Customizable subscription de-duplification. See: https://github.com/absinthe-graphql/absinthe/blob/master/guides/subscriptions.md#de-duplicating-updates
- Feature: Built-in `telemetry` instrumentation (https://github.com/beam-telemetry/telemetry)
- Breaking Change: `default_value: DateTime.utc_now()` will have its time set at compile time. IE: DON'T DO THIS. It only worked by accident before anyway, and now it no longer works, which is correct.
- Breaking change: added `node_name/0` callback to `Absinthe.Subscription.PubSub` behaviour. To retain old behaviour, implement this callback to return `Kernel.node/0`.

## v1.4

For changes pre-v1.5 see the [v1.4](https://github.com/absinthe-graphql/absinthe/blob/v1.4/CHANGELOG.md) branch.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Make your change. Add tests for your change. Make the tests pass:
Push to your fork (preferably to a non-`master` branch) and
[submit a pull request][pr].

[pr]: https://github.com/CargoSense/absinthe/compare/
[pr]: https://github.com/absinthe-graphql/absinthe/compare/

We'll review and answer your pull request as soon as possible. We may suggest
some changes, improvements, or alternatives. Let's work through it together.
Expand Down
14 changes: 14 additions & 0 deletions ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
* Do not use the issues tracker for help or support (try Elixir Forum, Slack, IRC, etc.)
* Questions about how to contribute are fine.

### Environment

* Elixir & Erlang versions (elixir --version):
* ExAws version `mix deps |grep ex_aws`
* HTTP client version. IE for hackney do `mix deps | grep hackney`

### Current behavior

Include code samples, errors and stacktraces if appropriate.

### Expected behavior
Loading