-
Notifications
You must be signed in to change notification settings - Fork 22
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
Removal of Homebridge dependency #49
Comments
Shall I open a PR moving the utils module to normal dependencies? |
I did some further inspecting.
So I'd highly appreciate if we could separate this from homebridge, as if I understand it correctly thats the main purpose of |
Once this is complete I can do it in unifi-access as well🙂 |
Dependencies are a fact of life in the node package world. 😄 I have no plans to remove the dependency on my utility library - it explicitly exists to reduce duplication across a variety of things I do, and will continue to build into my libraries in the future. Your issue, and the PR to resolve it, explicitly create more redundancy and maintenance issues for me - the package author, creator, and maintainer. That’s not okay. 😄 TL;DR: this behavior is by design and not going anywhere. |
Hello @hjdhjd, While I understand the intention to reduce maintenance by outsourcing e.g. utils, those still should not be a complete truckload but rather compact. If I understand you correctly this should be independent of home bridge/home bridge-unifi-protect.
So the main problem here might be your utils library not being split correctly:
Which could result in following usage:
Especially if you consider 2 of those 3 types you use from the library are from a different library as well. The error I mentioned opening this issue can of course be prevented at api consumer with e.g. theses options:
Both of these options should (in my opinion) not be "forced upon" the consumer of a library... Please do not missjudge my comments as negative/harsh but rather constructive feedback. I'm an open source developer myself with a comparable set of libraries (Hoffmation-Base, Hoffmation-Express, homebridge hoffmation and hoffmation-iOS) so I might be helpful for your maintenance and future development, as I'm extending my local unifi portfolio too. @Shaquu as you commented on my PR, what is your opinion about this? Best regards Thiemo |
I appreciate the feedback, but I’m not a fan of the tone, which, as you rightly guessed, is harsh at best and condescending at worst. I believe you’re sincere in your intentions. However, I’d also like you to consider the tone in which I read your comment. I didn’t find it respectful or productive. Here are some thoughts for you:
The issue you raised about exporting a type declared as a development dependency will be addressed in a future release. I encourage you to be mindful of your tone and how it can be misinterpreted if your intentions aren’t clear. I appreciate that you revised your comment to indicate your intention, but I also hope you take away from this experience that you will get further with a positive, empathetic, collaborative, and curious tone. Take the time to understand your audience if you want to be heard and collaborated with, particularly in the open source world. I’ve been a somewhat prolific open source developer for more than three decades with a lot of code under my belt…it’s not my first project. 😄 That shouldn’t really matter much - you should treat the author with respect and seek to understand their choices if they are different than yours. Everyone learns something then, and you build bridges. |
Thanks for the feedback. In my opinion I'm good with programming/logic but rather bad in reporting issues or proposing changes to others and their "baby" without hurting them or sounding like I'm the god of the world/know everything and they couldn't survive without me (which they obviously did all those years before). Neither do I want to diminish your work nor the time/effort to maintain/explore all those proprietary information/interfaces. Regarding While my 3rd-Person view might be shortsighted as I'd never be as deep/involved in it as you are I'm still certain the current overlap/entangling of these separate packages might result in plenty of headache in the future.
So as stated by yourself it is a utility library for Homebridge plugins and their development and if I understand this package and your intentions with it correctly this should be the independent base of https://github.com/hjdhjd/homebridge-unifi-protect so it's not an homebridge plugin. Best Regards Thiemo |
This issue is locked to prevent necroposting on closed issues. Please create a new issue for related support requests, bug reports, or feature suggestions. |
Describe The Problem:
Missing module
homebridge-plugin-utils
To Reproduce:
I tried using this in https://github.com/Hoffmation/Hoffmation-Base which uses Typescript as well.
The text was updated successfully, but these errors were encountered: