CodyTseng / nostr-relay-tray

a nostr relay for desktop
MIT License
61 stars 5 forks source link

Replace deprecated dependencies #26

Open erskingardner opened 3 months ago

erskingardner commented 3 months ago

When running npm install you get a warning about a few deprecations

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'd be great to replace them, especially the first, which sounds like it's got a memory leak.

CodyTseng commented 3 months ago

Thank you for your attention to this project and for reporting the issues you encountered! I have reviewed the dependencies of these packages, and the problems are primarily caused by eslint. I attempted to upgrade eslint, but encountered issues with installing eslint-plugin-react, which only supports eslint up to version 8. Fortunately, eslint is used during the development phase and does not affect the operation of nostr-relay-tray. I think we can wait for a while and see if the situation improves.

Who required inflight:

  nostr-relay-tray > @electron-toolkit/eslint-config-prettier > eslint > file-entry-cache > flat-cache > rimraf > glob > inflight@1.0.6
  nostr-relay-tray > @electron-toolkit/eslint-config-prettier > eslint-config-prettier > eslint > file-entry-cache > flat-cache > rimraf > glob > inflight@1.0.6
  nostr-relay-tray > @electron-toolkit/eslint-config-prettier > eslint-plugin-prettier > eslint > file-entry-cache > flat-cache > rimraf > glob > inflight@1.0.6
  nostr-relay-tray > @electron-toolkit/eslint-config-prettier > eslint-plugin-prettier > eslint-config-prettier > eslint > file-entry-cache > flat-cache > rimraf > glob > inflight@1.0.6
  nostr-relay-tray > @electron-toolkit/eslint-config-ts > @typescript-eslint/eslint-plugin > @typescript-eslint/parser > eslint > file-entry-cache > flat-cache > rimraf > glob > inflight@1.0.6
  nostr-relay-tray > @electron-toolkit/eslint-config-ts > @typescript-eslint/eslint-plugin > @typescript-eslint/type-utils > @typescript-eslint/utils > @eslint-community/eslint-utils > eslint > file-entry-cache > flat-cache > rimraf > glob > inflight@1.0.6
  nostr-relay-tray > @electron-toolkit/eslint-config-ts > @typescript-eslint/eslint-plugin > @typescript-eslint/type-utils > @typescript-eslint/utils > eslint > file-entry-cache > flat-cache > rimraf > glob > inflight@1.0.6
  nostr-relay-tray > @electron-toolkit/eslint-config-ts > @typescript-eslint/eslint-plugin > @typescript-eslint/type-utils > eslint > file-entry-cache > flat-cache > rimraf > glob > inflight@1.0.6
  nostr-relay-tray > @electron-toolkit/eslint-config-ts > @typescript-eslint/eslint-plugin > @typescript-eslint/utils > @eslint-community/eslint-utils > eslint > file-entry-cache > flat-cache > rimraf > glob > inflight@1.0.6
  nostr-relay-tray > @electron-toolkit/eslint-config-ts > @typescript-eslint/eslint-plugin > @typescript-eslint/utils > eslint > file-entry-cache > flat-cache > rimraf > glob > inflight@1.0.6
  nostr-relay-tray > @electron-toolkit/eslint-config-ts > @typescript-eslint/eslint-plugin > eslint > file-entry-cache > flat-cache > rimraf > glob > inflight@1.0.6
  nostr-relay-tray > @electron-toolkit/eslint-config-ts > @typescript-eslint/parser > eslint > file-entry-cache > flat-cache > rimraf > glob > inflight@1.0.6
  nostr-relay-tray > @electron-toolkit/eslint-config-ts > eslint > file-entry-cache > flat-cache > rimraf > glob > inflight@1.0.6
  nostr-relay-tray > electron-builder > app-builder-lib > @electron/universal > @electron/asar > glob > inflight@1.0.6
  nostr-relay-tray > electron-builder > app-builder-lib > electron-builder-squirrel-windows > archiver > archiver-utils > glob > inflight@1.0.6
  nostr-relay-tray > electron-builder > app-builder-lib > electron-builder-squirrel-windows > archiver > zip-stream > archiver-utils > glob > inflight@1.0.6
  nostr-relay-tray > electron-builder > dmg-builder > app-builder-lib > @electron/universal > @electron/asar > glob > inflight@1.0.6
  nostr-relay-tray > electron-builder > dmg-builder > app-builder-lib > electron-builder-squirrel-windows > archiver > archiver-utils > glob > inflight@1.0.6
  nostr-relay-tray > electron-builder > dmg-builder > app-builder-lib > electron-builder-squirrel-windows > archiver > zip-stream > archiver-utils > glob > inflight@1.0.6
  nostr-relay-tray > eslint > file-entry-cache > flat-cache > rimraf > glob > inflight@1.0.6
  nostr-relay-tray > eslint-plugin-react > eslint > file-entry-cache > flat-cache > rimraf > glob > inflight@1.0.6