Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Releases: zss-in-js/typedcssx

2.2.1

21 Aug 23:42

Choose a tag to compare

2.2.1 Pre-release
Pre-release
  • Fixed the compilation failure by recompiling it.
  • tests passed

2.2.0

21 Aug 12:32

Choose a tag to compare

2.2.0 Pre-release
Pre-release

A missing file was found during compilation. Do not use this version. Please use the next version.
The following contents are reflected in the next version.

Added getServerCSS function to support previewing server components.

How to set it up.

import { getServerCSS } from 'typedcssx';

export default function RootLayout({ children }: RootLayoutProps) {
  const serverCSS = getServerCSS();

  return (
    <html>
      <head>    
        {serverCSS && <style dangerouslySetInnerHTML={{ __html: serverCSS }} />}
      </head>
      <body>
        {children}
      </body>
    </html>
  );
}

This will enable previewing in the server component, but we will explain in detail on the website the security aspects of using dangerouslySetInnerHTML to avoid hydration errors.

Other updates

  • :not and :has syntax update.

2.1.0

17 Aug 08:25

Choose a tag to compare

  • Added @media prefers-color-scheme variable for dark and light.
  • Updated some parts of website.

2.0.9

15 Aug 08:33

Choose a tag to compare

This version is the tested and pass version of 2.0.6.
There may be differences in reliability, but there is no functional difference between 2.0.6 and 2.0.9.
In this version 2.0.9, NODE_ENV from 2.0.8 has been corrected by introducing a new variable.

export const isInDevelopment = process.env.NODE_ENV === 'development'
export const isDevelopAndTest = process.env.NODE_ENV === 'development' || process.env.NODE_ENV === 'test'
  • New compiler unit tests have been added.
  • Unit tests for GitHub Actions have passed.

2.0.8

15 Aug 08:29

Choose a tag to compare

2.0.8 Pre-release
Pre-release

This is a version that compares environment variables (process.env.NODE_ENV) without including them in variables.
This has been fixed in the next version 2.0.9 or later, so please update immediately.

2.0.7

14 Aug 09:35

Choose a tag to compare

2.0.7 Pre-release
Pre-release

This version does not pass a single unit test.
Performed unit testing, integration testing, and E2E testing, and modified parts of the source code to perform the tests.

export const isInDevelopment = process.env.NODE_ENV === 'development' || process.env.NODE_ENV === 'test';

- Fix compiler/index.ts typos
💬 The f ollowing CSS caches were accepted ⇨ 💬 The following CSS caches were accepted

2.0.6

07 Aug 08:13

Choose a tag to compare

Updated and moved dependencies to devDependencies.

  "dependencies": {
    "fast-glob": "^3.3.2",
    "tsx": "^4.15.7"
  },
  "devDependencies": {
    "typescript": "^5.4.5",
    "@types/react": "^18.3.3",
    "@types/node": "^20.12.13",
    "@types/css-modules": "^1.0.5"
  }

2.0.5

29 Jul 08:08

Choose a tag to compare

small fixes

  • There was an omission in the root.ts type definition and it was corrected at 2.0.5.

2.0.4

29 Jul 07:23

Choose a tag to compare

There were two changes, so 2.0.3 was skipped because it was the first change.

  • Fix excessive type definitions.
  • Created a set type definition for breakpoints.

2.0.2

28 Jul 04:56

Choose a tag to compare

  • Fixed types to have properties throw errors