vite-plugin-taro-plugin-framework-react 4.2.0-react19.1 → 4.2.0-react19.3
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 +41 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,45 @@
|
|
|
1
1
|
# vite-plugin-taro-plugin-framework-react
|
|
2
2
|
|
|
3
|
-
React 19
|
|
3
|
+
> React 19 compatibility build of `@tarojs/plugin-framework-react@4.2.0` for `vite-plugin-taro`.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Status
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
This is a generated support package. It is published so `vite-plugin-taro` can depend on a React 19-compatible Taro React framework plugin through the `@tarojs/plugin-framework-react` package slot. Application code should not import this package directly.
|
|
8
|
+
|
|
9
|
+
Most apps should install and import from `vite-plugin-taro` instead:
|
|
10
|
+
|
|
11
|
+
```tsx
|
|
12
|
+
import { View } from 'vite-plugin-taro/components'
|
|
13
|
+
import Taro from 'vite-plugin-taro/taro'
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Why this package exists
|
|
17
|
+
|
|
18
|
+
`vite-plugin-taro` targets React 19 while keeping the official Taro runtime behavior. This package is produced from the upstream Taro npm tarball plus a small local compatibility patch, then published under the `vite-plugin-taro-plugin-framework-react` name for reproducible installs.
|
|
19
|
+
|
|
20
|
+
## Generated source
|
|
21
|
+
|
|
22
|
+
- Generator: [`scripts/build-patched-taro-packages.mjs`](../../scripts/build-patched-taro-packages.mjs)
|
|
23
|
+
- Patch: [`patches/@tarojs__plugin-framework-react@4.2.0-react19.patch`](../../patches/@tarojs__plugin-framework-react@4.2.0-react19.patch)
|
|
24
|
+
- Output package directory: [`packages/taro-plugin-framework-react`](.)
|
|
25
|
+
|
|
26
|
+
Regenerate from the repository root:
|
|
27
|
+
|
|
28
|
+
```sh
|
|
29
|
+
pnpm prepare:taro
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Maintenance checklist
|
|
33
|
+
|
|
34
|
+
When updating the upstream Taro version:
|
|
35
|
+
|
|
36
|
+
1. Update `upstreamVersion` in `scripts/build-patched-taro-packages.mjs`.
|
|
37
|
+
2. Refresh the matching patch file in `patches/`.
|
|
38
|
+
3. Update this package version in `package.json`.
|
|
39
|
+
4. Update this README template.
|
|
40
|
+
5. Run `pnpm prepare:taro`.
|
|
41
|
+
6. Run `pnpm build:plugin`, `pnpm typecheck`, `pnpm build:sample:h5`, and `pnpm build:sample:wx`.
|
|
42
|
+
|
|
43
|
+
## License
|
|
44
|
+
|
|
45
|
+
MIT. Upstream Taro is MIT licensed by O2Team. See [`LICENSE`](LICENSE).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-plugin-taro-plugin-framework-react",
|
|
3
|
-
"version": "4.2.0-react19.
|
|
3
|
+
"version": "4.2.0-react19.3",
|
|
4
4
|
"description": "React 19 compatible fork of @tarojs/plugin-framework-react for vite-plugin-taro.",
|
|
5
5
|
"author": "O2Team, felix",
|
|
6
6
|
"license": "MIT",
|