Commit Graph
47 Commits
Author SHA1 Message Date
Sosuke Suzuki 266344398c Clean changelog 2023-07-06 01:47:41 +09:00
Seiyaandfisker Cheung 9500403c1d Fix a bug: css urls are incorrectly stripped of commas (#14476)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2023-03-29 09:12:38 +08:00
fisker b61ef0d234 Merge 14208 into next 2023-03-23 09:51:35 +08:00
fisker Cheung 52fbecc89b Merge branch 'main' into next
# Conflicts:
#	docs/browser.md
#	package.json
#	yarn.lock
2022-11-23 19:44:31 +08:00
Sosuke Suzuki 9c45de6842 Clean changelog 2022-11-23 14:11:13 +09:00
fisker Cheung a545d6f58d Merge branch 'main' into next 2022-10-08 16:23:47 +08:00
Jed Fox bfb09bf214 Format pseudo-selector args like a function call (#13577) 2022-10-02 11:11:44 -04:00
Sosuke Suzuki 40af3ed1ca Keep trailing-comma for var function (#13402)
* Keep trailing-comma for last el

* Make hasComma function

* Fix tests

* Add changelog
2022-08-31 00:59:34 +09:00
fisker Cheung c95c899b6f Merge branch 'main' into next
# Conflicts:
#	package.json
#	scripts/build/bundler.mjs
#	scripts/build/config.mjs
#	scripts/vendors/vendor-meta.json
#	scripts/vendors/vendors.mjs
#	src/cli/format.js
#	src/cli/logger.js
#	src/cli/options/get-options-for-file.js
#	src/cli/options/parse-cli-arguments.js
#	src/main/core.js
#	tests/config/install-prettier.js
#	vendors/execa.js
#	vendors/mem.js
#	vendors/string-width.js
#	vendors/tempy.js
#	yarn.lock
2022-03-17 09:44:08 +08:00
Sosuke Suzuki 58e48b79da Clean changelog_unreleased 2022-03-16 13:35:41 +09:00
eb671dd983 2.6 blog post (#12412)
* Generate

* Generate

* Add TS4.6 changelog

* Regenerate

* Add changelog to switch to esbuild

* Add category

* Update changelog_unreleased/blog-post-intro.md

Co-authored-by: Jed Fox <git@jedfox.com>

* Address review

* Regenerate

* Highlight TS 4.6

* Update changelog_unreleased/blog-post-intro.md

Co-authored-by: Jed Fox <git@jedfox.com>

* Regenerate

* Update changelog_unreleased/typescript/12390.md

Co-authored-by: Jed Fox <git@jedfox.com>

* Add thanks message for sponsors

* Address review!

* Update cspell.json

* Fix link of Ubie

* Generate

* Add `Thanks to our sponsors!`

* Update cspell

* Address review

* Update changelog_unreleased/blog-post-intro.md

Co-authored-by: Alexander Kachkaev <alexander@kachkaev.ru>

* Regenerate

* Add `--print-truncate` option

* Address review

* Generate

Co-authored-by: Jed Fox <git@jedfox.com>
Co-authored-by: Alexander Kachkaev <alexander@kachkaev.ru>
2022-03-16 13:25:48 +09:00
fisker Cheung 8118299c67 Merge branch 'main' into next
# Conflicts:
#	.github/workflows/validate-vendor-versions.yml
#	package.json
#	src/language-css/printer-postcss.js
#	src/language-js/print/assignment.js
2022-03-10 11:30:31 +08:00
Niklas VatnHallvardMM no-replyfisker Cheung
737dd536c7 Fix lowercasing postcss values (#12393)
Co-authored-by: HallvardMM no-reply
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-03-09 06:36:14 +08:00
fisker Cheung f0b63f3dff Merge branch 'main' into next
# Conflicts:
#	CONTRIBUTING.md
#	cspell.json
#	docs/options.md
#	package.json
#	scripts/build/bundler.mjs
#	src/language-css/loc.js
#	src/language-css/parser-postcss.js
#	src/language-css/utils/index.js
#	tests/format/js/arrows-bind/jsfmt.spec.js
#	tests/format/js/async-do-expressions/jsfmt.spec.js
#	tests/format/js/bind-expressions/jsfmt.spec.js
#	tests/format/js/classes/top-level-super/jsfmt.spec.js
#	tests/format/js/comments-pipeline-own-line/jsfmt.spec.js
#	tests/format/js/decorator-comments/jsfmt.spec.js
#	tests/format/js/decorators-export/jsfmt.spec.js
#	tests/format/js/decorators/jsfmt.spec.js
#	tests/format/js/do/jsfmt.spec.js
#	tests/format/js/export-default/escaped/jsfmt.spec.js
#	tests/format/js/export-extension/jsfmt.spec.js
#	tests/format/js/export-star/jsfmt.spec.js
#	tests/format/js/exports/jsfmt.spec.js
#	tests/format/js/invalid-code/jsfmt.spec.js
#	tests/format/js/logical-assignment/jsfmt.spec.js
#	tests/format/js/multiparser-invalid/jsfmt.spec.js
#	tests/format/js/no-semi-babylon-extensions/jsfmt.spec.js
#	tests/format/js/object-property-comment/jsfmt.spec.js
#	tests/format/js/partial-application/jsfmt.spec.js
#	tests/format/js/pipeline-operator/jsfmt.spec.js
#	tests/format/js/private-in/jsfmt.spec.js
#	tests/format/js/record/jsfmt.spec.js
#	tests/format/js/reserved-word/jsfmt.spec.js
#	tests/format/js/strings/jsfmt.spec.js
#	tests/format/js/throw_expressions/jsfmt.spec.js
#	tests/format/js/trailing-whitespace/jsfmt.spec.js
#	tests/format/js/v8_intrinsic/jsfmt.spec.js
#	tests/format/misc/errors/js/literal/jsfmt.spec.js
#	tests/format/misc/errors/js/object/jsfmt.spec.js
#	tests/format/misc/errors/js/variable-declarator/jsfmt.spec.js
#	tests/integration/__tests__/bundle.js
#	tsconfig.json
#	yarn.lock
2022-02-09 09:22:32 +08:00
Lucas Duailibe e22c4911f8 Preserve empty lines in CSS/SCSS paren groups (#12210) 2022-02-02 07:38:59 -03:00
fisker Cheung bdea56df87 Add changelog back (#11980) 2021-12-18 11:13:35 +08:00
fisker 77f8f0ddb5 Merge branch 'main' into next
# Conflicts:
#	package.json
#	scripts/build/bundler.mjs
#	yarn.lock
2021-06-14 00:31:55 +08:00
Georgii Dolzhykov 171b1ee2bf Clean changelog_unlreleased 2021-05-10 00:17:59 +03:00
fisker Cheung 60619338f1 Merge branch 'main' into next
# Conflicts:
#	package.json
#	tests/css/atrule/each.css
#	tests/css/atrule/for.css
#	tests/css/atrule/if-else.css
#	tests/css/atrule/include.css
#	tests/css/atrule/while.css
#	tests/format/css/atrule/each.css
#	tests/format/css/atrule/for.css
#	tests/format/css/atrule/if-else.css
#	tests/format/css/atrule/include.css
#	tests/format/css/atrule/while.css
#	tests/scss/atrule/each.scss
#	tests/scss/atrule/for.scss
#	tests/scss/atrule/if-else.scss
#	tests/scss/atrule/include.scss
#	tests/scss/atrule/while.scss
#	yarn.lock
2021-05-06 16:00:12 +08:00
TJ Mazeikaandfisker Cheung 7e4f4d5fe6 Exclude @keyframes params from being parsed as a Less variable (#10773)
* Exclude @keyframes params from being parsed as a Less variable

* Update changelog_unreleased/css/10773.md

Co-authored-by: fisker Cheung <lionkay@gmail.com>

* Update changelog_unreleased/css/10773.md

Co-authored-by: fisker Cheung <lionkay@gmail.com>

* Add "keyframes" to cspell.json

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2021-04-26 01:13:40 +03:00
Georgii Dolzhykov 88d765a4be Edit changelog 2021-04-16 17:48:10 +03:00
sosukesuzuki a79afc2cc6 Fix master => main in changelog 2021-01-25 13:25:51 +09:00
sosukesuzuki b31cc7e3ca Merge branch 'main' into next 2021-01-25 13:16:41 +09:00
fisker Cheung 12bddae20c Switch default branch to main (#10115) 2021-01-23 19:14:13 +02:00
fisker 5eef4e1469 Fix changelog file name 2021-01-11 15:14:28 +08:00
fisker fdfb6ff312 Merge branch 'master' into next
# Conflicts:
#	docs/options.md
#	package.json
#	scripts/build/bundler.js
#	src/language-css/printer-postcss.js
#	yarn.lock
2021-01-11 14:26:20 +08:00
Christopher Chedeau eec3e82f48 Fix absolute path in custom CSS url() calls (#9966)
At Facebook we have some custom pre-processor `-fb-url(/abs/path/)` that gets messed up as `-fb-url(/ abs/path)`  with the current version of prettier.

The parser has hardcoded logic to only parse as path things that use `url()` but not `-fb-url()` and it parses it as `division /` and `abs/path/`. Because we put a space after division, the bug is introduced.

I don't really know the impact of changing the parser, but on the printer side, it is straightforward to not add a space after `/` if it's the first element in a group. I can't think of any reason why you could write `(/ something` in CSS so I think it's a safe change.
2020-12-28 20:22:25 -03:00
Sosuke Suzukiandfisker Cheung d2b9b083ca Add 2.2 blog post (#9589)
* Generate draft via script

* Add description

* Mention about pre-commit

* Remove pr-9209.md

* Mention about pre-commit

* Add pr-8937.md

* Update pr-9473

* Update pr-9473

* Update intro file

* Add links to TS 4.1

* Update blog-post

* Move pre-commit support to pre-commit repo

* Fix BLOG_POST_INTRO_TEMPLATE.md

* re-generate draft

* Fix switching versions and re-generate draft

* Update links for TS 4.1

* Update draft

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2020-11-20 13:54:09 +09:00
fisker Cheung 8616182e95 Revert #9500 (#9584) 2020-11-09 16:47:12 +08:00
Georgii Dolzhykov d6858d52ad Changelog edits for 2.2 (#9603) 2020-11-05 13:07:29 +09:00
Sosuke Suzukiandfisker f7554c62a2 Revert breaking changes related to adding pure css parser for minor releasing (#9500)
* revert without tests

* Downgrade postcss-scss and postcss-less

* Fix tests

* Revert "Make `isSCSS*` function stricter (#9093)"

This reverts commit 01f986bea9.

* Revert "Remove `css` parser from `isLessParser` check (#9092)"

This reverts commit c0bca1805d.

* Revert "Add pure css parser (#7933)"

This reverts commit 589ebf670b.

* Disable `parser-postcss.js` minify

* Try to fix build script

* Update fs.mjs

* Update fs.mjs

* Style

Co-authored-by: fisker <lionkay@gmail.com>
2020-10-31 22:22:35 +09:00
fisker Cheung b77da32a80 Update postcss to v8 (#9209)
* Update `postcss` v8

* Parser custom properties

* Improve logic

* Update lint script

* Fix node location

* Fix comments inside

* Add a test

* Test on `less` and `scss` too

* Fix empty prop print

* Clean

* Update `postcss`

* Exclude `regenerator`

* Test `no-semi`

* Add changelog

* Typo

* Apply review suggestion

* Style

* Simplify logic

* Remove error test, we don't throw on this anymore

* Style

* Update postcss

* Update postcss
2020-09-25 00:51:55 +08:00
fisker Cheung 01f986bea9 Make isSCSS* function stricter (#9093) 2020-09-01 16:58:35 +08:00
Georgii Dolzhykov 488e08d70b Remove the need to add full GitHub links in changelog entry titles (#9104) 2020-09-01 08:51:32 +08:00
fisker Cheung 589ebf670b Add pure css parser (#7933) 2020-08-28 13:07:49 +08:00
18b4cabc0c Add 2.1 blog post (#8932)
* Add draft for 2.1 blog post

* Update cspell.json

* Update website/blog/2020-08-04-2.1.0.md

Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com>

* Update website/blog/2020-08-04-2.1.0.md

Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com>

* Update website/blog/2020-08-04-2.1.0.md

Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com>

* Update website/blog/2020-08-04-2.1.0.md

Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com>

* Update website/blog/2020-08-04-2.1.0.md

Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com>

* Update changelogs

* Add author to cspell ignore patterns

* Update cspell.json

* Fix original changelog

* Run draft script

* Update

* Fix TypeScript on Highlights

* Fix heading

* Fix author

* Fix changelog for 8410

* Fix syntax highlight

* Move changelog for 7844 to /scss

* Update website/blog/2020-08-21-2.1.0.md

Co-authored-by: ExE Boss <3889017+ExE-Boss@users.noreply.github.com>

* Remove changelog_unreleased

* Update filename

* Replace to actual version manually

Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
Co-authored-by: ExE Boss <3889017+ExE-Boss@users.noreply.github.com>
2020-08-24 20:36:52 +09:00
1d6d60ee37 Fix: at rule supports selector (#8545)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
Co-authored-by: Boyen Vaesen <boyen.vaesen@kbc.be>
2020-07-03 09:24:27 +08:00
Boyen Vaesen 4009ecf70d Fix: Prettier breaks code when inline number lists are used as arbitrary arguments [SCSS] (#8566) 2020-06-18 12:12:31 +03:00
Boyen VaesenandBoyen Vaesen aefc9a48e5 Fix: [Sass] Unexpectedly add extra space after function when passing arbitrary arguments (#8567)
Co-authored-by: Boyen Vaesen <boyen.vaesen@kbc.be>
2020-06-17 09:26:28 +08:00
boyennandBoyen Vaesen ff865794a6 Fix: Incorrect whitespace added after escaped colon in css line name (#8535)
* {fix}: Incorrect whitespace added after escaped colon in css grid line name

* {chore}: update changelog

* {fix}: add check for prevNode to be defined

Co-authored-by: Boyen Vaesen <boyen.vaesen@kbc.be>
2020-06-10 14:05:21 +03:00
boyennandBoyen Vaesen f051170f98 fix: Update scss comment indentation (#7844)
Co-authored-by: Boyen Vaesen <boyen.vaesen@kbc.be>
2020-06-09 14:55:24 +08:00
Michael Mattiacci ffceb60e92 CSS: Fix url() unquoted content manipulation (#2835) (#7592) 2020-05-29 16:09:15 +03:00
Evilebot Tnawiandfisker 3f4da31c62 fix: comment at end of at-rule with selector (#7009)
* fix: comment at end of at-rule with selector

* Improve a little bit

* Fix test

* sass directives

Co-authored-by: fisker <lionkay@gmail.com>
2020-05-08 21:39:41 +08:00
Georgii Dolzhykov 8f7164fdf4 clean changelog_unreleased 2020-03-21 22:41:36 +02:00
Georgii Dolzhykov a6563fa584 edit changelog entries 2020-02-24 23:03:55 +02:00
ark120202 4ed5253509 Don't lowercase element names in CSS selectors (#6947)
Fixes #5788.
2019-11-13 18:13:55 +01:00
Simon Lydell 4eb3e2650a Blog post, changelog and docs for 1.19 (#6787) 2019-11-09 01:23:57 +01:00