Releases: GraphtonLib/Graphton
Releases · GraphtonLib/Graphton
v0.2.3
0.2.3 (2021-12-09)
Bug Fixes
- Mutation queries not getting the same treatment from previous fixes to Query queries (fd9a031)
v0.2.2
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)
v0.2.1
0.2.1 (2021-12-09)
Extra
- Little more output flair ✨ (24a7dd0)
v0.2.0
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)
v0.1.2
0.1.2 (2021-12-06)
Features
- ci: "Draft release" workflow (9e2ae99)
- Support for transpiling generated output automatically to pure javascript (2ff0966)
v0.1.1
0.1.1 (2021-12-05)
Features
- Adds function overloads to better type nested returns (d4477df)
v0.1.0
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)
v0.0.3
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)