cos-wx-sdk-v5 1.0.12 → 1.1.2

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,6 +7,76 @@ 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.1.0](https://github.com/tencentyun/cos-wx-sdk-v5/compare/v1.0.13...v1.1.0) - 2021-11-17
11
+
12
+ - 新增appendObject接口
13
+ - 新增媒体处理demo
14
+ - 修复已知d.ts错误
15
+
16
+ ### Merged
17
+
18
+ - Feat/1.1.0 [`#55`](https://github.com/tencentyun/cos-wx-sdk-v5/pull/55)
19
+ - feat: 改变demo 展示形式,分类别展示。demo 增加数据万象示例。 [`#45`](https://github.com/tencentyun/cos-wx-sdk-v5/pull/45)
20
+
21
+ ### Commits
22
+
23
+ - feat:增加appendObject;增加三个媒体处理接口 [`daf4387`](https://github.com/tencentyun/cos-wx-sdk-v5/commit/daf4387e2d69ab428e2ecac465e3e657eaba34ae)
24
+ - upd:支持ci demo [`8f87f31`](https://github.com/tencentyun/cos-wx-sdk-v5/commit/8f87f31b232b2f5e04c44609371c3f9a0829cf69)
25
+ - feat/支持appendObject;新增媒体处理三个接口; [`4cfb136`](https://github.com/tencentyun/cos-wx-sdk-v5/commit/4cfb13695cb483d97bc6f95b754c15b09fbc1a33)
26
+ - upd:obj2str方法 [`52da287`](https://github.com/tencentyun/cos-wx-sdk-v5/commit/52da2871c5abaa288fc9f00fe9d19e0c55aaaa81)
27
+ - feat:demo整合 [`f16699f`](https://github.com/tencentyun/cos-wx-sdk-v5/commit/f16699f55b40ba721060cdc52de1ef0c8a71d8a8)
28
+ - upd [`dfe356d`](https://github.com/tencentyun/cos-wx-sdk-v5/commit/dfe356de86c5c04abb46f6758bd90aad0bfcbc99)
29
+ - feat:新增test用例与测试说明 [`8d5571f`](https://github.com/tencentyun/cos-wx-sdk-v5/commit/8d5571fe498321c18461444abe09d5164287e925)
30
+ - upd [`b84d3fc`](https://github.com/tencentyun/cos-wx-sdk-v5/commit/b84d3fc0a95645486a5dc227e9c67c11de0d3a85)
31
+ - upd demo [`c10c7de`](https://github.com/tencentyun/cos-wx-sdk-v5/commit/c10c7debf9146a2719fec902b9b5637df0357fcc)
32
+ - Updated CHANGELOG.md [`dcbe236`](https://github.com/tencentyun/cos-wx-sdk-v5/commit/dcbe236787333e694fb84ce5d6394c28cc6c700a)
33
+ - upd:test.js [`f22ce39`](https://github.com/tencentyun/cos-wx-sdk-v5/commit/f22ce39ec68ad0732b4a9b06ec86edd2efe5328e)
34
+
35
+ ## [v1.0.13](https://github.com/tencentyun/cos-wx-sdk-v5/compare/v1.0.12...v1.0.13) - 2021-11-11
36
+
37
+ fix:修复uploadSliceItem
38
+
39
+ ### Commits
40
+
41
+ - Updated CHANGELOG.md [`6c52c38`](https://github.com/tencentyun/cos-wx-sdk-v5/commit/6c52c382a2e5ff5edf346fb94869b67097f6f9dc)
42
+ - fix:修复uploadSliceItem [`6ffd3cf`](https://github.com/tencentyun/cos-wx-sdk-v5/commit/6ffd3cf5ab21880e3db42503d2586653f0f02734)
43
+
44
+ ## [v1.0.12](https://github.com/tencentyun/cos-wx-sdk-v5/compare/v1.0.11...v1.0.12) - 2021-11-11
45
+
46
+ fix:修复getBucketReferer已知错误
47
+ feat:分块上传支持支持mimeLimit、trafficLimit
48
+
49
+ ### Merged
50
+
51
+ - fix:getObjectUrl报错问题 [`#54`](https://github.com/tencentyun/cos-wx-sdk-v5/pull/54)
52
+
53
+ ### Commits
54
+
55
+ - 修复getBucketReferer已知错误;支持mimeLimit、trafficLimit [`91d23d7`](https://github.com/tencentyun/cos-wx-sdk-v5/commit/91d23d788d02144a8c938d6fd58bfaa796218c60)
56
+
57
+ ## [v1.0.11](https://github.com/tencentyun/cos-wx-sdk-v5/compare/v1.0.10...v1.0.11) - 2021-10-27
58
+
59
+ fix:getObjectUrl报错问题
60
+
61
+ ### Merged
62
+
63
+ - Fix/get object url [`#49`](https://github.com/tencentyun/cos-wx-sdk-v5/pull/49)
64
+
65
+ ### Commits
66
+
67
+ - fix:getObjectUrl报错问题 [`c516a9b`](https://github.com/tencentyun/cos-wx-sdk-v5/commit/c516a9bb76ff07f994c1e0959c41ef0cfffa9316)
68
+ - add PostObject policy demo [`edd61cc`](https://github.com/tencentyun/cos-wx-sdk-v5/commit/edd61cc5a466594644eb4408e63602042a3fefaf)
69
+
70
+ ## [v1.0.10](https://github.com/tencentyun/cos-wx-sdk-v5/compare/v1.0.9...v1.0.10) - 2021-07-02
71
+
72
+ - getObjectUrl支持Headers、Query参数
73
+
74
+ ### Commits
75
+
76
+ - fix:修复已知getObjectUrl报错问题 [`e20f993`](https://github.com/tencentyun/cos-wx-sdk-v5/commit/e20f9934eb32cde15e942716ece3ae984a530e14)
77
+ - Updated CHANGELOG.md [`a3528bf`](https://github.com/tencentyun/cos-wx-sdk-v5/commit/a3528bff960f63a8639957a0102f09c49c834dc3)
78
+ - feat:getObjectUrl支持Headers、Query参数 [`7e19f11`](https://github.com/tencentyun/cos-wx-sdk-v5/commit/7e19f115bf3ede00a6b473aa46913d34fd756a29)
79
+
10
80
  ## [v1.0.9](https://github.com/tencentyun/cos-wx-sdk-v5/compare/v1.0.8...v1.0.9) - 2021-06-11
11
81
 
12
82
  - 新增高级上传接口
package/README.md CHANGED
@@ -18,7 +18,11 @@
18
18
  1. 把 demo/lib/cos-wx-sdk-v5.js 复制到自己小程序项目代码里,在需要上传文件的地方贴以下代码
19
19
 
20
20
  ```javascript
21
+
22
+ // 存储桶名称,由bucketname-appid 组成,appid必须填入,可以在COS控制台查看存储桶名称。 https://console.cloud.tencent.com/cos5/bucket
21
23
  var Bucket = 'test-1250000000';
24
+ // 存储桶Region可以在COS控制台指定存储桶的概览页查看 https://console.cloud.tencent.com/cos5/bucket/
25
+ // 关于地域的详情见 https://cloud.tencent.com/document/product/436/6224
22
26
  var Region = 'ap-guangzhou';
23
27
 
24
28
  // 初始化实例
@@ -68,8 +72,10 @@ wx.chooseImage({
68
72
  });
69
73
  ```
70
74
 
71
- ## 说明文档
75
+ ## 说明文档
76
+
77
+ [使用例子](demo/demo-sdk.js)
72
78
 
73
- 完整文档有待完善,不支持分片相关接口,上传下载相关方法请查看源码和例子 [使用例子](demo/demo-sdk.js)
79
+ [快速入门](https://cloud.tencent.com/document/product/436/31953)
74
80
 
75
- 其他大部分接口可以参考以下 JS SDK 文档 [接口文档](https://cloud.tencent.com/document/product/436/12260)
81
+ [接口文档](https://cloud.tencent.com/document/product/436/31953)
package/build.js CHANGED
@@ -45,7 +45,10 @@ var config = {
45
45
  rules: [
46
46
  {
47
47
  test: /\.m?js$/,
48
- exclude: /(node_modules|bower_components)/,
48
+ loader: 'babel-loader',
49
+ options: {
50
+ presets: ['es2015']
51
+ }
49
52
  }
50
53
  ]
51
54
  },
@@ -66,7 +69,7 @@ if (process.env.NODE_ENV === 'production') {
66
69
  'demo-album/project.config.json',
67
70
  ]);
68
71
  config.watch = false;
69
- config.output.filename = 'cos-wx-sdk-v5.js';
72
+ config.output.filename = 'cos-wx-sdk-v5.min.js';
70
73
  config.plugins = (config.plugins || []).concat([
71
74
  new webpack.DefinePlugin({
72
75
  'process.env': {
@@ -92,7 +95,10 @@ webpack(config, function (err, stats) {
92
95
  // 每次运行 npm run build,将 sourcePath 代码复制一份放入 targetPath
93
96
  var sourcePath = path.resolve(__dirname, './demo/lib/cos-wx-sdk-v5.js');
94
97
  var targetPath = path.resolve(__dirname, './demo-album/lib/cos-wx-sdk-v5.js');
98
+ var minSourcePath = path.resolve(__dirname, './demo/lib/cos-wx-sdk-v5.min.js');
99
+ var mintTargetPath = path.resolve(__dirname, './demo-album/lib/cos-wx-sdk-v5.min.js');
95
100
  fs.createReadStream(sourcePath).pipe(fs.createWriteStream(targetPath));
101
+ fs.createReadStream(minSourcePath).pipe(fs.createWriteStream(mintTargetPath));
96
102
  if (err) throw err
97
103
  process.stdout.write(stats.toString({
98
104
  colors: true,