Releases: zss-in-js/typedcssx
2.2.1
2.2.0
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
2.0.9
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
2.0.7
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