Tailwind CSS version 2.1.0 introduces several key updates and improvements compared to its predecessor, version 2.0.4, making it a compelling upgrade for developers. The core description remains consistent: a utility-first CSS framework designed for rapid UI development. However, a closer look reveals important changes in dependencies that enhance functionality and performance.
Specifically, version 2.1.0 adds dependencies dlv, chalk@^4.1.0,fast-glob, html-tags, quick-lru, lodash.topath, normalize-path, chokidar, and parse-glob, reflecting optimizations in file watching and path handling, which directly impact build times and development workflow. These additions suggest a push towards more efficient processing of template files that use Tailwind classes.
On the development side, tailwindcss v2.1.0 now explicitly lists @tailwindcss/aspect-ratio as a devDependency, which indicates improved tooling support for aspect ratio utilities (if this has actually been added to the core in the new version), simplifying integration and configuration.
The jump in fileCount within the distribution from 210 to 431 and an increase in unpackedSize imply a significant expansion of the core library, potentially encompassing new features, utilities, or refinements to existing ones. The development Dependencies have also been updated. This version also publishes @babel/node. The package also now have postcss-cli, While both versions maintain the same peer dependencies for postcss and autoprefixer, the underlying dependency updates signal a more robust and performant framework promising a better developer experience.
The are not vulnerabilities for the version 2.1.0 of the package tailwindcss