Rollup-plugin-node-globals is a handy tool for developers using Rollup to bundle their Node.js code for the browser. It essentially bridges the gap between Node.js's global environment and the browser's, injecting critical globals that Browserify provides, ensuring compatibility and preventing common errors. This allows you to seamlessly include Node.js modules that rely on these globals in your browser projects using Rollup.
Version 1.0.1, a minor update from version 1.0.0, maintains the same core functionality – injecting necessary globals. The crucial difference lies in the release date and, likely, some under-the-hood improvements or bug fixes. While the package.json doesn't explicitly state the precise nature of these changes, the short timeframe between the releases (roughly an hour and a half) suggests they were intended to quickly address an immediate issue or to refine the initial 1.0.0 release. Both versions share the same dependencies, including rollup-plugin-inject for efficient code injection, plus development dependencies like babel-preset-es2015-rollup, Browserify, Mocha, Rollup itself, and rollup-plugin-babel for building & testing.
For developers, the choice between 1.0.0 and 1.0.1 might depend on their specific needs and risk tolerance. Generally, it's advisable to use the latest version (1.0.1) as it likely incorporates improvements. However, if 1.0.0 is already integrated and functioning correctly, and the project is sensitive to unexpected changes, carefully considering the update is essential before introducing 1.0.1. This plugin is licensed under MIT and authored by Calvin Metcalf.
The are not vulnerabilities for the version 1.0.1 of the package rollup-plugin-node-globals