hipstersmoothie / react-docgen-typescript-plugin

A webpack plugin to inject react typescript docgen information
MIT License
68 stars 28 forks source link

Inflight has been deprecated #93

Open anomiex opened 5 months ago

anomiex commented 5 months ago

Installing this package produces some deprecation warnings, particularly a scary one about inflight:

$ npm add @storybook/react-docgen-typescript-plugin
npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported

It looks like you could fix this by updating flat-cache to v4 or later. Based on the release notes the only breaking changes are dropping support for older versions of node; v4 supports 16+, and v5 supports 18+.

See also https://github.com/storybookjs/storybook/issues/27259, particularlyhttps://github.com/storybookjs/storybook/issues/27259#issuecomment-2161566408

aaronzshey commented 3 months ago

closed by #95