nethesis / dev

Nethesis issue tracker
http://www.nethesis.it
4 stars 1 forks source link

Phonebookjs for nodejs 16 #6104

Closed gsanchietti closed 2 years ago

gsanchietti commented 2 years ago

Nodejs 6 has been replaces by nodejs 16 inside EPEL repository: https://bugzilla.redhat.com/show_bug.cgi?id=2041022

Phonebookjs already works with the new nodejs release but it reports the following warnings:

 Jan 20 09:19:30 nstest.nethserver.loc phonebookjs[1295]: (node:1295) [DEP0126] DeprecationWarning: timers.active() is deprecated. Please use timeout.refresh() instead.
 Jan 20 09:19:30 nstest.nethserver.loc phonebookjs[1295]: (Use `node --trace-deprecation ...` to show where the warning was created)
 Jan 20 09:19:30 nstest.nethserver.loc phonebookjs[1295]: (node:1295) [DEP0096] DeprecationWarning: timers.unenroll() is deprecated. Please use clearTimeout instead.
 Jan 20 09:19:30 nstest.nethserver.loc phonebookjs[1295]: (node:1295) [DEP0095] DeprecationWarning: timers.enroll() is deprecated. Please use setTimeout instead.

Proposed solution

Rebuild the package using nodejs 16 and update the dependencies to resolve the above warnings.

See also

https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2022-bf9c411793

nethbot commented 2 years ago

in 7.9.2009/nethesis-testing:

gsanchietti commented 2 years ago

Test case

nethbot commented 2 years ago

in 7.9.2009/nethesis-updates: