Releases: squarecloudofc/sdk-api-js
Releases · squarecloudofc/sdk-api-js
v3.5.2
v3.5.1
v3.5.0
3.4.3
Patch Changes
- 3298bff: Fix
Application#deploys#setGithubWebhook
not returning the webhook URL - 3298bff: Rename
Application#deploys#setGithubWebhook
togetGithubWebhook
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#avatar
due to API changes - 5e84636: Remove
Application#gitIntegration
due to API changes
Patch Changes
- 08f91ee: Add assertions for
User
structure - db0ddb0: Add assertions for
Application
andWebsiteApplication
- 86765eb: Refactor typing and add assertions for
SimpleApplicationStatus
andApplicationStatus
- 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#status
for fetching all your apps statusesApplication#backups
managerApplication#deploys
managerWebsiteApplication
withcustom
anddomain
propertiesWebsiteApplication#network
manager
Changes
- Application Backups
- application.backupURL()
+ application.backups.url()
+ application.backups.download()
Application#tag
changed toApplication#name
(Only for full applications)Application#lang
changed toApplication#language
Application#status
now has its own structure (e.g.ApplicationStatusData#ramUsage
changed toApplicationStatusUsage#ram
Removed
- Experimental features
- Ability to fetch other users
Application#tier
User#blocklist
UserPlan#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#getLogs
now 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.