Skip to content

更新历史

Autostore共包括以下包:

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

autostore

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参数,用于在创建computedtwatchedobserver可观察对象前调用,允许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.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参数,用于在创建computedtwatchedobserver可观察对象前调用,允许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.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参数,用于在创建computedtwatchedobserver可观察对象前调用,允许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