- Fixes
onError
functionality when using subscriptions. #262 - zpalin - Fix scaffolding on npm install. #265 - jvcmanke
- Add
clearData
option to query. #275 - mattiasewers - Fix
Scaffolding references unknown classes
error. #277 - beepsoft
- Support using union types in actions in RootStore.base #257
- Suppot for non-object return values. These currently are not stored in the store automatically. #246
- Add
Type
suffix to MST enum types to avoid clash with typescript value #238 - beepsoft
- Reset query error after successful query #231 - reekris
- Add typescript enums for actions #233 - special-character
- Adds support for --header flag to CLI. #209 - mwarger
- Update
localStorageMixin
to prevent stale local data. #225 - special-character
- Enum's no longer get Model added to their name. This is a small breaking change from 0.8.0.
mst-gql now generates model names matching JS conventions by default. If you are upgrading from a pre-0.8.0 release this may result in different names being geneated when you scaffold. If you don't wish to update your names or want to wait, use the new --dontRenameModels
option to keep your current model names.
- Allow LIST to be optional in TS. 174 - Aryk
- Generate model names that match JS conventions by default, add escape hatch option to opt-out - 155 - beepsoft
- Better error handling around reserved model names. 192 - Matth10
- Remove example project
yarn.lock
files to reduce the "github auto PR" noise.
mst-gql now generates model names matching JS conventions by default. If you are upgrading from a pre-0.8.0 release this may result in different names being geneated when you scaffold. If you don't wish to update your names or want to wait, use the new --dontRenameModels
option to keep your current model names.
- update how optional types are generated. 150
- add a new
ModelBase
file that all models extend that can be edited. #106 - zenflow - CLI alert on unexpected files in
models
folder. #113 - RXminuS - Use undefined to mean not loaded, use null to mean gql null #102 - zenflow
- Update example 5. #93 thanks zenflow!
- Stop generating input types when format is
js
. #96 - Drop the
raw
option for queries #103 - zenflow - Deduplicate identical concurrent query requests #100 - zenflow
- stop removing related fields with args. #86 by beepsoft
- further updates on type for
data
fromuserQuery
#89 by mattiasewers
- update example 1, 2, 3, and 5 so they run #69 by mweststrate / chrisdrackett
- Fixed generated types for all queries and helpers #69 by mweststrate
- Fixed generation of input types #69 by mweststrate
- Fixed generation for recursive types #69 by mweststrate
Note
This release has changed how the user editable model files are generated when using typescript.
See https://github.com/mobxjs/mst-gql/pull/76/commits/6d98650f82934fdd47a6cf998119560ca306823c for an example of migrating these files to the new version.
- fix types on
data
returned fromuserQuery
to match the shape of data. Thanks mattiasewers for #77 and #81
- fix
promise.finally
issue that caused an error when used in react-native, see #79 by chrisdrackett
- update
localStorageMixin
to support being used with react native, see #64 by chrisdrackett
- switch from
maybe
tomaybeNull
to better match graphql standards, see #52 by pvpshoot - add better support for enums in typescript #56, #58 by chrisdrackett
- support for outputting into folders vs. flat #60 by Zyc0017
- added support for using a config file #14 by JoviDeCroock