File tree Expand file tree Collapse file tree 3 files changed +29
-1
lines changed Expand file tree Collapse file tree 3 files changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -11,12 +11,24 @@ Breaking change:
1111There is one breaking change introduced in the minor version (this was important to allow PHP 8 compatibility).
1212
1313- 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 ` .
1515
1616New features:
1717
1818- 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
1922
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+
2032
2133## 4.0
2234
Original file line number Diff line number Diff line change @@ -4,6 +4,19 @@ title: Migrating
44sidebar_label : Migrating
55---
66
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+
720## Migrating from v3.0 to v4.0
821
922If 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();
7979// Enables dev-mode (this is the default mode: cache settings optimized for best developer experience).
8080// This is a shortcut for `$schemaFactory->setGlobTtl(2)`
8181$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);
8285```
8386
8487### GraphQLite context
You can’t perform that action at this time.
0 commit comments