Tsup 8.5.0 introduces some notable changes compared to the previous stable version, 8.4.0, primarily revolving around dependency management within this zero-config TypeScript bundler powered by esbuild. While both versions share a core set of dependencies crucial for their functionality — including esbuild, rollup, and sucrase for efficient bundling and transformation, and tools like cac, consola and debug for CLI argument parsing, logging and debugging — version 8.5.0 makes a relevant fix by adding fix-dts-default-cjs-exports as dependency. This dependency likely addresses challenges related to the correct handling of default exports in CommonJS modules when generating TypeScript definition files, which can improve interoperability with different JavaScript environments.
In the *devDependencies*, both versions use a comprehensive suite of tools for development, testing, and building features. This included testing frameworks like vitest with tools like @swc/core for speed, while type-checking improvements make use of typescript version 5.7.3, alongside utilities like ts-essentials offering utilities for better quality and types. The package also contains things like prettier, sass, rollup-plugin-dts, svelte and svelte-preprocess to deliver the maximum experience to the user.
Both versions list similar peer dependencies such as postcss, typescript, @swc/core, and @microsoft/api-extractor. This indicates a consistent external API and integration points for developers using tsup to bundle their libraries, ensuring compatibility with common tools in the TypeScript ecosystem. Overall, upgrading to version 8.5.0 provides developers with stability and better quality by resolving previous issues.
The are not vulnerabilities for the version 8.5.0 of the package tsup