Skip to content

Latest commit

 

History

History
218 lines (129 loc) · 3.8 KB

CHANGELOG.md

File metadata and controls

218 lines (129 loc) · 3.8 KB

Changelog

3.1.6

  • Update deps by @acro5piano
  • Remove typescript as a peer dependency by @kevinsimper in #344

3.1.5

New Features

  • Update deps by @acro5piano
  • Fix index.test.ts link in README.md by @vkrol in #267
  • Export all files by @acro5piano
  • Replace husky with simple-git-hooks by @acro5piano in #334

New Contributors

  • @vkrol made their first contribution in #267

Full Changelog: https://github.com/acro5piano/typed-graphqlify/compare/v3.1.4...v3.1.5

3.1.4

  • Update deps by @acro5piano

3.1.2

  • Update deps by @acro5piano

3.1.1

  • Keep comments in compiled code by @acro5piano

3.1.0

  • Parameter Arrays #209 by @alewgbl

3.0.3

  • Bump deps by @acro5piano

3.0.2

  • Add QueryObject and CompiledResult to index.ts by @GSA05
  • Bump deps by @acro5piano

3.0.1

  • Fix null in params by @acro5piano
  • Bump deps by @acro5piano

3.0.0

⚠ Breaking: query, mutation, subscription now returns CompiledResult (not returns GraphQL string).

interface CompiledResult<D, V> {
  toString: () => string
  data: D
  variable: V
  result: { data: D }
}

Migration Guide

2.x

const queryObject = {
  user: {
    id: types.number,
    name: types.string,
    bankAccount: {
      id: types.number,
      branch: types.string,
    },
  },
}

const queryString = query('GetUser', queryObject)

type Result = typeof queryObject

3.x

const q = query('GetUser', {
  user: {
    id: types.number,
    name: types.string,
    bankAccount: {
      id: types.number,
      branch: types.string,
    },
  },
})

const queryString = q.toString()

type Result = typeof q.data

2.4.2

  • Bump deps by @acro5piano

2.4.1

  • Bump deps by @acro5piano

2.4.0

  • Allow render a single fragment by @kevinsimper

2.3.0

  • Array enum support by @acro5piano
  • Make enum to accept both ValueOf<T> and keyof T by @acro5piano

2.2.3

  • Fix vulnerability, and typing by @acro5piano

2.2.2

  • Use ValueOf<T> instead of keyof T in types.enum by @acro5piano

2.2.1

  • Fix rollup config: exluding 'tslib' by @acro5piano

2.2.0

  • union fragment support by @luvies

2.1.1

  • Fix function export by @acro5piano

2.1.0

Features

  • Fragment support by @luvies

Breaking changes

  • query, mutation, subscription are now top-level export by @acro5piano
  • Replace __params with params helper by @luvies

For more detail, please see #54

2.0.11-alpha

  • Add rawString helper function by @Zzzen

2.0.10-alpha

  • Refactor rendering GraphQL
  • Fix #41

All by @luvies

2.0.9-alpha

  • fix Using a scalar in an array outputs incorrect GraphQL @acro5piano and @luvies

2.0.8-alpha

  • Bugfix: Nested fragment objects by @luvies

2.0.7-alpha

  • Add npmignore files by @acro5piano

2.0.6-alpha

  • Add custom scalar property by @luvies and @acro5piano

2.0.5-alpha

  • Support inline fragment by @acro5piano

2.0.4-alpha

  • Support for nested params added by @mlegenhausen

2.0.3-alpha

  • Add type inference to query alias by @acro5piano

2.0.2-alpha

  • add alias feature by @YardWill

2.0.1-alpha

  • Delete type helper and fix readme by @acro5piano

2.0.0-alpha

  • Split the code and Overload the query function by @YardWill

1.0.1

  • Adds a proper ES6 entry point by Jiri Spac @capaj
  • Removed superfluous TS strict options by @arjunyel

1.0.0

  • Instead of passing the type of the graphql operation as first parameter typed-graphqlify now has methods on the graphqlify exported object by Jiri Spac @capaj

0.2.0

  • First stable release by Kazuya Gosho @acro5piano