fix(mobile): upgrade Uniwind and remove local patch (#14597)
This commit is contained in:
1 parent
2a778f7a6e
commit
250e052f44
6 files changed
+16
-1031
No files matched your search
@@ -127,7 +127,7 @@
|
||||
"react-native-worklets": "0.13.0",
|
||||
"shiki": "4.2.0",
|
||||
"tailwind-merge": "^3.5.0",
|
||||
"uniwind": "1.11.0"
|
||||
"uniwind": "1.12.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@effect/vitest": "catalog:",
|
||||
|
||||
@@ -10,7 +10,7 @@ import { beforeAll, describe, expect, it } from "vite-plus/test";
|
||||
// `@media ios { ... }` block, and uniwind's CSS processor used to drop the
|
||||
// block's media queries after its first nested rule. Everything past the first
|
||||
// utility compiled unguarded and shipped to both platforms. These tests run
|
||||
// the installed (patched) uniwind compiler over real Tailwind output, per
|
||||
// the installed uniwind compiler over real Tailwind output, per
|
||||
// platform, and assert what each bundle receives. The compiler itself runs in
|
||||
// a plain Node child process (uniwind-platform-variants.fixture.cjs) so no
|
||||
// test-runner module transforms sit between the test and the shipped code.
|
||||
@@ -215,11 +215,9 @@ describe("uniwind keeps media rules nested inside class rules attached to the cl
|
||||
});
|
||||
});
|
||||
|
||||
// The patch file carries three independent uniwind fixes (state/data selector
|
||||
// variants, the Metro native-styles fingerprint, and this media-query scoping
|
||||
// fix). Regenerating it for one fix must not silently drop the others — this
|
||||
// suite exercises the shipped transformer and compiler for the other two.
|
||||
describe("uniwind patch keeps pre-existing selector and transformer behavior", () => {
|
||||
// Keep guarding selector variants and the Metro native-styles fingerprint
|
||||
// alongside media-query scoping when upgrading the installed Uniwind package.
|
||||
describe("uniwind keeps selector and transformer behavior", () => {
|
||||
let output: FixtureOutput;
|
||||
|
||||
beforeAll(() => {
|
||||
|
||||
@@ -17,12 +17,11 @@ shutdown, but a supervisor created after its cleanup runs would escape it. A clo
|
||||
parent scope also closes late arrivals, preventing interrupted startup or runtime
|
||||
replacement from leaving a WebSocket alive outside the new registry.
|
||||
|
||||
The [Uniwind patch](../../patches/[email protected]) still compiles CSS on Metro
|
||||
updates so newly used classes are discovered. It skips global style invalidation
|
||||
only when the generated stylesheet and theme list are unchanged. Skipping compilation
|
||||
would lose new classes; invalidating every consumer for unchanged output makes an
|
||||
ordinary component edit refresh the whole app. The fingerprint is recorded only
|
||||
after initialization succeeds.
|
||||
Uniwind compiles CSS on Metro updates so newly used classes are discovered. It
|
||||
skips global style invalidation only when the generated stylesheet and theme list
|
||||
are unchanged. Skipping compilation would lose new classes; invalidating every
|
||||
consumer for unchanged output makes an ordinary component edit refresh the whole
|
||||
app. The fingerprint is recorded only after initialization succeeds.
|
||||
|
||||
The [expo-notifications patch](../../patches/[email protected]) protects
|
||||
`NotificationCenterManager`'s delegates and pending responses with a lock. React runtimes can
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
Generated
+5
-6
@@ -115,7 +115,6 @@ patchedDependencies:
|
||||
[email protected]: 642b47830730acff3761fe29cf54271d18b493c0070c750097850b7ea032e00c
|
||||
[email protected]: daf4a639ce3f951af630a3711e4082d58e3a11e5a79f45efb0b59925327ebde2
|
||||
[email protected]: cc1301436ee62c39860acc9ee1a1e60b7d47e6abd211c42effa62c056d165483
|
||||
[email protected]: a91f3953483cfd434436de6358ff5b63c49974ef148fad91246c26ba95332625
|
||||
|
||||
importers:
|
||||
|
||||
@@ -487,8 +486,8 @@ importers:
|
||||
specifier: ^3.5.0
|
||||
version: 3.6.0
|
||||
uniwind:
|
||||
specifier: 1.11.0
|
||||
version: 1.11.0(patch_hash=a91f3953483cfd434436de6358ff5b63c49974ef148fad91246c26ba95332625)(@expo/[email protected](patch_hash=90fa980e8b6480631fb2fbb04559834e3c612db40c550cd828f11be297d8d760)([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected]([email protected])([email protected]))([email protected]([email protected])([email protected]))([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected])([email protected])
|
||||
specifier: 1.12.1
|
||||
version: 1.12.1(@expo/[email protected](patch_hash=90fa980e8b6480631fb2fbb04559834e3c612db40c550cd828f11be297d8d760)([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected]([email protected])([email protected]))([email protected]([email protected])([email protected]))([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected])([email protected])
|
||||
devDependencies:
|
||||
'@effect/vitest':
|
||||
specifier: 4.0.0-rc.115
|
||||
@@ -10905,8 +10904,8 @@ packages:
|
||||
resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==}
|
||||
engines: {node: '>= 10.0.0'}
|
||||
|
||||
[email protected]1.0:
|
||||
resolution: {integrity: sha512-e2mYlHrZzAQtZUf3STrfVDTetspv7p5vm/cu6p8kjLRQaL9r6QFG+MlwZ3hrI2LHnzgzjbSo+MwvoE380zz2JQ==}
|
||||
[email protected]2.1:
|
||||
resolution: {integrity: sha512-u0OVMVqefGchOpsPIwIYvcF2Jl9JtVVaXBb+wfqAYoyLrhN27Ll50aQ7aFT81k73JSq+He6dNlcbTl2Qb9cTMw==}
|
||||
hasBin: true
|
||||
peerDependencies:
|
||||
'@expo/metro-config': 58.0.6
|
||||
@@ -22081,7 +22080,7 @@ snapshots:
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]1.0(patch_hash=a91f3953483cfd434436de6358ff5b63c49974ef148fad91246c26ba95332625)(@expo/[email protected](patch_hash=90fa980e8b6480631fb2fbb04559834e3c612db40c550cd828f11be297d8d760)([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected]([email protected])([email protected]))([email protected]([email protected])([email protected]))([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected])([email protected]):
|
||||
[email protected]2.1(@expo/[email protected](patch_hash=90fa980e8b6480631fb2fbb04559834e3c612db40c550cd828f11be297d8d760)([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected]([email protected])([email protected]))([email protected]([email protected])([email protected]))([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected])([email protected]):
|
||||
dependencies:
|
||||
'@tailwindcss/node': 4.3.3
|
||||
'@tailwindcss/oxide': 4.3.3
|
||||
|
||||
+1
-1
@@ -125,6 +125,7 @@ minimumReleaseAgeExclude:
|
||||
- "@distilled.cloud/[email protected]"
|
||||
- "@shadcn/[email protected]"
|
||||
- [email protected]
|
||||
- [email protected]
|
||||
- "@expo/[email protected]"
|
||||
- "[email protected]"
|
||||
- "[email protected]"
|
||||
@@ -263,7 +264,6 @@ patchedDependencies:
|
||||
[email protected]: patches/[email protected]
|
||||
[email protected]: patches/[email protected]
|
||||
[email protected]: patches/[email protected]
|
||||
[email protected]: patches/[email protected]
|
||||
|
||||
peerDependencyRules:
|
||||
allowAny:
|
||||
|
||||
Reference in new issue
Block a user