Skip to content

Releases: FEMessage/upload-to-ali

v2.0.1

05 Dec 09:53
Compare
Choose a tag to compare

🐛 Bug Fixes:

  • fix: eslint-plugin-jest 应该是 devDependencies #128

v2.0.0

04 Dec 10:22
Compare
Choose a tag to compare

📝Upgrade Notes

upload-to-ali 升级为2.0,这是大版本的更新,主要解决的是1.0版本中,OSS密钥暴露在客户端的问题。

现在2.0版本的 upload-to-ali 组件:

  • http-request 重命名为 request
  • 移除了 OSS key 与 secret 通过环境变量注入的功能
  • 新增了一个 action 属性,通过设置上传地址来达到上传目的,支持通过环境变量注入

对于之前没有使用自定义请求函数的同学,想使用新版本安全地上传文件,只需要:

  • 升级 upload-to-ali 至 2.x
  • 移除 .env 中的 OSS_KEY OSS_SECRET
  • 在 .env 中设置 UPLOAD_ACTION

无需改动代码,重新构建发布,即可🌈

Changes

📖 Documentation:

  • docs: add donaldshen as a contributor #127
  • docs: 切换图床 #117

⚓ Dependency upgrades:

  • build(deps): [security] bump https-proxy-agent from 2.2.1 to 2.2.4 #118

💥 Breaking Changes

  • feat!: 可以通过action直接请求上传接口,并移除key与secret的注入 #119

v1.9.3

04 Dec 10:23
Compare
Choose a tag to compare

☠️This is an error publish, which is equal to v2.0.0

v1.9.2

06 Nov 07:25
Compare
Choose a tag to compare

✨ New Features:

  • feat: 允许用户自定义处理文件大小超出size限制的逻辑 #114

🐛 Bug Fixes:

  • fix: 图片列表宽度小于容器时没有折行的bug #106

💅 Refactors:

  • refactor: upload函数 #115

⚓ Dependency upgrades:

  • build(deps): [security] bump mixin-deep from 1.3.1 to 1.3.2 #89

v1.9.1

28 Oct 09:16
Compare
Choose a tag to compare

🐛 Bug Fixes:

  • fix: 图片压缩排除gif类型 #105

v1.9.0

12 Oct 09:59
Compare
Choose a tag to compare

✨ New Features:

  • feat(http-request): 可自定义上传函数 #103

v1.8.3

11 Oct 03:16
Compare
Choose a tag to compare

🐛 Bug Fixes:

  • fix: 使用更通用的 title 信息 #102

📖 Documentation:

  • docs: 补充在vue-cli3项目中使用的场景 #95

🏡 Chore:

  • chore: 执行prettier & stylus => less #86

v1.8.2

01 Aug 11:11
Compare
Choose a tag to compare

📖 Documentation:

  • docs: update README badges & contributing #79

⚓ Dependency upgrades:

  • build(deps): bump @femessage/img-preview from 1.2.3 to 1.2.4 #80

🏡 Chore:

  • chore: 升级配置 #77

v1.8.1

19 Jul 02:26
Compare
Choose a tag to compare

🐛 Bug Fixes:

  • fix: 修复样式问题 #74

📖 Documentation:

  • docs: README弃用本地assets使用在线图片 #75

♻️ Tests:

  • test: 抽离切分文件名方法,修改相关单测 #76

v1.8.0

11 Jul 09:41
Compare
Choose a tag to compare

✨ New Features:

  • feat: 上传非图片文件不需要写slot #69

⚓ Dependency upgrades:

  • build(deps): [security] bump lodash from 4.17.11 to 4.17.14 #73