Skip to content

Update dependencies - Linaria 6.3.0 #1053

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 24, 2025

Conversation

danielkita
Copy link
Contributor

Upgrades the CSS-in-JS solution from Linaria 4.5.4 to Linaria 6.3.0 and migrates the build tooling to use @wyw-in-js equivalents, which is the new recommended approach for Linaria v6+.

@lukasmasuch lukasmasuch requested a review from Copilot June 24, 2025 22:37
Copy link
Collaborator

@lukasmasuch lukasmasuch left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request upgrades the Linaria CSS-in-JS dependency from version 4.5.4 to 6.3.0 and migrates related build tooling to the new @wyw-in-js equivalents as recommended for Linaria v6+.

  • Upgrades Linaria dependencies in packages/core and packages/cells.
  • Removes obsolete Linaria packages and integrates new @wyw-in-js tooling in the root package.json.
  • Updates build scripts and Storybook configuration to use the new @wyw-in-js commands, plugins, and Babel preset.

Reviewed Changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/core/package.json Updated "@linaria/react" from "^4.5.4" to "^6.3.0".
packages/cells/package.json Updated "@linaria/react" from "^4.5.4" to "^6.3.0".
package.json Removes multiple legacy Linaria packages; re-adds "@linaria/core" and "@linaria/react" at 6.3.0 and adds new @wyw-in-js tooling.
config/build-util.sh Replaces the linaria CLI command with the wyw-in-js command.
.storybook/main.cjs Replaces the Linaria Vite plugin with the new @wyw-in-js plugin.
.storybook/.babelrc.json Replaces the Linaria Babel preset with the @wyw-in-js Babel preset.
Comments suppressed due to low confidence (2)

package.json:35

  • Ensure that the removal of deprecated linaria packages is intentional and that the new dependencies fully replace the previous build tooling without leaving behind redundant packages.
        "@babel/preset-react": "^7.27.1",

config/build-util.sh:53

  • Confirm that the CLI options used with 'wyw-in-js' align with its current documentation since the options might differ from those of linaria.
    wyw-in-js -r dist/$1-tmp/ -m esnext -o dist/$1-tmp/ dist/$1-tmp/**/*.js -t -i dist/$1-tmp -c ../../config/linaria.json > /dev/null

@lukasmasuch lukasmasuch merged commit 72b9ee8 into glideapps:main Jun 24, 2025
4 checks passed
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.

2 participants