Repository navigation
Conversation
quantizor
added a commit
that referenced
this pull request
Apr 27, 2026
- Always use CSSOM injection in browsers; drop `disableCSSOMInjection` prop, `SC_DISABLE_SPEEDY` / `REACT_APP_SC_DISABLE_SPEEDY` env vars, and the `TextTag` class. Add `extractCSS()` for users who need the current CSS as a plain string (extraction tooling, micro-frontend cloning, prerender pipelines, iframe/Shadow DOM transfer). - Rename plugin surface: `<StyleSheetManager stylisPlugins>` -> `plugins`, `rtl` -> `rtlPlugin`, `stylisPluginRSC` -> `rscPlugin`. Plugin file rename `stylisPluginRSC.ts` -> `rsc.ts`. Plugin internal `.name` fields shortened to `'rsc'` / `'rtl'` (only used for the compiler hash). Tighten `SCPlugin.name` to required (matches the runtime throw at error #15). - Fix `styled(ClientComponent)` silently dropping all extension styles in RSC. `hoistNonReactStatics` was copying React's internal type discriminators (`$$typeof`, `$$id`, `$$async`, `$$bound`) from a client- or server-reference target onto the wrapping styled component, which made React serialize the wrapper itself as a reference and skip running its body. Add those four markers to `KNOWN_STATICS` so they're never hoisted regardless of target shape. Regression tests cover both client- and server-reference shapes. - `tryFlattenDynamicStringRules`: replace nullable `nextOutputs` with a `forked` boolean and a non-nullable `outputs` array so the fast path (no allocation when every output matches) is preserved without any non-null assertions. - Expose `styledComponentId` on the component returned from `createGlobalStyle` to match the `styled(...)` shape. - Test isolation: introduce `resetIdentifiers()` and wire it into `resetStyled()` and the RSC test file's `beforeEach` so the module-level component-id counter no longer leaks across tests. - `getCSS` test helper now walks `tag.sheet.cssRules` so jsdom CSSOM injection surfaces in the same place text-mode injection used to. `resetStyled` also clears `<style>` tags from `document.body` so tests that mount into custom containers don't pollute one another.
quantizor
added a commit
that referenced
this pull request
Apr 28, 2026
- Add changesets covering the lab/lch percent fix, native attribute selectors, and the RSC nested-StyleSheetManager fix. - Empty-custom-property-values changeset: note the v6 → v7 hash shift for components that authored `--prop:;`. - Drop the duplicated `css-to-react-native peer dependency` bullet from the native-transform-layer changeset (it's already covered in peer-floors). - AGENTS.md: correct the `responsive.ts` claim (lazy `getRN()`, not eager module-load capture); rewrite the pseudo-state mapping bullet for the canonical CSS pseudos and the new attribute-selector bucket. - errors.md / errors.ts #15: drop `stylis` wording from the consumer-facing message; v7 doesn't run stylis at runtime.
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
csssimple,rules,unitsandelem