- .d.ts generation re-write using a new technique which is going to turn into its own library. The .d.ts files are not pretty. That's not a priority for me right now.
- Redwood uses prettier 3, and prettier 3 removes the sync API. This means we now have to operate entirely async. This is a breaking change from the sdl-codegen API, as you need to await the exposed public fns.
- There is a verbose option which provides info on the timings of the codegen.
- Big watch mode improvements
Pulled back this a lot because its over-reaching:
- When a resolver is simply a fn to a literal, narrow to that exact type in the codegen (instead of keeping the optional promise type)
-
Adds a watcher function to the return value of
createWatcher
which allows tools to be able to hook in and let SDL Codegen only re-generate what's needed. -
Adds a
verbose
flag which offers some timing logs, and watcher logs. -
Service file d.ts, and shared schema .d.ts' do not write to the file if the content hasn't changed to avoid triggering watchers.
-
Better handling of modern prettier versions
-
Improvements to codegen when using GraphQL types and interfaces in parent or return positions
-
When a resolver is simply a fn to a literal, narrow to that exact type in the codegen (instead of keeping the optional promise type)
- Better prettier detection (and fallback) for the generated files, re #14
- No changes
- Exports the types for GraphQL unions
- Adds support for generating unions in the shared file
- Fixes the references to enums in sdl args
- Service files do not trigger eslint warnings in (my) app OOTB
- Adds support for running prettier in the generated files.
- Fixes paths for the graphql types which come from
@redwoodjs/graphql-server
- Does not create empty service .d.ts files