Skip to content

Prune exports and files - #15

Merged
mxstbr merged 5 commits into
masterfrom
prune
Sep 13, 2016
Merged

mxstbr merged 5 commits into
masterfrom
prune

Conversation

@mxstbr

@mxstbr mxstbr commented Sep 13, 2016

Copy link
Copy Markdown
Member
  • Don't export primites except for css
  • Kill simple, rules, units and elem

@mxstbr
mxstbr merged commit 20deade into master Sep 13, 2016
@mxstbr
mxstbr deleted the prune branch September 13, 2016 12:22
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant