Skip to content

Commit 6f3e0e5

Browse files
committed
Merge branch 'master' of github.com:gql-dart/gql into feat/triStateNull
2 parents a613a17 + 0d9c962 commit 6f3e0e5

File tree

196 files changed

+13244
-2476
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

196 files changed

+13244
-2476
lines changed

.github/workflows/dart.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,16 @@ jobs:
2020
- gql_transform_link
2121
runs-on: ubuntu-latest
2222
container:
23-
image: dart
23+
image: dart:latest
2424
name: Check ${{ matrix.package }}
2525
env:
2626
PACKAGE: ${{ matrix.package }}
2727
steps:
28+
- name: Workaround for "detected dubious ownership in repository at", see https://github.com/actions/checkout/issues/1169
29+
run: |
30+
git config --system --add safe.directory /__w/gql/gql
2831
- name: Clone repository
29-
uses: actions/checkout@v2
32+
uses: actions/checkout@v3
3033
- name: Activate multipack
3134
run: |
3235
echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH
@@ -78,14 +81,19 @@ jobs:
7881
env:
7982
PACKAGE: ${{ matrix.package }}
8083
steps:
84+
- name: Workaround for "detected dubious ownership in repository at", see https://github.com/actions/checkout/issues/1169
85+
run: |
86+
git config --system --add safe.directory /__w/gql/
87+
git config --system --add safe.directory /__w/gql/gql
8188
- name: Clone repository
82-
uses: actions/checkout@v2
89+
uses: actions/checkout@v3
8390
- name: Activate multipack
8491
run: |
8592
echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH
8693
dart pub global activate multipack
8794
- name: Check pubspec
8895
run: |
96+
git status
8997
multipack --only $PACKAGE pubspec clean
9098
multipack --only $PACKAGE exec git diff --exit-code pubspec.yaml
9199
- name: Override local dependencies
@@ -124,8 +132,12 @@ jobs:
124132
env:
125133
PACKAGE: ${{ matrix.package }}
126134
steps:
135+
- name: Workaround for "detected dubious ownership in repository at", see https://github.com/actions/checkout/issues/1169
136+
run: |
137+
git config --system --add safe.directory /__w/gql/
138+
git config --system --add safe.directory /__w/gql/gql
127139
- name: Clone repository
128-
uses: actions/checkout@v2
140+
uses: actions/checkout@v3
129141
- name: Activate multipack
130142
run: |
131143
echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH

.github/workflows/publish_alpha.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ jobs:
1111
if: github.ref == 'refs/heads/master'
1212
env:
1313
PACKAGES: 'gql,gql_build,gql_code_builder,gql_dedupe_link,gql_dio_link,gql_exec,gql_http_link,gql_link,gql_pedantic,gql_transform_link,gql_error_link,gql_websocket_link'
14-
PUB_ACCESS_TOKEN: ${{ secrets.PUB_ACCESS_TOKEN }}
15-
PUB_REFRESH_TOKEN: ${{ secrets.PUB_REFRESH_TOKEN }}
1614
steps:
1715
- name: Clone repository
1816
uses: actions/checkout@v2
@@ -27,6 +25,11 @@ jobs:
2725
run: |
2826
multipack --only $PACKAGES pubspec sync-versions
2927
- name: Publish packages
28+
env:
29+
PUB_CREDENTIALS_JSON: ${{ secrets.PUB_CREDENTIALS_JSON }}
3030
run: |
31-
echo "{\"accessToken\":\"$PUB_ACCESS_TOKEN\",\"refreshToken\":\"$PUB_REFRESH_TOKEN\",\"idToken\":null,\"tokenEndpoint\":\"https://accounts.google.com/o/oauth2/token\",\"scopes\":[\"openid\",\"https://www.googleapis.com/auth/userinfo.email\"],\"expiration\":1588334512218}" > $HOME/.pub-cache/credentials.json
31+
mkdir -p $XDG_CONFIG_HOME/dart/
32+
echo $PUB_CREDENTIALS_JSON > $XDG_CONFIG_HOME/dart/pub-credentials.json
33+
mkdir -p $HOME/.config/dart/
34+
echo $PUB_CREDENTIALS_JSON > $HOME/.config/dart/pub-credentials.json
3235
multipack --only $PACKAGES pub publish --force

.github/workflows/publish_release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ jobs:
1111
if: github.ref == 'refs/heads/release'
1212
env:
1313
PACKAGES: 'gql,gql_build,gql_code_builder,gql_dedupe_link,gql_dio_link,gql_exec,gql_http_link,gql_link,gql_pedantic,gql_transform_link,gql_error_link,gql_websocket_link'
14-
PUB_ACCESS_TOKEN: ${{ secrets.PUB_ACCESS_TOKEN }}
15-
PUB_REFRESH_TOKEN: ${{ secrets.PUB_REFRESH_TOKEN }}
1614
steps:
1715
- name: Clone repository
1816
uses: actions/checkout@v2
@@ -24,6 +22,11 @@ jobs:
2422
run: |
2523
multipack --only $PACKAGES pubspec sync-versions
2624
- name: Publish packages
25+
env:
26+
PUB_CREDENTIALS_JSON: ${{ secrets.PUB_CREDENTIALS_JSON }}
2727
run: |
28-
echo "{\"accessToken\":\"$PUB_ACCESS_TOKEN\",\"refreshToken\":\"$PUB_REFRESH_TOKEN\",\"idToken\":null,\"tokenEndpoint\":\"https://accounts.google.com/o/oauth2/token\",\"scopes\":[\"openid\",\"https://www.googleapis.com/auth/userinfo.email\"],\"expiration\":1588334512218}" > $HOME/.pub-cache/credentials.json
28+
mkdir -p $XDG_CONFIG_HOME/dart/
29+
echo $PUB_CREDENTIALS_JSON > $XDG_CONFIG_HOME/dart/pub-credentials.json
30+
mkdir -p $HOME/.config/dart/
31+
echo $PUB_CREDENTIALS_JSON > $HOME/.config/dart/pub-credentials.json
2932
multipack --only $PACKAGES pub publish --force

README.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -139,19 +139,12 @@ Ideas for future work:
139139
| [graphql_flutter][graphql_flutter] | A GraphQL client for Flutter, bringing all the features from a modern GraphQL client to one easy to use package. |
140140
| [normalize][normalize] | Normalization and denormalization of GraphQL responses in Dart |
141141
| [ferry][ferry] | GraphQL Client for Dart |
142-
| [graphql_server][graphql_server]| Base package for implementing GraphQL servers. |
143-
| [graphql-to-dart][graphql-to-dart]| generate dart classes and respective JsonSerializable transcoders ([npm package][graphql-to-dart-npm]) |
144-
| [major_graphql][major_graphql]| generate `built_value` classes and serializers with `pub build` (successor of [graphql-to-dart][graphql-to-dart]) |
145142
| Your project? | Open a PR to add it to this readme! |
146143

147144
[artemis]: https://github.com/comigor/artemis
148145
[graphql_flutter]: https://github.com/zino-app/graphql-flutter
149146
[normalize]: https://github.com/smkhalsa/normalize
150147
[ferry]: https://github.com/gql-dart/ferry
151-
[graphql_server]: https://pub.dev/packages/graphql_server/versions/2.0.0-beta
152-
[graphql-to-dart]: https://github.com/micimize/graphql-to-dart
153-
[graphql-to-dart-npm]: https://www.npmjs.com/package/graphql-to-dart
154-
[major_graphql]: https://github.com/micimize/major
155148

156149
## Contributing
157150

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
analyzer:
3+
errors:
4+
# TODO: remove this once the wrongly generated @override
5+
# for toJson() in some cases is fixed
6+
override_on_non_overriding_member: ignore
7+

codegen/end_to_end_test/lib/aliases/__generated__/alias_var_fragment.ast.gql.dart

Lines changed: 113 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)