Releases: arma-events/vite-plugin-typed-graphql
Releases · arma-events/vite-plugin-typed-graphql
v3.0.0
Breaking changes
- Removed
codegenTSPluginConfig
plugin option in favor ofcodegenPluginConfigs.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
v2.4.0
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
Full Changelog: v2.2.1...v2.3.0
Fixed
- Use ESM instead of CommonJS script for
build-gql-declarations
binary
v2.2.1
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
v2.1.0
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
v1.0.3
Full Changelog: v1.0.2...v1.0.3
Changed
- Bump a couple of dependencies
- Add log on CLI completion
- disable fragment warning