Skip to content

Releases: arma-events/vite-plugin-typed-graphql

v3.0.0

10 Jul 20:25
9b0d295
Compare
Choose a tag to compare

Breaking changes

  • Removed codegenTSPluginConfig plugin option in favor of codegenPluginConfigs.typescript

Migration Guide

Move the codegenTSPluginConfig config object to the typescript attribute in codegenPluginConfigs:

Note

The strictScalars, defaultScalarType and scalars options should be moved to the root of the plugin instead to make sure they also work for the typescript operations codegen plugin

// vite.config.ts

export default defineConfig({
    plugins: [
        typedGraphQL({
-            codegenTSPluginConfig: {
-                constEnums: true,
-                strictScalars: true,
-            }
+            strictScalars: true,
+            codegenPluginConfigs: {
+                typescript: {
+                    constEnums: true,
+                }
+            }
        }
    ]
})

Added

  • Added support for #import syntax in GraphQL files
  • Added strictScalars, defaultScalarType & scalars plugin options
  • Added codegenPluginConfigs plugin option to configure Typescript / Typescript Operations GraphQL-Codegen plugins

Fixed

  • Fails to work in dev mode in a vanilla typescript project (#1)

Full Changelog: v2.4.1...v3.0.0

v2.4.1

07 Jun 20:39
27c499f
Compare
Choose a tag to compare

Full Changelog: v2.4.0...v2.4.1

Changed

  • Updated most dependencies

v2.4.0

07 Jun 20:01
9243301
Compare
Choose a tag to compare

Full Changelog: v2.3.0...v2.4.0

Changed

  • Attempt to use plugin options from vite config for build-gql-declarations binary
  • Added codegenTSPluginConfig option to plugin options

v2.3.0

02 May 16:41
b0c7f8c
Compare
Choose a tag to compare

Full Changelog: v2.2.1...v2.3.0

Fixed

  • Use ESM instead of CommonJS script for build-gql-declarations binary

v2.2.1

22 Apr 20:50
25c5ffc
Compare
Choose a tag to compare

Full Changelog: v2.2.0...v2.2.1

This release does not include any changes. Its sole purpose is to set up provenance statements for npm.

v2.2.0

21 Nov 22:14
ba03327
Compare
Choose a tag to compare

Full Changelog: v2.1.0...v2.2.0

Changed

  • Support Vite v5 alongside v4

v2.1.0

07 Oct 20:49
b18376b
Compare
Choose a tag to compare

Full Changelog: v2.0.0...v2.1.0

Fixed

  • Fix schema import in declaration files on windows systems

Changed

  • Bump a couple of dependencies

v2.0.0

31 May 07:08
Compare
Choose a tag to compare

Full Changelog: v1.0.3...v2.0.0

Changed

  • Support Vite v4

v1.0.3

25 Feb 22:46
Compare
Choose a tag to compare

Full Changelog: v1.0.2...v1.0.3

Changed

  • Bump a couple of dependencies
  • Add log on CLI completion
  • disable fragment warning

v1.0.2

08 Feb 09:29
Compare
Choose a tag to compare

Full Changelog: v1.0.1...v1.0.2

Changed

  • Bump a couple of dependencies