Skip to content

Comments

chore: bump csstype from 3.1.3 to 3.2.3#1867

Open
Zerowxm wants to merge 2 commits intomasterfrom
xwu2/csstype-bump
Open

chore: bump csstype from 3.1.3 to 3.2.3#1867
Zerowxm wants to merge 2 commits intomasterfrom
xwu2/csstype-bump

Conversation

@Zerowxm
Copy link

@Zerowxm Zerowxm commented Feb 19, 2026

What is this change?

This PR bumps the csstype dependency from version 3.1.3 to 3.2.3 across the monorepo.

Why are we making this change?

csstype 3.2.3 reflects the evolution of CSS standards by:

Removing deprecated/obsolete at-rules:

  • @scroll-timeline - This CSS proposal was abandoned; Scroll-driven Animations now use the animation-timeline
    property instead
  • @viewport - Obsolete at-rule with no modern browser support; viewport configuration is now handled via meta tags
    and media queries

Adding modern CSS at-rules:

  • @container - CSS Container Queries (modern feature with growing browser support)
  • @position-try - CSS Anchor Positioning (newer standard)
  • @view-transition - View Transitions API (newer standard)

This keeps Compiled's type definitions aligned with current CSS standards and enables support for modern CSS features.

How are we making this change?

  1. Updated csstype version in package.json, packages/jest/package.json, and packages/react/package.json
  2. Updated the AtRules type mapping in packages/babel-plugin/src/utils/css-map.ts to match csstype 3.2.3
    definitions
  3. Verified no breaking changes - the removed at-rules (@scroll-timeline, @viewport) are not used anywhere in the
    codebase

PR checklist

Don't delete me!

I have...

  • Updated or added applicable tests (existing tests pass, no new tests needed as this is a type-only change)
  • Updated the documentation in website/ (not applicable - internal dependency bump)
  • Added a changeset (if making any changes that affect Compiled's behaviour)

- Update csstype version in package.json, packages/jest/package.json, and packages/react/package.json
- Update AtRules type mapping in babel-plugin to reflect csstype 3.2.3 changes:
  - Remove @scroll-timeline (abandoned CSS proposal)
  - Remove @Viewport (obsolete, no modern browser support)
  - Add @container (CSS Container Queries)
  - Add @position-try (CSS Anchor Positioning)
  - Add @view-transition (View Transitions API)
- Add changeset documenting the upgrade and rationale
@changeset-bot
Copy link

changeset-bot bot commented Feb 19, 2026

🦋 Changeset detected

Latest commit: 7a89b56

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 12 packages
Name Type
@compiled/babel-plugin Minor
@compiled/react Minor
@compiled/jest Minor
@compiled/parcel-transformer Patch
@compiled/vite-plugin Patch
@compiled/webpack-loader Patch
@compiled/parcel-optimizer-test-app Patch
@compiled/parcel-transformer-test-app Patch
@compiled/parcel-transformer-test-compress-class-name-app Patch
@compiled/parcel-transformer-test-custom-resolve-app Patch
@compiled/parcel-transformer-test-custom-resolver-app Patch
@compiled/parcel-transformer-test-extract-app Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@netlify
Copy link

netlify bot commented Feb 19, 2026

Deploy Preview for compiled-css-in-js canceled.

Name Link
🔨 Latest commit 7a89b56
🔍 Latest deploy log https://app.netlify.com/projects/compiled-css-in-js/deploys/6998b1e2b5f7980008aae5c7

liamqma
liamqma previously approved these changes Feb 19, 2026
'@scroll-timeline': true,
'@starting-style': true,
'@supports': true,
'@viewport': true,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This and scroll-timeline have been removed, but do we use it internally? Is this a breaking change or does no one use this at all? It's deprecated, so I could see it.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your changeset had a good description, I think it's fair.


const atRules: Record<AtRules, boolean> = {
'@charset': true,
'@container': true,
Copy link
Collaborator

@kylorhall-atlassian kylorhall-atlassian Feb 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm pretty certain we had container queries 🤔 what does this atRules do today? Does this result in sorting? If we're changing sorting, we might need to update website docs, not 100% certain.

@@ -0,0 +1,20 @@
---
"@compiled/babel-plugin": minor
Copy link
Collaborator

@kylorhall-atlassian kylorhall-atlassian Feb 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

…container fix

- Clarify that @container was partially supported but missing from cssMap validation
- Explain what the atRules lookup table does
- Update version bumps to minor for babel-plugin (new @container support)
- Add detailed rationale for removed at-rules
- Explain impact on cssMap validation
@Zerowxm Zerowxm dismissed stale reviews from kylorhall-atlassian and liamqma via 7a89b56 February 20, 2026 19:11
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.

3 participants