Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: release 6.19.0 #1268

Merged
merged 3 commits into from
Dec 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/schedule.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Regularly clean test buckets at GMT 20:00 every day
# Regularly clean test buckets at GMT 01:00 every day.
name: 'Schdule Delete'

on:
schedule:
- cron: '0 20 1/1 * *'
- cron: '0 1 1/1 * *'

jobs:
cleanAllBucket:
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [6.19.0](https://github.com/ali-sdk/ali-oss/compare/v6.18.1...v6.19.0) (2023-12-15)

### Features

* verify object names strictly when signing URLs and enabled by default ([#1265](https://github.com/ali-sdk/ali-oss/issues/1265)) ([ff03bbb](https://github.com/ali-sdk/ali-oss/pull/1265/commits/ff03bbb62b041dd34d30ca2503745ba5d7c0a216))

### [6.18.1](https://github.com/ali-sdk/ali-oss/compare/v6.18.0...v6.18.1) (2023-09-08)

### Features
Expand Down
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ options:
- [region] {String} the bucket data region location, please see [Data Regions](#data-regions),
default is `oss-cn-hangzhou`.
- [internal] {Boolean} access OSS with aliyun internal network or not, default is `false`.
If your servers are running on aliyun too, you can set `true` to save lot of money.
If your servers are running on aliyun too, you can set `true` to save a lot of money.
- [secure] {Boolean} instruct OSS client to use HTTPS (secure: true) or HTTP (secure: false) protocol.
- [timeout] {String|Number} instance level timeout for all operations, default is `60s`.
- [cname] {Boolean}, default false, access oss with custom domain name. if true, you can fill `endpoint` field with your custom domain name,
Expand Down Expand Up @@ -2579,7 +2579,7 @@ console.log(result.objects);
console.log(result.deleteMarker);
```

### .signatureUrl(name[, options])
### .signatureUrl(name[, options, strictObjectNameValidation])

Create a signature url for download or upload object. When you put object with signatureUrl ,you need to pass `Content-Type`.Please look at the example.

Expand All @@ -2605,6 +2605,7 @@ parameters:
- body {String} set the body for callback
- [contentType] {String} set the type for body
- [customValue] {Object} set the custom value for callback,eg. {var1: value1,var2:value2}
- [strictObjectNameValidation] {boolean} the flag of verifying object name strictly, default is true

Success will return signature url.

Expand Down Expand Up @@ -2639,7 +2640,7 @@ const url = store.signatureUrl('ossdemo.txt', {
'content-type': 'text/custom',
'content-disposition': 'attachment'
}
});
}, false);
console.log(url);

// put operation
Expand All @@ -2660,7 +2661,7 @@ const url = store.signatureUrl('ossdemo.png', {
console.log(url);
```

### .asyncSignatureUrl(name[, options])
### .asyncSignatureUrl(name[, options, strictObjectNameValidation])

Basically the same as signatureUrl, if refreshSTSToken is configured asyncSignatureUrl will refresh stsToken

Expand All @@ -2686,6 +2687,7 @@ parameters:
- body {String} set the body for callback
- [contentType] {String} set the type for body
- [customValue] {Object} set the custom value for callback,eg. {var1: value1,var2:value2}
- [strictObjectNameValidation] {boolean} the flag of verifying object name strictly, default is true

Success will return signature url.

Expand Down Expand Up @@ -2717,7 +2719,7 @@ const url = await store.asyncSignatureUrl('ossdemo.txt', {
'content-type': 'text/custom',
'content-disposition': 'attachment'
}
});
}, false);
console.log(url);
// put operation
```
Expand Down
Loading
Loading