@coaction/vue 2.1.0 → 3.0.0

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.
package/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  ![Node CI](https://github.com/coactionjs/coaction/workflows/Node%20CI/badge.svg) [![npm](https://img.shields.io/npm/v/@coaction/vue.svg)](https://www.npmjs.com/package/@coaction/vue) ![license](https://img.shields.io/npm/l/@coaction/vue)
4
4
 
5
+ [English documentation](https://coactionjs.github.io/coaction/en/docs/) · [中文文档](https://coactionjs.github.io/coaction/zh/docs/)
6
+
5
7
  A Coaction integration tool for Vue
6
8
 
7
9
  ## Installation
package/dist/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  //#endregion
3
3
  let coaction = require("coaction");
4
+ let coaction_adapter = require("coaction/adapter");
4
5
  let vue = require("vue");
5
6
  //#region packages/coaction-vue/src/index.ts
6
7
  const getOwnEnumerableKeys = (value) => Reflect.ownKeys(value).filter((key) => Object.prototype.propertyIsEnumerable.call(value, key));
@@ -109,7 +110,7 @@ const create = (createState, options) => {
109
110
  };
110
111
  const stateProxy = createStateProxy(store, version);
111
112
  let autoSelector;
112
- return (0, coaction.wrapStore)(store, (selector) => {
113
+ return (0, coaction_adapter.wrapStore)(store, (selector) => {
113
114
  if (typeof selector === "function") return (0, vue.computed)(() => {
114
115
  version.value;
115
116
  return selector(store.getState());
package/dist/index.mjs CHANGED
@@ -1,4 +1,5 @@
1
- import { create as create$1, wrapStore } from "coaction";
1
+ import { create as create$1 } from "coaction";
2
+ import { wrapStore } from "coaction/adapter";
2
3
  import { computed, ref } from "vue";
3
4
  export * from "coaction";
4
5
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coaction/vue",
3
- "version": "2.1.0",
3
+ "version": "3.0.0",
4
4
  "description": "A Coaction integration tool for Vue",
5
5
  "keywords": [
6
6
  "coaction",
@@ -48,10 +48,10 @@
48
48
  "devDependencies": {
49
49
  "@testing-library/vue": "^8.1.0",
50
50
  "vue": "^3.5.30",
51
- "coaction": "2.1.0"
51
+ "coaction": "3.0.0"
52
52
  },
53
53
  "peerDependencies": {
54
- "coaction": ">=2.1.0 <3",
54
+ "coaction": "^3.0.0",
55
55
  "vue": "^3.0.0"
56
56
  },
57
57
  "authors": [