@tamagui/cli 3.0.0-beta.881.1 → 3.0.0-beta.891.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
@@ -107,6 +107,7 @@ add a compatibility setting or restore condition-object parsing.
107
107
  - New applications should use \`defaultConfig\` from \`@tamagui/config/v6\`.
108
108
  - Existing V5 applications can keep \`@tamagui/config/v5\` or \`/v5-subtle\` while migrating incrementally. These are frozen static compatibility packs, so they preserve the V5 token and theme values but will not receive new theme-builder features.
109
109
  - Import animations from \`@tamagui/config/animations-css\`, \`animations-rn\`, \`animations-reanimated\`, or \`animations-motion\`.
110
+ - Apps using Sheet or animated-number hooks with the CSS driver must import \`createAnimations\` from \`@tamagui/animations-css/extras\`. The root entry omits those hooks.
110
111
  - Remove \`@tamagui/theme-builder\` and any V5 builder imports. Static \`@tamagui/themes/v5\`, \`/v5-subtle\`, and \`/v5-tokens\` imports remain supported.
111
112
  - Use \`createThemes\`, \`levels\`, scales, and the other recipe helpers from \`@tamagui/themes/builder\`.
112
113
  - Remove \`componentThemes\`, \`templates\`, \`masks\`, \`childrenThemes\`, and \`grandChildrenThemes\`. Express hierarchy in the recipe tree, semantic values in scales, and exact one-theme overrides in \`values\`.
@@ -137,21 +138,12 @@ Search the config and application together:
137
138
  rg "@tamagui/theme-builder|v5-builder|createV5Theme|componentThemes|grandChildrenThemes|surface[1-4]|color12"
138
139
  \`\`\`
139
140
 
140
- ### 4. Run the Sheet codemod
141
+ ### 4. Migrate Sheet anatomy
141
142
 
142
- Run the codemod, then inspect every changed Sheet:
143
-
144
- \`\`\`bash
145
- node ./node_modules/tamagui/scripts/codemods/sheet-frame-to-container.js "src/**/*.{ts,tsx}"
146
- \`\`\`
147
-
148
- If working inside a Tamagui checkout, this path is also valid:
149
-
150
- \`\`\`bash
151
- node ./scripts/codemods/sheet-frame-to-container.js "src/**/*.{ts,tsx}"
152
- \`\`\`
153
-
154
- Migration rules:
143
+ The flat-values codemod from step 1 rewrites every provable \`Sheet.Frame\` to
144
+ \`Sheet.Container\` with a \`Sheet.Background\` first child carrying the surface
145
+ props, and reports spreads and \`styled(Sheet.Frame, \u2026)\` targets for review.
146
+ Check each rewritten callsite against these rules:
155
147
 
156
148
  - Replace \`Sheet.Frame\` with \`Sheet.Container\` plus \`Sheet.Background\`.
157
149
  - Keep layout props such as \`padding\`, \`gap\`, \`height\`, \`maxHeight\`, and flex props on \`Sheet.Container\`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/cli",
3
- "version": "3.0.0-beta.881.1",
3
+ "version": "3.0.0-beta.891.1",
4
4
  "bin": {
5
5
  "tama": "dist/index.cjs",
6
6
  "tamagui": "dist/index.cjs"
@@ -51,12 +51,12 @@
51
51
  "test:web": "bun run test"
52
52
  },
53
53
  "dependencies": {
54
- "@tamagui/generate-themes": "3.0.0-beta.881.1",
55
- "@tamagui/metro-plugin": "3.0.0-beta.881.1",
56
- "@tamagui/static": "3.0.0-beta.881.1",
57
- "@tamagui/to-tailwind": "3.0.0-beta.881.1",
58
- "@tamagui/types": "3.0.0-beta.881.1",
59
- "@tamagui/vite-plugin": "3.0.0-beta.881.1",
54
+ "@tamagui/generate-themes": "3.0.0-beta.891.1",
55
+ "@tamagui/metro-plugin": "3.0.0-beta.891.1",
56
+ "@tamagui/static": "3.0.0-beta.891.1",
57
+ "@tamagui/to-tailwind": "3.0.0-beta.891.1",
58
+ "@tamagui/types": "3.0.0-beta.891.1",
59
+ "@tamagui/vite-plugin": "3.0.0-beta.891.1",
60
60
  "arg": "^5.0.2",
61
61
  "chalk": "^4.1.2",
62
62
  "change-case": "^4.1.2",
@@ -75,10 +75,10 @@
75
75
  "ts-morph": "^28.0.0",
76
76
  "typescript": "~6.0.3",
77
77
  "url": "^0.11.0",
78
- "@tamagui/language-service": "3.0.0-beta.881.1"
78
+ "@tamagui/language-service": "3.0.0-beta.891.1"
79
79
  },
80
80
  "devDependencies": {
81
- "@tamagui/build": "3.0.0-beta.881.1",
81
+ "@tamagui/build": "3.0.0-beta.891.1",
82
82
  "@types/chokidar": "^2.1.3",
83
83
  "@types/marked": "^5.0.0",
84
84
  "vitest": "4.1.0"
package/src/migrate.ts CHANGED
@@ -91,6 +91,7 @@ add a compatibility setting or restore condition-object parsing.
91
91
  - New applications should use \`defaultConfig\` from \`@tamagui/config/v6\`.
92
92
  - Existing V5 applications can keep \`@tamagui/config/v5\` or \`/v5-subtle\` while migrating incrementally. These are frozen static compatibility packs, so they preserve the V5 token and theme values but will not receive new theme-builder features.
93
93
  - Import animations from \`@tamagui/config/animations-css\`, \`animations-rn\`, \`animations-reanimated\`, or \`animations-motion\`.
94
+ - Apps using Sheet or animated-number hooks with the CSS driver must import \`createAnimations\` from \`@tamagui/animations-css/extras\`. The root entry omits those hooks.
94
95
  - Remove \`@tamagui/theme-builder\` and any V5 builder imports. Static \`@tamagui/themes/v5\`, \`/v5-subtle\`, and \`/v5-tokens\` imports remain supported.
95
96
  - Use \`createThemes\`, \`levels\`, scales, and the other recipe helpers from \`@tamagui/themes/builder\`.
96
97
  - Remove \`componentThemes\`, \`templates\`, \`masks\`, \`childrenThemes\`, and \`grandChildrenThemes\`. Express hierarchy in the recipe tree, semantic values in scales, and exact one-theme overrides in \`values\`.
@@ -121,21 +122,12 @@ Search the config and application together:
121
122
  rg "@tamagui/theme-builder|v5-builder|createV5Theme|componentThemes|grandChildrenThemes|surface[1-4]|color12"
122
123
  \`\`\`
123
124
 
124
- ### 4. Run the Sheet codemod
125
+ ### 4. Migrate Sheet anatomy
125
126
 
126
- Run the codemod, then inspect every changed Sheet:
127
-
128
- \`\`\`bash
129
- node ./node_modules/tamagui/scripts/codemods/sheet-frame-to-container.js "src/**/*.{ts,tsx}"
130
- \`\`\`
131
-
132
- If working inside a Tamagui checkout, this path is also valid:
133
-
134
- \`\`\`bash
135
- node ./scripts/codemods/sheet-frame-to-container.js "src/**/*.{ts,tsx}"
136
- \`\`\`
137
-
138
- Migration rules:
127
+ The flat-values codemod from step 1 rewrites every provable \`Sheet.Frame\` to
128
+ \`Sheet.Container\` with a \`Sheet.Background\` first child carrying the surface
129
+ props, and reports spreads and \`styled(Sheet.Frame, …)\` targets for review.
130
+ Check each rewritten callsite against these rules:
139
131
 
140
132
  - Replace \`Sheet.Frame\` with \`Sheet.Container\` plus \`Sheet.Background\`.
141
133
  - Keep layout props such as \`padding\`, \`gap\`, \`height\`, \`maxHeight\`, and flex props on \`Sheet.Container\`.