SortableJS is a lightweight JavaScript library designed to enable drag-and-drop reordering of lists on modern browsers and touch devices, simplifying user interface interactions. Comparing version 1.12.0 with the previous stable version 1.10.2 reveals significant updates in tooling and package size.
Version 1.12.0 showcases a shift in the development environment, utilizing typescript for enhanced type safety and microbundle for optimized builds, resulting in a notably larger unpacked size of 888172 bytes compared to 1.10.2's 536002 bytes. This increase likely reflects the inclusion of type definitions and potentially expanded functionality. The newer version also incorporates colorette for colorful console output during development and npm-run-all for streamlined script execution.
In contrast, version 1.10.2 relied on tools like rollup, @babel/core, and uglify-js for bundling and minification. The older version's development dependencies also included testing frameworks and plugins like testcafe and related modules indicating a focus on end-to-end testing.
For developers, the move to TypeScript in version 1.12.0 offers improved code maintainability and reduced runtime errors, while the increased package size should be considered when optimizing web page load times. Both versions offer the core drag-and-drop functionality. Check the changelog if you are upgrading to see breaking changes. It is important to note how the underlying build and test infrastructure differ between the versions when contributing to the library.
The are not vulnerabilities for the version 1.12.0 of the package sortablejs