47 Commits

Author SHA1 Message Date
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
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) 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.
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.
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
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.
2025-01-19 10:43:04 -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.
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
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
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
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
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
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
2431015afa feat: add support for case-insensitive attribute selectors (#3673)
* feat: add support for case-insensitive attribute selectors
2021-12-23 07:53:41 -08:00
Lei Chen
ee9e13b949 fix: change keyword plugin and import regexp (#3668)
* fix: change the  and  regexp match

* feat: change unit test

* chore: change desc
2021-11-29 11:17:50 +08:00
Lei Chen
a10c3399d3 chore: fix less project ci (#3652)
* chore: fix less ci

* fix: add missing semver require

* fix: fix the error format and file path

* chore: fix error format

* chore: fix test snapshot

* chore: fix error position
2021-10-06 15:58:01 -07:00
ChenLei
c518180098 Fix #3616 IfStatement requires double parentheses when dividing (#3626)
* fix: fix the special parens case
* fix the issue number
2021-06-12 10:19:49 -07:00
Matthew Dean
f727b26de5 Fixes #3586 (#3589) 2021-01-29 11:12:08 -08:00
Matthew Dean
d495fb26a8 v4.1.0 2021-01-09 18:39:05 -08:00
Matthew Dean
a4b6c8544c Roll back paren requirement on mixin calls (#3588) 2021-01-09 18:35:26 -08:00
zaquest
ec74875864 Fix #3576 import redirects. Replace native-request with needle. (#3582)
* Fix #3576 import redirects. Replace native-request with needle.

* Downgrade nock to support node 8
2021-01-02 20:02:20 -08:00
Matthew Dean
dc3a310530 v4.0.0 (#3573)
* Remove math=strict-legacy, set default=parens-division
* Support for comma-less color functions
* Require parens after mixin call
* Output invalid JS functions in CSS
* Escape parens and revert pass-through function errors
* Remove ieCompat option
* Remove non-performant class pattern
* Add isdefined() function
2020-12-18 10:03:08 -08:00
Matthew Dean
257efdd688 Fixes #3434 - memory / runtime improvements (#3572)
* Remove class extends pattern for nodes
* Fix node benchmark
* v3.13.0
* Restore tree caching
2020-12-11 18:00:22 -08:00
Matthew Dean
0e268598c8 Examples contain more valid CSS, to test with a new parser (#3550)
* Make Less tests contain more valid CSS
2020-07-28 17:48:59 -07:00
Matthew Dean
76132ef5e1 Bug fixes - fixes #3446 #3368 (#3546)
* Fixes #3446
* Fixes #3368
2020-07-28 17:23:22 -07:00
Matthew Dean
ef4baa5bb2 Release 3.12.2 (#3545)
* Release v3.12.2
2020-07-16 08:59:23 -07:00
Matthew Dean
e188f440c4 Fixes #3541 (#3543) 2020-07-16 07:31:03 -07:00
Matthew Dean
28701638be Update changelog 2020-07-13 08:29:45 -07:00
Matthew Dean
d5aa9d1503 Fixes #3371 Allow conditional evaluation of function args (#3532) 2020-07-13 07:17:59 -07:00
Matthew Dean
0925cf1957 Test-data module (#3525)
* Move test data to separate module - @todo--fix some browser tests
* Fix all browser tests
2020-06-25 15:54:59 -07:00