Skip to content

Latest commit

 

History

History
133 lines (77 loc) · 6.22 KB

CHANGELOG.md

File metadata and controls

133 lines (77 loc) · 6.22 KB

Change Log

6.2.0

Minor Changes

  • a3dcee2e: Update wyw-in-js to 0.5.3

6.1.0

Minor Changes

6.0.0

Major Changes

  • 2ac94b99: BREAKING CHANGE: Linaria has been migrated to wyw-in-js.

    Migration Guide

    For Users

    The main breaking change is that all tooling has been moved from the @linaria scope to the @wyw-in-js scope. This means that you will need to update your dependencies as follows:

    Old New
    @linaria/babel-preset @wyw-in-js/babel-preset
    @linaria/cli @wyw-in-js/cli
    @linaria/esbuild @wyw-in-js/esbuild
    @linaria/rollup @wyw-in-js/rollup
    @linaria/shaker discontinued
    @linaria/vite @wyw-in-js/vite
    @linaria/webpack4-loader discontinued
    @linaria/webpack5-loader @wyw-in-js/webpack-loader

    There is no longer a need to install @linaria/shaker as it is now part of @wyw-in-js/transform, which will be installed automatically with the bundler plugins.

    The configuration file has been renamed from linaria.config.js (linariarc) to wyw-in-js.config.js (.wyw-in-jsrc).

    For Custom Processor Developers

    Base classes for processors and most helpers have been moved to @wyw-in-js/processor-utils.

    All APIs that had linaria in their names have been renamed:

    • The field that stores meta information in runtime has been renamed from __linaria to __wyw_meta
    • The export with all interpolated values has been renamed from __linariaPreval to __wywPreval
    • The caller name in Babel has been renamed from linaria to wyw-in-js

    For additional information, please visit the wyw-in-js.dev.

5.0.0

Major Changes

  • 88e07613: Rewritten dependecny tree processing with support for wildcard re-exports.
  • cb853e14: All processing stages were merged into one generators-based processor. It allows the implementation of more complex workflows to support features like dynamic imports and re-exports.

Minor Changes

  • 9cb4143d: Refactoring of the 1st stage of transformation. It opens the road to processing wildcard reexports.

Patch Changes

  • 2a1e24a0: Upgrade TypeScript to 5.2

4.5.0

Minor Changes

  • 16c057df: Breaking Change: Performance Optimization for styled

    When a component is wrapped in styled, Linaria needs to determine if that component is already a styled component. To accomplish this, the wrapped component is included in the list of variables for evaluation, along with the interpolated values used in styles. The issue arises when a wrapped component, even if it is not styled, brings along a substantial dependency tree. This situation is particularly evident when using styled to style components from third-party UI libraries.

    To address this problem, Linaria will now examine the import location of the component and check if there is an annotation in the package.json file of the package containing the components. This annotation indicates whether the package includes other Linaria components. If there is no such annotation, Linaria will refrain from evaluating the component.

    Please note that this Breaking Change solely affects developers of component libraries. In order for users to style components from your library, you must include the linaria.components property in the library's package.json file. This property should have a mask that covers all imported files with components. Here's an example of how to specify it:

    "linaria": {
      "components": "**/*"
    }

Patch Changes

  • af5bb92d: The end of support for Node.js 14. Migration to pnpm 8.

4.1.0

Minor Changes

  • 77bcf2e7: - 714a8e86: Modify the handling of CSS @ rules in collect to only include child rules if critical
    • 1559cfa9: Add support in collect for ignoring and blocking classes from the regex for critical CSS extraction

4.0.0

Major Changes

  • bc0cbeea: A completely new async mode with native support for Vite, Rollup, esbuild and Webpack resolvers.

    BREAKING CHANGES: Despite the fact, that it should be fully compatible with 3.0 and 2.0 branches, the new version of styles evaluator can have some serious bugs which can make your project unbuildable (however, since there is no runtime, if the build is finished successfully, everything will continue work as it was on 2.0 and 3.0). If you face some problems please let us know and we will fix it as soon as possible.

Patch Changes

  • 8be5650d: The repo has been migrated to PNPM and Turborepo
  • ea41d440: New package @linaria/tags that contains all abstract logic for tags processors.
  • 4cdf0315: Tagged template-specific logic has been moved from BaseProcessor to TaggedTemplateProcessor. BaseProcessor now can be used to define any type of expressions for zero-runtime transformations, such as makeStyles from @griffel/react.

3.0.0-beta.20

Patch Changes

  • 8be5650d: The repo has been migrated to PNPM and Turborepo

3.0.0-beta.19 (2022-06-03)

Features

3.0.0-beta.13 (2021-09-13)

Bug Fixes

  • server: fix collect to ignore empty class (#832) (639fcca)

3.0.0-beta.3 (2021-04-20)

Note: Version bump only for package @linaria/server