Skip to content

Update node-persist dependency to remove deprecated q package #1107

Description

@tim-fin

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

Metadata

Metadata

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions