File tree 3 files changed +29
-1
lines changed
3 files changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -11,12 +11,24 @@ Breaking change:
11
11
There is one breaking change introduced in the minor version (this was important to allow PHP 8 compatibility).
12
12
13
13
- The ** ecodev/graphql-upload** package (used to get support for file uploads in GraphQL input types) is now a "recommended" dependency only.
14
- If you are using GraphQL file uploads, you need to add this package to your ` composer.json ` .
14
+ If you are using GraphQL file uploads, you need to add ` ecodev/graphql-upload ` to your ` composer.json ` .
15
15
16
16
New features:
17
17
18
18
- All annotations can now be accessed as PHP 8 attributes
19
+ - The ` @deprecated ` annotation in your PHP code translates into deprecated fields in your GraphQL schema
20
+ - You can now specify the GraphQL name of the Enum types you define
21
+ - Added the possibility to inject pure Webonyx objects in GraphQLite schema
19
22
23
+ Minor changes:
24
+
25
+ - Migrated from ` zend/diactoros ` to ` laminas/diactoros `
26
+ - Making the annotation cache directory configurable
27
+
28
+ Miscellaneous:
29
+
30
+ - Migrated from Travis to Github actions
31
+
20
32
21
33
## 4.0
22
34
Original file line number Diff line number Diff line change @@ -4,6 +4,19 @@ title: Migrating
4
4
sidebar_label : Migrating
5
5
---
6
6
7
+ ## Migrating from v4.0 to v4.1
8
+
9
+ GraphQLite follows Semantic Versioning. GraphQLite 4.1 is backward compatible with GraphQLite 4.0. See
10
+ [ semantic versioning] ( semver.md ) for more details.
11
+
12
+ There is one exception though: the ** ecodev/graphql-upload** package (used to get support for file uploads in GraphQL
13
+ input types) is now a "recommended" dependency only.
14
+ If you are using GraphQL file uploads, you need to add ` ecodev/graphql-upload ` to your ` composer.json ` by running this command:
15
+
16
+ ``` console
17
+ $ composer require ecodev/graphql-upload
18
+ ```
19
+
7
20
## Migrating from v3.0 to v4.0
8
21
9
22
If you are a "regular" GraphQLite user, migration to v4 should be straightforward:
Original file line number Diff line number Diff line change @@ -79,6 +79,9 @@ $factory->prodMode();
79
79
// Enables dev-mode (this is the default mode: cache settings optimized for best developer experience).
80
80
// This is a shortcut for `$schemaFactory->setGlobTtl(2)`
81
81
$factory->devMode();
82
+ // If APCu is not available, Doctrine annotations are stored in files.
83
+ // This setter can configure the cache directory for Doctrine annotations.
84
+ $factory->setAnnotationCacheDir($directory);
82
85
```
83
86
84
87
### GraphQLite context
You can’t perform that action at this time.
0 commit comments