Skip to content

更新历史 ​

Autostore共包括以下包:

  • autostore: 核心库
  • @autostorejs/react: 用于React的状态管理库
  • @autostorejs/syncer: 用于AutoStore之间的同步
  • @autostorejs/devtools: 调试工具库

autostore ​

4.7.1 ​

Patch Changes ​

  • c1d7191: upgrade fastevent

4.7.0 ​

Minor Changes ​

  • 14e95ee: 重写 reset():从「逆放变更操作」改为「还原首次变脏基线」,并新增 resetable 路径规则。

    基线模型 ​

    reset() 语义变更。旧实现逆放每次变更的操作(记录每个 key 的旧值,再按序回写);新实现记录路径首次变化前的基线快照,还原时直接把该路径写回基线。类型不变但可观察行为有别:

    ts
    const { state } = createStore({ list: [1, 2, 3] }, { resetable: true });
    
    state.list.push(4);
    state.list.pop();
    
    store.reset();
    // 旧: []        —— 逆放了 push(4) 和 pop()
    // 新: [1,2,3]   —— 回到首次变脏前的基线

    基线一经记录,后续对该路径的修改不再记录(去抖),所以基线对应用途而非逆序日志。设计取舍见 docs/adr/0037-reset-baseline-model.md。

    数组 ​

    push/pop/shift/unshift/splice/fill/sort/reverse/length/单下标赋值/下标 delete 均可在还原后精确回到基线。数组基线保存变更前的元素表副本,对应的数组对象不额外复制。

    键存在性 ​

    新增的键还原为消失,删除的键还原为恢复,键原本存在但值为 undefined 时还原为 undefined。含 . 的键名按转义路径编码处理,不产生多余层级。

    resetable 接受路径规则 ​

    resetable 类型由 boolean 拓宽为 boolean | string[]:

    ts
    resetable: ['orders.items']; // 纳入规则,命中即判定可重置,范围为整棵子树(含自身)
    resetable: ['!orders.items']; // 排除规则,命中即判定不可重置
    resetable: ['!orders.items', 'orders']; // orders.items 不可重置,orders.price 可重置
    • 首匹配即止:按书写顺序匹配,命中即决定,后续规则不再检查。因此顺序遮蔽是常态——["orders", "!orders.items"] 里的排除规则是死代码。
    • 通配符 * 匹配恰好一层,** 匹配任意层(含零层,故 ["!**"] 排除整棵树)。
    • 零命中兜底:存在纳入规则时默认可重置为否;只有排除规则时默认可重置,即 ["!x"] 表示「除 x 外都记」。
    • 容器基线会吸收其后代;若某容器在子树内已有脏路径之后才被整体替换,则不捕获该容器基线,还原降级为逐个脏路径。

    true(无规则)与 false/[] 的运行时开销与改造前持平:采集回调装在 reactive 的 options 上,禁用态不挂载。

    破坏性变更 ​

    • updatedState 由可写字段降级为只读 getter,且不再作为还原依据,仅保留为调试视图。直接赋值不再生效。

    • resetable 默认值由 true 改为 false。基线采集会在每次写入时检查"子树内是否已有脏路径",默认关闭可让绝大多数 store 回到零开销。需要回滚能力的场景(表单回退、开发调试、测试隔离)必须显式开启:

      ts
      new AutoStore(state, { resetable: true }); // 或 store.resetable = true

      受影响的下游:AutoForm 内部 store 已显式传 resetable: true,不受影响;外部 store(.store 属性)由 AutoForm 在绑定时补开启(见下)。ConfigManager 有自己的 reset() 覆写,不依赖此选项。

    • 新增只读属性 store.resetableExplicit,用于区分「用户没配 resetable」与「用户显式配了 resetable: false」。构造器会把默认值合并进 options,因此 store.resetable 在两种情况下读数都是 false,消费方无从分辨。AutoForm 依此在绑定外部 store 时:未显式配置则自动开启 resetable(打一条 info 日志)以保证 form.reset() 可用;显式传 false 则尊重,不覆盖。

      ts
      new AutoStore(state).resetableExplicit; // false
      new AutoStore(state, { resetable: false }).resetableExplicit; // true

      此前依赖「resetable 默认 true」在外部 store 上调用 form.reset() 的代码无需改动。

    • reset(entry) 不再误伤同前缀兄弟路径:reset("user") 精确匹配该路径及其后代,不影响 username。

    • 还原单个容器只产生一次节点级写回,其后代的重置事件不再逐条触发。若有代码依赖「每个脏叶子各触发一次」来更新自身,此行为需调整。

    • 计算属性路径不参与还原(在依赖变化时自动重算),不再被记录。

    • @autostorejs/plugins/watch 与 @autostorejs/plugins/shadow 在 reset() 期间不刷新——其 onAny 订阅收不到广播派生事件。改造前同样如此,未新增退化。

4.6.2 ​

Patch Changes ​

  • 2709e4e: viewer(ADR-0035/0036):

    • 新增 header / footer 区头区尾:支持属性声明(JSON 经 relaxedToJson 容错解析)与 slot="header"|"footer"|"title" 分发替换;未声明时默认渲染 <store.title> 标题 + 重置/保存动作(mode:'edit' 仅编辑模式显示),显式置空或内容全空不渲染。
    • 动作新增 mode(view/click-edit/edit 逗号分隔模式显隐门控)与 align(left/right 侧别分组,区头默认 right、区尾默认 left,组内保持声明序);动作抽象为 ActionTarget,节点动作与区域动作共用渲染/触发契约(区域动作无 path,update 为 noop)。
    • 新增表单提交:action/method 透传,shadow 内包裹全组件 <form>,保存 = requestSubmit()(保留原生校验);未声明 action 时仅派发 action 事件 + warn,不触发原生提交刷新页面。
    • 新增列宽拖拽(ADR-0036):key 手柄委托 + 位移 rAF 合并,拖拽期间标签宽测量锁存让位,双击手柄复位解锁,变更派发 key-width-change 事件;--viewer-height 随宿主可见区高度同步。

    core:

    • group 支持逗号分隔声明多个配置组(如 "network,advanced")与 SchemaGroup 对象形态(name + title/icon/order 元数据,重复登记保留先登记记录、元数据可后补);group getter 更名为 groups。
    • AutoStoreOptions 新增 title 友好标题选项,新增 title getter(缺省回落 id)。
    • AutoStoreAction 新增 mode / align 字段,移除 tips(统一改用 tooltip)。

    form:

    • 提示属性 tips 全面重命名为 tooltip(action、captcha、qrcode、upload、radio、checkbox-group、loading 等)。
    • 表单分组过滤 group 支持 SchemaGroup 对象形态(取 name 匹配)。

4.6.1 ​

Patch Changes ​

  • cceb22f: 增加 shallow 到 sandboxVars

4.6.0 ​

4.5.0 ​

Minor Changes ​

  • 21488a1: Schema widget 类型系统升级(ADR-0005 widget config vocabulary),固定版本组 4.3.2 → 4.5.0:

    • core: base widget 类型仅收录 HTML 词汇,字段词汇统一为 camelCase,重叠组件字段下沉至 core 类型表,消除 TS2717 类型冲突
    • form: input/select widget 配置对齐新词汇表,field/form 样式与 hostClass 控制增强;autostore 依赖从 peerDependencies 移至 dependencies

4.3.2 ​

4.3.1 ​

Patch Changes ​

  • 06a6a5a: fix

4.3.0 ​

Minor Changes ​

  • 升级版本到 4.3.0

4.2.2 ​

Patch Changes ​

  • 10b205a: [feat] refStore参数现在支持传入多个Store,在ref函数中允许通过ref("@\<store.id>/\<路径>")方式引用。

    ts
    const accountStore = new AutoStore(
        {
            user: {
                name: 'Alice',
                age: 25,
            },
        },
        { id: 'account' },
    );
    const orderStore = new AutoStore(
        {
            order: {
                price: 100,
                count: 1,
            },
        },
        { id: 'shop' },
    );
    
    const mainStore = new AutoStore(
        {
            userName: computed((scope, { ref }) => {
                const name = ref('@account/user.name');
                return `User: ${name}`;
            }),
            total: computed((scope, { ref }) => {
                return ref('@shop/order.price') * ref('@shop/order.count');
            }),
        },
        { refStore: [accountStore, orderStore], id: 'main' },
    );

4.0.13 ​

Patch Changes ​

  • 8bce8c8: fix deps

4.0.12 ​

Patch Changes ​

  • 49b440f: fix types errors

4.0.11 ​

Patch Changes ​

  • 1eddd98: fix some errors

4.0.10 ​

Patch Changes ​

  • 6b18807: fix ci error

4.0.9 ​

Patch Changes ​

  • fadc0b8: fix publishConfig

4.0.8 ​

Patch Changes ​

  • 977ad77: fix ci release

4.0.7 ​

Patch Changes ​

  • 18ae236: add publishConfig support

4.0.6 ​

Patch Changes ​

  • 3ee957d: fix ci

4.0.5 ​

Patch Changes ​

  • 0abe705: fix ci update

4.0.4 ​

Patch Changes ​

  • ed5adb9: update ci

4.0.3 ​

Patch Changes ​

  • 3a94376: fix build scripts

4.0.2 ​

Patch Changes ​

  • c98966d: fix some errors

4.0.1 ​

Patch Changes ​

  • bf53248: 全新同步功能发布

4.0.0 ​

Major Changes ​

  • 737ca89: - 全面升级优化配置系统
    • 事件系统升级为 FastEvent
    • 优化同步机制

3.2.11 ​

3.2.10 ​

Patch Changes ​

  • 60e7588: 同步时 schema 支持计算属性

3.2.9 ​

Patch Changes ​

  • 4c4804c: 修复双向同步 schema 数据时状态数据被复位的问题

3.2.8 ​

Patch Changes ​

  • 510bbf4: 修复 schema 中包括计算属性时的一个计算错误

3.2.7 ​

Patch Changes ​

  • f6734bd: 修复当双向同步时存在的错误

3.2.6 ​

Patch Changes ​

  • 4107a4d: 修复同步时 schmea 同步错误的问题

3.2.5 ​

Patch Changes ​

  • b7df43a: fix some error

3.2.4 ​

Patch Changes ​

  • 2326dad: 同步时支持计算属性同步

3.2.3 ​

3.2.2 ​

3.2.1 ​

Patch Changes ​

  • 213b54c: fix type errors

4.0.0 ​

Minor Changes ​

  • b8ab118: 升级 sync 算法,支持 configure 项可以是数组和对象

Patch Changes ​

  • 889fc70: update sync configurable support array and object

3.1.16 ​

3.1.15 ​

Patch Changes ​

  • 63e1fa9: 修复导出错误

3.1.14 ​

Patch Changes ​

  • 3257305: fix errors

3.1.13 ​

Patch Changes ​

  • 2123556: form widgets support async load

3.1.12 ​

Patch Changes ​

3.1.11 ​

Patch Changes ​

3.1.10 ​

Patch Changes ​

3.1.8 ​

Patch Changes ​

3.1.7 ​

Patch Changes ​

3.1.6 ​

Patch Changes ​

3.1.5 ​

Patch Changes ​

3.1.4 ​

3.0.3 ​

3.0.2 ​

Patch Changes ​

  • 2a5f532 Thanks @zhangfisher! - - [feat] 新增加onObserverInitial参数,用于在创建computedt或watched等observer可观察对象前调用,允许return false来阻止创建,将函数标识为raw
    • [feat] 优化了AutoForm的图标注册逻辑

3.0.1 ​

Patch Changes ​

3.0.0 ​

Minor Changes ​

2.0.4 ​

Patch Changes ​

2.0.3 ​

2.0.2 ​

2.0.1 ​

2.0.0 ​

Major Changes ​

1.3.21 ​

1.3.20 ​

1.3.19 ​

Patch Changes ​

  • dedd9cc Thanks @zhangfisher! - - [特性] 重构同步功能,现在同步功能由@autostorejs/syncer提供

1.3.18 ​

1.3.17 ​

1.3.16 ​

1.3.15 ​

1.3.14 ​

Patch Changes ​

  • 77543fe Thanks @zhangfisher! - 修改所有 Symbol 标识常量为字符串以减少版本冲突的可能性

1.3.13 ​

Patch Changes ​

1.3.12 ​

Patch Changes ​

1.3.11 ​

Patch Changes ​

1.3.10 ​

Patch Changes ​

1.3.9 ​

1.3.8 ​

Patch Changes ​

1.3.7 ​

Patch Changes ​

1.3.6 ​

Patch Changes ​

1.3.5 ​

Patch Changes ​

1.3.4 ​

Patch Changes ​

1.3.3 ​

Patch Changes ​

1.3.2 ​

Patch Changes ​

1.3.1 ​

Patch Changes ​

1.3.0 ​

Minor Changes ​

1.2.4 ​

Patch Changes ​

1.2.3 ​

Patch Changes ​

1.2.2 ​

Patch Changes ​

1.2.1 ​

Patch Changes ​

  • 10463d9 Thanks @zhangfisher! - [BUG🐛] 修复当状态中存在markRaw标识的成员时类型推导出错的问题

1.2.0 ​

Minor Changes ​

1.1.2 ​

Patch Changes ​

1.1.1 ​

Patch Changes ​

1.1.0 ​

Minor Changes ​

Patch Changes ​

  • 970ad90 Thanks @zhangfisher! - 增加store.reset()方法,可以在resetable=true时调用reset方法恢复状态数据

1.0.1 ​

Patch Changes ​

@autostorejs/react ​

4.7.1 ​

Patch Changes ​

  • Updated dependencies [c1d7191]
    • autostore@4.7.1
    • @autostorejs/plugins@4.7.1

4.7.0 ​

Patch Changes ​

  • Updated dependencies [14e95ee]
    • autostore@4.7.0
    • @autostorejs/plugins@4.7.0

4.6.2 ​

Patch Changes ​

  • Updated dependencies [2709e4e]
    • autostore@4.6.2
    • @autostorejs/plugins@4.6.2

4.6.1 ​

Patch Changes ​

  • Updated dependencies [cceb22f]
    • autostore@4.6.1
    • @autostorejs/plugins@4.6.1

4.6.0 ​

Patch Changes ​

  • Updated dependencies [502ea07]
    • @autostorejs/plugins@4.6.0
    • autostore@4.6.0

4.5.0 ​

Minor Changes ​

  • 21488a1: Schema widget 类型系统升级(ADR-0005 widget config vocabulary),固定版本组 4.3.2 → 4.5.0:

    • core: base widget 类型仅收录 HTML 词汇,字段词汇统一为 camelCase,重叠组件字段下沉至 core 类型表,消除 TS2717 类型冲突
    • form: input/select widget 配置对齐新词汇表,field/form 样式与 hostClass 控制增强;autostore 依赖从 peerDependencies 移至 dependencies

Patch Changes ​

  • Updated dependencies [21488a1]
    • autostore@4.5.0
    • @autostorejs/plugins@4.5.0

4.3.2 ​

Patch Changes ​

  • Updated dependencies [8f9d366]
    • @autostorejs/plugins@4.3.2
    • autostore@4.3.2

4.3.1 ​

Patch Changes ​

  • 06a6a5a: fix
  • Updated dependencies [06a6a5a]
    • autostore@4.3.1
    • @autostorejs/plugins@4.3.1

4.3.0 ​

Minor Changes ​

  • 升级版本到 4.3.0

Patch Changes ​

  • Updated dependencies
    • autostore@4.3.0
    • @autostorejs/plugins@4.3.0

4.2.2 ​

Patch Changes ​

  • 10b205a: [feat] refStore参数现在支持传入多个Store,在ref函数中允许通过ref("@\<store.id>/\<路径>")方式引用。

    ts
    const accountStore = new AutoStore(
        {
            user: {
                name: 'Alice',
                age: 25,
            },
        },
        { id: 'account' },
    );
    const orderStore = new AutoStore(
        {
            order: {
                price: 100,
                count: 1,
            },
        },
        { id: 'shop' },
    );
    
    const mainStore = new AutoStore(
        {
            userName: computed((scope, { ref }) => {
                const name = ref('@account/user.name');
                return `User: ${name}`;
            }),
            total: computed((scope, { ref }) => {
                return ref('@shop/order.price') * ref('@shop/order.count');
            }),
        },
        { refStore: [accountStore, orderStore], id: 'main' },
    );
  • Updated dependencies [10b205a]

    • autostore@4.2.2

4.0.13 ​

Patch Changes ​

  • 8bce8c8: fix deps
  • Updated dependencies [8bce8c8]
    • autostore@4.0.13

4.0.12 ​

Patch Changes ​

  • 49b440f: fix types errors
  • Updated dependencies [49b440f]
    • autostore@4.0.12

4.0.11 ​

Patch Changes ​

  • 1eddd98: fix some errors
  • Updated dependencies [1eddd98]
    • autostore@4.0.11

4.0.10 ​

Patch Changes ​

  • 6b18807: fix ci error
  • Updated dependencies [6b18807]
    • autostore@4.0.10

4.0.9 ​

Patch Changes ​

  • fadc0b8: fix publishConfig
  • Updated dependencies [fadc0b8]
    • autostore@4.0.9

4.0.8 ​

Patch Changes ​

  • 977ad77: fix ci release
  • Updated dependencies [977ad77]
    • autostore@4.0.8

4.0.7 ​

Patch Changes ​

  • 18ae236: add publishConfig support
  • Updated dependencies [18ae236]
    • autostore@4.0.7

4.0.6 ​

Patch Changes ​

  • 3ee957d: fix ci
  • Updated dependencies [3ee957d]
    • autostore@4.0.6

4.0.5 ​

Patch Changes ​

  • 0abe705: fix ci update
  • Updated dependencies [0abe705]
    • autostore@4.0.5

4.0.4 ​

Patch Changes ​

  • ed5adb9: update ci
  • Updated dependencies [ed5adb9]
    • autostore@4.0.4

4.0.3 ​

Patch Changes ​

  • 3a94376: fix build scripts
  • Updated dependencies [3a94376]
    • autostore@4.0.3

4.0.2 ​

Patch Changes ​

  • c98966d: fix some errors
  • Updated dependencies [c98966d]
    • autostore@4.0.2

4.0.1 ​

Patch Changes ​

  • bf53248: 全新同步功能发布
  • Updated dependencies [bf53248]
    • autostore@4.0.1

4.0.0 ​

Patch Changes ​

  • Updated dependencies [737ca89]
    • autostore@4.0.0

3.2.11 ​

Patch Changes ​

  • autostore@3.2.11

3.2.10 ​

Patch Changes ​

  • Updated dependencies [60e7588]
    • autostore@3.2.10

3.2.9 ​

Patch Changes ​

  • Updated dependencies [4c4804c]
    • autostore@3.2.9

3.2.8 ​

Patch Changes ​

  • Updated dependencies [510bbf4]
    • autostore@3.2.8

3.2.7 ​

Patch Changes ​

  • Updated dependencies [f6734bd]
    • autostore@3.2.7

3.2.6 ​

Patch Changes ​

  • Updated dependencies [4107a4d]
    • autostore@3.2.6

3.2.5 ​

Patch Changes ​

  • Updated dependencies [b7df43a]
    • autostore@3.2.5

3.2.4 ​

Patch Changes ​

  • Updated dependencies [2326dad]
    • autostore@3.2.4

3.2.3 ​

Patch Changes ​

  • autostore@3.2.3

3.2.2 ​

Patch Changes ​

  • autostore@3.2.2

3.2.1 ​

Patch Changes ​

  • 213b54c: fix type errors
  • Updated dependencies [213b54c]
    • autostore@3.2.1

4.0.0 ​

Minor Changes ​

  • b8ab118: 升级 sync 算法,支持 configure 项可以是数组和对象

Patch Changes ​

  • 889fc70: update sync configurable support array and object
  • Updated dependencies [889fc70]
  • Updated dependencies [b8ab118]
    • autostore@4.0.0

3.1.16 ​

Patch Changes ​

  • autostore@3.1.16

3.1.15 ​

Patch Changes ​

  • 63e1fa9: 修复导出错误
  • Updated dependencies [63e1fa9]
    • autostore@3.1.15

3.1.14 ​

Patch Changes ​

  • 3257305: fix errors
  • Updated dependencies [3257305]
    • autostore@3.1.14

3.1.13 ​

Patch Changes ​

  • Updated dependencies [2123556]
    • autostore@3.1.13

3.1.12 ​

Patch Changes ​

  • Updated dependencies [e851fe0]:
    • autostore@3.1.12

3.1.11 ​

Patch Changes ​

3.1.10 ​

Patch Changes ​

3.1.8 ​

Patch Changes ​

  • Updated dependencies [2c96658]:
    • autostore@3.1.8

3.1.7 ​

Patch Changes ​

  • Updated dependencies [5e2b1ab]:
    • autostore@3.1.7

3.1.6 ​

Patch Changes ​

3.1.5 ​

Patch Changes ​

  • Updated dependencies [57ab216]:
    • autostore@3.1.5

3.1.4 ​

Patch Changes ​

  • Updated dependencies []:
    • autostore@3.1.4

3.0.3 ​

Patch Changes ​

  • Updated dependencies []:
    • autostore@3.0.3

3.0.2 ​

Patch Changes ​

  • 2a5f532 Thanks @zhangfisher! - - [feat] 新增加onObserverInitial参数,用于在创建computedt或watched等observer可观察对象前调用,允许return false来阻止创建,将函数标识为raw
    • [feat] 优化了AutoForm的图标注册逻辑
  • Updated dependencies [2a5f532]:
    • autostore@3.0.2

3.0.1 ​

Patch Changes ​

  • Updated dependencies [62bd346]:
    • autostore@3.0.1

3.0.0 ​

Patch Changes ​

  • Updated dependencies [8e85f34]:
    • autostore@3.0.0

2.0.4 ​

Patch Changes ​

  • Updated dependencies [6a82d92]:
    • autostore@2.0.4

2.0.3 ​

Patch Changes ​

  • Updated dependencies []:
    • autostore@2.0.3

2.0.2 ​

Patch Changes ​

  • Updated dependencies []:
    • autostore@2.0.2

2.0.1 ​

Patch Changes ​

  • Updated dependencies []:
    • autostore@2.0.1

2.0.0 ​

Major Changes ​

Patch Changes ​

  • Updated dependencies [55cef3a]:
    • autostore@2.0.0

1.3.21 ​

Patch Changes ​

  • Updated dependencies []:
    • autostore@1.3.21

1.3.20 ​

Patch Changes ​

  • Updated dependencies []:
    • autostore@1.3.20

1.3.19 ​

Patch Changes ​

  • Updated dependencies [dedd9cc]:
    • autostore@1.3.19

1.3.18 ​

Patch Changes ​

  • Updated dependencies []:
    • autostore@1.3.18

1.3.17 ​

Patch Changes ​

  • Updated dependencies []:
    • autostore@1.3.17

1.3.16 ​

Patch Changes ​

  • Updated dependencies []:
    • autostore@1.3.16

1.3.15 ​

Patch Changes ​

  • Updated dependencies []:
    • autostore@1.3.15

1.3.14 ​

Patch Changes ​

  • Updated dependencies [77543fe]:
    • autostore@1.3.14

1.3.13 ​

Patch Changes ​

  • Updated dependencies [e16301a]:
    • autostore@1.3.13

1.3.12 ​

Patch Changes ​

  • Updated dependencies [5c32540]:
    • autostore@1.3.12

1.3.11 ​

Patch Changes ​

  • Updated dependencies [df0adbf]:
    • autostore@1.3.11

1.3.10 ​

Patch Changes ​

  • Updated dependencies [a1246a3]:
    • autostore@1.3.10

1.3.9 ​

Patch Changes ​

  • 2daa009 Thanks @zhangfisher! - @autostorejs/react add lite output

  • Updated dependencies []:

    • autostore@1.3.9

1.3.8 ​

Patch Changes ​

  • Updated dependencies [37e9870]:
    • autostore@1.3.8

1.3.7 ​

Patch Changes ​

  • Updated dependencies [e6fd129]:
    • autostore@1.3.7

1.3.6 ​

Patch Changes ​

1.3.5 ​

Patch Changes ​

  • Updated dependencies [c872c68]:
    • autostore@1.3.5

1.3.4 ​

Patch Changes ​

  • Updated dependencies [2a6e9ab]:
    • autostore@1.3.4

1.3.3 ​

Patch Changes ​

1.3.2 ​

Patch Changes ​

1.3.1 ​

Patch Changes ​

  • Updated dependencies [261841b]:
    • autostore@1.3.1

1.3.0 ​

Patch Changes ​

  • Updated dependencies [6e2e8ec]:
    • autostore@1.3.0

1.2.4 ​

Patch Changes ​

1.2.3 ​

Patch Changes ​

1.2.2 ​

Patch Changes ​

1.2.1 ​

Patch Changes ​

  • Updated dependencies [10463d9]:
    • autostore@1.2.1

1.2.0 ​

Minor Changes ​

Patch Changes ​

  • Updated dependencies [48800d3]:
    • autostore@1.2.0

1.1.2 ​

Patch Changes ​

1.1.1 ​

Patch Changes ​

1.1.0 ​

Minor Changes ​

Patch Changes ​

  • 970ad90 Thanks @zhangfisher! - 增加store.reset()方法,可以在resetable=true时调用reset方法恢复状态数据

  • Updated dependencies [970ad90, 57e9a4d]:

    • autostore@1.1.0

1.0.1 ​

Patch Changes ​

@autostorejs/syncer ​

4.7.1 ​

Patch Changes ​

  • Updated dependencies [c1d7191]
    • autostore@4.7.1

4.7.0 ​

Patch Changes ​

  • Updated dependencies [14e95ee]
    • autostore@4.7.0

4.6.2 ​

Patch Changes ​

  • Updated dependencies [2709e4e]
    • autostore@4.6.2

4.6.1 ​

Patch Changes ​

  • Updated dependencies [cceb22f]
    • autostore@4.6.1

4.6.0 ​

Patch Changes ​

  • autostore@4.6.0

4.5.0 ​

Minor Changes ​

  • 21488a1: Schema widget 类型系统升级(ADR-0005 widget config vocabulary),固定版本组 4.3.2 → 4.5.0:

    • core: base widget 类型仅收录 HTML 词汇,字段词汇统一为 camelCase,重叠组件字段下沉至 core 类型表,消除 TS2717 类型冲突
    • form: input/select widget 配置对齐新词汇表,field/form 样式与 hostClass 控制增强;autostore 依赖从 peerDependencies 移至 dependencies

Patch Changes ​

  • Updated dependencies [21488a1]
    • autostore@4.5.0

4.3.2 ​

Patch Changes ​

  • autostore@4.3.2

4.3.1 ​

Patch Changes ​

  • 06a6a5a: fix
  • Updated dependencies [06a6a5a]
    • autostore@4.3.1

4.3.0 ​

Minor Changes ​

  • 升级版本到 4.3.0

Patch Changes ​

  • Updated dependencies
    • autostore@4.3.0

4.2.2 ​

Patch Changes ​

  • 10b205a: [feat] refStore参数现在支持传入多个Store,在ref函数中允许通过ref("@\<store.id>/\<路径>")方式引用。

    ts
    const accountStore = new AutoStore(
        {
            user: {
                name: 'Alice',
                age: 25,
            },
        },
        { id: 'account' },
    );
    const orderStore = new AutoStore(
        {
            order: {
                price: 100,
                count: 1,
            },
        },
        { id: 'shop' },
    );
    
    const mainStore = new AutoStore(
        {
            userName: computed((scope, { ref }) => {
                const name = ref('@account/user.name');
                return `User: ${name}`;
            }),
            total: computed((scope, { ref }) => {
                return ref('@shop/order.price') * ref('@shop/order.count');
            }),
        },
        { refStore: [accountStore, orderStore], id: 'main' },
    );
  • Updated dependencies [10b205a]

    • autostore@4.2.2

4.0.13 ​

Patch Changes ​

  • 8bce8c8: fix deps
  • Updated dependencies [8bce8c8]
    • autostore@4.0.13

4.0.12 ​

Patch Changes ​

  • 49b440f: fix types errors
  • Updated dependencies [49b440f]
    • autostore@4.0.12

4.0.11 ​

Patch Changes ​

  • 1eddd98: fix some errors
  • Updated dependencies [1eddd98]
    • autostore@4.0.11

4.0.10 ​

Patch Changes ​

  • 6b18807: fix ci error
  • Updated dependencies [6b18807]
    • autostore@4.0.10

4.0.9 ​

Patch Changes ​

  • fadc0b8: fix publishConfig
  • Updated dependencies [fadc0b8]
    • autostore@4.0.9

4.0.8 ​

Patch Changes ​

  • 977ad77: fix ci release
  • Updated dependencies [977ad77]
    • autostore@4.0.8

4.0.7 ​

Patch Changes ​

  • 18ae236: add publishConfig support
  • Updated dependencies [18ae236]
    • autostore@4.0.7

4.0.6 ​

Patch Changes ​

  • 3ee957d: fix ci
  • Updated dependencies [3ee957d]
    • autostore@4.0.6

4.0.5 ​

Patch Changes ​

  • 0abe705: fix ci update
  • Updated dependencies [0abe705]
    • autostore@4.0.5

4.0.4 ​

Patch Changes ​

  • ed5adb9: update ci
  • Updated dependencies [ed5adb9]
    • autostore@4.0.4

4.0.3 ​

Patch Changes ​

  • 3a94376: fix build scripts
  • Updated dependencies [3a94376]
    • autostore@4.0.3

4.0.2 ​

Patch Changes ​

  • c98966d: fix some errors
  • Updated dependencies [c98966d]
    • autostore@4.0.2

4.0.1 ​

Patch Changes ​

  • bf53248: 全新同步功能发布
  • Updated dependencies [bf53248]
    • autostore@4.0.1

4.0.0 ​

Patch Changes ​

  • Updated dependencies [737ca89]
    • autostore@4.0.0

3.2.11 ​

Patch Changes ​

  • c347b82: 修改不能同步异步计算属性的问题
    • autostore@3.2.11

3.2.10 ​

Patch Changes ​

  • 60e7588: 同步时 schema 支持计算属性
  • Updated dependencies [60e7588]
    • autostore@3.2.10

3.2.9 ​

Patch Changes ​

  • 4c4804c: 修复双向同步 schema 数据时状态数据被复位的问题
  • Updated dependencies [4c4804c]
    • autostore@3.2.9

3.2.8 ​

Patch Changes ​

  • Updated dependencies [510bbf4]
    • autostore@3.2.8

3.2.7 ​

Patch Changes ​

  • f6734bd: 修复当双向同步时存在的错误
  • Updated dependencies [f6734bd]
    • autostore@3.2.7

3.2.6 ​

Patch Changes ​

  • 4107a4d: 修复同步时 schmea 同步错误的问题
  • Updated dependencies [4107a4d]
    • autostore@3.2.6

3.2.5 ​

Patch Changes ​

  • Updated dependencies [b7df43a]
    • autostore@3.2.5

3.2.4 ​

Patch Changes ​

  • 2326dad: 同步时支持计算属性同步
  • Updated dependencies [2326dad]
    • autostore@3.2.4

3.2.3 ​

Patch Changes ​

  • autostore@3.2.3

3.2.2 ​

Patch Changes ​

  • autostore@3.2.2

3.2.1 ​

Patch Changes ​

  • 213b54c: fix type errors
  • Updated dependencies [213b54c]
    • autostore@3.2.1

4.0.0 ​

Minor Changes ​

  • b8ab118: 升级 sync 算法,支持 configure 项可以是数组和对象

Patch Changes ​

  • 889fc70: update sync configurable support array and object
  • Updated dependencies [889fc70]
  • Updated dependencies [b8ab118]
    • autostore@4.0.0

3.1.16 ​

Patch Changes ​

  • autostore@3.1.16

3.1.15 ​

Patch Changes ​

  • 63e1fa9: 修复导出错误
  • Updated dependencies [63e1fa9]
    • autostore@3.1.15

3.1.14 ​

Patch Changes ​

  • 3257305: fix errors
  • Updated dependencies [3257305]
    • autostore@3.1.14

3.1.13 ​

Patch Changes ​

  • Updated dependencies [2123556]
    • autostore@3.1.13

3.1.12 ​

Patch Changes ​

  • Updated dependencies [e851fe0]:
    • autostore@3.1.12

3.1.11 ​

Patch Changes ​

3.1.10 ​

Patch Changes ​

3.1.8 ​

Patch Changes ​

  • Updated dependencies [2c96658]:
    • autostore@3.1.8

3.1.7 ​

Patch Changes ​

  • 5e2b1ab Thanks @zhangfisher! - feat: support store.schemas.add(<path>,<schema>) method

  • Updated dependencies [5e2b1ab]:

    • autostore@3.1.7

3.1.6 ​

Patch Changes ​

3.1.5 ​

Patch Changes ​

  • Updated dependencies [57ab216]:
    • autostore@3.1.5

3.1.4 ​

Patch Changes ​

  • Updated dependencies []:
    • autostore@3.1.4

3.0.3 ​

Patch Changes ​

  • Updated dependencies []:
    • autostore@3.0.3

3.0.2 ​

Patch Changes ​

  • 2a5f532 Thanks @zhangfisher! - - [feat] 新增加onObserverInitial参数,用于在创建computedt或watched等observer可观察对象前调用,允许return false来阻止创建,将函数标识为raw
    • [feat] 优化了AutoForm的图标注册逻辑
  • Updated dependencies [2a5f532]:
    • autostore@3.0.2

3.0.1 ​

Patch Changes ​

  • Updated dependencies [62bd346]:
    • autostore@3.0.1

3.0.0 ​

Patch Changes ​

  • Updated dependencies [8e85f34]:
    • autostore@3.0.0

2.0.4 ​

Patch Changes ​

  • Updated dependencies [6a82d92]:
    • autostore@2.0.4

2.0.3 ​

Patch Changes ​

  • Updated dependencies []:
    • autostore@2.0.3

2.0.2 ​

Patch Changes ​

  • Updated dependencies []:
    • autostore@2.0.2

2.0.1 ​

Patch Changes ​

  • Updated dependencies []:
    • autostore@2.0.1

2.0.0 ​

Major Changes ​

Patch Changes ​

  • Updated dependencies [55cef3a]:
    • autostore@2.0.0

1.3.21 ​

Patch Changes ​

  • d6f12ef Thanks @zhangfisher! - 修复 syncer 的 filter 不能生效的问题

  • Updated dependencies []:

    • autostore@1.3.21

1.3.20 ​

Patch Changes ​

  • bee649b Thanks @zhangfisher! - 当第一次全同步时提供一个额外的标识,帮助识别是第一次同步

  • Updated dependencies []:

    • autostore@1.3.20

1.3.19 ​

Patch Changes ​

  • dedd9cc Thanks @zhangfisher! - - [特性] 重构同步功能,现在同步功能由@autostorejs/syncer提供

  • Updated dependencies [dedd9cc]:

    • autostore@1.3.19

1.3.18 ​

Patch Changes ​

  • c9cb218 Thanks @zhangfisher! - @autostorejs/syncer 的 StateRemoteOperate 增加一个 id 标识用来区分不同的同步器

  • Updated dependencies []:

    • autostore@1.3.18

1.3.17 ​

Patch Changes ​

  • 2ac683c Thanks @zhangfisher! - 增加 update 方法用于手动全同步

  • Updated dependencies []:

    • autostore@1.3.17

1.3.16 ​

Patch Changes ​

  • b0659eb Thanks @zhangfisher! - syncer 增加 id 属性标识

  • Updated dependencies []:

    • autostore@1.3.16

1.3.15 ​

Patch Changes ​

  • 71a12f9 Thanks @zhangfisher! - syncer 支持断开同步指令

  • Updated dependencies []:

    • autostore@1.3.15

1.3.14 ​

Patch Changes ​

  • Updated dependencies [77543fe]:
    • autostore@1.3.14

1.3.13 ​

Patch Changes ​

1.3.12 ​

Patch Changes ​

  • Updated dependencies [5c32540]:
    • autostore@1.3.12

1.3.11 ​

Patch Changes ​

  • Updated dependencies [df0adbf]:
    • autostore@1.3.11

1.3.10 ​

Patch Changes ​

  • Updated dependencies [a1246a3]:
    • autostore@1.3.10

1.3.9 ​

Patch Changes ​

  • Updated dependencies []:
    • autostore@1.3.9

1.3.8 ​

Patch Changes ​

  • Updated dependencies [37e9870]:
    • autostore@1.3.8

1.3.7 ​

Patch Changes ​

  • Updated dependencies [e6fd129]:
    • autostore@1.3.7

1.3.6 ​

Patch Changes ​

1.0.1 ​

Patch Changes ​

  • Updated dependencies [9c86dd4]:
    • autostore@1.2.3