-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
util._extend API deprecated & punycode module deprecated #303
Comments
Tracking adding Characteristic issue here: #206 The other two sound new:
Will use this ticket to track the two new issues. |
Added the trace-deprecation flag and it says the
|
https://www.npmjs.com/package/psl
psl
npmjs.com
… On Dec 4, 2024, at 4:11 PM, David Carson ***@***.***> wrote:
Added the trace-deprecation flag and it says the psl? module is using it:
(node:901683) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
at node:punycode:3:9
at BuiltinModule.compileForInternalLoader (node:internal/bootstrap/realm:399:7)
at BuiltinModule.compileForPublicLoader (node:internal/bootstrap/realm:338:10)
at loadBuiltinModule (node:internal/modules/helpers:112:7)
at Function._load (node:internal/modules/cjs/loader:1100:17)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:219:24)
at Module.require (node:internal/modules/cjs/loader:1340:12)
at require (node:internal/modules/helpers:138:16)
at Object.<anonymous> (/var/lib/homebridge/node_modules/homebridge-weather-plus/node_modules/psl/index.js:5:16)
—
Reply to this email directly, view it on GitHub <#303 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AF4WTTDF7VLWIN2YSWOKBEL2D5VWTAVCNFSM6AAAAABSLUL6FOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMJYGU3DSMBTG4>.
You are receiving this because you authored the thread.
|
mathiasbynens/punycode.js#137
Update README to instruct how to alias the native one (due to Node 22 annoying warning) · Issue #137 · mathiasbynens/punycode.js
github.com
… On Dec 4, 2024, at 4:34 PM, Kevin Kenyon ***@***.***> wrote:
https://www.npmjs.com/package/psl
> On Dec 4, 2024, at 4:11 PM, David Carson ***@***.***> wrote:
>
>
> Added the trace-deprecation flag and it says the psl? module is using it:
>
> (node:901683) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
> at node:punycode:3:9
> at BuiltinModule.compileForInternalLoader (node:internal/bootstrap/realm:399:7)
> at BuiltinModule.compileForPublicLoader (node:internal/bootstrap/realm:338:10)
> at loadBuiltinModule (node:internal/modules/helpers:112:7)
> at Function._load (node:internal/modules/cjs/loader:1100:17)
> at TracingChannel.traceSync (node:diagnostics_channel:322:14)
> at wrapModuleLoad (node:internal/modules/cjs/loader:219:24)
> at Module.require (node:internal/modules/cjs/loader:1340:12)
> at require (node:internal/modules/helpers:138:16)
> at Object.<anonymous> (/var/lib/homebridge/node_modules/homebridge-weather-plus/node_modules/psl/index.js:5:16)
> —
> Reply to this email directly, view it on GitHub <#303 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AF4WTTDF7VLWIN2YSWOKBEL2D5VWTAVCNFSM6AAAAABSLUL6FOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMJYGU3DSMBTG4>.
> You are receiving this because you authored the thread.
>
|
Thank you! |
#303 Fix punycode warning. Used fix recommended in mathiasbynens/punycode.js#137
The instructions mathiasbynens/punycode.js#137 fix the puny code warning. I am unable to reproduce this warning: |
I am still not able to reproduce the warning, however, I think I found where the issue is.
I believe it is coming from It is mentioned here Unitech/pm2#5238 :
|
I see how this works. In the checkin comment if I put "Fix #xxx" issue number, it automatically closes the issue. As I have submitted a fix now, it should be closed. |
#150 Migrate off the deprecated request package and moved all URL loads to using the supported axios package. Tried to make as smaller changes as possible. Added a little more failure logging to enable better debugging. Found that punycode was only being used by request so I could remove the work around for it (#303) Found that debug package wasn't explicitly being listed as a dependency in package.json, though index.js requires it, so added that. Tested with valid tokens - all worked (only tested openweathermap 2.5 API) Tested with invalid tokens - got correct error messages, didn’t crash HomeBridge Tested with bad URLs - got correct error messages, didn’t crash HomeBridge Migrated weewx weather station, though I wasn’t able to test it.
naofireblade#303 Fix punycode warning. Used fix recommended in mathiasbynens/punycode.js#137
Fix naofireblade#303 Though I could not reproduce the warning, this should fix it.
naofireblade#150 Migrate off the deprecated request package and moved all URL loads to using the supported axios package. Tried to make as smaller changes as possible. Added a little more failure logging to enable better debugging. Found that punycode was only being used by request so I could remove the work around for it (naofireblade#303) Found that debug package wasn't explicitly being listed as a dependency in package.json, though index.js requires it, so added that. Tested with valid tokens - all worked (only tested openweathermap 2.5 API) Tested with invalid tokens - got correct error messages, didn’t crash HomeBridge Tested with bad URLs - got correct error messages, didn’t crash HomeBridge Migrated weewx weather station, though I wasn’t able to test it.
* Fix threshold triggers naofireblade#296 Fix issue with threshold triggers and WeatherUnderground. In 3.3.4, WeatherUnderground API call was modified and incorrectly return values in km, and km/h * Fix punycode warning naofireblade#303 Fix punycode warning. Used fix recommended in mathiasbynens/punycode.js#137 * Fix util._extend warning Fix naofireblade#303 Though I could not reproduce the warning, this should fix it. * Migrate off request package naofireblade#150 Migrate off the deprecated request package and moved all URL loads to using the supported axios package. Tried to make as smaller changes as possible. Added a little more failure logging to enable better debugging. Found that punycode was only being used by request so I could remove the work around for it (naofireblade#303) Found that debug package wasn't explicitly being listed as a dependency in package.json, though index.js requires it, so added that. Tested with valid tokens - all worked (only tested openweathermap 2.5 API) Tested with invalid tokens - got correct error messages, didn’t crash HomeBridge Tested with bad URLs - got correct error messages, didn’t crash HomeBridge Migrated weewx weather station, though I wasn’t able to test it. * Update CHANGELOG.md naofireblade#150 Update Changelog * Changes for Homebridge 2.0 naofireblade#301 Initial fixes to make the plugin work with Homebridge 2.0 Two basic changes: 1. Use of enums off the Characteristic class is no longer supported: Instead of const Units = Characteristic.Units; you will need to use const Units = api.hap.Units; Instead of const Formats = Characteristic.Formats; you will need to use const Formats = api.hap.Formats; Instead of const Perms = Characteristic.Perms; you will need to use const Perms = api.hap.Perms; 2. Change custom characteristics to be classes with constructors, rather than using the inherits() functionality. * Change colons for Modifier Letter Triangular Colon naofireblade#301 Homekit has special rules for naming items. They must start with an alpha or numeric value, then they can contain alphanumeric characters, space and apostrophe, and they must end with an alpha or numeric character. The created sensors are using colons for delimiters, which isn't allowed. However, according to Apple documentation alphanumeric characters consist of Unicode character sets L*, M* and N*. The Modifier Letter Triangular Colon falls into the L* set, so it should be legal to use. See homebridge/HAP-NodeJS#1079 for more detail. --------- Co-authored-by: dacarson <[email protected]>
[11/24/2024, 12:53:42 AM] [@danimal4326/homebridge-weather-plus] This plugin generated a warning from the characteristic 'Current Ambient Light Level': Characteristic not in required or optional characteristic section for service TemperatureSensor. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
(node:1189266) [DEP0060] DeprecationWarning: The
util._extend
API is deprecated. Please use Object.assign() instead.(Use
node --trace-deprecation ...
to show where the warning was created)(node:1189266) [DEP0040] DeprecationWarning: The
punycode
module is deprecated. Please use a userland alternative instead.The text was updated successfully, but these errors were encountered: