Skip to content

升级项目基础依赖,优化构建流程、开发体验 #590

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

Merged
merged 12 commits into from
Dec 14, 2023

Conversation

yinxulai
Copy link
Collaborator

@yinxulai yinxulai commented Jul 20, 2022

注意

  • 改动夸张的行数是 lock 文件导致的,不要慌

改动

  • 移除了非必要的 querystring 依赖
  • 升级 typescript,jest,eslint 版本
  • 标记了以下方法为 deprecated,未来不对外用户提供
getUploadUrl
deleteUploadedChunks
compressImage
urlSafeBase64Encode
urlSafeBase64Decode
getHeadersForMkFile
getHeadersForChunkUpload
  • 构建产物 esm、lib(umd) 现在会打包成 bundle(针对这个改动需要和大家确认)
  • 调整项目结构,使用 lerna 管理项目:
    • 删除了根目录下的 test 下的文件(该文件夹下是历史遗留的老旧测试项目)
    • 原来根目录下的 SDK 自身的相关实现现在挪到了 /packages/qiniu-js
    • 原来的 /site 现在挪到了 /packages/dev-test 下,承担开发调试的作用
    • 公共的 eslint、jest、typescript 等公共依赖提升到 root 下,更新了对应的配置以及 package.json scripts

@yinxulai yinxulai changed the title Upgrade 升级项目基础依赖,优化构建流程,优化开发体验 Jul 20, 2022
@yinxulai yinxulai changed the title 升级项目基础依赖,优化构建流程,优化开发体验 升级项目基础依赖,优化构建流程、开发体验 Aug 24, 2022
.umi-test
.env.local
dist
es
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

有 es 和 dist 文件吗

if (deadline > 0) return
// 基于当前时间加上 3600s
setDeadline(Math.floor(Date.now() / 1000) + 3600)
},[deadline])
}, [deadline])
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不知道这里的上下文是什么,最好不要写这种 reaction 的代码吧。。

@yinxulai yinxulai changed the base branch from master to 4.x December 14, 2023 07:52
@yinxulai yinxulai merged commit dcf9c21 into qiniu:4.x Dec 14, 2023
yinxulai added a commit that referenced this pull request Mar 28, 2024
* 升级项目基础依赖,优化构建流程、开发体验 (#590)

* merge qiniu/master

* 细节调整

* 将大量私有的方法标记为 deprecated & 更新文档

* 调试 workflow actions

* 为 upload 的上传结果添加泛型

* 基本完成

* 移除一些非必要的文件及改动

* build 不应该使用 parallel

* 添加 vscode workspace 配置文件

* update dev-test package.json

* 针对 iife 输出 umd 格式

* update

* just move files

* init common package

* 公共逻辑基本完成

* 微信 SDK 基本完成

* 优化错误和最终结果处理

* 添加微信小程序 example

* 更好的类型名称以及移除 UploadBlob 的导出

* 移除微信小程序 SDK 直传 base64 的支持

* 调整示例目录结构和位置

* 错误处理等细节调整

* 添加鸿蒙基本实现(仅支持分片上传)

* 为 queue 添加基本的单元测试

* UploadFile 设计内敛

* update lock

* fix bug

* update actions

* fix typo

* update package info

* 移除与本次无关的浏览器端代码

* 补充上传时指定 key 和 mimetype 的能力

* 补充配置文件

* 添加自定义变量&metadata支持

* 更新配置文件

* 添加浏览器和 react-native 支持

* 添加 rn examples

* 暂时移除 rn

* 鸿蒙细节调整

* 添加鸿蒙系统兼容性检查

* 添加 browser example

* 细节调整

* browser 添加 webWorker 演示

* 浏览器端文件名处理优化

* 优化鸿蒙的文件类型处理

* 优化鸿蒙底层文件处理

* 添加 uploadHosts 支持

* 更新说明文档

* update readme & changelog

* 添加 v1 分片上传支持

* 优化类型信息

* add Progress export

* fix ohpm install command in radme.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants