Skip to content

Releases: squarecloudofc/sdk-api-js

v3.5.2

03 Jul 03:15
Compare
Choose a tag to compare

Patch Changes

  • 839b61b: fix api spam requests (loop) (partial correction)

v3.5.1

25 Jun 23:15
0ffb42b
Compare
Choose a tag to compare

Patch Changes

  • 6809d52: Fix circular dependency error

v3.5.0

25 Jun 13:04
f4327c6
Compare
Choose a tag to compare

Minor Changes

  • 6e42e39: Rename all tag properties (user and application) to name as API deprecated them.
  • 6394ebd: Allow some app methods at BaseApplication

Patch Changes

  • 9adbbfe: Rename ApplicationManager#status method to statusAll to match its API endpoint.

3.4.3

23 Feb 16:22
Compare
Choose a tag to compare

Patch Changes

  • 3298bff: Fix Application#deploys#setGithubWebhook not returning the webhook URL
  • 3298bff: Rename Application#deploys#setGithubWebhook to getGithubWebhook

Full Changelog: v3.4.2...v3.4.3

3.4.2

11 Feb 03:01
Compare
Choose a tag to compare

Patch Changes

Full Changelog: v3.4.1...v3.4.2

3.4.1

09 Feb 21:18
Compare
Choose a tag to compare

Patch Changes

3.4.0

07 Feb 19:29
Compare
Choose a tag to compare

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 and WebsiteApplication
  • 86765eb: Refactor typing and add assertions for SimpleApplicationStatus and ApplicationStatus
  • 384a563: Using @biomejs/biome as linter instead of eslint
  • 7ac1d2e: Using tsup as builder instead of tsc

3.3.2

11 Dec 00:33
Compare
Choose a tag to compare

@squarecloud/api

3.3.2

Patch Changes

  • ef6ff49: Edit README to feature new official documentation
  • dbca1f8: Fix incorrect file path at FilesManager#create

3.3.1

Patch Changes

  • a4e4c3f: fix Class extends value undefined

3.3.0

01 Nov 10:52
Compare
Choose a tag to compare

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 statuses
  • Application#backups manager
  • Application#deploys manager
  • WebsiteApplication with custom and domain properties
  • WebsiteApplication#network manager

Changes

  • Application Backups
- application.backupURL()
+ application.backups.url()
+ application.backups.download()
  • Application#tag changed to Application#name (Only for full applications)
  • Application#lang changed to Application#language
  • Application#status now has its own structure (e.g. ApplicationStatusData#ramUsage changed to ApplicationStatusUsage#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

25 Apr 19:27
Compare
Choose a tag to compare

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.