Joi version 17.3.0 introduces subtle but potentially impactful updates compared to version 17.2.1, primarily affecting its internal dependencies and development tooling. The core description of the package remains consistent: "Object schema validation," highlighting Joi's continued focus on data validation within JavaScript applications.
A key difference lies in the @sideway/formula dependency. Version 17.3.0 upgrades this dependency from 2.0.0 to 3.0.0. While seemingly minor, dependency updates can introduce new features, bug fixes, or even breaking changes within the formula evaluation logic. Developers should review the @sideway/formula changelog to understand the specifics of this update and ensure compatibility with their existing Joi schemas. Another new dependency is @sideway/address which was not available in the previous version
The devDependencies also reveal some changes. Version 17.3.0 updates @hapi/lab from 23.x.x to 24.x.x and adds typescript as 4.0.x a dependency. These indicate improvements in Joi's testing framework and development workflow, potentially leading to more robust and reliable validation.
Finally, the dist metadata shows a slight increase in unpackedSize from 512556 to 515922 in version 17.3.0. This suggests a minor increase in the package's footprint, likely due to the updates in dependencies and the addition of typescript. The releaseDate also confirms a more recent publication date for version 17.3.0, making it the newer and generally preferred version for most use cases. Always check the package details to understand if the changes affect directly your code.
The are not vulnerabilities for the version 17.3.0 of the package joi