Giter VIP home page Giter VIP logo

Comments (5)

pbksol avatar pbksol commented on August 16, 2024 1

Fixed in 1.1.86

from unifi-api-client.

malle-pietje avatar malle-pietje commented on August 16, 2024

Thanks for the PSA 😉 I hope people read it!

At some point in time we need to make the client class more strict, and therefore robust, and type hinting is one important instrument IMHO. Perhaps I went overboard with these two parameters in the constructor, especially when we have to maintain backwards with existing code.

from unifi-api-client.

pbksol avatar pbksol commented on August 16, 2024

First, thanks for all the work. I normally try to avoid using external functions at all cost when it comes to doing API stuff. This one is one of the very, very rare occasions where I depart from the normal.

Regarding the breaking changes, I suggest bumping the version to – let's say 1.2 or something to make it more obvious that bigger things might have changed. A x.x.01 change doesn't shout "hey, look, my version changed, stuff might break", especially when in the past these little version changes never broke things and people tend to get used to it.

Again, thanks for your work :-)

from unifi-api-client.

malle-pietje avatar malle-pietje commented on August 16, 2024

You’re welcome! Yes, totally makes sense since most devs will be requiring 1.1. Will probably bump to 2.0.0 with the next release when I plan on adding Exceptions and removing the trigger_error() calls.

I also have plans to release a separate API client package that either uses Guzzle directly or the Laravel HTTP client. That package will obviously require the use of composer due to the dependencies while the current package allows devs to simply copy and require the Client.php file.

from unifi-api-client.

malle-pietje avatar malle-pietje commented on August 16, 2024

BTW, usually I try to follow semantic versioning as described here:
https://devhints.io/semver

from unifi-api-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.