A full version history of the @types/node-fetch package with size, number of distributed files and dependency evolution.
The @types/node-fetch package on npm provides TypeScript definitions for the popular node-fetch library, enabling developers to use it with strong typing and improved code maintainability. Early versions, from 0.0.1 to 0.0.4, focused on providing basic type definitions based on the whatwg-fetch standard. A significant shift occurred with version 1.6.5, targeting node-fetch v1.6.
Following versions, such as 1.6.6 through 1.6.9, introduced a dependency on @types/node, aligning the fetch definitions with the Node.js environment. The 2.x.x series, starting with 2.1.0, progressively refined these definitions, with incremental updates improving accuracy and incorporating new features or changes in node-fetch itself. Version 2.5.5 marked the introduction of form-data as a dependency, reflecting its increasing relevance in fetch requests. Then the dependencies upgrades continued, as with form-data ^4.0.0 in version 2.6.5.
Releases within the last year have been focused on maintaining compatibility and refining existing definitions. The most recent versions, 2.6.11, 2.6.12, and 2.6.13 continue the trend of small improvements. Interestingly, versions 3.0.0 to 3.0.3 switched to providing a stub implementation, indicating an evolution in how type definitions were handled, potentially due to node-fetch incorporating its own type definitions.