Skip to content

Releases: vanilla-extract-css/vanilla-extract

@vanilla-extract/babel-plugin@0.3.1

22 Apr 12:00
ccd7c58
Compare
Choose a tag to compare

Patch Changes

@vanilla-extract/babel-plugin@0.3.0

22 Apr 02:47
e0ed6c9
Compare
Choose a tag to compare

Minor Changes

  • #37 ae9864c Thanks @markdalgleish! - Rename mapToStyles to styleVariants

    BREAKING CHANGE

    -import { mapToStyles } from '@vanilla-extract/css';
    +import { styleVariants } from '@vanilla-extract/css';
    
    -export const variant = mapToStyles({
    +export const variant = styleVariants({
      primary: { background: 'blue' },
      secondary: { background: 'aqua' },
    });

@vanilla-extract/esbuild-plugin@0.1.1

15 Apr 23:11
b755566
Compare
Choose a tag to compare

Patch Changes

  • #30 b4591d5 Thanks @mattcompiles! - Fix hash context information not being applied

    This change makes it so all files with a valid CSS file extension (e.g. .css.ts) get hash context information (internally referred to as filescope) applied. This fixes some situations where the "New styles cannot be registered dynamically after initial boot" error would occur incorrectly.

@vanilla-extract/babel-plugin@0.2.1

15 Apr 23:11
b755566
Compare
Choose a tag to compare

Patch Changes

  • #30 b4591d5 Thanks @mattcompiles! - Fix hash context information not being applied

    This change makes it so all files with a valid CSS file extension (e.g. .css.ts) get hash context information (internally referred to as filescope) applied. This fixes some situations where the "New styles cannot be registered dynamically after initial boot" error would occur incorrectly.

  • #30 b4591d5 Thanks @mattcompiles! - Ignore compiling files that have already been compiled

@vanilla-extract/webpack-plugin@0.2.0

12 Apr 07:36
5bf3b62
Compare
Choose a tag to compare

Minor Changes

  • #20 3311914 Thanks @mattcompiles! - Ensure generated hashes are scoped by package

    vanilla-extract uses file path to ensure unique identifier (e.g. class names, CSS Variables, keyframes, etc) hashes across your application. This information is added to your *.css.ts files at build time. The issue with this approach is it meant *.css.ts files couldn't be pre-compiled when being published to npm.

    This change adds support for pre-compilation of packages by adding package name information to identifier hashes.

Patch Changes

@vanilla-extract/esbuild-plugin@0.1.0

12 Apr 07:36
5bf3b62
Compare
Choose a tag to compare

Minor Changes

  • #20 3311914 Thanks @mattcompiles! - Ensure generated hashes are scoped by package

    vanilla-extract uses file path to ensure unique identifier (e.g. class names, CSS Variables, keyframes, etc) hashes across your application. This information is added to your *.css.ts files at build time. The issue with this approach is it meant *.css.ts files couldn't be pre-compiled when being published to npm.

    This change adds support for pre-compilation of packages by adding package name information to identifier hashes.

  • #20 3311914 Thanks @mattcompiles! - Remove projectRoot option in favor of package.json resolution

Patch Changes

@vanilla-extract/css@0.2.0

12 Apr 07:36
5bf3b62
Compare
Choose a tag to compare

Minor Changes

  • #20 3311914 Thanks @mattcompiles! - Ensure generated hashes are scoped by package

    vanilla-extract uses file path to ensure unique identifier (e.g. class names, CSS Variables, keyframes, etc) hashes across your application. This information is added to your *.css.ts files at build time. The issue with this approach is it meant *.css.ts files couldn't be pre-compiled when being published to npm.

    This change adds support for pre-compilation of packages by adding package name information to identifier hashes.

  • #25 c4bedd5 Thanks @markdalgleish! - The createInlineTheme function has now moved to the @vanilla-extract/dynamic package.

    -import { createInlineTheme } from '@vanilla-extract/css/createInlineTheme';
    +import { createInlineTheme } from '@vanilla-extract/dynamic';

@vanilla-extract/babel-plugin@0.2.0

12 Apr 07:36
5bf3b62
Compare
Choose a tag to compare

Minor Changes

  • #20 3311914 Thanks @mattcompiles! - Ensure generated hashes are scoped by package

    vanilla-extract uses file path to ensure unique identifier (e.g. class names, CSS Variables, keyframes, etc) hashes across your application. This information is added to your *.css.ts files at build time. The issue with this approach is it meant *.css.ts files couldn't be pre-compiled when being published to npm.

    This change adds support for pre-compilation of packages by adding package name information to identifier hashes.

  • #20 3311914 Thanks @mattcompiles! - Remove projectRoot and alias option

@vanilla-extract/esbuild-plugin@0.0.2

07 Apr 06:20
128352f
Compare
Choose a tag to compare

Patch Changes