Skip to content

Releases: squarecloudofc/sdk-api-py

Release 3.5.0

30 Jun 22:24

Choose a tag to compare

Release Notes - [3.5.0] (30/06/2024)

📜 Summary

🚀 Features

  • Refactor application tag references to name for better consistency and clarity.

🐛 Bug Fixes

  • Fixed import order in squarecloud/__init__.py to maintain PEP8 compliance.
  • Corrected the handling of 'lang' and 'name' fields in squarecloud/client.py.

✨ Enhancements

  • Updated CLI tables to display app names instead of tags for improved readability.
  • Revised data classes in squarecloud/data.py to use 'name' instead of 'tag' and removed 'isWebsite'.
  • Improved file info class in squarecloud/data.py to set a default size of 0.0.

🚨 Breaking Changes

  • Replaced all instances of 'tag' with 'name' in the Application class, which may affect existing implementations relying on the 'tag' property.

✏️ Additional Notes

  • Ensure that all references to the application tag are updated to the new name property to avoid any inconsistencies or runtime errors.

3.4.1

09 Jun 12:48

Choose a tag to compare

Release Notes - [3.4.1] (09/06/2024)

🐛 Bug Fixes

Fixed cli root command error, the "squarecloud" command wasn't in
pyproject.toml scripts

3.4.0

01 Jun 08:22

Choose a tag to compare

Release Notes - [3.4.0] (01/06/2024)

🚀 Features

  • Now, in certain methods, you have the option to incorporate the extra argument to
    send metadata to listeners. If the annotation of this parameter in the listener is
    a pydantic model, and the metadata provided through extra, the SDK will attempt to
    convert this metadata into that model.

  • Added logs to listeners, when a listener is called some useful information are
    provided, like the endpoint of this listener and this return

🐛 Bug Fixes

  • Fixed typing dues to api changes

✨ Enhancements

  • Previously there was an API to create and manage configuration files, but it was very
    simple and not versatile. For this reason, this API has been modified, now config files
    are class objects and has been added some features, such as serialization and deserialization.

    More about usage can be viewed
    at this link

    ⚠️ The method create_config_file can still be used, but it has been marked as
    deprecated, and will be removed in the future.

  • added field app_id to FileInfo object

📝 Docs

🚨 Breaking Changes

  • Endpoint.user_me renamed to Endpoint.user;

  • removed Endpoint.user_info;

  • removed Client.user_info;

  • renamed Client.me to Client.user.

  • removed support to statistics endpoint:

    • Client.statistics method;
    • Endpoint.statistics class method;
    • CLI sub-command statistics;

Release 3.3.2

18 Feb 22:04

Choose a tag to compare

Release Notes - [3.3.2] (18/02/2024)

Summary

This release is focused on fix some bugs

Changelog

Bug Fixes

Breaking Changes

This release has no breaking changes.

Release 3.3.1

19 Jan 12:43

Choose a tag to compare

Release Notes - [3.3.1] (25/12/2023)

Summary

This release is focused on refactoring some of the code

Changelog

  • Exceptions now inheirits from Exception instead BaseException
  • Added header 'User-Agent' on requests headers
  • import errors in squarecloud.__init__.py
  • Update cli parameters and options descriptions

Breaking Changes

This release has no breaking changes.

Release 3.2.1

26 Dec 17:48

Choose a tag to compare

Release Notes - [3.2.1] (25/12/2023)

Summary

This release is focused on adding support for new endpoints and refactoring some of the code, as you can see below

Changelog

Features

Bug Fixes

  • Resolved bug in the Request and Capture listeners system, when more than one application could access listeners from another application

Enhancements

  • Pydantic Dataclasses Integration:

    • The default Python dataclasses have been replaced with pydantic dataclasses.
    • This enhancement brings advanced data type validation to ensure the correctness of data structures.
  • Error handling refactored

    • Error handling has been refactored in http module.
    • Error messages have changed
    • New Exceptions have been added to support the new endpoints

Breaking Changes

This release has no breaking changes.

Additional Notes

This release was supposed to come out yesterday (12/25/2023), but unexpected events made that impossible, so, Merry belated Christmas 🎄

Release 3.1.3

26 Oct 21:57

Choose a tag to compare

Some changes were made due to a change in api responses

Release 3.1.0

06 Oct 20:31

Choose a tag to compare

This release adds CLI feature.

Release 3.0.3

02 Sep 02:28

Choose a tag to compare

Fixed an error caused by a change in the UPLOAD route response

v3.0.2

26 Apr 14:05

Choose a tag to compare

This version fix an error raised when upload an application without description and subdomain.