3008 Commits

Author SHA1 Message Date
Matthew Dean
6e81606869 Fix auto-publishing permissions / graceful fallback (#4391) 2025-12-14 12:01:32 -08:00
Matthew Dean
5cd329c9d0 Set up auto-publishing and alpha branch (#4390)
* Set up alpha branch and auto-publishing

* Restore 4.5.0 version number

* Set up post-merge hook to stablize version and fix tests

* Restore .gitattributes

* Fix to publish.yml

* Revert PNPM version to version 8 for Node 16 compatibility

* Another attempt to resolve PNPM version

* Another attempt to resolve PNPM version
2025-12-14 11:37:47 -08:00
Matthew Dean
432286970a [Needs reviews!] Mega test refactor (#4378)
* Migrate Less to use valid CSS

* Re-organize test structure

* Lots of test refactoring

* More test updates

* Add restructured tests

* WIP

Signed-off-by: Matthew Dean <matthew-dean@users.noreply.github.com>

* More fixes to tests

* More test fixes

* All tests passing

* WIP fix tests

* Finished fixing browser tests

* Improve test coverage

* Add debug tests

* Add back debug tests to show equal test coverage

* Fix browser tests

* More test coverage

* Fix sourcemap absolute path for CI

* More source map normalization for Windows

* Fix source map normalization

* Another attempted fix for Windows

---------

Signed-off-by: Matthew Dean <matthew-dean@users.noreply.github.com>
2025-12-06 11:28:46 -08:00
Daniel Puckowski
1bde4bddff Release/v4.4.2 (#4364)
* Release v4.4.2

* Update files for Release/v4.4.2.

* chore: update CHANGELOG.md

* Update CHANGELOG.md for release v4.4.2.
v4.4.2
2025-10-06 11:06:54 -07:00
Daniel Puckowski
5ed71008c0 fix(issue#4362) no spacing regression for function (#4363)
* Fixes #4362 which is a regression introduced by an attempt to create improved and generalized function parsing. Set the no spacing flag for comma separated lists and add test.
2025-08-26 16:41:32 -07:00
Matthew Dean
9c0615936e Migrate Less to use valid CSS (#4357) v4.4.1 2025-08-10 10:59:31 -07:00
Daniel Puckowski
9d345ffe30 Release v4.4.1 (#4351)
* Update files for Release/v4.4.1
2025-08-08 17:29:06 -04:00
Daniel Puckowski
6e0095dd77 CSS scroll state container queries and improved function handling (#4342)
* feat: add support for CSS scroll state container

* Add support for CSS scroll state container queries.
* Improve at-rule function handling.

* chore: clean up scroll-state solution

* Clean up scroll-state solution code for merge.
2025-07-25 18:05:48 -04:00
Daniel Puckowski
01a187e3da fix(issue#4348): parse layer nesting syntax (#4349)
* Add fixes for layer at-rule nesting syntax parsing and associated
  tests.
2025-07-24 17:40:53 -04:00
Daniel Puckowski
033e3b356f Release v4.4.0 (#4345)
* Release v4.4.0

* Update files for Revlease/v4.4.0

* chore: pull in latest PRs for release

* Pull in latest PRs for release and update CHANEGLOG.md to reflect
  updates.

* chore: update CHANGELOG.md

* Update CHANGELOG.md.
v4.4.0
2025-07-16 10:44:44 -07:00
Daniel Puckowski
f086c79e2d fix(issue#4343) add color operands (#4346)
* Add missing color operand support to resolve issue #4343.
2025-07-12 13:56:49 -07:00
Daniel Puckowski
67404cd50c Add support for import at-rule layer functionality (#4340)
* fix(issue#4242): add support for layer at-rule

* Add support for layer at-rule.
* Add tests for layer at-rule.

* feat: add support for layer import syntax

* Add support for layer import at-rule syntax. See: https://developer.mozilla.org/en-US/docs/Web/CSS/@import

* chore: cleanup layer import solution

* Cleanup layer import at-rule solution before merge.

* fix(issue#4242): fix for media query list

* Add fix for media query list parsing in import.
* Add test for import with media query list syntax.
2025-05-29 20:14:40 -07:00
Daniel Puckowski
36626c8853 fix(issue#4242): add support for layer at-rule (#4337)
* Add support for layer at-rule.
* Add tests for layer at-rule.
2025-04-15 19:41:25 -04:00
Daniel Puckowski
1a5553d19c Release v4.3.0 (#4335)
* Update files for Release/v4.3.0.
v4.3.0
2025-04-05 07:50:08 -07:00
Daniel Puckowski
5d3f6ea2a4 fix(issue:4267) support starting-style at-rule (#4333)
* fix(issue:4267) support starting-style at-rule

* Add support for the starting-style at-rule.

* fix(issue:4267) improve comment and call handling

* Improve at-rule comment and call handling and add more starting-style
  at-rule tests.

* refactor(issue:4267) refactor starting-style code

* Refactor new code introduced to broaded at-rule support for
  starting-syle at-rule and other at-rules.

* chore(issue:4267) cleanup at-rule enhancement

* Cleanup at-rule enhancement code for starting-style at-rule support.

* fix: pin Playwright to exact version

* Pin Playwright to exact version to try to resolve CI issues.
2025-03-31 11:48:29 -07:00
Daniel Puckowski
ddef3ebd2d fix(ci): revise playwright install for CI (#4322)
* Revise Playwright install method for CI to avoid browser binary
  mismatch issues.
2025-03-29 20:54:49 -07:00
Matthew Dean
628dbafbf6 Update README.md (#4320) 2025-03-01 11:32:49 -08:00
Matthew Dean
d1abdabcc2 feat: deprecation warnings for Less + monorepo chores (#4319)
* Added deprecation warnings

* Remove warning about combinator

* Switch to PNPM

* Update local dependencies

* Remove inner dist folder

* Create symbolic link to dist folder

* Flip dist folders

* Create symbolic link in root

* Add contributors

* 👥 Add @matthew-dean as a contributor

* 👥 Add @cloudhead as a contributor

* 👥 Add @lukeapage as a contributor

* 👥 Add @seven-phases-max as a contributor

* 👥 Add @iChenLei as a contributor

* 👥 Add @puckowski as a contributor

* Add more contributors

* Finish deprecation warnings

* Resolve deletions and such

* Fix symbolic link

* Update ci.yml to use PNPM

* Update ci.yml to use PNPM

* Refine CI versions

* Fix node printed version

* Better fix for #4258 and #4292

* Re-enable other tests
2025-03-01 11:23:48 -08:00
Daniel Puckowski
1e7b0038d4 Release v4.2.2 (#4307)
* Release v4.2.2

* Update files for Release/v4.2.2.

* chore: update changelog for CI merges

* Update CHANGELOG.md for recent CI update merges.
v4.2.2
2025-01-19 10:43:04 -08:00
Lei Chen
ab5c82f86f fix: node23 ci (#4309)
* fix: node23 ci

* Update package-lock.json

* chore: rename node23 ci

* chore: rename
2025-01-07 23:22:30 +08:00
Lei Chen
c2053cbca2 ci: enhance our test environment setup (#4291)
* fix: pptr timeout issue

* fix: try again

* chore: fix pptr timeout issue

* fix: test scripts

* chore: drop node 10/12/14

* fix: node 23 deprecated api

* chore: tru again

* fix: windows

* fix: windows is

* chore: test node14

* fix: drop node v10/v12/v14 support

* chore: remove sandbox config

* fix: add sandbox config

* ci: try playwright

* chore: update ci yml

* chore: test node

* chore: add all test

* fix: yml grammer

* chore: try topo

* chore: node23 test

* chore: nodejs v23

* fix: yml grammer

* fix: steps's id

* chore: final test config

* chore: update folder name

* chore: refactor

* chore: update title

* chore: improve code quality
2025-01-07 22:14:43 +08:00
Daniel Puckowski
9d92b0ca3b fix(issue:4301) at-rule declarations missing (#4302)
* Fixes issue #4301. At-rule declarations may go missing or are
  incorrectly merged under certain nesting conditions.
* Added more ```@container``` tests.
2025-01-02 08:38:31 -08:00
Daniel Puckowski
145d95ee9c fix(issue:4264) strip line comment from expression (#4293)
* Fix for issue #4264. Strip line comments from expressions to avoid
  invalid CSS output.
2024-12-08 08:07:05 -05:00
Daniel Puckowski
304c3106d8 fix(issue:4258) variable interpolation after math (#4292)
* fix(issue:4258) variable interpolation after math

* Fixes variable interpolation issue after previous variable addition.

* chore: fix rebase issue

* Fix rebase issue for fix for issue #4258.
2024-12-08 07:51:12 -05:00
Daniel Puckowski
509a007c40 fix(issue:3737) allow blank variable declarations (#4294)
* Fixes issue with blank CSS variable declarations.
2024-12-08 07:32:45 -05:00
Daniel Puckowski
e4fdbe3259 Master fix 4252 (#4295)
* fix(issue:4252) container query mixin reference

* Fixes a container query mixin reference issue and adds container query
  test.

* refactor: clean up fix for issue 4252

* Refactor and clean up fix for issue #4252.
v4.2.1
2024-12-07 08:41:47 -08:00
Daniel Puckowski
e4198bafc8 fix(issue:4268) nested pseudo-selector parsing (#4290)
* Fix nested pseudo-selector parsing where selectors are separated by
  one or more commas.
2024-12-07 08:40:42 -08:00
Matthew Dean
773e157c76 Release v4.2.1 (#4287) 2024-11-25 09:05:24 -08:00
Soon
b09ad0f62a fix: Output correct css when using css function in max(). (#4266)
* fix: Output correct css when using css function in max().

* fix: If a non-Dimension value is handled in minMax(), then throw Atgument exception.

* chore: add more test cases

* chore: rebase the lock

---------

Co-authored-by: lumburr <flyfish.zy@foxmail.com>
2024-11-21 11:19:31 -08:00
Daniel Puckowski
09b8f5cf4d Release v4.2.1 (#4280)
* Update files for Release/v4.2.1.
2024-10-15 10:07:31 -07:00
Daniel Puckowski
53f84f02ba Master container style fix for 4235 (#4237)
* fix(issue:4211) parse entities for comma list

parse the correct entities for a comma separated list so that all URLs are
rewritten correctly.

* fix(issue #4235) style must not have space

fixes issue #4235 where container query style would have invalid space
after keyword
2024-01-17 17:26:29 -08:00
Lei Chen
13864a6b5c ci: windows (#4213)
* chore: try run scripts directly

* chore: only trigger windows ci

* chore: remove resolve-bin

* fix: windows ci

* fix: windows path

* chore: try path

* chore: print gen

* chore: remove linux test

* chore: debug windows path

* chore: compare unix system

* chore: try change path

* chore: noramlize path

* chore: switch windows

* fix: bug

* chore: windows ci

* chore: up timeout

* chore: up timeout

* chore: match more tests

* chore: clean code

* use path.posix.normalize

* ci: debug path

* chore: test utils

* chore: update logic

* chore: reduce diff content
2023-09-15 07:27:20 +08:00
Lei Chen
1b6dba1457 [skip ci] add v4.2.0 changelog (#4215)
* [skip ci] add v4.2.0 changelog

* [skip ci] update CHANGELOG.md

* fix typo

* [skip ci]
v4.2.0
2023-09-07 10:32:36 +08:00
Matthew Dean
6390ae3406 Release/v4.2.0 (#3814) 2023-08-19 14:31:21 -07:00
Daniel Puckowski
012d549d42 fix(issue:3766) add support for container queries (#3811)
* fix(issue:3766) add support for container queries

* Add support for CSS Container Queries
* Add tests for CSS Container Queries

* feat(media-queries-level-4) update media query

* Add support for Media Queries Level 4.
* Add tests for Media Queries Level 4.

* fix(mq-4 regex) fix regex for media queries

* Fix regex used for Media Queries Level 4 syntax parsing.

* fix(media-query-syntax) fix parsing of invalid CSS

* Fix parsing of invalid CSS for media queries to be consistent with
  Less.js version 4.1.3 handling.
2023-08-05 09:39:42 -07:00
Matthew Dean
8b5aef97e6 Create SECURITY.md 2023-08-03 10:11:32 -07:00
Matthew Dean
4d3189c051 Fixes #3787 -- ESLint updates and linting cleanup (#3790)
* ESLint updates and linting cleanup

* Exclude test files from some linting rules for now

* Fix some TypeScript and build issues
2023-04-08 09:27:41 -07:00
Lei Chen
a917965340 ci: update the ci config (#3789)
* ci: update the ci config 

Change the Node.js version in the matrix tests from v16 to the latest LTS version, v18, and add tests for Node.js v19.

* chore: remove npm cache

* chore: change github config
2023-04-05 07:43:46 +08:00
Peter Goldberg
2702322553 fix faulty source map generation with variables in selectors (#3761)
* fix faulty source map generation

* alternative solution

* add test
2023-04-02 14:08:28 -07:00
Lei Chen
9b37be7740 [skip ci] update the issue template of bug report (#3785) 2023-04-02 10:16:07 +08:00
Lei Chen
180d6761bd fix: make ci work (#3774) 2023-01-20 08:12:36 +08:00
Ben Kelly
0e99701e00 fix(parser): fix crash when css variable property does not end with a semicolon (#3700)
Fixes #3698 #3373
2023-01-14 16:55:14 -08:00
Olivier Nicodemi
eefe33a47f Fix #2991 (#3649)
* Tests for 2991

* Fix for 2991

* chore: add missing newline

Co-authored-by: Olivier Nicodemi <olivier.nicodemi@zinal-consulting.de>
Co-authored-by: Lei Chen <chenleicoder@foxmail.com>
2022-08-20 10:05:21 -07:00
lumburr
721659e109 Fix eslint warnimg (#3709)
* fix: ESlint warning

* fallback ts configuration

* fix: analysis value to fix ESlint warning && fallback eslint version
2022-08-20 10:04:24 -07:00
lumburr
94b2cb4586 refactor: Modify this pointer so that it is not empty. (#3719)
* refactor: Modify this pointer so that it is not empty.

* fix: Supplementary test cases.
2022-08-20 10:03:42 -07:00
Lei Chen
c155d1495a [skip ci]: add v4.1.3 missing changelog (#3729) 2022-08-20 10:01:27 -07:00
Matthew Dean
6986f3e0cb Release v4.1.3 (#3722) v4.1.3 2022-06-08 12:23:27 -07:00
Lei Chen
c24f52c652 ci: add node18 support and drop node17 ci (#3718) 2022-05-13 21:14:48 +08:00
Robert Kieffer
7491578403 feat: add disablePluginRule flag for render() options (#3701)
Co-authored-by: Edward Hartwell Goose <edhgoose@users.noreply.github.com>
2022-05-04 07:09:07 -07:00
Joey Parrish
1eafc06db4 fix: Fix https failures on macOS (#3716)
The issue was traced upstream to needle, and resolved in:
 - https://github.com/tomas/needle/pull/392
 - https://github.com/tomas/needle/pull/394
 - https://github.com/tomas/needle/pull/396
 - https://github.com/tomas/needle/pull/398

Closes #3693
2022-04-22 08:41:38 +08:00