Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix nesting rules expansion #45 #47

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/workflows/jsr.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# publish to jsr
name: Publish

on:
push:
branches:
Expand All @@ -9,9 +7,13 @@ on:
jobs:
publish:
runs-on: ubuntu-latest

permissions:
contents: read
id-token: write # The OIDC ID token is used for authentication with JSR.
id-token: write

steps:
- uses: actions/checkout@v4
- run: npx jsr publish

- name: Publish package
run: npx jsr publish
40 changes: 24 additions & 16 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,30 @@
# Changelog

# v0.8.0

- [x] fix nesting rules expansion #45
- [ ] at-rules prefix removal
- [ ] at rules validation
- [ ] prelude
- [ ] body

#v0.7.0

- [x] fix merging rules
- [ ] experimental CSS prefix removal
- [x] declaration name
- [ ] declaration value
- [ ] exclude -webkit-* gradients
- [x] css selector validation
- [x] pseudo element
- [x] partial pseudo class validation. does not validate parameters
- [x] attribute selector
- [x] combinator
- [x] simple selector
- [x] nested selector
- [x] strict vs permissive validation: allow unknown items such as pseudo classes
- [x] allow unknown pseudo classes
- [x] allow unknown attribute selectors
- [x] css selector validation
- [x] pseudo element
- [x] partial pseudo class validation. does not validate parameters
- [x] attribute selector
- [x] combinator
- [x] simple selector
- [x] nested selector
- [x] strict vs permissive validation: allow unknown items such as pseudo classes
- [x] allow unknown pseudo classes
- [x] allow unknown attribute selectors
- [x] strip universal selector when possible

# v0.6.0
Expand All @@ -28,27 +36,27 @@

- [x] incorrectly expand css nesting rules

## V0.5.3
## v0.5.3

- [x] incorrectly expand css nesting rules

## V0.5.1
## v0.5.1

- [x] failed to flatten @import when using url() syntax

## V0.5.0
## v0.5.0

- [x] render node with parents
- [x] fix relative color from xyz
- [x] fix bug when inlineCss is true bug no css variable exists
- [x] compute more shorthands
- [x] (web) fetch imported css files from external domains using cors

## V0.4.1
## v0.4.1

no code change

## V0.4.0
## v0.4.0

Parsing

Expand All @@ -66,7 +74,7 @@ CSS color level 4 & 5
- [x] oklab()
- [x] oklch()

## V0.3.0
## v0.3.0

### shorthands

Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,15 @@ CSS parser and minifier for node and the browser

## Installation

From npm
```shell
$ npm install @tbela99/css-parser
```
from jsr
```shell
$ deno add @tbela99/css-parser
```


## Features

Expand Down
Loading