@reckona/mreact-compat 0.0.3 → 0.0.4
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 +34 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -25,6 +25,40 @@ compatibility runtime.
|
|
|
25
25
|
- `@reckona/mreact-compat/flight` and `./internal` are framework integration
|
|
26
26
|
entrypoints.
|
|
27
27
|
|
|
28
|
+
## React 19.2.6 Coverage
|
|
29
|
+
|
|
30
|
+
The compatibility gate compares the public React, React DOM, React DOM client,
|
|
31
|
+
and React DOM server export sets against React 19.2.6. New upstream exports must
|
|
32
|
+
be classified before they can be ignored.
|
|
33
|
+
|
|
34
|
+
Covered behavior families:
|
|
35
|
+
|
|
36
|
+
| Area | Coverage |
|
|
37
|
+
| --- | --- |
|
|
38
|
+
| Element APIs | `createElement`, `cloneElement`, fragments, refs, `Children`, and JSX runtimes |
|
|
39
|
+
| Components | Function components, class components, `memo`, `forwardRef`, `lazy`, `StrictMode`, `Activity`, and `Profiler` |
|
|
40
|
+
| Hooks | State, reducer, context, effects, layout/insertion effects, memo/callback, refs, imperative handles, IDs, transitions, deferred values, external stores, actions, optimistic state, `use`, and `useEffectEvent` |
|
|
41
|
+
| DOM roots | `createRoot`, `hydrateRoot`, unmounting, synthetic events, portals, form controls, and hydration mismatch handling |
|
|
42
|
+
| Server rendering | `renderToString`, `renderToStaticMarkup`, `renderToReadableStream`, `renderToPipeableStream`, `resume`, and `resumeToPipeableStream` |
|
|
43
|
+
| Resource hints | `preconnect`, `prefetchDNS`, `preload`, `preloadModule`, `preinit`, and `preinitModule` |
|
|
44
|
+
| Flight | React Flight row parsing, model token decoding, server references, client references, binary chunks, and protocol coverage assertions |
|
|
45
|
+
|
|
46
|
+
Run the focused compatibility checks with:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
pnpm test:react-conformance
|
|
50
|
+
pnpm exec vitest run packages/react-compat/test/react-official-conformance.test.ts packages/react-compat/test/react-official-suite-gate.test.ts
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Known limits:
|
|
54
|
+
|
|
55
|
+
- This is a React-like compatibility runtime, not a byte-for-byte React
|
|
56
|
+
reconciler. The tests assert observable behavior for the supported surface.
|
|
57
|
+
- The app-router compiler path is separate from the React-compatible runtime.
|
|
58
|
+
Compiler and router behavior is covered by their own tests.
|
|
59
|
+
- React private internals such as `__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE`
|
|
60
|
+
are intentionally classified as private, not implemented as public API.
|
|
61
|
+
|
|
28
62
|
## Notes
|
|
29
63
|
|
|
30
64
|
The compatibility runtime is useful for drop-in React-like behavior. The faster
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reckona/mreact-compat",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "React-compatible runtime implementation for mreact.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"compatibility",
|
|
@@ -64,6 +64,6 @@
|
|
|
64
64
|
"access": "public"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@reckona/mreact-shared": "0.0.
|
|
67
|
+
"@reckona/mreact-shared": "0.0.4"
|
|
68
68
|
}
|
|
69
69
|
}
|