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

'Add __private__ field to EnumValueDefinition struct' #2

Closed
wants to merge 835 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
835 commits
Select commit Hold shift + click to select a range
85739ec
Merge pull request #980 from hoyon/fix-warnings
benwilson512 Oct 16, 2020
9afb976
update travis
benwilson512 Oct 16, 2020
131ee7a
update travis
benwilson512 Oct 16, 2020
d585bbb
Merge pull request #968 from barthez/escape-single-line-description-i…
benwilson512 Oct 21, 2020
5b4f198
Fix compilation bug with persistent_term backend
binaryseed Oct 21, 2020
cdb8c39
Merge pull request #982 from binaryseed/persistent_term-populate
benwilson512 Oct 22, 2020
a96747d
Remove unused var
binaryseed Oct 30, 2020
8dc9545
Merge pull request #979 from emeryotopalik/failing_sdl_generation
binaryseed Oct 30, 2020
7540ec3
Move to GitHub actions
binaryseed Oct 30, 2020
420dde4
fix formatting
binaryseed Oct 30, 2020
6a9cc14
handle interface implements for sdl and macro schemas
binaryseed Oct 30, 2020
643a02c
make dialzyer happy
binaryseed Oct 30, 2020
25df47d
rm travis
binaryseed Oct 30, 2020
bcd969b
update badges
binaryseed Oct 30, 2020
9c08360
fix badkey
binaryseed Oct 30, 2020
719ceb4
Defer persistent_term tests for now
binaryseed Oct 31, 2020
f63996b
persistent_term again (fails)
binaryseed Oct 31, 2020
100ed9f
Revert "Fix compilation bug with persistent_term backend"
binaryseed Oct 31, 2020
7fcdf09
formatting fix
binaryseed Oct 31, 2020
500c7b6
use comprehensions when easier
binaryseed Oct 31, 2020
d83a1ff
Merge pull request #985 from absinthe-graphql/gh-actions
binaryseed Oct 31, 2020
8f4d296
Allow NimbleParsec ~> 1.0
maennchen Nov 4, 2020
640a0ad
Solve Unused Variable Warning
maennchen Nov 4, 2020
4359379
Merge pull request #988 from jshmrtn/nimble_parsec
benwilson512 Nov 4, 2020
d292bcb
Additional code block
binaryseed Nov 26, 2020
97a7887
Merge branch 'master' into issues/doc_fixes
binaryseed Nov 26, 2020
38cf90e
Bump version 1.5.4
binaryseed Nov 26, 2020
5821045
Merge pull request #932 from maartenvanvliet/issues/doc_fixes
binaryseed Nov 26, 2020
fe69a1d
Merge pull request #992 from absinthe-graphql/bump-1.5.4
binaryseed Nov 26, 2020
b3325cb
Merge branch 'doc-fixes' into link-md-and-html-fix
binaryseed Nov 27, 2020
5cd0fc9
Merge pull request #948 from calvinsadewa/link-md-and-html-fix
binaryseed Nov 27, 2020
67ed534
mix.lock update
binaryseed Nov 27, 2020
4ba77f2
all guides links as .md
binaryseed Nov 27, 2020
8682a63
bump ex_doc
binaryseed Nov 27, 2020
66c8bec
fix curl example
binaryseed Nov 27, 2020
92e83e1
Merge pull request #993 from absinthe-graphql/doc-fixes
binaryseed Nov 27, 2020
950de4e
Merge branch 'trigger-doc' into master
binaryseed Nov 27, 2020
6ae7e95
Merge pull request #917 from Adzz/master
binaryseed Nov 27, 2020
305937d
simplify
binaryseed Nov 27, 2020
91ca133
section order
binaryseed Nov 27, 2020
86dfbff
Merge pull request #994 from absinthe-graphql/trigger-doc
binaryseed Nov 27, 2020
3b2e339
Misc doc changes
kianmeng Nov 27, 2020
57cbf95
Merge pull request #995 from kianmeng/misc-doc-changes
binaryseed Nov 27, 2020
1b55dc9
Further doc tweaks
binaryseed Nov 27, 2020
b9e0a79
rm old roadmap link
binaryseed Nov 27, 2020
f39b898
Merge pull request #996 from absinthe-graphql/doc-additions
binaryseed Nov 27, 2020
c11adfd
Merge branch 'master' into issues/directive_must_be_valid
binaryseed Nov 27, 2020
f434bf7
Merge pull request #954 from maartenvanvliet/issues/directive_must_be…
binaryseed Nov 27, 2020
79b972c
Minor tweaks to DirectivesMustBeValid
binaryseed Nov 27, 2020
d71b87a
Changelog entry
binaryseed Nov 27, 2020
a4c92eb
Merge pull request #959 from koode/jv-consistent-type-sorting
binaryseed Nov 27, 2020
39949b1
Further sorting
binaryseed Nov 27, 2020
25f668d
Merge pull request #997 from absinthe-graphql/sort-types
binaryseed Nov 27, 2020
8e9bb86
Changelog note
binaryseed Nov 27, 2020
9d01699
Fix partial default value input type
binaryseed Nov 28, 2020
162939d
Merge pull request #998 from binaryseed/fix-default-value-partial
binaryseed Nov 28, 2020
4fe81b1
Changelog entry
binaryseed Nov 28, 2020
445ddc8
Changelog tweak
binaryseed Nov 28, 2020
c3d1687
Readme tweaks
binaryseed Nov 28, 2020
1a03ef2
bump telemetry
binaryseed Nov 28, 2020
a371674
Parse `repeatable` on directive declaration
maartenvanvliet Jun 25, 2020
658e9c3
Add repeatable to type/schema
maartenvanvliet Jun 25, 2020
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
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
d45614f
Add `__private__` field to EnumValueDefinition struct
maartenvanvliet Jan 24, 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."}
]
12 changes: 8 additions & 4 deletions .formatter.exs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ locals_without_parens = [
config: 1,
deprecate: 1,
description: 1,
directive: 1,
directive: 2,
directive: 3,
enum: 2,
enum: 3,
Expand All @@ -18,8 +20,10 @@ locals_without_parens = [
import_fields: 2,
import_fields: 1,
import_types: 1,
import_types: 2,
import_sdl: 1,
import_sdl: 2,
input_object: 3,
instruction: 1,
interface: 1,
interface: 3,
interfaces: 1,
Expand All @@ -31,8 +35,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 +46,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
]
]
60 changes: 60 additions & 0 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
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'
otp:
- '22'
- '23'

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

- 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
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ erl_crash.dump
src/*.erl
.tool-versions*
missing_rules.rb
.DS_Store
.DS_Store
/priv/plts/*.plt
/priv/plts/*.plt.hash
12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

131 changes: 128 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,132 @@
# Changelog

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

## v1.5.0-dev
- 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.

- Complete rewrite of schema internals
- 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
48 changes: 27 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
# Absinthe

[GraphQL](https://facebook.github.io/graphql/) implementation for Elixir.
[![Build Status](https://github.com/absinthe-graphql/absinthe/workflows/CI/badge.svg)](https://github.com/absinthe-graphql/absinthe/actions?query=workflow%3ACI)
[![Version](https://img.shields.io/hexpm/v/absinthe.svg)](https://hex.pm/packages/absinthe)
[![Hex Docs](https://img.shields.io/badge/hex-docs-lightgreen.svg)](https://hexdocs.pm/absinthe/)
[![Download](https://img.shields.io/hexpm/dt/absinthe.svg)](https://hex.pm/packages/absinthe)
[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
[![Last Updated](https://img.shields.io/github/last-commit/absinthe-graphql/absinthe.svg)](https://github.com/absinthe-graphql/absinthe/commits/master)

[![Hex pm](http://img.shields.io/hexpm/v/absinthe.svg?style=flat)](https://hex.pm/packages/absinthe)[![Build Status](https://secure.travis-ci.org/absinthe-graphql/absinthe.svg?branch=master
"Build Status")](https://travis-ci.org/absinthe-graphql/absinthe)[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
[GraphQL](https://facebook.github.io/graphql/) implementation for Elixir.

Goals:

- Complete implementation of the [GraphQL Working Draft](https://facebook.github.io/graphql).
- Complete implementation of the [GraphQL Working Draft](https://spec.graphql.org/draft/).
- An idiomatic, readable, and comfortable API for Elixir developers
- Extensibility based on small parts that do one thing well.
- Detailed error messages and documentation.
Expand Down Expand Up @@ -62,50 +66,52 @@ and [Relay](https://facebook.github.io/relay/) on the frontend.
Of course we work out of the box with other frontend frameworks and GraphQL
clients, too.

### An Active Community

The project is under constant improvement by a growing list of
contributors, and your feedback is important. Please join us in Slack
(`#absinthe-graphql` under the Elixir Slack account) or the Elixir Forum
(tagged `absinthe`).

Please remember that all interactions in our official spaces follow
our [Code of Conduct](./CODE_OF_CONDUCT.md).

## Installation

Install from [Hex.pm](https://hex.pm/packages/absinthe):

```elixir
def deps do
[{:absinthe, "~> 1.4.0"}]
[{:absinthe, "~> 1.6.0"}]
end
```

Note: Absinthe requires Elixir 1.4 or higher.
Note: Absinthe requires Elixir 1.10 or higher.

## Upgrading

See [CHANGELOG](./CHANGELOG.md) for upgrade steps between versions.

## Documentation

See [HexDocs](https://hexdocs.pm/absinthe) and <http://absinthe-graphql.org>.
- [Absinthe hexdocs](https://hexdocs.pm/absinthe).
- For the tutorial, guides, and general information about Absinthe-related
projects, see [http://absinthe-graphql.org](http://absinthe-graphql.org).

### Mix Tasks

Absinthe includes a number of useful Mix tasks for extracting schema metadata.

Run `mix help` in your project and look for tasks starting with `absinthe`.

### Roadmap

See the [Roadmap project board](https://github.com/absinthe-graphql/absinthe/projects/2) for longer term plans.

## Related Projects

See the [GitHub organization](https://github.com/absinthe-graphql).

## Community

The project is under constant improvement by a growing list of
contributors, and your feedback is important. Please join us in Slack
(`#absinthe-graphql` under the Elixir Slack account) or the Elixir Forum
(tagged `absinthe`).

Please remember that all interactions in our official spaces follow
our [Code of Conduct](./CODE_OF_CONDUCT.md).

## Contribution

Please follow [contribution guide](./CONTRIBUTING.md).

## License

See [LICENSE.md](./LICENSE.md).
Loading