Skip to content

Commit 78e337e

Browse files
authored
Merge pull request #1 from rebing/master
update
2 parents b041a67 + c757ffb commit 78e337e

File tree

135 files changed

+5998
-6291
lines changed

Some content is hidden

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

135 files changed

+5998
-6291
lines changed

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 4
7+
indent_style = space
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false
13+
14+
[*.yml]
15+
indent_size = 2
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: "🐛 Bug Report"
3+
about: 'Report a general bug.'
4+
labels: bug
5+
6+
---
7+
8+
### Versions:
9+
- graphql-laravel Version: #.#.#
10+
- Laravel/Lumen Version: #.#.#
11+
- PHP Version: #.#.#
12+
13+
### Description:
14+
15+
<!--
16+
Describe what problem you found with code
17+
-->
18+
19+
### Steps To Reproduce:
20+
21+
-
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
name: "✨ Feature request"
3+
about: 'Suggest a new new feature or other improvements.'
4+
labels: enhancement
5+
6+
---
7+
8+
### Summary
9+
10+
<!--
11+
Describe in detail what you propose, show (preferable) code examples and also signal if you're willing to work on it!
12+
-->
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: "🙋🏼‍♂️ Support question"
3+
about: 'I need assistance or clarification on usage of this library.'
4+
labels: question
5+
6+
---
7+
<!--
8+
Alternative you can also use our Slack workspace: https://join.slack.com/t/rebing-graphql/shared_invite/enQtNTE5NjQzNDI5MzQ4LWVjMTMxNzIyZjBlNTFhZGQ5MDVjZDAwZDNjODA3ODE2NjdiOGJkMjMwMTZkZmNhZjhiYTE1MjEyNDk0MWJmMzk
9+
-->
10+
11+
### Versions:
12+
- graphql-laravel Version: #.#.#
13+
- Laravel/Lumen Version: #.#.#
14+
- PHP Version: #.#.#
15+
16+
### Question:
17+

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
/vendor
22
.idea/
3+
/phpunit.xml
4+
/composer.lock

.styleci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
preset: laravel

.travis.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
sudo: false
2+
3+
language: php
4+
5+
cache:
6+
directories:
7+
- $HOME/.composer/cache/files
8+
9+
matrix:
10+
include:
11+
- php: '7.1'
12+
env: LARAVEL='5.5.*'
13+
- php: '7.1'
14+
env: LARAVEL='5.6.*'
15+
- php: '7.1'
16+
env: LARAVEL='5.7.*'
17+
- php: '7.1'
18+
env: LARAVEL='5.8.*'
19+
- php: '7.2'
20+
env: LARAVEL='5.5.*'
21+
- php: '7.2'
22+
env: LARAVEL='5.6.*'
23+
- php: '7.2'
24+
env: LARAVEL='5.7.*'
25+
- php: '7.2'
26+
env: LARAVEL='5.8.*'
27+
- php: '7.3'
28+
env: LARAVEL='5.5.*'
29+
- php: '7.3'
30+
env: LARAVEL='5.6.*'
31+
- php: '7.3'
32+
env: LARAVEL='5.7.*'
33+
- php: '7.3'
34+
env: LARAVEL='5.8.*' CODE_COVERAGE=1
35+
36+
before_script:
37+
- phpenv config-rm xdebug.ini || true
38+
39+
install:
40+
- composer require "illuminate/support:${LARAVEL}" --no-interaction --no-update
41+
- composer install --prefer-dist --no-interaction --no-suggest
42+
43+
script:
44+
- if [[ $CODE_COVERAGE = 0 ]]; then vendor/bin/phpunit --colors=always --verbose; fi
45+
- if [[ $CODE_COVERAGE = 1 ]]; then phpdbg -qrr vendor/bin/phpunit --colors=always --verbose --coverage-clover=coverage.xml; fi
46+
47+
after_success:
48+
- if [[ $CODE_COVERAGE = 1 ]]; then bash <(curl -s https://codecov.io/bash); fi

CHANGELOG.md

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
CHANGELOG
2+
=========
3+
4+
Next release
5+
------------
6+
## Breaking changes
7+
- Validation errors are moved from error.validation to error.extensions.validation as per GraphQL spec recommendation [\#294](https://github.com/rebing/graphql-laravel/pull/294)
8+
- SelectFields on interface types now only selects specific fields instead of all [\#294](https://github.com/rebing/graphql-laravel/pull/294)
9+
- Although this could be consider a bug fix, it changes what columns are selected and if your code as a side-effect dependent on all columns being selected, it will break
10+
11+
### Added
12+
- New config options `headers` to send custom HTTP headers and `json_encoding_options` for encoding the JSON response [\#293](https://github.com/rebing/graphql-laravel/pull/293)
13+
- Auto-resolve aliased fields [\#283](https://github.com/rebing/graphql-laravel/pull/283)
14+
- Added declare(strict_types=1) directive to all files
15+
- This project has a changelog `\o/`
16+
- Internal
17+
- Test suite has been refactored and now features Database (SQLite) tests too
18+
19+
### Changed
20+
- `ValidatorError`: remove setter and make it a constructor arg, add getter and rely on contracts
21+
- Replace global helper `is_lumen` with static class call `\Rebing\GraphQL\Helpers::isLumen`
22+
23+
### Fixed
24+
- SelectFields now works with wrapped types (nonNull, listOf)
25+
26+
2019-03-07, v1.21.2
27+
-------------------
28+
29+
- Allow configuring a custom default field resolver [\#266](https://github.com/rebing/graphql-laravel/pull/266)
30+
- Routes have now given names so they can be referenced [\#264](https://github.com/rebing/graphql-laravel/pull/264)
31+
- Expose more fields on the default pagination type [\#262](https://github.com/rebing/graphql-laravel/pull/262)
32+
- Mongodb support [\#257](https://github.com/rebing/graphql-laravel/pull/257)
33+
- Add support for MorphOne relationships [\#238](https://github.com/rebing/graphql-laravel/pull/238)
34+
- Checks for lumen when determining schema [\#247](https://github.com/rebing/graphql-laravel/pull/247)
35+
- Internal changes:
36+
- Replace deprecated global `array_*` and `str_*` helpers with direct `Arr::*` and `Str::*` calls
37+
- Code style now enforced via [StyleCI](https://styleci.io/)
38+
39+
2019-03-07, v1.20.2
40+
-------------------
41+
42+
- Fixed infinite recursion for InputTypeObject self reference [\#230](https://github.com/rebing/graphql-laravel/pull/230)
43+
44+
2019-03-03, v1.20.1
45+
-------------------
46+
47+
- Laravel 5.8 support
48+
49+
2019-02-04, v1.19.1
50+
-------------------
51+
52+
- Don't report certain GraphQL Errors
53+
54+
2019-02-03, v1.18.1
55+
-------------------
56+
57+
- Mutation routes fix
58+
59+
2019-01-29, v1.18.0
60+
-------------------
61+
62+
- Fix to allow recursive input objects [\#158](https://github.com/rebing/graphql-laravel/issues/158)
63+
64+
2019-01-24, v1.17.6
65+
-------------------
66+
67+
- Fixed default error handler
68+
69+
2018-12-17, v1.17.3
70+
-------------------
71+
72+
- Bump webonxy/graphql-php version requirement
73+
- Add support for custom error handler config `handle_errors`
74+
75+
2018-12-17, v1.16.0
76+
-------------------
77+
78+
- Fixed validation
79+
80+
2018-07-20, v1.14.2
81+
-------------------
82+
83+
- Validation error messages
84+
Can now add custom validation error messages to Queries and Mutations
85+
86+
2018-05-16, v1.13.0
87+
-------------------
88+
89+
- Added support for query complexity and depth ([more details](https://github.com/webonyx/graphql-php#security))
90+
- Also added support for InputObjectType rules validation.
91+
92+
2018-04-20, v1.12.0
93+
-------------------
94+
95+
- [Added support for Unions](https://github.com/rebing/graphql-laravel/blob/master/docs/advanced.md#unions) and [Interfaces](https://github.com/rebing/graphql-laravel/blob/master/docs/advanced.md#interfaces)
96+
97+
2018-04-10, v1.11.0
98+
-------------------
99+
100+
- Rules supported for all Fields
101+
Added `rules` support for Query fields
102+
103+
2018-02-28, v1.9.5
104+
------------------
105+
106+
- Allow subscription types to be added
107+
Supports creating the schema, but the underlying PHP functionality does not do anything.
108+
109+
2018-01-05, v1.8.2
110+
------------------
111+
112+
- Updating route and controller to give us the ability to create multilevel URI names [\#69](https://github.com/rebing/graphql-laravel/pull/69)
113+
- Updating route and controller so it give us the ability to create multi level URI names
114+
115+
2017-10-31, v1.7.3
116+
------------------
117+
118+
- Composer fix
119+
120+
2017-10-04, v1.7.1
121+
------------------
122+
123+
- SelectFields fix
124+
125+
2017-09-23, v1.6.1
126+
------------------
127+
128+
- GET routes
129+
130+
2017-08-27, v1.5.0
131+
------------------
132+
133+
- Enum types
134+
135+
2017-08-20, v1.4.9
136+
------------------
137+
138+
- Privacy validation optimizied
139+
140+
2017-03-27, v1.4
141+
------------------
142+
143+
- Initial release

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2017 Mikk Mihkel Nurges
3+
Copyright (c) 2018 Mikk Mihkel Nurges
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)