@flare-engine/engine 0.3.0 → 0.4.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.
Files changed (2) hide show
  1. package/README.md +4 -2
  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 engine packages are architecture-agnostic pure TypeScript — they run on both the legacy and the New Architecture, so the engine itself imposes no New-Architecture requirement. The `react-native >= 0.79` peer floor still admits old-architecture apps: the New Architecture has been the default since RN 0.76, but 0.79-0.81 still allow an explicit `newArchEnabled: false` opt-out, and Flare runs either way.
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
- The requirement comes from your app's *other* native dependencies, not from Flare. Notably, `react-native-reanimated` v4 is New-Architecture-only — if you pin Reanimated 4 (or any other New-Arch-only native module), enable the New Architecture. The Flare engine works either way.
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.0",
3
+ "version": "0.4.0",
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.3.0",
51
- "@flare-engine/events": "^0.3.0",
52
- "@flare-engine/core": "^0.3.0",
53
- "@flare-engine/dynamics": "^0.3.0",
54
- "@flare-engine/ecs": "^0.3.0",
55
- "@flare-engine/render": "^0.3.0",
56
- "@flare-engine/input": "^0.3.0",
57
- "@flare-engine/physics": "^0.3.0",
58
- "@flare-engine/audio": "^0.3.0",
59
- "@flare-engine/assets": "^0.3.0",
60
- "@flare-engine/scene": "^0.3.0",
61
- "@flare-engine/animation": "^0.3.0",
62
- "@flare-engine/particles": "^0.3.0",
63
- "@flare-engine/tilemap": "^0.3.0",
64
- "@flare-engine/debug": "^0.3.0",
65
- "@flare-engine/postfx": "^0.3.0",
66
- "@flare-engine/react": "^0.3.0"
50
+ "@flare-engine/math": "^0.4.0",
51
+ "@flare-engine/events": "^0.4.0",
52
+ "@flare-engine/core": "^0.4.0",
53
+ "@flare-engine/dynamics": "^0.4.0",
54
+ "@flare-engine/ecs": "^0.4.0",
55
+ "@flare-engine/render": "^0.4.0",
56
+ "@flare-engine/input": "^0.4.0",
57
+ "@flare-engine/physics": "^0.4.0",
58
+ "@flare-engine/audio": "^0.4.0",
59
+ "@flare-engine/assets": "^0.4.0",
60
+ "@flare-engine/scene": "^0.4.0",
61
+ "@flare-engine/animation": "^0.4.0",
62
+ "@flare-engine/particles": "^0.4.0",
63
+ "@flare-engine/tilemap": "^0.4.0",
64
+ "@flare-engine/debug": "^0.4.0",
65
+ "@flare-engine/postfx": "^0.4.0",
66
+ "@flare-engine/react": "^0.4.0"
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
  },