@dxos/react-async 2.29.2-dev.dd10aa83 → 2.29.2-dev.f64f2a6f
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/package.json +12 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/react-async",
|
|
3
|
-
"version": "2.29.2-dev.
|
|
3
|
+
"version": "2.29.2-dev.f64f2a6f",
|
|
4
4
|
"description": "Async utils",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "DXOS.org",
|
|
@@ -10,13 +10,21 @@
|
|
|
10
10
|
"dist",
|
|
11
11
|
"src"
|
|
12
12
|
],
|
|
13
|
+
"scripts": {
|
|
14
|
+
"book": "toolchain book",
|
|
15
|
+
"build": "toolchain build",
|
|
16
|
+
"build:book": "toolchain build:book",
|
|
17
|
+
"build:test": "toolchain build:test",
|
|
18
|
+
"lint": "toolchain lint",
|
|
19
|
+
"test": "toolchain test"
|
|
20
|
+
},
|
|
13
21
|
"dependencies": {
|
|
14
22
|
"immutability-helper": "^3.0.2"
|
|
15
23
|
},
|
|
16
24
|
"devDependencies": {
|
|
17
25
|
"@dxos/esbuild-plugins": "~2.28.7",
|
|
18
26
|
"@dxos/eslint-plugin": "~1.0.27",
|
|
19
|
-
"@dxos/protocols-toolchain": "
|
|
27
|
+
"@dxos/protocols-toolchain": "workspace:*",
|
|
20
28
|
"@types/mocha": "~8.2.2",
|
|
21
29
|
"@types/node": "^14.0.9",
|
|
22
30
|
"@types/react": "^17.0.24",
|
|
@@ -39,14 +47,5 @@
|
|
|
39
47
|
"forceCloseTests": true,
|
|
40
48
|
"jsdom": true,
|
|
41
49
|
"testingFramework": "mocha"
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
"book": "toolchain book",
|
|
45
|
-
"build": "toolchain build",
|
|
46
|
-
"build:book": "toolchain build:book",
|
|
47
|
-
"build:test": "toolchain build:test",
|
|
48
|
-
"lint": "toolchain lint",
|
|
49
|
-
"test": "toolchain test"
|
|
50
|
-
},
|
|
51
|
-
"readme": "## React Async\n\n### Configuration\n\nAdd the following to `package.json`.\n\n```json\n \"toolchain\": {\n \"forceCloseTests\": true,\n \"jsdom\": true,\n \"testingFramework\": \"mocha\"\n }\n```\n\nThe `react-dom/test-utils` requires the `raf` (React animation frame) polyfill to run headless.\n\n```ts\nimport 'raf/polyfill';\nimport { act } from 'react-dom/test-utils';\n```\n\n### Next\n\nEvaluate the following:\n\n- https://www.npmjs.com/package/react-async-hook (popular)\n- https://www.npmjs.com/package/use-enhanced-state\n- https://www.npmjs.com/package/react-hooks-lib\n"
|
|
52
|
-
}
|
|
50
|
+
}
|
|
51
|
+
}
|