- Fix webscoket client initialization
- Update dependencies
- remove fs import from extract-files to support turbopack nextjs 15
- Update dependencies
- Update dependencies
- Update prettier to v3 in sdk cli generation
- Update CI
- Update tests
- Fix build
- Update axios to 1.2.4 and make types of axios request config and headers less strict
- Update dependencies
- No notable changes
- Fix terser compress if set to false for standalone build
- Fix file upload form data headers when files are present in request
- replace uglifyjs with terser
- extend standalone bundle option to support name and compress
standalone-name
andstandalone-compress
- Fix security issue with
terser
dependency - Improve build test artifacts
- Added browser standalone bundle using browserify
- Added e2e demo app to test sdk generation, react integration and browser bundle
- Upgrade axios
- Update dependencies
- Refactor code ( prettier )
- Refactor tests
- Downgrade axios to 0.27.2 as there is some issues: axios/axios#5005
- Upgrade dependencies
- Upgrade axios to 1.0.0
- Upgrade dependencies
- Fix scalarsMap when index is 0
- Fix typemap when index is 0
- Update package react-query to @tanstack/react-query
- Add Client Interface Generic for Fetcher Instance ( FI ) and Request Config ( RC )
- Added 2 parameters to the generator to make it easy when you generate multiple clients ( as sometime typescript mixes types and interfaces ):
- '-ms' methodSuffix (default: '') to suffix generated method names ( createClient > createClient_ms )
- '-mp' methodPrefix (default: '') to prefix generated method names ( createClient > methodPrefix_createClient )
Update packages
- graphql-ws
- ws Update readme Update website docs Update keywords in package.json
Rename library to gqlts
Fix subscription parameters
Added example usage of subscription with demo graphql server
Fix optional parameters in client
Allow re-assigning client fetcherMethod Use client.fetcherMethod from client to fetch the data
Expose axios client outside the library to enable adding interceptors Replace fetch with axios Fix tests Fix integration tests and try clients Remove chaining Adding ability to pass config to axios in requests Fix batcher to use axios
Change response format to be {data: {}, errors: [], extensions: {}} Replace fetch with axios Fix tests Fix integration tests and try clients Remove chaining Adding ability to pass config to axios in requests Fix batcher to use axios
Upgrade all dependency packages Migrate from graphql-subscriptions-transport-ws to graphql-ws General Improvement and enhancement
Fixed problem generating interfaces without any implementation
Fixed problem generating interfaces without any implementation
Support for more than one : in -S option (by @boredland)
Fixed declaration files generations for enums (by @DanielRose)
Add as const
on enum objects to not use type object values as strings
Added enumGraphqlEnumName
exports to get access to enum strings
- Query any interface on an union, not only the common ones
- Fixed __typename always optional
- Do not query falsy values when using __scalar
- Ability to query interfaces that a union implements https://github.com/remorses/gqlts/issues/44
gqlts-cli
package becomes@gqlts/cli
gqlts-runtime
package becomes@gqlts/runtime
- headers can be an async function
- you can now add an operation name to a query using
__name
- only generate commonjs code by default (using require and module.exports) to prevent people from importing from
index.esm
, use the--esm
flag if you want to use esm - response types only include requested fields
- added built in batching (see https://gqlts.vercel.app/docs/usage/batching-queries)
--sort
flag- generated
types.json
now istypes.js
- smaller
types.js
and hence smaller bundle size - made the website page converter to convert from graphql queries to gqlts code: https://gqlts.vercel.app/converter
- custom
fetcher
now has type(operation: GraphqlOperation | GraphqlOperation[], ) => Promise<ExecutionResult>
to support built in batching - added a
@gqlts/cli/printer
module to print a graphql query AST to gqlts code