Releases: streamich/code-colors-react
Releases Β· streamich/code-colors-react
v3.3.0
v3.2.1
v3.2.0
v3.1.0
3.1.0 (2024-05-27)
Bug Fixes
Features
- πΈ add a light-weight way to decorate tokens (cc5d210)
- πΈ add default styling (1a7d9fa)
- πΈ add theming support to (ad8ced4)
- πΈ cleanup styling (5add555)
- πΈ cleanup theme (3fc7fdb)
- πΈ create component (8289d50)
- πΈ do not underline template string punctuation (d9dc595)
- πΈ improve color palette (a4af02f)
- πΈ improve generated markup (0efc3a7)
- πΈ improve highlighting colors (ec0783f)
- πΈ improve React component (df4be2d)
- πΈ improve styling (8675c64)
- πΈ make red squiggly semi transparent (9925544)
- πΈ progress on color theme (1a0025d)
- πΈ provide language to the decorator (6ddd3ba)
- πΈ render red squigglies under banned keywords (74e5567)
- πΈ tweak colors (cea75f9)
v3.0.0
v1.0.0
1.0.0 (2024-05-25)
Bug Fixes
- π avoid React list keys (dae75ee)
- π bump code-colors (30af478)
- π bump code-colors dependency (07ecae8)
- π make "as" prop optional (ef217f4)
- π use correct tokenization method (12176ae)
Features
- πΈ allow to pass through element attributes (7a7efd4)
- πΈ bump code-colors dependency (5951d11)
- πΈ implement coloring React components (b190e34)
- πΈ improve highlighting rendering (9c1da1d)
- πΈ make WebWorker work (d2fcc63)
- πΈ merge [className] props and remove trailing spaces (3f178b9)
- πΈ recursively render nodes (86f9726)
- πΈ update React component generation (7298ea9)
- πΈ use code-colors- CSS prefix (986798a)
BREAKING CHANGES
- 𧨠release major
Initial release
Installation
npm i code-colors-react
Usage
import {ColorTokens} from 'code-colors-react';
<pre>
<ColorTokens code={"console.log('hello world');"} lang={'js'} />
</pre>