Animated Scroll To version 2.0.0 marks a significant upgrade from version 1.3.1, introducing key improvements for developers looking to implement smooth, animated scrolling in their web projects. While both versions offer simple, plain JavaScript animated window scrolling functionality, the newer version boasts enhanced development tooling and a larger overall package size, suggesting expanded features or more robust testing.
The most notable difference is the introduction of development dependencies in version 2.0.0, including Cypress for end-to-end testing, TypeScript for improved code maintainability and type safety, concurrently for efficient running of multiple development tasks, and Parcel Bundler for streamlined asset bundling. This indicates a more mature development process focused on code quality and ease of use for contributors.
The increase in fileCount (from 6 to 11) and unpackedSize (from 27131 to 41571 bytes) in version 2.0.0 further suggests the addition of new features, improved documentation, or more extensive test suites. If you are a developer that values a more modern workflow with testing and type checking version 2.0.0 is the best version. While it's not explicitly stated what new functionality has been added, the inclusion of TypeScript hints that the codebase may have been refactored for better organization and scalability. As version 1.3.1 doesn't have any dev dependencies it might be lighter when including it in old projects that don't need the extra functionalities. Ultimately, the choice between versions will depend on your project's specific needs and priorities.
The are not vulnerabilities for the version 2.0.0 of the package animated-scroll-to