@react-pixi-fiber/react-17 1.0.0-alpha.0 → 1.0.0-beta.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/CHANGELOG.md +6 -0
- package/README.md +4 -2
- package/package.json +7 -6
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# @react-pixi-fiber/react-17
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://npmjs.com/package/@react-pixi-fiber/react-17)
|
|
4
|
+
|
|
5
|
+
React 17 adapter for [react-pixi-fiber](https://github.com/KalambaGames/react-pixi-fiber). It bundles `react-reconciler` 0.26.2 and builds the renderer that `react-pixi-fiber` uses to render PixiJS Display Objects. It needs React 17.0.2 or a later 17.x, the peer range of that `react-reconciler`.
|
|
4
6
|
|
|
5
7
|
Install it next to `react-pixi-fiber`, `react` 17 and a PixiJS adapter from the [adapter table](../react-pixi-fiber/README.md#setup), then configure once in the app entry, before the first render:
|
|
6
8
|
|
|
@@ -20,7 +22,7 @@ The tree inside `Stage`, or inside a container passed to `render`, is its own Re
|
|
|
20
22
|
|
|
21
23
|
| Feature | Support |
|
|
22
24
|
| --- | --- |
|
|
23
|
-
| Context, error boundaries, hooks, refs | Supported. A ref on a tag receives the PixiJS
|
|
25
|
+
| Context, error boundaries, hooks, refs | Supported. A ref on a tag receives the PixiJS Display Object |
|
|
24
26
|
| Concurrent features | With `root: "concurrent"`, experimental, as concurrent mode is in React 17: `render` commits synchronously and later updates are scheduled by React. As with `unstable_createRoot`, the whole tree is in strict mode, so React renders each component twice in development. An update from a PixiJS event handler does not get the priority of its DOM event. With the default `root: "legacy"`, not available: the root is a legacy root, as `ReactDOM.render` creates |
|
|
25
27
|
| DevTools | The renderer registers with React DevTools as `react-pixi-fiber` in development |
|
|
26
28
|
| Errors while rendering | Thrown from `render` and caught by error boundaries, as in React 17 |
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-pixi-fiber/react-17",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-beta.0",
|
|
4
4
|
"description": "React 17 adapter for react-pixi-fiber",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "Michal Ochman",
|
|
7
7
|
"license": "MIT",
|
|
8
|
+
"homepage": "https://react-pixi-fiber.pages.dev",
|
|
8
9
|
"repository": {
|
|
9
10
|
"type": "git",
|
|
10
|
-
"url": "git+https://github.com/
|
|
11
|
+
"url": "git+https://github.com/KalambaGames/react-pixi-fiber.git",
|
|
11
12
|
"directory": "packages/react-17"
|
|
12
13
|
},
|
|
13
14
|
"typings": "./dist/cjs/react-17.d.ts",
|
|
@@ -43,11 +44,11 @@
|
|
|
43
44
|
"react-pixi-fiber": "^3.0.0-alpha.0"
|
|
44
45
|
},
|
|
45
46
|
"devDependencies": {
|
|
46
|
-
"@types/react": "
|
|
47
|
-
"@types/react-reconciler": "
|
|
48
|
-
"react": "
|
|
47
|
+
"@types/react": "17.0.93",
|
|
48
|
+
"@types/react-reconciler": "0.26.7",
|
|
49
|
+
"react": "17.0.2",
|
|
49
50
|
"react-reconciler": "0.26.2",
|
|
50
|
-
"react-pixi-fiber": "3.0.0-
|
|
51
|
+
"react-pixi-fiber": "3.0.0-beta.0"
|
|
51
52
|
},
|
|
52
53
|
"scripts": {
|
|
53
54
|
"build": "rm -rf dist && pnpm run build:prod && pnpm run build:dev",
|