jaredwray / flat-cache

A stupidly simple key/value storage using files to persist the data
MIT License
165 stars 30 forks source link

remove rimraf? #59

Closed jimmywarting closed 10 months ago

jimmywarting commented 3 years ago

rimraf comes with a large dependency: https://npmgraph.js.org/?q=flat-cache@3.0.4 maybe should consider dropping it and instead use nodes native rm, with recursive mode?

Would require node 14.14 doe...

Can make a PR if u like

royriojas commented 3 years ago

I always align with the latest version eslint supports, if they also support node > 14.14, then it might be possible.

Roy Ronald Riojas Montenegro

On Sat, Aug 14, 2021 at 12:39 PM Jimmy Wärting @.***> wrote:

rimraf comes with a large dependency: @.*** maybe should consider dropping it and instead use nodes native rm https://nodejs.org/dist/latest-v16.x/docs/api/fs.html#fs_fspromises_rm_path_options, with recursive mode?

Would require node 14.14 doe...

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/royriojas/flat-cache/issues/59, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABABWW3ZR4WVLXUNEAIKX3T43A5LANCNFSM5CFMG6JQ .

jimmywarting commented 3 years ago

it looks like you are only deleting files and not using any glob patterns, maybe it could be simplified to just use fs.unlinkSync(path)?

jaredwray commented 1 year ago

@jimmywarting - I am game to remove rimraf with just custom code to do the work.

jaredwray commented 1 year ago

@jimmywarting - going to do an minor update supporting 12 so we have that in place for legacy clients. Then the plan is to move this to >=14 over the next couple months. Will remove rimraf then.

jaredwray commented 1 year ago

@jimmywarting - The next published release going out (~30 days) will be a major version bum and moving to v14 as the minimum.

The-Code-Monkey commented 11 months ago

@jaredwray any update on this?

jaredwray commented 11 months ago

we had to wait on this but will make the change on it in January 2024 with a major version bump

The-Code-Monkey commented 11 months ago

Ah ok no worries.

On Tue, 12 Dec 2023, 16:58 Jared Wray, @.***> wrote:

we had to wait on this but will make the change on it in January 2024 with a major version bump

— Reply to this email directly, view it on GitHub https://github.com/jaredwray/flat-cache/issues/59#issuecomment-1852438751, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHOFWX23PRHG5V6WBVT2PCDYJCEMJAVCNFSM5CFMG6J2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBVGI2DGOBXGUYQ . You are receiving this because you commented.Message ID: @.***>

jaredwray commented 10 months ago

@The-Code-Monkey - major version release to set us up to make rimraf a devDependency moving forward and will add in our own delete functionality.

jaredwray commented 10 months ago

https://github.com/jaredwray/flat-cache/pull/87 has the removal of rimraf as a core dependency

jaredwray commented 10 months ago

We will release this in the upcoming month with our standard release schedule.