Skip to content

Latest commit

 

History

History
165 lines (106 loc) · 10.6 KB

CHANGELOG.md

File metadata and controls

165 lines (106 loc) · 10.6 KB

CHANGELOG

0.17.1

  • Use Pinst to fix postinstall scripts running when installing mst-gql

0.17.0

  • 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 or DEBUG 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

0.16.0

  • 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

0.15.0

  • 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

0.14.1

0.14.0

0.13.0

0.12.5

  • Fix running scaffold when installing with npm. #265 - jvcmanke

0.12.3

  • Add ability to handle errors yourself when using subscriptions. #261 - zpalin

0.12.1

  • Support using union types in actions in RootStore.base #257

0.12.0

  • 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

0.11.1

0.11.0

0.9.0 / 0.10.0

  • Enum's no longer get Model added to their name. This is a small breaking change from 0.8.0.

⚠️ Note

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.

0.8.0

  • 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.

⚠️ Note

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.

0.7.1

  • update how optional types are generated. 150

0.7.0

  • 🎉 add new code to fix circular ref issues in typescript code. #140 - godness84

0.6.0

  • 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

0.5.0

  • 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

0.4.1

0.4.0

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.

0.3.5

  • fix types on data returned from userQuery to match the shape of data. Thanks mattiasewers for #77 and #81

0.3.4

  • fix promise.finally issue that caused an error when used in react-native, see #79 by chrisdrackett

0.3.3

  • update localStorageMixin to support being used with react native, see #64 by chrisdrackett

0.3.0

0.2.0

  • support input types, see #36 by elie222
  • support interface and union field types, see #23 by dpnolte