@babel/preset-typescript 7.22.5 introduces notable updates compared to version 7.21.5, primarily focusing on aligning core dependencies. Developers will appreciate the synchronized versioning of key dependencies like @babel/plugin-syntax-jsx, @babel/helper-plugin-utils, @babel/plugin-transform-typescript, and @babel/plugin-transform-modules-commonjs. All these are now bumped to version 7.22.5, offering a more cohesive and potentially more stable development experience. The upgrade to @babel/helper-validator-option (from 7.21.0 to 7.22.5) could include new validation features or bug fixes related to option handling, beneficial for those customizing the preset.
While devDependencies such as @babel/core are also updated to 7.22.5, the significant change is the update in the core dependencies which implies that the package has been updated to work smoothly with other babel plugins. Developers should test to make sure that their other dev dependencies work correctly with this new version.
The package size has slightly increased, with fileCount rising from 5 to 7 and unpackedSize growing from 17787 to 25664 bytes, suggesting additional files or more extensive code within the newer version. This might reflect new features, improved documentation, or more comprehensive test coverage. Furthermore, the upgrade brings the package inline with the latest Babel ecosystem improvements of June 2023, ensuring compatibility. Developers should assess these changes against their current projects, update dependencies accordingly, and test for any breaking changes before deploying.
The are not vulnerabilities for the version 7.22.5 of the package @babel/preset-typescript