@tamagui/cli 3.0.0-beta.881.1 → 3.0.0-beta.889.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 +9 -8
- package/package.json +9 -9
- package/src/migrate.ts +9 -8
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,18 +138,18 @@ 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.
|
|
141
|
+
### 4. Migrate Sheet anatomy
|
|
141
142
|
|
|
142
|
-
|
|
143
|
+
The v3 package does not ship a Sheet codemod. Migrate each callsite using the
|
|
144
|
+
rules below.
|
|
143
145
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
If working inside a Tamagui checkout, this path is also valid:
|
|
146
|
+
When working inside a Tamagui source checkout, you can run its source-only
|
|
147
|
+
codemod first. Pass expanded file paths because the script does not expand a
|
|
148
|
+
quoted glob:
|
|
149
149
|
|
|
150
150
|
\`\`\`bash
|
|
151
|
-
|
|
151
|
+
rg --files src -g '*.ts' -g '*.tsx' -0 \\
|
|
152
|
+
| xargs -0 node ./scripts/codemods/sheet-frame-to-container.js
|
|
152
153
|
\`\`\`
|
|
153
154
|
|
|
154
155
|
Migration rules:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/cli",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.889.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.
|
|
55
|
-
"@tamagui/metro-plugin": "3.0.0-beta.
|
|
56
|
-
"@tamagui/static": "3.0.0-beta.
|
|
57
|
-
"@tamagui/to-tailwind": "3.0.0-beta.
|
|
58
|
-
"@tamagui/types": "3.0.0-beta.
|
|
59
|
-
"@tamagui/vite-plugin": "3.0.0-beta.
|
|
54
|
+
"@tamagui/generate-themes": "3.0.0-beta.889.1",
|
|
55
|
+
"@tamagui/metro-plugin": "3.0.0-beta.889.1",
|
|
56
|
+
"@tamagui/static": "3.0.0-beta.889.1",
|
|
57
|
+
"@tamagui/to-tailwind": "3.0.0-beta.889.1",
|
|
58
|
+
"@tamagui/types": "3.0.0-beta.889.1",
|
|
59
|
+
"@tamagui/vite-plugin": "3.0.0-beta.889.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.
|
|
78
|
+
"@tamagui/language-service": "3.0.0-beta.889.1"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
|
-
"@tamagui/build": "3.0.0-beta.
|
|
81
|
+
"@tamagui/build": "3.0.0-beta.889.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,18 +122,18 @@ 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.
|
|
125
|
+
### 4. Migrate Sheet anatomy
|
|
125
126
|
|
|
126
|
-
|
|
127
|
+
The v3 package does not ship a Sheet codemod. Migrate each callsite using the
|
|
128
|
+
rules below.
|
|
127
129
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
If working inside a Tamagui checkout, this path is also valid:
|
|
130
|
+
When working inside a Tamagui source checkout, you can run its source-only
|
|
131
|
+
codemod first. Pass expanded file paths because the script does not expand a
|
|
132
|
+
quoted glob:
|
|
133
133
|
|
|
134
134
|
\`\`\`bash
|
|
135
|
-
|
|
135
|
+
rg --files src -g '*.ts' -g '*.tsx' -0 \\
|
|
136
|
+
| xargs -0 node ./scripts/codemods/sheet-frame-to-container.js
|
|
136
137
|
\`\`\`
|
|
137
138
|
|
|
138
139
|
Migration rules:
|