Skip to content

Commit ac7c817

Browse files
YunZZYzzy066
andauthored
chore(release): 6.22.0 (#1343)
* chore(release): 6.22.0 * chore: 6.22.0 * chore: modify package-lock.json * chore: remove only * chore: add case sleep time * chore: increase the timeout period --------- Co-authored-by: zhengzuoyu.zzy <zhengzuoyu.zzy@alibaba-inc.com>
1 parent ca8c027 commit ac7c817

5 files changed

Lines changed: 35 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22

33
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.
44

5+
## [6.22.0](https://github.com/ali-sdk/ali-oss/compare/v6.21.0...v6.22.0) (2024-11-29)
6+
7+
### Features
8+
9+
* list object functions support return restore info ([#1339](https://github.com/ali-sdk/ali-oss/issues/1339)) ([986b743](https://github.com/ali-sdk/ali-oss/commit/986b7432f06b216eea24ae0f7b437aaf8786a3d4))
10+
* support restore Deep Cold Archive object ([#1337](https://github.com/ali-sdk/ali-oss/issues/1337)) ([ac500d3](https://github.com/ali-sdk/ali-oss/commit/ac500d3d87a911ec359d9ba781006034a78c1db2))
11+
* support PostObject policy V4 signature and restore archive object with setting of days ([#1340](https://github.com/ali-sdk/ali-oss/issues/1340)) ([ca8c027](https://github.com/ali-sdk/ali-oss/commit/ca8c027264a875e56f2740fa88b45dd562c2b809))
12+
13+
### Bug Fixes
14+
15+
* fix requestError return null and signatureUrlV4 run in Node 8.x ([#1338](https://github.com/ali-sdk/ali-oss/issues/1338)) ([439ffde](https://github.com/ali-sdk/ali-oss/commit/439ffded0bf9f8b9e73bed9a917d5265b80e8286))
16+
517
## [6.21.0](https://github.com/ali-sdk/ali-oss/compare/v6.20.0...v6.21.0) (2024-08-16)
618

719
### Features

karma.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ module.exports = function (config) {
3434
concurrency: 1,
3535
client: {
3636
mocha: {
37-
timeout: 10000
37+
timeout: 15000
3838
}
3939
}
4040
});

test/browser/browser.test.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const { Readable } = require('stream');
1818
const { prefix } = require('./browser-utils');
1919
const { getCredential } = require('../../lib/common/signUtils');
2020
const { getStandardRegion } = require('../../lib/common/utils/getStandardRegion');
21+
const { parseRestoreInfo } = require('../../lib/common/utils/parseRestoreInfo');
2122
const { policy2Str } = require('../../lib/common/utils/policy2Str');
2223

2324
let ossConfig;
@@ -533,6 +534,15 @@ describe('browser', () => {
533534

534535
await client.delete(testFile);
535536
});
537+
538+
it('should parse restore info correctly with expiry date', () => {
539+
const date = new Date();
540+
const restoreInfoStr = `ongoing-request="false", expiry-date="${date.toUTCString()}"`;
541+
const restoreInfo = parseRestoreInfo(restoreInfoStr);
542+
543+
assert.strictEqual(restoreInfo.ongoingRequest, false);
544+
assert.strictEqual(restoreInfo.expiryDate.toUTCString(), date.toUTCString());
545+
});
536546
});
537547

538548
describe('listV2()', () => {

test/node/multipart.test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,6 +1017,8 @@ describe('test/multipart.test.js', () => {
10171017
assert(e.message.includes('mock upload part fail.'));
10181018
}
10191019

1020+
await utils.sleep(3000);
1021+
10201022
mm.restore();
10211023

10221024
await Promise.all([store.multipartUpload(name, fileName), store.multipartUpload(name1, fileName)]);

test/node/object.test.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const FormData = require('form-data');
1818
const dateFormat = require('dateformat');
1919
const { getCredential } = require('../../lib/common/signUtils');
2020
const { getStandardRegion } = require('../../lib/common/utils/getStandardRegion');
21+
const { parseRestoreInfo } = require('../../lib/common/utils/parseRestoreInfo');
2122
const { policy2Str } = require('../../lib/common/utils/policy2Str');
2223

2324
const tmpdir = path.join(__dirname, '.tmp');
@@ -2104,6 +2105,15 @@ describe('test/object.test.js', () => {
21042105
assert.strictEqual(listResult.objects[0].restoreInfo.ongoingRequest, true);
21052106
assert.strictEqual(listResult.objects[0].restoreInfo.expiryDate, undefined);
21062107
});
2108+
2109+
it('should parse restore info correctly with expiry date', () => {
2110+
const date = new Date();
2111+
const restoreInfoStr = `ongoing-request="false", expiry-date="${date.toUTCString()}"`;
2112+
const restoreInfo = parseRestoreInfo(restoreInfoStr);
2113+
2114+
assert.strictEqual(restoreInfo.ongoingRequest, false);
2115+
assert.strictEqual(restoreInfo.expiryDate.toUTCString(), date.toUTCString());
2116+
});
21072117
});
21082118

21092119
describe('listV2()', () => {

0 commit comments

Comments
 (0)