@flare-engine/engine 0.3.1 → 0.4.1
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 +4 -2
- package/package.json +20 -18
package/README.md
CHANGED
|
@@ -37,9 +37,11 @@ See [API spec](https://github.com/grzott/flare-engine/blob/main/docs/design/api-
|
|
|
37
37
|
|
|
38
38
|
## React Native New Architecture
|
|
39
39
|
|
|
40
|
-
Flare's
|
|
40
|
+
Flare's headless packages are architecture-agnostic pure TypeScript. **`@flare-engine/react` requires the New Architecture.** It peers `react-native-reanimated >= 4.0.0` and `react-native-worklets >= 0.7.0`, and Reanimated 4 is New-Architecture-only — so an app using `<GameView>` must run with `newArchEnabled=true`.
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
In practice this costs nothing: the New Architecture has been RN's default since 0.76, and every `@flare-engine/create` template pins Expo 57 / RN 0.86, which force it on.
|
|
43
|
+
|
|
44
|
+
> **Old-architecture support was dropped deliberately, in [ADR-0002](https://github.com/grzott/flare-engine/blob/main/docs/design/adr-0002-worklets-migration-and-new-arch-floor.md).** The earlier `>= 3.19.1` floor was chosen to keep Reanimated 3 — and therefore old-architecture apps — viable, but the claim was never verifiable: no scaffolder template can produce such an app, because `expo prebuild` overrides an `app.json` opt-out. Rather than keep shipping a promise we could not test, the engine now depends on `react-native-worklets` directly, which also removes a per-frame allocation on the native render path.
|
|
43
45
|
|
|
44
46
|
## License
|
|
45
47
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flare-engine/engine",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Flare Engine umbrella — curated barrel (14 headless packages + postfx + react); ./headless subpath for web-only and Node consumers",
|
|
5
5
|
"keywords": ["flare-engine", "2d", "react-native", "web", "skia"],
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -47,28 +47,30 @@
|
|
|
47
47
|
"typecheck": "tsc --noEmit"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@flare-engine/math": "^0.
|
|
51
|
-
"@flare-engine/events": "^0.
|
|
52
|
-
"@flare-engine/core": "^0.
|
|
53
|
-
"@flare-engine/dynamics": "^0.
|
|
54
|
-
"@flare-engine/ecs": "^0.
|
|
55
|
-
"@flare-engine/render": "^0.
|
|
56
|
-
"@flare-engine/input": "^0.
|
|
57
|
-
"@flare-engine/physics": "^0.
|
|
58
|
-
"@flare-engine/audio": "^0.
|
|
59
|
-
"@flare-engine/assets": "^0.
|
|
60
|
-
"@flare-engine/scene": "^0.
|
|
61
|
-
"@flare-engine/animation": "^0.
|
|
62
|
-
"@flare-engine/particles": "^0.
|
|
63
|
-
"@flare-engine/tilemap": "^0.
|
|
64
|
-
"@flare-engine/debug": "^0.
|
|
65
|
-
"@flare-engine/postfx": "^0.
|
|
66
|
-
"@flare-engine/react": "^0.
|
|
50
|
+
"@flare-engine/math": "^0.4.1",
|
|
51
|
+
"@flare-engine/events": "^0.4.1",
|
|
52
|
+
"@flare-engine/core": "^0.4.1",
|
|
53
|
+
"@flare-engine/dynamics": "^0.4.1",
|
|
54
|
+
"@flare-engine/ecs": "^0.4.1",
|
|
55
|
+
"@flare-engine/render": "^0.4.1",
|
|
56
|
+
"@flare-engine/input": "^0.4.1",
|
|
57
|
+
"@flare-engine/physics": "^0.4.1",
|
|
58
|
+
"@flare-engine/audio": "^0.4.1",
|
|
59
|
+
"@flare-engine/assets": "^0.4.1",
|
|
60
|
+
"@flare-engine/scene": "^0.4.1",
|
|
61
|
+
"@flare-engine/animation": "^0.4.1",
|
|
62
|
+
"@flare-engine/particles": "^0.4.1",
|
|
63
|
+
"@flare-engine/tilemap": "^0.4.1",
|
|
64
|
+
"@flare-engine/debug": "^0.4.1",
|
|
65
|
+
"@flare-engine/postfx": "^0.4.1",
|
|
66
|
+
"@flare-engine/react": "^0.4.1"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
69
|
"react": ">=19.0.0",
|
|
70
70
|
"react-native": ">=0.79.0",
|
|
71
71
|
"@shopify/react-native-skia": ">=2.0.0",
|
|
72
|
+
"react-native-reanimated": ">=4.0.0",
|
|
73
|
+
"react-native-worklets": ">=0.7.0",
|
|
72
74
|
"react-native-safe-area-context": ">=4.0.0",
|
|
73
75
|
"react-native-audio-api": ">=0.3.0"
|
|
74
76
|
},
|