HAP-NodeJS icon indicating copy to clipboard operation
HAP-NodeJS copied to clipboard

node-persist is outdated and using deprecated 'q' module

Open n0rt0nthec4t opened this issue 6 months ago • 5 comments

Analysis

node-persist library using being pinned at 0.0.12 uses a deprecated library, 'q'

npm warn deprecated [email protected]: You or someone you depend on is using Q, the JavaScript Promise library that gave JavaScript developers strong feelings about promises. They can almost certainly migrate to the native JavaScript promise now. Thank you literally everyone for joining me in this bet against the odds. Be excellent to each other.
npm warn deprecated
npm warn deprecated (For a CapTP with native promises, see @endo/eventual-send and @endo/captp)
  └─┬ [email protected]
    └─┬ [email protected]
      └── [email protected]

Expected Behavior

node-persist is current at v4 and nolonger relies on this deprecated model

node-persist would need updating

Steps To Reproduce

install hap-nodejs npm install hap-nodejs

Logs

npm warn deprecated [email protected]: You or someone you depend on is using Q, the JavaScript Promise library that gave JavaScript developers strong feelings about promises. They can almost certainly migrate to the native JavaScript promise now. Thank you literally everyone for joining me in this bet against the odds. Be excellent to each other.
npm warn deprecated
npm warn deprecated (For a CapTP with native promises, see @endo/eventual-send and @endo/captp)

Configuration

..

Environment

  • OS: rpm bookworm
  • Software: hap-nodejs 1.1.1
  • Node: 22.15.0
  • npm: 10.9.2

Process Supervisor

hb-service

Additional Context

No response

n0rt0nthec4t avatar Apr 30 '25 01:04 n0rt0nthec4t