Gatsby-plugin-typescript offers seamless TypeScript integration for Gatsby projects, streamlining development with type safety and modern JavaScript features. Version 4.21.0, released on August 16, 2022, builds upon the foundation laid by version 4.20.0, released roughly two weeks prior, on August 2, 2022, providing incremental improvements for Gatsby developers using TypeScript. Both versions share core dependencies for Babel transformation, including presets and plugins necessary for numeric separators, optional chaining, and nullish coalescing operators. They also share peer dependencies requiring Gatsby version 4.0.0-next or higher, ensuring compatibility with modern Gatsby projects.
A key difference lies in the dependency versions: babel-plugin-remove-graphql-queries is updated from version 4.20.0 to 4.21.0 in the newer release, potentially including bug fixes and performance improvements related to GraphQL query removal during the build process, therefore resulting in builds faster and also smaller.
Moreover, the devDependencies section shows an interesting change; babel-preset-gatsby-package saw increase from version 2.20.0 to 2.21.0, this is important because often Gatsby’s packages are connected, and it could imply under-the-hood improvements. The unpacked archive size also grew but the difference is barely noticeable. Developers are recommended to upgrade to the latest version for optimal performance and access to the newest features and resolved issues.
The are not vulnerabilities for the version 4.21.0 of the package gatsby-plugin-typescript