Releases: morpheusgraphql/morpheus-graphql
0.24.1
0.24.1 (2022-10-22)
Bug Fixes
- #778: code-gen-docs
- 📦 client, server
- 👤 @nalchevanidze
-
- fix does not automatically generates dummy Scalars - docs for code-gen
0.24.0
0.24.0 (2022-10-21)
Breaking Change
- #773: disable automatic __typename selection and fix client runtime errors connected to it
-
📦 client
-
- GQL app does not automatically insert __typename field on union selections - GQL client does not generates only the datatypes for casted union types +1 type for fallback - not selecting on clients does not causes runtime error, however client will decode it as fallback type - if you forgot to select on unions, morpheus client will warn you about it.
-
- #776: generate single type for fragment
Bug Fixes
- #774: no partial fields
Minor Changes
- #775: Cli check
- 👤 @nalchevanidze
-
- morpheus CLI: now support command __check__. which will check if your generated files are outdated.
0.23.0
0.23.0 (2022-10-17)
Breaking Change
- #766: feat: replace Type Options with GQL Directives
-
new features: - directives: __DropNamespace__ , __InputTypeNamespace__ - __VisitType__ methods: __visitFieldNames__, __visitEnumNames__
breaking changes:
- visitTypeName signature changed from a -> Text -> Text to a -> Bool -> Text -> Text
- DEPRECATED: typeOptions , GQLTypeOptions, prefixInputs, dropNamespaceOptions, defaultTypeOptions
- TH may require importing InputTypeNamespace and Rename directive
fixes #570
- #769: generate code with code-gen.yaml
- 📦 server
- 👤 @nalchevanidze
-
- morpheus build whole project instead of one file and requires - WIP support of client code-gen
Bug Fixes
- #767: code-gen does not alters GraphQL names
- #768: fix: support singleton list input coercion
Minor Changes
- #770: Type class instance
- 👤 @nalchevanidze
-
client code-gen partially generates type classes
- #771: implement CodeGen Client Instances
- 📦 client
- 👤 @nalchevanidze
0.22.1
0.22.1 (2022-10-13)
Bug Fixes
- #763: fix(global): GHC-9 with Template Haskell 2.18.0
- 👤 @nalchevanidze
-
fixes #762
0.22.0
0.22.0 (2022-10-11)
Breaking Change
- #758: fix(server): field directives
-
📦 server
-
- `importGQLDocument`, `importGQLDocumentWithNamespace` uses relative path and Describe directive - deprecated `description`, `getDescriptions` . - fix/implements `VisitField`
-
New features
- #753: morpheus-graphql-server package
- 👤 @nalchevanidze
-
- Data.Morpheus.Server is now part of package `moprheus-graphql-server` - new package `moprheus-graphql-server`
- #754: feat: API Constraints
-
- `withConstraint` allows us to apply a constraint function to `App` which is checked before each request.
fixes #579
Bug Fixes
- #755: 613 internal context
-
- deprecated `unsafeInternalContext` use `asks` - `SelectionTree` exposes `getChildren`, `getChild`, `hasChild`, `getArguments` and `getArgument` - exposed directive `Describe` to describe fields, enums and types - deprecated `description` and `getDescriptions` in favour of `Describe { text ="some text" }` directive
- #756: fix: enum visitor
- 📦 server
- 👤 @nalchevanidze
-
- fix/implement visitor functionalities for `VisitEnum` typeclass - implements `Rename` directive
Minor Changes
- #757: type checked directive locations
- 👤 @nalchevanidze
-
- exposes `fieldDirective'` and `enumDirective'` using type checked template Haskell names
- #759: organize code gen
- 👤 @nalchevanidze
-
introduce package `morpheus-graphql-code-gen-utils`
- #760: Refactor code gen
0.21.0
0.21.0 (2022-10-01)
Breaking Change
- #743: Client supports https and ws
-
GQL client support executing http and WS requests depending to operation type (query, mutation, subscription).
- removed implicit constraint from and
- exposed: , , , , , ,
fixes #276
- #750: Custom Directives API
- 📦 server
- 👤 @nalchevanidze
-
- deprecated : GQLType.getDirectives
New features
- #747: Feat: Dummy Custom Directive Definitions
- 📦 server
- 👤 @nalchevanidze
- #749: Custom GQL Directives
Bug Fixes
- #744: feat: fix http headers
- 📦 client
- 👤 @nalchevanidze
Minor Changes
- #742: migrate to main
- 👤 @nalchevanidze
-
use main as default branch
- #748: Ormolu
0.20.1
0.20.1 (2022-08-26)
Minor Changes
- #733: Fix JSON instances for enums with a single variant.
-
Currently, the instances for an enum with a single filed are generated as
I attempted a fix in this PR, which instead generates the instances as
But notice that the ToJSON and FromJSON instances after the fix don't match.(Fixed in adbbcf0) Thoughts?
Also added a test for this bug.
- #740: fix linter
- #739: build(deps): bump @actions/core from 1.6.0 to 1.9.1
-
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.6.0 to 1.9.1.
Changelog
Sourced from
@actions/core
's changelog.1.9.1
- Randomize delimiter when calling
core.exportVariable
1.9.0
- Added
toPosixPath
,toWin32Path
andtoPlatformPath
utilities #1102
1.8.2
- Update to v2.0.1 of
@actions/http-client
#1087
1.8.1
- Update to v2.0.0 of
@actions/http-client
1.8.0
- Deprecate
markdownSummary
extension export in favor ofsummary
1.7.0
Commits
- See full diff in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting .
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- will rebase this PR
- will recreate this PR, overwriting any edits that have been made to it
- will merge this PR after your CI passes on it
- will squash and merge this PR after your CI passes on it
- will cancel a previously requested merge and block automerging
- will reopen this PR if it is closed
- will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- will set the current labels as the default for future PRs for this repo and language
- will set the current reviewers as the default for future PRs for this repo and language
- will set the current assignees as the default for future PRs for this repo and language
- will set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the Security Alerts page.
- Randomize delimiter when calling
0.20.0
0.20.0 (2022-05-03)
Breaking Change
- #722: Fix single variant enums
-
## Fix single variant enums
-
hides constructor of .
-
exposes value to build with undefined operations.
-
converts types with singe empty constructors to single value enums
fixes #721
-
- #727: Local/Global Type Generation
-
📦 client
-
## Local/Global Type Generation
Type generation is divided into local and global types. Global types should be declared only once and have no namespaces. These types are enums, scalars, inputs and can be used by multiple queries that have their own namespaced local type definitions.
Data.Morpheus.Client
Deprecated:
- gql
- defineByDocument
- defineByDocumentFile
- defineByDocumentFile'
- defineByIntrospection
- defineByIntrospectionFile
- defineByIntrospectionFile'
new:
- raw
- clientTypeDeclarations
- declareGlobalTypes
- declareLocalTypes
- declareLocalTypesInline
Fixes #696
-
- #729: clean up client interface
- 📦 client
- 👤 @nalchevanidze
-
- legacy client template Haskell functions declare only local types and should be supported by . declarations are namespaced by operation name. - new function which enables selectively import global types.
Minor Changes
- #723: Allow bytestring-0.11
- 👤 @TristanCacqueray
-
This change is necessary to build with ghc-9.2.2 from latest nixpkgs.
- #725: use yaml for stack config instead of json
- #726: use Next.js for documentations
- #728: client docs
0.19.3
0.19.3 (2022-04-02)
internal changes
0.19.2
update morpheus (#713)