...
- Fix tests, upgrade minor versions of mobx, mobx-state-tree
- Use Pinst to fix
postinstall
scripts running when installing mst-gql
- Passing the
--header
flag multiple times is now supported - Download remote schemas using a POST request instead of Apollo
- Add a centralized logger with colour support, toggleable via
--disableLogColors
flag or equivalent config option - Add a debug mode, toggleable by the
--debug
flag orDEBUG
environment variable - Add a
--help
flag and improve the existing help dialog - Improve CLI experience when user provides no schema
- Re-add support for GraphQL 14 and 15
- Upgrade to React 18
- Switch CI from CircleCI to GitHub Actions
- Add support of type import to --fieldOverrides #375 - dmytro-shpak
- Update next.js mobx, mobx-react and mobx-state-tree versions #376 - Amosel
- Scaffold nullable types as "(type | null)" #378 - smokku
- Add support for
graphql-ws
(subscriptions only) #381 - ChrisABryant
- Upgrade graphql package #367 - beepsoft
- Add --dynamicArgs option to generate operation arguments dynamically #363 - beepsoft
- Field param generation fix #361 - beepsoft
- Add failing scaffolding example/test for the problem mentioned in #349 #360 - beepsoft
- Fix handling of union of root types. #348 - smokku
- Introduced support for AbortController in GraphQL HTTP requests #355 - wtuminski
- Added support for field parameters #349 - smokku
- Package version upgrades, fixed TS errors, other bugs #337 - jkolyer
- Fix interface generation/references. #288 - special-character
- Fix ts-node-dev option in example. #293 - yasinuslu
- Add MobX 6 Support. #294 - BradenM
- Fix for comma between lines importing union types in RootStore.Base.ts. #300 - emckay
- Expose Clients for later initiation. #303 - BradenM
- Bump node-notifier from 8.0.0 to 8.0.1. #307 - dependabot
- Fix broken snapshot. #315 - emckay
- 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