Releases: squarecloudofc/sdk-api-js
Releases · squarecloudofc/sdk-api-js
3.4.3
Patch Changes
- 3298bff: Fix
Application#deploys#setGithubWebhooknot returning the webhook URL - 3298bff: Rename
Application#deploys#setGithubWebhooktogetGithubWebhook
Full Changelog: v3.4.2...v3.4.3
3.4.2
Patch Changes
- 066a0a3: update API types (Check changes)
- 825da92: improve new assertions debugging
Full Changelog: v3.4.1...v3.4.2
3.4.1
3.4.0
Minor Changes
- a8320be: Remove
Application#avatardue to API changes - 5e84636: Remove
Application#gitIntegrationdue to API changes
Patch Changes
- 08f91ee: Add assertions for
Userstructure - db0ddb0: Add assertions for
ApplicationandWebsiteApplication - 86765eb: Refactor typing and add assertions for
SimpleApplicationStatusandApplicationStatus - 384a563: Using @biomejs/biome as linter instead of eslint
- 7ac1d2e: Using tsup as builder instead of tsc
3.3.2
3.3.0
New
- Now using
@squarecloud/api-types - Global and per application cache system
- Client events for logs, statuses and backups updates
ApplicationsManager#statusfor fetching all your apps statusesApplication#backupsmanagerApplication#deploysmanagerWebsiteApplicationwithcustomanddomainpropertiesWebsiteApplication#networkmanager
Changes
- Application Backups
- application.backupURL()
+ application.backups.url()
+ application.backups.download()Application#tagchanged toApplication#name(Only for full applications)Application#langchanged toApplication#languageApplication#statusnow has its own structure (e.g.ApplicationStatusData#ramUsagechanged toApplicationStatusUsage#ram
Removed
- Experimental features
- Ability to fetch other users
Application#tierUser#blocklistUserPlan#duration
Refactor
- Using client instance instead of api manager for structures and managers
- Throw errors instead of returning undefined values
- Folder structure
3.0.0
Now using Square Cloud API v2, old versions (2.2.2 and below) will stop working from March 20th as API v1 is being deprecated.
New features
Application#files- Now you can manage your application files.files#list- List all files within a specific path.files#read- Get the content of a file.files#create- Create a brand new file.files#delete- Delete an existing file.
Changes
Applications
- api.getApplication('Id')
+ api.applications.get('Id')
- api.uploadApplication(file)
+ api.applications.create(file)Users
- api.getUser('Id')
+ api.users.get('Id')Removed features
Application#getLogsnow doesn't support full logs URL due to API changes.
Refactor
- Now it's required to use NodeJS version 19 or newer.
- The code has been fully refactored.
2.0.1
Added
- New
SquareCloudAPI#uploadApplicationmethod. - Added exports to
FullUser,UserandApplicationclasses. - Added
purchasedandpurchasedTimestampto user's plan object.
Fixed
- Fixed
Application#backupandApplication#getLogstypings.
1.1.7
Refactor
- Changed API Manager from axios to node fetch.
1.1.6
Fix
- Fixed
Api#getApplication().
Refactor
- New API Key auto tester.