diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 36941a4..34d4bd2 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -6,8 +6,8 @@ jobs: runs-on: ubuntu-latest steps: # Your original steps - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 - name: Install run: npm install - name: Test and Coverage diff --git a/.github/workflows/jsr.yml b/.github/workflows/jsr.yml new file mode 100644 index 0000000..91db110 --- /dev/null +++ b/.github/workflows/jsr.yml @@ -0,0 +1,17 @@ +# publish to jsr +name: Publish + +on: + push: + branches: + - master + +jobs: + publish: + runs-on: ubuntu-latest + permissions: + contents: read + id-token: write # The OIDC ID token is used for authentication with JSR. + steps: + - uses: actions/checkout@v4 + - run: npx jsr publish \ No newline at end of file diff --git a/.github/workflows/node.yml b/.github/workflows/node.yml index 73e009d..5279784 100644 --- a/.github/workflows/node.yml +++ b/.github/workflows/node.yml @@ -17,13 +17,13 @@ jobs: strategy: fail-fast: false matrix: - node-version: [ 18.x, 20.x, 22.x ] + node-version: [ 18.x, 20.x ] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - name: Install NPM dependencies diff --git a/CHANGELOG.md b/CHANGELOG.md index 39b172a..8d48bc7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +# v0.6.0 +- [x] light-dark() color +- [x] system color + ## V0.5.4 - [x] incorrectly expand css nesting rules diff --git a/README.md b/README.md index 8662897..0b50573 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ $ npm install @tbela99/css-parser - fault-tolerant parser, will try to fix invalid tokens according to the CSS syntax module 3 recommendations. - fast and efficient minification without unsafe transforms, see [benchmark](https://tbela99.github.io/css-parser/benchmark/index.html) - minify colors. -- support css color level 4 & 5: color(), lab(), lch(), oklab(), oklch(), color-mix() and relative color +- support css color level 4 & 5: color(), lab(), lch(), oklab(), oklch(), color-mix(), light-dark(), system colors and relative color - generate nested css rules - convert nested css rules to legacy syntax - generate sourcemap @@ -76,7 +76,7 @@ import {transform} from '@tbela99/css-parser/web'; Javascript module from cdn -```javascript +```html