@tamagui/cli 3.0.0-beta.1312.1 → 3.0.0-beta.1341.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/dist/migrate.cjs CHANGED
@@ -100,8 +100,10 @@ V3 accepts bare token/theme names and flat clauses only. Run the transactional
100
100
  flat-values codemod from your project root, dry run first:
101
101
 
102
102
  \`\`\`bash
103
- npx @tamagui/codemod-flat-values --report flat-values-report.md ./src
103
+ npx @tamagui/codemod-flat-values --source-semantics v2-pixels \\
104
+ --report flat-values-report.md ./src
104
105
  npx @tamagui/codemod-flat-values --write \\
106
+ --source-semantics v2-pixels \\
105
107
  --report flat-values-report.md \\
106
108
  --json flat-values-report.json \\
107
109
  ./src
@@ -247,12 +249,14 @@ const padding = getVariableValue(getSize(size)) * 0.6
247
249
 
248
250
  Use explicit token keys when you need a named smaller or larger token. Use numeric multiplication when proportional sizing is intended.
249
251
 
250
- ### 8. Audit font size values
252
+ ### 8. Migrate line heights and audit font size values
251
253
 
252
254
  - \`fontSize={17}\` is a raw numeric platform value and keeps platform-default line-height behavior.
253
255
  - \`fontSize="17px"\` is an exact pixel value.
254
- - Configured font \`size\` and \`lineHeight\` tokens should use px strings when exact web pixels are intended.
255
- - Convert custom config font tokens to px strings if exact pixels were intended.
256
+ - V3 interprets numeric Tamagui \`lineHeight\` props as ratios on web and native. The flat-values command above explicitly selects \`v2-pixels\`, so old numeric Tamagui styles become px strings, including values below 4.
257
+ - Keep raw React Native and Restyle numeric styles unchanged. Review every \`ambiguous-line-height-*\` report entry where a shared object, untyped expression, or extracted token value needs a boundary-specific decision.
258
+ - Configured font \`lineHeight\` numbers remain absolute pixels. Numeric strings such as \`"1.5"\` are ratios, while \`"24px"\` is explicit. The codemod does not rewrite font configuration.
259
+ - Rerun the codemod with the same source semantics until it reports no remaining line-height work. Explicit px output is idempotent.
256
260
 
257
261
  ### 9. Update FocusScope
258
262
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/cli",
3
- "version": "3.0.0-beta.1312.1",
3
+ "version": "3.0.0-beta.1341.1",
4
4
  "license": "MIT",
5
5
  "bin": {
6
6
  "tama": "dist/index.cjs",
@@ -52,12 +52,12 @@
52
52
  "test:web": "bun run test"
53
53
  },
54
54
  "dependencies": {
55
- "@tamagui/generate-themes": "3.0.0-beta.1312.1",
56
- "@tamagui/metro-plugin": "3.0.0-beta.1312.1",
57
- "@tamagui/static": "3.0.0-beta.1312.1",
58
- "@tamagui/to-tailwind": "3.0.0-beta.1312.1",
59
- "@tamagui/types": "3.0.0-beta.1312.1",
60
- "@tamagui/vite-plugin": "3.0.0-beta.1312.1",
55
+ "@tamagui/generate-themes": "3.0.0-beta.1341.1",
56
+ "@tamagui/metro-plugin": "3.0.0-beta.1341.1",
57
+ "@tamagui/static": "3.0.0-beta.1341.1",
58
+ "@tamagui/to-tailwind": "3.0.0-beta.1341.1",
59
+ "@tamagui/types": "3.0.0-beta.1341.1",
60
+ "@tamagui/vite-plugin": "3.0.0-beta.1341.1",
61
61
  "arg": "^5.0.2",
62
62
  "chalk": "^4.1.2",
63
63
  "change-case": "^4.1.2",
@@ -76,10 +76,10 @@
76
76
  "ts-morph": "^28.0.0",
77
77
  "typescript": "7.0.2",
78
78
  "url": "^0.11.0",
79
- "@tamagui/language-service": "3.0.0-beta.1312.1"
79
+ "@tamagui/language-service": "3.0.0-beta.1341.1"
80
80
  },
81
81
  "devDependencies": {
82
- "@tamagui/build": "3.0.0-beta.1312.1",
82
+ "@tamagui/build": "3.0.0-beta.1341.1",
83
83
  "@types/chokidar": "^2.1.3",
84
84
  "@types/marked": "^5.0.0",
85
85
  "vitest": "4.1.0"
package/src/migrate.ts CHANGED
@@ -84,8 +84,10 @@ V3 accepts bare token/theme names and flat clauses only. Run the transactional
84
84
  flat-values codemod from your project root, dry run first:
85
85
 
86
86
  \`\`\`bash
87
- npx @tamagui/codemod-flat-values --report flat-values-report.md ./src
87
+ npx @tamagui/codemod-flat-values --source-semantics v2-pixels \\
88
+ --report flat-values-report.md ./src
88
89
  npx @tamagui/codemod-flat-values --write \\
90
+ --source-semantics v2-pixels \\
89
91
  --report flat-values-report.md \\
90
92
  --json flat-values-report.json \\
91
93
  ./src
@@ -231,12 +233,14 @@ const padding = getVariableValue(getSize(size)) * 0.6
231
233
 
232
234
  Use explicit token keys when you need a named smaller or larger token. Use numeric multiplication when proportional sizing is intended.
233
235
 
234
- ### 8. Audit font size values
236
+ ### 8. Migrate line heights and audit font size values
235
237
 
236
238
  - \`fontSize={17}\` is a raw numeric platform value and keeps platform-default line-height behavior.
237
239
  - \`fontSize="17px"\` is an exact pixel value.
238
- - Configured font \`size\` and \`lineHeight\` tokens should use px strings when exact web pixels are intended.
239
- - Convert custom config font tokens to px strings if exact pixels were intended.
240
+ - V3 interprets numeric Tamagui \`lineHeight\` props as ratios on web and native. The flat-values command above explicitly selects \`v2-pixels\`, so old numeric Tamagui styles become px strings, including values below 4.
241
+ - Keep raw React Native and Restyle numeric styles unchanged. Review every \`ambiguous-line-height-*\` report entry where a shared object, untyped expression, or extracted token value needs a boundary-specific decision.
242
+ - Configured font \`lineHeight\` numbers remain absolute pixels. Numeric strings such as \`"1.5"\` are ratios, while \`"24px"\` is explicit. The codemod does not rewrite font configuration.
243
+ - Rerun the codemod with the same source semantics until it reports no remaining line-height work. Explicit px output is idempotent.
240
244
 
241
245
  ### 9. Update FocusScope
242
246