Skip to content

v0.2.0 - CLI / DX improvements

Choose a tag to compare

@msutkowski msutkowski released this 14 Jan 00:03
· 40 commits to next since this release

About this release

This release includes some DX improvements for CLI usage and starts reorganizing the overall infrastructure. We've added testing infrastructure and quite a few tests to make sure that future updates are stable.

CLI Updates

  • -- hooks exports hooks for React usage (thanks to @kahirokunn) 🎉NEW🎉
  • -- file allows you to specify a file to write the output to 🎉NEW🎉
    • Note: you can still omit this and pipe to a file if that is preferred
  • -- baseQuery - Allows you to pass a file and optional named export in
    • Example Usage:
      • --baseQuery nested/folder/customBaseQuery.ts:withAuthBaseQuery (looks for a named export of withAuthBaseQuery, throws if not found)
      • --baseQuery customBaseQuery.ts (uses the default export, throws if not found)

Misc

  • You can now pass a URL as well as a relative file to generate code from

Special thanks to @kahirokunn for helping roll these features out!

v0.1.0...v0.2.0