Releases: squarecloudofc/sdk-api-py
Release 3.3.2
Release Notes - [3.3.2] (18/02/2024)
Summary
This release is focused on fix some bugs
Changelog
Bug Fixes
- fixed incorrect path formatting in Client.app_files_list;
- fixed RequestListenerManager.remove_request_listener and RequestListenerManager.clear_request_listeners
- Fixed bug where logs were not returned correctly in Client.get_logs
Breaking Changes
This release has no breaking changes.
Release 3.3.1
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
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
-
new Client.last_deploys method
-
new Client.github_integration method
-
new Client.set_custom_domain method
-
new Client.domain_analytics method
-
new Application.last_deploys method
-
new Application.github_integration method
-
new Application.set_custom_domain method
-
new Application.domain_analytics method
-
command added to CLI:
squarecloud app <APP-ID> last-deploys
-
command added to CLI:
squarecloud app <APP-ID> github-integration <GITHUB-ACCESS-TOKEN>
-
command added to CLI:
squarecloud app <APP-ID> custom-domain <DOMAIN>
-
command added to CLI:
squarecloud app <APP-ID> domain analytics
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 withpydantic
dataclasses. - This enhancement brings advanced data type validation to ensure the correctness of data structures.
- The default Python
-
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
Some changes were made due to a change in api responses
Release 3.1.0
This release adds CLI feature.
Release 3.0.3
Fixed an error caused by a change in the UPLOAD route response
v3.0.2
This version fix an error raised when upload an application without description and subdomain.
Release 3.0.0
This version uses v2 routes, version 2.0.1(and below) will stop working from March 20th as api v1 routes will be deprecated
Added Features
New Application methods:
- new Application.files_list method docs
- new Application.read_file docs
- new Application.create_file docs
- new Application.delete_file docs
New Client methods
- new Client. app_files_list docs
- new Client.read_app_file docs
- new Client.craete_app_file docs
- new Client.delete_app_file docs
- new Client.statistics docs
Application Caching
now the methods Application.logs
, Application.data
, Application.status
, Application.backup
have parameter update_cache
, if it is False
the cache of the Application will not be updated
this value by default is True
docs
Release 2.0.1
Release v2.0.1
this version contains very useful features, for detailed information read the docs
Added features
- new Client.upload method to upload an application
- now you can create event with the new listeners(capture, on_request)
- new parameter
avoid_listener
added in all Application and Client methods - new caching system for Applications objects
Compatibility
just a few minor changes may require code change
squarecloud.data.CompleteLogsData
now issquarecloud.data.FullLogsData
Client.logs_complete
now isClient.full_logs