saibo-kanban 0.5.4 → 0.5.5

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/core.js +3 -5
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.5.5
4
+
5
+ - 取消状态流转限制:任意状态可以互转(例如 todo 直接改 done),只校验状态值本身;改错可回滚。
6
+
3
7
  ## 0.5.4
4
8
 
5
9
  - 表格列宽重排:标题固定宽度、内容占剩余空间,行高收紧。
package/core.js CHANGED
@@ -81,14 +81,12 @@ export function assertTitle(title) {
81
81
  return title.trim();
82
82
  }
83
83
 
84
- /** 检查一次状态流转;权限对等,AI 与人同一套规则。 */
84
+ /**
85
+ * 校验状态值。任意状态之间可以互转(回滚兜底),只拒绝未知状态。
86
+ */
85
87
  export function assertTransition(from, to) {
86
88
  if (from === to) return;
87
89
  assertStatus(to);
88
- const allowed = TRANSITIONS[from] || [];
89
- if (!allowed.includes(to)) {
90
- throw new BoardError('INVALID_TRANSITION', `状态不能从 ${from} 直接变成 ${to}`);
91
- }
92
90
  }
93
91
 
94
92
  export function nextId() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saibo-kanban",
3
- "version": "0.5.4",
3
+ "version": "0.5.5",
4
4
  "description": "AI 与人共用的活看板:草稿进收件箱、人做分拣、字段级修订可回滚,零 token 纠错。",
5
5
  "keywords": [
6
6
  "dsh",