Skip to content

fix(deps): update dependency art-of-wifi/unifi-api-client to v2

Renovate Bot requested to merge renovate/art-of-wifi-unifi-api-client-2.x into master

This MR contains the following updates:

Package Type Update Change
art-of-wifi/unifi-api-client require major ^1.1 -> ^2.0

Release Notes

Art-of-WiFi/UniFi-API-client (art-of-wifi/unifi-api-client)

v2.0.4: API client class v2.0.4

Compare Source

  • added curl option to specifically support http (originally suggested by @​Kyouma54 in MR #​251)

v2.0.3: API client class v2.0.3

Compare Source

  • applied changes from MR #​258, contributed by @​mvarian
  • addresses support for PHP 8.4

v2.0.2: API client class 2.0.2

Compare Source

  • updated the README.md file
  • updated @​throws tags in the doc blocks to reflect the correct Exception classes where necessary, in other cases only \Exception is mentioned
  • minor changes

v2.0.1: API client class 2.0.1

Compare Source

  • main change is the introduction of Exceptions for improved error handling
  • removed usages of the PHP trigger_error() function
  • several other minor changes
  • added an example of Exception handling to the README
  • updated the examples/list_alarms.php file to demonstrate Exception handling
Important note

Use this first release in the new 2.X branch with care, it has not yet been tested in live production environments!

PS: the previous release, 2.0.0 was accidentally based on the main branch, that is now fixed with this release.

v1.1.104: API client class 1.1.104

Compare Source

  • added curl option to specifically support http (originally suggested by @​Kyouma54 in MR #​251)
  • minor changes

PS: version 1.1.103 was deliberately skipped

v1.1.102: API client class v1.1.102

Compare Source

v1.1.101: API client class 1.1.101

Compare Source

  • added a private property $cookies_created_at to store the timestamp when the cookies were created/updated.
  • added a getter method get_cookies_created_at() to return the timestamp when the cookies were created/updated.
  • this information can be useful to determine how old the cookies are.
  • minor comments clean up.

v1.1.100: API client class 1.1.100

Compare Source

  • fixed incorrect return type for create_voucher(), reported by @​pa-

v1.1.99: API client class v1.1.99

Compare Source

  • added get_system_log() method to get data from the system logs, returns paged results (see code comments for further details on how to control the paging)
  • minor formatting changes

v1.1.98: API client class v1.1.98

Compare Source

  • merged #​244 for a small change to the start_rolling_upgrade() method, contributed by @​Jacobtims
  • minor additional change to allow changes to the payload of the start_rolling_upgrade() method

v1.1.97: API client class v1.1.97

Compare Source

  • merged #​243 to fix payload for the start_rolling_upgrade() method, contributed by @​Jacobtims

v1.1.96: API client class v1.1.96

Compare Source

  • bumped version to 1.1.96
  • removed version tag in docblock as it contained redundant information
  • merged #​241 which adds a method to download a generated backup, (contributed by @​Jacobtims)

v1.1.95: API client class v1.1.95

Compare Source

  • added ability to pass an array of attributes to fetch with AP and site stats
  • general minor clean up
  • bumped version to 1.1.95

v1.1.94: API client class v1.1.94

Compare Source

  • minor fix based on Scrutinizer feedback
  • re-added update_admin() method to the class; for some reason, the merge of #​228 contributed by @​Jacobtims was unsuccessful

v1.1.93: API client class v1.1.93

Compare Source

  • added the migrate_device() method to migrate one or more devices from one controller to another
  • added the cancel_migrate_device() method to cancel the migration for one or more devices
  • added the upgrade_all_devices() method to upgrade all devices of a selected type to the latest firmware version
  • changed the force_provision() method to allow for multiple MAC addresses to be passed as a parameter
  • minor changes to a number of doc-blocks
  • general changes for improved consistency and readability

v1.1.92: API client class v1.1.92

Compare Source

  • further reformatting of notes in the doc blocks
  • reformatted single-line comments
  • merged #​232, added days parameter to generate_backup() method, contributed by @​Jacobtims

v1.1.91: API client class v1.1.91

Compare Source

  • added `delete_admin()`` method, contributed by @​Jacobtims
  • merged MR #​228 to add update_admin(), contributed by @​Jacobtims
  • reformatting of notes in the doc blocks

v1.1.90: API client class v1.1.90

Compare Source

  • remove existing x-csrf-token headers before adding a new one, apparently UniFi OS does not like multiple x-csrf-tokens in the same request

v1.1.89: API client class v1.1.89

Compare Source

  • added create_tag(), set_tagged_devices(), get_tag(), and delete_tag() methods to manage tags, contributed by @​brenard, #​205

v1.1.88: API client class v1.1.88

Compare Source

  • added list_fingerprint_devices() method to list fingerprints for clients devices, contributed by @​dream-rhythm, #​213
  • minor code clean up

v1.1.87: API client class v1.1.87

Compare Source

  • further code clean up and refactoring to pass more phpstan tests

v1.1.86

Compare Source

API client class v1.1.86

  • fixes issue with curl_init() returning CurlHandle class objects instead of curl handlers with PHP 8 and higher

v1.1.85

Compare Source

API client class v1.1.85

  • removed unnecessary type casting in several methods
  • fixed return type hinting in several methods where return type needed to be array|bool instead of just array
  • relaxed parameter type hinting in the constructor to allow for null values for several parameters that have sensible defaults, reported by @​pbksol
  • using phpstan, the class passes level 5 checks

v1.1.84: API client class v1.1.84

Compare Source

  • PHP 7.4 is now the minimum required version
  • updated the code for 7.4. specific features such as parameter type hinting, return types, etc.
  • added the ability to the constructor to change the key that is used to store the unificookie in the session, ($_SESSION['unificookie'] is used by default), this is useful when running multiple applications on the same server

v1.1.83: API client class v1.1.83

Compare Source

  • added a accept: application/json header to the login requests
  • re-added support for cookies when working with a UniFi OS-based controller

v1.1.82: API client class v1.1.82

Compare Source

v1.1.81: API client class v1.1.81

Compare Source

  • hotfix to address cookie issues in UniFi OS 3.2.7, reported by @​tflatebo
  • fixed minor typos
  • minor code reformatting of the examples
  • starting with this release, cookies are no longer supported when connecting to a UniFi OS-based controller
  • added set_vlan_to_port.php example, contributed by @​SamuelSchnelly, #​203
  • allow additional parameters in create_wlan()'s payload, contributed by @​sgrodzicki, #​191

v1.1.80: API client class v1.1.80

Compare Source


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

♻️ Rebasing: Whenever MR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this MR and you won't be reminded about this update again.


  • If you want to rebase/retry this MR, check this box

This MR has been generated by Renovate Bot.

Merge Request-Berichte

Lade