jaydenseric / extract-files

A function to recursively extract files and their object paths within a value, replacing them with null in a deep clone without mutating the original value. FileList instances are treated as File instance arrays. Files are typically File and Blob instances.
https://npm.im/extract-files
MIT License
56 stars 23 forks source link

Deprecation Warning #24

Closed janedzumerko closed 2 years ago

janedzumerko commented 2 years ago

Hi, I am using gatsby v4 and when running my project I am getting this error.

[DEP0148] DeprecationWarning: Use of deprecated folder mapping
 "./public/" in the "exports" field module resolution of the package at
/Users/.../my-gatsby-project/node_modules/extract-file
s/package.json.

I believe it's coming from this module, which I don't use directly, but through some other module. Can I somehow fix the error in my repo, or it should be done in this repo ?

jaydenseric commented 2 years ago

With the current version of extract-files you won't get a deprecation warning:

https://github.com/jaydenseric/extract-files/blob/v11.0.0/package.json#L37

One of your dependencies has an out of date dependency on extract-files; you can run npm ls extract-files to figure out which one.