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)
- 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)
- Selection of the returning fields/opject has been vastly improved, but also breaks your current Graphton queries! Check (UPGRADING.md)[https://github.com/GraphtonLib/Graphton/blob/main/UPGRADING.md] to help upgrading vrom v0.7 to v1.
- Change selection method from builder functions to GraphQL-ish object notation, removing ReturnTypeBuilders. (a002ed6)
- 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)
- Use GraphtonSettings.headers and GraphtonSettings.graphqlEndpoint instead of GraphtonSettings.setDefaultHeaders and GraphtonSettings.setDefaultUrl
- GraphtonSettings now uses static properties instead of a floating const (30787dd)
0.6.9 (2022-07-09)
- Export GraphtonBaseQuery (e0507e4)
0.6.8 (2022-07-09)
- 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 where enum was ignored in return type builders (31507e2)
0.6.6 (2022-05-01)
0.6.5 (2022-05-01)
- Adds (alias) types for scalars and customization of custom scalar types (ea75f69)
- Add stacktrace to argify error (c947e4b)
0.6.4 (2022-01-23)
- Adds errors response as promise rejection (8c1296d)
0.6.3 (2022-01-15)
- Add exported types for the three different query types (ed675b2)
- Added more usable exported types (13d91b8)
0.6.2 (2022-01-08)
- 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)
- Fix a bug where ReturnTypeBuilder.except did not grab from the available fields (8a5ea32)
0.6.0 (2022-01-04)
- 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.
- 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)
- 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.
- Rework of Enum types (d2544b8)
0.4.1 (2021-12-16)
- Fix from last version is now compiled (640d5c4)
0.4.0 (2021-12-16)
- ID scalars are now parsed as String
- Parse GraphQL ID scalar to String instead of Int, following GraphQL spec (2440065)
0.3.0 (2021-12-14)
- Enums should now be called with its object - to ensure enums are correctly parsed they should be wrapped in a GraphtonEnum class
- Complex argument structures (0955879)
- Generation for InputObjects (2b0119f)
- Generation of Enums (d600972)
- Less complex argument generic typing (77f032b)
0.2.5 (2021-12-12)
- Less files are now packed with the package (ec7f6d8)
0.2.4 (2021-12-12)
- Query argument - they now actually get set (0064601)
0.2.3 (2021-12-09)
- Mutation queries not getting the same treatment from previous fixes to Query queries (fd9a031)
0.2.2 (2021-12-09)
- Add
this
returntype to returnFields (2578fbe)
- 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)
- 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})
.
- 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)
- Type safety in some cases (e998083)
0.1.2 (2021-12-06)
- ci: "Draft release" workflow (9e2ae99)
- Support for transpiling generated output automatically to pure javascript (2ff0966)
0.1.1 (2021-12-05)
- Adds function overloads to better type nested returns (d4477df)
0.1.0 (2021-12-05)
- 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
- Non-object type returns for queries (4cc5046)
0.0.3 (2021-12-04)
- Generator now leaves get() and do() for both queries and mutations (d4200cc)
- Nested fields (49c6daa)