published on 2024-12-25
- chore: Adjust the priority of the
removeVersionPrefix
parameter; - chore: update mimeType to support
mjs
files;
published on 2024-12-02
- Chore: BosClient support
'x-bce-tagging'
header;
published on 2024-10-30
- Feat: initBucketObjectLock support headers
published on 2024-10-24
- Fix: Allow passing headers in the ObjectLock related APIs
published on 2024-10-23
- Fix endpoint is mistakenly set by virtual host config
published on 2024-10-22
- Add compliance retention related APIs
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.
published on 2024-09-23
- support global config
customGenerateUrl
to set custom endpoint.
published on 2024-09-03
published on 2024-07-16
putSuperObject
API (encapsulation for mutipart upload)getBucketStorageclass
API- Support the
createSignature
method inBceConfig
for customizing the generation of authentication signatures (Authorization)." - support virtual host mode.
- support
region
andcustomGenerateUrl
to change endpoint.
published on 2024-07-09
- BceClient: support
region
andcustomGenerateUrl
to change endpoint.
published on 2024-06-26
- BceClient: fix
net.isIP
not worked in browser envrioment.
published on 2024-05-14
- BosClient: support virtual host mode.
published on 2024-05-07
- BosClient: Support the
createSignature
method inBceConfig
for customizing the generation of authentication signatures (Authorization)."
- patch
process
package to dependencies
- BosClient: add
putSuperObject
API (encapsulation for mutipart upload)
published on 2024-01-08
- BosClient: requestInstance use
_req.abort()
in Node.js env.
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);
}
published on 2023-11-29
- BosClient: support
requestInstance
to manipulate request cancellation.
published on 2023-10-26
- BosClient: support 'x-bce-process' in headers;
- BosClient: add createFolderShareUrl method for sharing links;
published on 2023-06-19
- BosClient: 'x-bce-security-token' considered in auth token.
published on 2023-06-16
- BosClient: Add 'x-bce-security-token' when using generatePresignedUrl with sessionToken;
published on 2023-02-16
- BosClient: support symlink;
published on 2023-01-09
- BosClient: support 'x-bce-server-side-encryption', 'x-bce-restore-days', 'x-bce-restore-tier' headers;
published on 2022-05-06
- BOSClient: fix getObject stream.store
published on 2022-05-05
- BOSClient: Just keep an array of all of buffers and concat at the end.
published on 2021-12-15
- BOSClient: Provide cname_enabled field when using a custom domain name to delete bucketName path.
published on 2021-11-26
- TsdbDataClient: support database parameter.
- BOSClient: fix the browser environment reference entry.
published on 2021-10-22
- BOSClient: fix the browser environment reference entry.
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
published on 2021-08-03
- BOSClient: fix issue of lack of '/' prefix of object url;
published on 2021-08-03
- BOSClient: support "config.removeVersionPrefix"(boolean) parameter to dynamic control 'v1' prefix of resource in generatePresignedUrl, generateUrl;
published on 2021-03-26
- Fix entry file path for browser environment
published on 2021-03-03
- CFCClient supports trigger API
published on 2020-12-23
- BOSClient supports putBucketStorageclass API
- BOSClient supports putBucketAcl API
published on 2020-09-01
- BOSClient supports
x-bce-storage-class
header