Skip to content

Latest commit

 

History

History
246 lines (133 loc) · 12.7 KB

CHANGELOG.md

File metadata and controls

246 lines (133 loc) · 12.7 KB

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

1.0.5 (2022-08-03)

1.0.3 (2022-08-02)

Bug Fixes

  • Scalars always being a string (b390f52)
  • Return values from enums are now strings instead of unparsed instances (436547a)
  • Generation of optional arguments vs optional returned values (8bc3131)

1.0.0 (2022-07-23)

⚠ BREAKING CHANGES

Features

  • Change selection method from builder functions to GraphQL-ish object notation, removing ReturnTypeBuilders. (a002ed6)

Bug Fixes

  • Initialization of the selectedFields property on the GraphtonQueryReturnsObject mixin now works (ebe4070)
  • ObjectFieldSelector types now has the _all property instead of the InputObject types (a7f2038)
  • returnType always being an empty string instead of the key of the lookup (53c82bf)

0.7.0 (2022-07-10)

⚠ BREAKING CHANGES

  • Use GraphtonSettings.headers and GraphtonSettings.graphqlEndpoint instead of GraphtonSettings.setDefaultHeaders and GraphtonSettings.setDefaultUrl

Bug Fixes

  • GraphtonSettings now uses static properties instead of a floating const (30787dd)

0.6.9 (2022-07-09)

Bug Fixes

  • Export GraphtonBaseQuery (e0507e4)

0.6.8 (2022-07-09)

Bug Fixes

  • Scalar Properties rendering full type definition instead of just the name (50bd7e5)
  • security: Force minimist ^1.2.6 (0308b50)

0.6.7 (2022-07-09)

Bug Fixes

  • Bug where enum was ignored in return type builders (31507e2)

0.6.6 (2022-05-01)

0.6.5 (2022-05-01)

Features

  • Adds (alias) types for scalars and customization of custom scalar types (ea75f69)

Bug Fixes

  • Add stacktrace to argify error (c947e4b)

0.6.4 (2022-01-23)

Features

  • Adds errors response as promise rejection (8c1296d)

0.6.3 (2022-01-15)

Features

  • Add exported types for the three different query types (ed675b2)
  • Added more usable exported types (13d91b8)

0.6.2 (2022-01-08)

Features

  • Add option to generate subscriptions factory (a3d3c41)
  • Add options to customise the execution functions (get/do) to your own liking (3102b17)

0.6.1 (2022-01-04)

Bug Fixes

  • Fix a bug where ReturnTypeBuilder.except did not grab from the available fields (8a5ea32)

0.6.0 (2022-01-04)

⚠ BREAKING CHANGES

  • refactor: Rename the following methods: with => select, withRelated => with, withoutRelated => without
  • deprecated: If you were using without() to remove fields from selection, flip your condition and use .select() to add the field instead of removing it later.

Features

  • deprecated: Removes the without() method from ReturnTypeBuilder (588e103)
  • refactor: Renamed with to select, withRelated to with and withoutRelated to without to be more in line with Laravel Eloquent (dbeec50)

0.5.0 (2021-12-17)

⚠ BREAKING CHANGES

  • Returned enums are now (typed) strings, but when they are input (args) they need to be an instance of the enum to ensure correct query building.

Features

0.4.1 (2021-12-16)

Bug Fixes

  • Fix from last version is now compiled (640d5c4)

0.4.0 (2021-12-16)

⚠ BREAKING CHANGES

  • ID scalars are now parsed as String

Bug Fixes

  • Parse GraphQL ID scalar to String instead of Int, following GraphQL spec (2440065)

0.3.0 (2021-12-14)

⚠ BREAKING CHANGES

  • Enums should now be called with its object - to ensure enums are correctly parsed they should be wrapped in a GraphtonEnum class

Features

  • Complex argument structures (0955879)
  • Generation for InputObjects (2b0119f)
  • Generation of Enums (d600972)

Bug Fixes

  • Less complex argument generic typing (77f032b)

0.2.5 (2021-12-12)

Bug Fixes

  • Less files are now packed with the package (ec7f6d8)

0.2.4 (2021-12-12)

Bug Fixes

  • Query argument - they now actually get set (0064601)

0.2.3 (2021-12-09)

Bug Fixes

  • Mutation queries not getting the same treatment from previous fixes to Query queries (fd9a031)

0.2.2 (2021-12-09)

Features

  • Add this returntype to returnFields (2578fbe)

Bug Fixes

  • Generate never arguments for queries without arguments and remove constructors for argumentless queries (6409e10)
  • Removes eslint-disable-next-line comments in generated file, which were left behind by the stubs (bba38b2)
  • Weirdness in top comment in generated file (606ef0a)

0.2.1 (2021-12-09)

  • Little more output flair ✨ (24a7dd0)

0.2.0 (2021-12-09)

⚠ BREAKING CHANGES

  • Query parameters are replaced for one object to make the parameters feel more like how arguments work in GraphQL. Mutation.createUser("Some name", 10) => Mutation.createUser({name: "Some name", age: 10}).

Features

  • Rework overrides to be part of the base class only using types (e998083)
  • Rework query arguments to be "named parameters" so they can be nullable in any order (makes it an object) (e998083)

Bugfixes

  • Type safety in some cases (e998083)

0.1.2 (2021-12-06)

Features

  • ci: "Draft release" workflow (9e2ae99)
  • Support for transpiling generated output automatically to pure javascript (2ff0966)

0.1.1 (2021-12-05)

Features

  • Adds function overloads to better type nested returns (d4477df)

0.1.0 (2021-12-05)

⚠ BREAKING CHANGES

  • GraphtonBaseQuery.do() now ONLY available for Mutatin type queries
  • GraphtonBaseQuery.got() now ONLY available for Query type queries
  • GraphtonBaseQuery.returnFields() not available anymore for non-OBJECT return types

Bug Fixes

  • Non-object type returns for queries (4cc5046)

0.0.3 (2021-12-04)

Features

  • Generator now leaves get() and do() for both queries and mutations (d4200cc)
  • Nested fields (49c6daa)

Bug Fixes

  • changes default name of graphton file to ./src/graphton.generated.ts (e1ec875)
  • throw an error when trying to generate a .js file - for now. (d1fb2a8)

0.0.2 (2021-12-02)

Features