Summary
hap-nodejs depends on node-persist@0.0.12, which in turn depends on the deprecated q@1.1.2 promise library. This causes deprecation warnings during installation.
Current Dependency Chain
hap-nodejs@1.2.0
└── node-persist@0.0.12
└── q@1.1.2 (deprecated)
Deprecation Message
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.
Suggested Fix
Update to node-persist@4.x which:
- Uses native Promises instead of Q
- Has been actively maintained
- Dropped the
q dependency entirely
Note: node-persist 4.x has API changes from 0.x, so this would require updating the storage code in hap-nodejs accordingly.
Environment
- hap-nodejs version: 1.2.0 (latest)
- node-persist version: 0.0.12 (pinned)
- Node.js: 22.x
References
Summary
hap-nodejsdepends onnode-persist@0.0.12, which in turn depends on the deprecatedq@1.1.2promise library. This causes deprecation warnings during installation.Current Dependency Chain
Deprecation Message
Suggested Fix
Update to
node-persist@4.xwhich:qdependency entirelyNote:
node-persist4.x has API changes from 0.x, so this would require updating the storage code in hap-nodejs accordingly.Environment
References