-
Notifications
You must be signed in to change notification settings - Fork 1
feat(): add humanize time format "past", and support future time for "relative" #26
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (1)
shared/datetime/src/humanizeTime.spec.ts:155
- The test case should use the i18n.t function to ensure localization is handled properly. Replace "5 天后" with i18n.t(
${NS_LIBS_DATETIME}:${K.FUTURE_AFTER}, { time: "5 天" }).
"5 天后"
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #26 +/- ##
==========================================
+ Coverage 84.57% 84.59% +0.02%
==========================================
Files 402 402
Lines 13093 13096 +3
Branches 2034 2034
==========================================
+ Hits 11073 11079 +6
+ Misses 1659 1657 -2
+ Partials 361 360 -1
|
aa18174 to
000e8fb
Compare
000e8fb to
c537ca3
Compare
|
📐🤏 Size check result (c76030f...ae07adc): Load all bricks together
Critical changes: None. See full changes
Load bricks by each packageCritical changes: None. See full changes
Load by each brickCritical changes: None. See full changes
|
依赖检查
组件之间的依赖声明,是微服务组件架构下的重要信息,请确保其正确性。
请勾选以下两组选项其中之一:
或者:
提交信息检查
Git 提交信息将决定包的版本发布及自动生成的 CHANGELOG,请检查工作内容与提交信息是否相符,并在以下每组选项中都依次确认。
破坏性变更:
feat作为提交类型。BREAKING CHANGE: 你的变更说明。新特性:
feat作为提交类型。问题修复:
fix作为提交类型。杂项工作:
即所有对下游使用者无任何影响、且没有必要显示在 CHANGELOG 中的改动,例如修改注释、测试用例、开发文档等:
chore,docs,test等作为提交类型。