Skip to content

Releases: morpheusgraphql/morpheus-graphql

0.24.1

22 Oct 16:37
611561d
Compare
Choose a tag to compare

0.24.1 (2022-10-22)

Bug Fixes

0.24.0

21 Oct 22:07
578a7b0
Compare
Choose a tag to compare

0.24.0 (2022-10-21)

Breaking Change

  • #773: disable automatic __typename selection and fix client runtime errors connected to it
    • 📦 client

    • 👤 @nalchevanidze

    • - 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.

      fixes #687
      fixes #509

  • #776: generate single type for fragment

Bug Fixes

  • #774: no partial fields
    • 📦 client

    • 👤 @nalchevanidze

    • - type name and constructor generation is optimised - union variants a standalone types instead of constructor variants - generated code is properly formated!

      fixes #531

Minor Changes

  • #775: Cli check
    • 👤 @nalchevanidze
    • - morpheus CLI: now support command __check__. which will check if your generated files are outdated.

0.23.0

17 Oct 20:50
76cef01
Compare
Choose a tag to compare

0.23.0 (2022-10-17)

Breaking Change

  • #766: feat: replace Type Options with GQL Directives
    • 👤 @nalchevanidze

    • 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

Minor Changes

0.22.1

13 Oct 20:43
51566f0
Compare
Choose a tag to compare

0.22.1 (2022-10-13)

Bug Fixes

0.22.0

12 Oct 08:16
40c3b25
Compare
Choose a tag to compare

0.22.0 (2022-10-11)

Breaking Change

  • #758: fix(server): field directives
    • 📦 server

    • 👤 @nalchevanidze

    • - `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
    • 📦 core, app

    • 👤 @nalchevanidze

    • - `withConstraint` allows us to apply a constraint function to `App` which is checked before each request.

      fixes #579

Bug Fixes

  • #755: 613 internal context
    • 👤 @nalchevanidze

    • - 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

      fixes #613
      fixes #642

  • #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

01 Oct 12:04
9a88bec
Compare
Choose a tag to compare

0.21.0 (2022-10-01)

Breaking Change

  • #743: Client supports https and ws
    • 📦 client, server

    • 👤 @nalchevanidze

    • 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

New features

  • #747: Feat: Dummy Custom Directive Definitions
  • #749: Custom GQL Directives
    • 📦 server

    • 👤 @nalchevanidze

    • - provides api for definition a custom schema directive. type classes , , , - enables using directives on schema elements with - enables using default directive with Haskell type .

      fixes #377

Bug Fixes

Minor Changes

0.20.1

27 Aug 10:05
f9684d1
Compare
Choose a tag to compare

0.20.1 (2022-08-26)

Minor Changes

  • #733: Fix JSON instances for enums with a single variant.
    • 👤 @pranaysashank

    • 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
    • 👤 @dependabot

    • 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 and toPlatformPath 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

      1.7.0

      Commits

      Dependabot compatibility score

      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.

0.20.0

03 May 19:54
918c8b0
Compare
Choose a tag to compare

0.20.0 (2022-05-03)

Breaking Change

  • #722: Fix single variant enums
    • 👤 @nalchevanidze

    • ## Fix single variant enums
      1. hides constructor of .

      2. exposes value to build with undefined operations.

      3. converts types with singe empty constructors to single value enums

      fixes #721

  • #727: Local/Global Type Generation
    • 📦 client

    • 👤 @nalchevanidze

    • ## 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

0.19.3

02 Apr 12:15
7f21733
Compare
Choose a tag to compare

0.19.3 (2022-04-02)

internal changes

0.19.2

02 Apr 00:38
98822d9
Compare
Choose a tag to compare
update morpheus (#713)