@nkzw/vite-plugin-fbtee 5.0.0 → 6.0.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 -0
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -392,6 +392,10 @@ export default [
392
392
 
393
393
  Use `fbtee.configs.strict.rules` to also check for untranslated text.
394
394
 
395
+ ## Migration to fbtee 6
396
+
397
+ `fbt()` now returns strings for text-only messages and real React Fragments for rich messages. Its return type is `string | ReactElement`; use `fbs()` for string-only props, attributes, and storage. The `FbtResult` runtime class and its custom serialization methods are removed. See the [React result migration guide](docs/react-results.md) for compatibility details, tests, and production benchmarks.
398
+
395
399
  ## Migration from fbtee 4
396
400
 
397
401
  fbtee 5 combines `@nkzw/fbtee-cli` and `@nkzw/oxc-transform-fbtee` into `@nkzw/fbtee-compiler`:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nkzw/vite-plugin-fbtee",
3
- "version": "5.0.0",
3
+ "version": "6.0.0",
4
4
  "description": "Vite plugin for fbtee powered by the native Oxc transform.",
5
5
  "keywords": [
6
6
  "fbt",
@@ -33,10 +33,10 @@
33
33
  }
34
34
  },
35
35
  "dependencies": {
36
- "@nkzw/fbtee-compiler": "5.0.0"
36
+ "@nkzw/fbtee-compiler": "6.0.0"
37
37
  },
38
38
  "devDependencies": {
39
- "vite": "^8.1.5"
39
+ "vite": "^8.3.7"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "vite": ">=6.3.0"