Skip to content

Latest commit

 

History

History
285 lines (164 loc) · 5.73 KB

CHANGELOG.md

File metadata and controls

285 lines (164 loc) · 5.73 KB

CHANGELOG

1.0.3-beta.7

published on 2024-12-25

  • chore: Adjust the priority of the removeVersionPrefix parameter;
  • chore: update mimeType to support mjs files;

1.0.3-beta.5

published on 2024-12-02

  • Chore: BosClient support 'x-bce-tagging' header;

1.0.3-beta.4

published on 2024-10-30

BosClient

  • Feat: initBucketObjectLock support headers

1.0.3-beta.3

published on 2024-10-24

BosClient

  • Fix: Allow passing headers in the ObjectLock related APIs

1.0.3-beta.2

published on 2024-10-23

BosClient

  • Fix endpoint is mistakenly set by virtual host config

1.0.3-beta.1

published on 2024-10-22

BosClient

  • Add compliance retention related APIs

1.0.2

published on 2024-09-24

  • support global config customGenerateUrl to set custom endpoint.
  • support x-bce-source header
  • fix optional-chaining-assign syntax not transformed issue.

1.0.2-beta.2

published on 2024-09-23

BosClient

  • support global config customGenerateUrl to set custom endpoint.

1.0.2-beta.0 & ## 1.0.2-beta.1

published on 2024-09-03

1.0.1

published on 2024-07-16

BosClient

  • putSuperObject API (encapsulation for mutipart upload)
  • getBucketStorageclass API
  • Support the createSignature method in BceConfig for customizing the generation of authentication signatures (Authorization)."
  • support virtual host mode.

BceClient

  • support region and customGenerateUrl to change endpoint.

1.0.1-beta.9

published on 2024-07-09

  • BceClient: support region and customGenerateUrl to change endpoint.

1.0.1-beta.7 & 1.0.1-beta.8

published on 2024-06-26

  • BceClient: fix net.isIP not worked in browser envrioment.

1.0.1-beta.6

published on 2024-05-14

  • BosClient: support virtual host mode.

1.0.1-beta.4

published on 2024-05-07

  • BosClient: Support the createSignature method in BceConfig for customizing the generation of authentication signatures (Authorization)."

1.0.1-beta.3

  • patch process package to dependencies

1.0.1-beta.2

  • BosClient: add putSuperObject API (encapsulation for mutipart upload)

1.0.1-beta.1

published on 2024-01-08

  • BosClient: requestInstance use _req.abort() in Node.js env.

1.0.0-rc.42

published on 2023-10-26

  • BosClient: support callback parameter in options;

Approach 1:

Use the callback parameter, the SDK will help you process the parameter and add it to the request header.

try {
  const res = await client.putObjectFromString('bucketName', 'fileName', 'demo-string', {
    callback: {
      urls: ['https://www.test.com/callback'],
      vars: {name: 'baidu'},
      encrypt: 'config',
      key: 'callback1'
    }
  });

  /* callback result */
  console.log(res.body.callback.result);
} catch (e) {
  /* callback error code */
  console.error(res.body.callback.code);
  /* callback error message */
  console.error(res.body.callback.message);
}

Approach 2:

Directly pass the "x-bce-process" parameter to headers.

try {
  const res = await client.putObjectFromString('bucketName', 'fileName', 'demo-string', {
    'x-bce-process': 'callback/callback,u_WyJodHRwczovL3d3dy50ZXN0LmNvbS9jYWxsYmFjayJd,m_sync,v_eyJuYW1lIjoiYmFpZHUifQ'
  });

  /* callback result */
  console.log(res.body.callback.result);
} catch (e) {
  /* callback error code */
  console.error(res.body.callback.code);
  /* callback error message */
  console.error(res.body.callback.message);
}

1.0.1-beta.0

published on 2023-11-29

  • BosClient: support requestInstance to manipulate request cancellation.

1.0.0-rc.41

published on 2023-10-26

  • BosClient: support 'x-bce-process' in headers;
  • BosClient: add createFolderShareUrl method for sharing links;

1.0.0-rc.40

published on 2023-06-19

  • BosClient: 'x-bce-security-token' considered in auth token.

1.0.0-rc.39

published on 2023-06-16

  • BosClient: Add 'x-bce-security-token' when using generatePresignedUrl with sessionToken;

1.0.0-rc.38

published on 2023-02-16

  • BosClient: support symlink;

1.0.0-rc.37

published on 2023-01-09

  • BosClient: support 'x-bce-server-side-encryption', 'x-bce-restore-days', 'x-bce-restore-tier' headers;

1.0.0-rc.36

published on 2022-05-06

  • BOSClient: fix getObject stream.store

1.0.0-rc.35

published on 2022-05-05

  • BOSClient: Just keep an array of all of buffers and concat at the end.

1.0.0-rc.34

published on 2021-12-15

  • BOSClient: Provide cname_enabled field when using a custom domain name to delete bucketName path.

1.0.0-rc.33

published on 2021-11-26

  • TsdbDataClient: support database parameter.
  • BOSClient: fix the browser environment reference entry.

1.0.0-rc.32

published on 2021-10-22

  • BOSClient: fix the browser environment reference entry.

1.0.0-rc.31

published on 2021-08-13

  • BOSClient: add key valiation in getObject() & getObjectToFile() method;
    • empty key is not allowed
    • consecutive forward slashes (/) are not allowed in key
    • forward slash (/) and a backslash (\) are not allowed at head or tail
    • consecutive periods (..) are not allowed in sub-path

1.0.0-rc.30

published on 2021-08-03

  • BOSClient: fix issue of lack of '/' prefix of object url;

1.0.0-rc.29

published on 2021-08-03

  • BOSClient: support "config.removeVersionPrefix"(boolean) parameter to dynamic control 'v1' prefix of resource in generatePresignedUrl, generateUrl;

1.0.0-rc.28

published on 2021-03-26

  • Fix entry file path for browser environment

1.0.0-rc.27

published on 2021-03-03

  • CFCClient supports trigger API

1.0.0-rc.26

published on 2020-12-23

  • BOSClient supports putBucketStorageclass API
  • BOSClient supports putBucketAcl API

1.0.0-rc.25

published on 2020-09-01

  • BOSClient supports x-bce-storage-class header