cos-wx-sdk-v5 1.5.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -7,12 +7,33 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
9
9
 
10
- ## [v1.4.12](https://github.com/tencentyun/cos-wx-sdk-v5/compare/v1.4.11...v1.4.12) - 2023-08-03
10
+ ## [v1.5.0](https://github.com/tencentyun/cos-wx-sdk-v5/compare/v1.4.12...v1.5.0) - 2024-01-24
11
+
12
+ feat
13
+ 1、提升安全性:不再支持设置 pathStyle
14
+ 2、提升安全性:wx.request 不支持默认redirect
15
+ 3、提升安全性:host 强制加入签名计算
16
+ 4、getObject支持设置DataType
17
+ 5、重新整理万象demo
18
+
19
+ fix
20
+ 1、修复 uploadFile 未对参数 Key 进行校验
21
+
22
+ ### Merged
23
+
24
+ - Dev/1.5.0 [`#98`](https://github.com/tencentyun/cos-wx-sdk-v5/pull/98)
25
+ - Dev/sign pic operations [`#97`](https://github.com/tencentyun/cos-wx-sdk-v5/pull/97)
26
+ - Feat/ci demo [`#94`](https://github.com/tencentyun/cos-wx-sdk-v5/pull/94)
27
+
28
+ ### Commits
11
29
 
12
- feat
30
+ - Updated CHANGELOG.md [`2455c00`](https://github.com/tencentyun/cos-wx-sdk-v5/commit/2455c00c3fe8eb44654a2e9c7876f04c51e3ca06)
13
31
 
14
- - 增加代码格式化
15
- - 提供base64方法
32
+ ## [v1.4.12](https://github.com/tencentyun/cos-wx-sdk-v5/compare/v1.4.11...v1.4.12) - 2023-08-03
33
+
34
+ feat
35
+ - 增加代码格式化
36
+ - 提供base64方法
16
37
 
17
38
  ### Merged
18
39
 
@@ -24,9 +45,8 @@ feat
24
45
 
25
46
  ## [v1.4.11](https://github.com/tencentyun/cos-wx-sdk-v5/compare/v1.4.10...v1.4.11) - 2023-07-26
26
47
 
27
- fix
28
-
29
- - 修复使用await异常bug
48
+ fix
49
+ - 修复使用await异常bug
30
50
 
31
51
  ### Merged
32
52
 
@@ -41,9 +61,8 @@ fix
41
61
 
42
62
  ## [v1.4.10](https://github.com/tencentyun/cos-wx-sdk-v5/compare/v1.4.9...v1.4.10) - 2023-01-04
43
63
 
44
- feat
45
-
46
- - postObject支持x-cos-forbid-overwrite头部
64
+ feat
65
+ - postObject支持x-cos-forbid-overwrite头部
47
66
 
48
67
  ### Merged
49
68
 
@@ -55,9 +74,8 @@ feat
55
74
 
56
75
  ## [v1.4.9](https://github.com/tencentyun/cos-wx-sdk-v5/compare/v1.4.8...v1.4.9) - 2022-12-29
57
76
 
58
- fix
59
-
60
- - 更新可以签入签名的headers
77
+ fix
78
+ - 更新可以签入签名的headers
61
79
 
62
80
  ### Merged
63
81
 
@@ -72,9 +90,8 @@ fix
72
90
 
73
91
  ## [v1.4.8](https://github.com/tencentyun/cos-wx-sdk-v5/compare/v1.4.7...v1.4.8) - 2022-11-21
74
92
 
75
- feat
76
-
77
- - getObjectAcl支持传VersionId
93
+ feat
94
+ - getObjectAcl支持传VersionId
78
95
 
79
96
  ### Merged
80
97
 
@@ -86,9 +103,8 @@ feat
86
103
 
87
104
  ## [v1.4.7](https://github.com/tencentyun/cos-wx-sdk-v5/compare/v1.4.6...v1.4.7) - 2022-11-09
88
105
 
89
- fix
90
-
91
- - 升级依赖包@xmldom/xmldom版本
106
+ fix
107
+ - 升级依赖包@xmldom/xmldom版本
92
108
 
93
109
  ### Merged
94
110
 
@@ -100,9 +116,8 @@ fix
100
116
 
101
117
  ## [v1.4.6](https://github.com/tencentyun/cos-wx-sdk-v5/compare/v1.4.5...v1.4.6) - 2022-10-25
102
118
 
103
- fix
104
-
105
- - 修复批量上传uploadFiles偶现问题
119
+ fix
120
+ - 修复批量上传uploadFiles偶现问题
106
121
 
107
122
  ### Merged
108
123
 
@@ -114,9 +129,8 @@ fix
114
129
 
115
130
  ## [v1.4.5](https://github.com/tencentyun/cos-wx-sdk-v5/compare/v1.4.4...v1.4.5) - 2022-10-22
116
131
 
117
- fix
118
-
119
- - getObjectUrl暂时只支持回调写法
132
+ fix
133
+ - getObjectUrl暂时只支持回调写法
120
134
 
121
135
  ### Merged
122
136
 
@@ -128,8 +142,8 @@ fix
128
142
 
129
143
  ## [v1.4.4](https://github.com/tencentyun/cos-wx-sdk-v5/compare/v1.4.3...v1.4.4) - 2022-10-20
130
144
 
131
- - 分块复制支持续传
132
- - 合法域名校验支持内网域名和.cn域名
145
+ - 分块复制支持续传
146
+ - 合法域名校验支持内网域名和.cn域名
133
147
 
134
148
  ### Merged
135
149
 
@@ -141,9 +155,8 @@ fix
141
155
 
142
156
  ## [v1.4.3](https://github.com/tencentyun/cos-wx-sdk-v5/compare/v1.4.2...v1.4.3) - 2022-09-22
143
157
 
144
- feat
145
-
146
- - 支持sdk内部获取上传文件大小,不再依赖用户传入的FileSize
158
+ feat
159
+ - 支持sdk内部获取上传文件大小,不再依赖用户传入的FileSize
147
160
 
148
161
  ### Merged
149
162
 
@@ -155,9 +168,8 @@ feat
155
168
 
156
169
  ## [v1.4.2](https://github.com/tencentyun/cos-wx-sdk-v5/compare/v1.4.1...v1.4.2) - 2022-09-09
157
170
 
158
- fix
159
-
160
- - 修复已知问题
171
+ fix
172
+ - 修复已知问题
161
173
 
162
174
  ### Merged
163
175
 
@@ -170,9 +182,8 @@ fix
170
182
 
171
183
  ## [v1.4.1](https://github.com/tencentyun/cos-wx-sdk-v5/compare/v1.4.0...v1.4.1) - 2022-09-01
172
184
 
173
- fix
174
-
175
- - 修复已知问题
185
+ fix
186
+ - 修复已知问题
176
187
 
177
188
  ### Commits
178
189
 
@@ -180,9 +191,8 @@ fix
180
191
 
181
192
  ## [v1.4.0](https://github.com/tencentyun/cos-wx-sdk-v5/compare/v1.3.0...v1.4.0) - 2022-08-17
182
193
 
183
- feat
184
-
185
- - 新增beacon上报
194
+ feat
195
+ - 新增beacon上报
186
196
 
187
197
  ### Merged
188
198
 
@@ -194,11 +204,10 @@ feat
194
204
 
195
205
  ## [v1.3.0](https://github.com/tencentyun/cos-wx-sdk-v5/compare/v1.2.1...v1.3.0) - 2022-08-09
196
206
 
197
- feat
198
-
199
- - webpack升级到4.x
200
- - putObject支持FilePath参数。同时传参FilePath和Body时,优先级Body>FilePath
201
- - 初始化支持指定SimpleUploadMethod,当调用高级上传uploadFile或批量上传uploadFiles时,对小文件执行简单上传方法postObject或putObject
207
+ feat
208
+ - webpack升级到4.x
209
+ - putObject支持FilePath参数。同时传参FilePath和Body时,优先级Body>FilePath
210
+ - 初始化支持指定SimpleUploadMethod,当调用高级上传uploadFile或批量上传uploadFiles时,对小文件执行简单上传方法postObject或putObject
202
211
 
203
212
  ### Merged
204
213
 
@@ -210,8 +219,7 @@ feat
210
219
 
211
220
  ## [v1.2.1](https://github.com/tencentyun/cos-wx-sdk-v5/compare/v1.2.0...v1.2.1) - 2022-07-21
212
221
 
213
- feat
214
-
222
+ feat
215
223
  - 初始化支持HttpDNSServiceId参数,填写后代表开启 HttpDNS 服务。HttpDNS 用法详见https://developers.weixin.qq.com/miniprogram/dev/framework/ability/HTTPDNS.html
216
224
 
217
225
  ### Merged
@@ -227,9 +235,8 @@ feat
227
235
 
228
236
  ## [v1.2.0](https://github.com/tencentyun/cos-wx-sdk-v5/compare/v1.1.8...v1.2.0) - 2022-06-30
229
237
 
230
- fix
231
-
232
- - 修复使用postObject不能正确的pauseTask,cancelTask问题
238
+ fix
239
+ - 修复使用postObject不能正确的pauseTask,cancelTask问题
233
240
  - 签名回调里使用SecurityToken代替并兼容XCosSecurityToken
234
241
 
235
242
  ### Merged
@@ -248,9 +255,8 @@ fix
248
255
 
249
256
  ## [v1.1.8](https://github.com/tencentyun/cos-wx-sdk-v5/compare/v1.1.7...v1.1.8) - 2022-06-23
250
257
 
251
- feat
252
-
253
- - putBucketCors支持ResponseVary
258
+ feat
259
+ - putBucketCors支持ResponseVary
254
260
  - 提高签名时Expires参数的优先级
255
261
 
256
262
  ### Merged
@@ -309,7 +315,7 @@ fix:修复host签名时不兼容全球加速域名
309
315
 
310
316
  ## [v1.1.3](https://github.com/tencentyun/cos-wx-sdk-v5/compare/v1.1.2...v1.1.3) - 2021-12-03
311
317
 
312
- feat
318
+ feat
313
319
  -sdk入口文件默认为压缩版
314
320
 
315
321
  ### Commits
@@ -320,9 +326,9 @@ feat
320
326
 
321
327
  ## [v1.1.2](https://github.com/tencentyun/cos-wx-sdk-v5/compare/v1.1.1...v1.1.2) - 2021-12-01
322
328
 
323
- - host参与签名
324
- - getObjectUrl签名签入Query
325
- - 新增参与签名的headers白名单
329
+ - host参与签名
330
+ - getObjectUrl签名签入Query
331
+ - 新增参与签名的headers白名单
326
332
  - 支持打包出.min.js
327
333
 
328
334
  ### Merged
@@ -345,8 +351,8 @@ fix:CIHost兼容处理
345
351
 
346
352
  ## [v1.1.0](https://github.com/tencentyun/cos-wx-sdk-v5/compare/v1.0.13...v1.1.0) - 2021-11-17
347
353
 
348
- - 新增appendObject接口
349
- - 新增媒体处理demo
354
+ - 新增appendObject接口
355
+ - 新增媒体处理demo
350
356
  - 修复已知d.ts错误
351
357
 
352
358
  ### Merged
@@ -379,7 +385,7 @@ fix:修复uploadSliceItem
379
385
 
380
386
  ## [v1.0.12](https://github.com/tencentyun/cos-wx-sdk-v5/compare/v1.0.11...v1.0.12) - 2021-11-11
381
387
 
382
- fix:修复getBucketReferer已知错误
388
+ fix:修复getBucketReferer已知错误
383
389
  feat:分块上传支持支持mimeLimit、trafficLimit
384
390
 
385
391
  ### Merged
@@ -415,8 +421,6 @@ fix:getObjectUrl报错问题
415
421
 
416
422
  ## [v1.0.9](https://github.com/tencentyun/cos-wx-sdk-v5/compare/v1.0.8...v1.0.9) - 2021-06-11
417
423
 
418
- - 新增高级上传接口
419
-
420
424
  ### Merged
421
425
 
422
426
  - feat:新增高级上传uploadFile接口 [`#48`](https://github.com/tencentyun/cos-wx-sdk-v5/pull/48)