An open API service for software projects hosted on Open Collective.

github.com/sveltejs/prettier-plugin-svelte

Format your svelte components using prettier.
https://github.com/sveltejs/prettier-plugin-svelte

chore: release 3.2.2

601ee41a20311882bb9c046dcac21c868911b624 authored over 1 year ago
fix: adjust render tag printing for Svelte 5 AST changes

c968fef2c2de4092ccedc0f2f9ba7cb0f207669f authored over 1 year ago
chore: cross-test dirs test.only support

08d7a8ba9978b5392d0adb4127da2cb7ed8aee6d authored over 1 year ago
fix: handle updated `@render` tag AST shape

fixes #428

96049c64bef1849eea44ae7c7c581aed65b7c7a1 authored over 1 year ago
chore: release 3.2.0

c8317eb0a0fb00bc4c05d47d5918fe8506013eda authored over 1 year ago
feat: semi-standalone browser build (#430)

Adds a semi-standalone browser build under prettier-plugin-svelte/browser.

part of #69 (full ...

d89241e11249b662394d1b356fc461d370c7441a authored over 1 year ago
fix: handle updated `Snippet` block AST shape

fixes #428

288d91567ddb37095cb063490108b4594377a374 authored over 1 year ago
chore: remove Buffer usage for browser environments (#423)

Closes #418

99c885e5d695bd59f26f156e66fd3f333f181e31 authored over 1 year ago
fix: don't duplicate comments of nested script/style tags (#425)

fixes #400

cc856a0e5dedd56b7edb0aa1be18adaf385a247a authored over 1 year ago
feat: format JSON script tags (#424)

Also silences a (harmless) error log in the tests
closes #421
closes #419

1884f2250b9d8458e395f153744f74b6117f0bb9 authored over 1 year ago
fix: handle `>` tags in attributes

related to https://github.com/sveltejs/language-tools/issues/2204

1c4bcfe186d9a23ceeebb791ac7065b57523a51a authored over 1 year ago
fix: handle types on each/await contexts

66ec48bb73a275826da7c0e5b0cae73192ae5a2c authored over 1 year ago
docs: Rewrite README and migration guide (#409)

f284d1b76cb037d6fe92bf18b35cc823fda854bb authored over 1 year ago
feat: add experimental support for Svelte 5

dd66514dba8184721c921433e0654884663c9ac1 authored over 1 year ago
docs: Update README.md (#399)

typo

9060efde88d3a70560ba663b08217c79dc11d631 authored almost 2 years ago
docs: remove nonexistent options (#397)

b269610ce65de5a8e1c7699c39f24076b00a2bdb authored almost 2 years ago
fix: handle static tag attribute on svelte:element

fixes #395

6fc0b64f3b906e247c40119b9d608f166d1a5939 authored about 2 years ago
chore: release 3.0.2

90ef3053bd25bf27d9fbbb2e364b6cebdfe487ad authored about 2 years ago
fix: add `package.json` to package exports (#394)

0176f15fc7d8812e3e75946a69641f3a6758546c authored about 2 years ago
fix: handle scss/less

Prettier doesn't handle resolving the parser as automatically anymore in v3, so we need to add m...

9fb260a2f8b5d84036112883441b8a0cbbd8bede authored about 2 years ago
docs: remove "for svelte 3" (#391)

f86171d1eddcac3598a9ea57e2182053c9e739dd authored about 2 years ago
docs: fix tables

eddd8802e01d5c1b23dad9dc0c41cc958eaf095f authored about 2 years ago
Update CHANGELOG.md

54551a26d30ec261095dffae1b70bfac92fd092e authored about 2 years ago
docs: update readme (#386)

closes #385
closes #368

8d77785402e252a0595097aaf8cdb181226c18ae authored about 2 years ago
feat: provide plugin config type definitions (#383)

closes #364
closes #359

b07b7cfef404e101bde3ee8073ad4bd0500f6455 authored about 2 years ago
breaking: remove deprecated options (#382)

5b7033541d518bad7e10186f132fac5cada89051 authored about 2 years ago
perf: use getVisitorKeys (#381)

prevents some needless recursion into embed

d1cfc0b14e273f211dc377309893b15196e80b96 authored about 2 years ago
breaking: new options, deprecate svelteStrictMode (#380)

- whether or not empty elements/components should self-close is now left to the user - in other ...

23f3dc4705e7feda4cea82b4a568227169f06dbe authored about 2 years ago
(breaking) update to prettier v3 (#335)

Removes concat, applies some needed changes to the print/embed machinery

---------

Co-auth...

19654d5c3722f71e94584cd58376097d867a4e3f authored about 2 years ago
docs: fix small typo (#373)

57bd5e342f3f14896a924253b0f6c7308dfdea6b authored about 2 years ago
docs: update README.md with information for using prettier-plugin-tailwindcss with VS code (#371)

see https://github.com/sveltejs/prettier-plugin-svelte/issues/370

9dcc594d96542bb48efdf05b1dd282d0e28a52a8 authored about 2 years ago
chore: mark as compatible with Svelte 4 (#367)

97f1d1704a13bd545bb61174b1a63f1d80130f3b authored about 2 years ago
chore: release 2.10.0 (#358)

bd91bbf319fd9c469b041ba5901697de0e2229a3 authored over 2 years ago
feat: allow multiple comments atop of script/style tags (#357)

closes #291

b7d0562dfd465c7ef6db706a8bb634122390233e authored over 2 years ago
fix: refine attributeRegex (#345)

Fix attributeRegex so that it correctly matches attributes that are not enclosed in quotes.
fix...

4ce3dd314d5f00e5eb34262654e853cab3a67681 authored over 2 years ago
(feat) trim whitespace in `class` attributes (#356)

fixes #339

a94563cbbfe7744f089330a936089cc205c68736 authored over 2 years ago
feat: support `svelte:document` (#355)

7abac5ff34afd26846de1f1865aaa3eef6494dc8 authored over 2 years ago
feat: support insert/require pragma options (#354)

closes #350

2fbd812c1075cd776fb3a66f1ace92d6288f2ebf authored over 2 years ago
Bump minimist from 1.2.5 to 1.2.8 (#351)

Bumps [minimist](https://github.com/minimistjs/minimist) from 1.2.5 to 1.2.8.
- [Release notes]...

2e9599b51a389112671134cad133b9860842e17e authored over 2 years ago
Bump http-cache-semantics from 4.1.0 to 4.1.1 (#342)

Bumps [http-cache-semantics](https://github.com/kornelski/http-cache-semantics) from 4.1.0 to 4....

c4490bd9df0abf3680c1f2e0e6308d88e7d628d5 authored over 2 years ago
Bump minimatch from 3.0.4 to 3.1.2 (#327)

Bumps [minimatch](https://github.com/isaacs/minimatch) from 3.0.4 to 3.1.2.
- [Release notes](h...

34999ca27126ba354670bd4885a939b135e8e045 authored over 2 years ago
Bump trim-off-newlines from 1.0.1 to 1.0.3 (#287)

Bumps [trim-off-newlines](https://github.com/stevemao/trim-off-newlines) from 1.0.1 to 1.0.3.
-...

caa47ca098c5002ba5bd32c0701f5c60d444f50e authored over 2 years ago
Bump ansi-regex from 4.1.0 to 4.1.1 (#286)

Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1.
- [Release notes](...

830f5a88214773ffddc0cea7d114cd79b96e2bc7 authored over 2 years ago
docs: clarify CLI run

closes #322

5c088d8769d2f48e5351afe561e590af3e96165e authored over 2 years ago
(chore) release 2.9.0 (#333)

3a353abcc3667659c087a70569a21f03b9424894 authored over 2 years ago
(fix) respect strict mode and shorthand options (#332)

when formatting style/class directives
fixes #328

bd5a49ae6f57f2a62f986bb4efbbca0b4b97cbff authored over 2 years ago
(feat) support style modifiers (#331)

closes #330

f3685aa555b2840db79b49a884256b20c366d379 authored over 2 years ago
(docs) update usage with tailwindcss plugin (#329)

d992637852413a3c921a4d5c6767559928d13548 authored over 2 years ago
(chore) release 2.8.1 (#326)

e40ffbb6063577cf174665a6c1adbe8085ef2ea7 authored over 2 years ago
(fix) respect strict mode and shorthand options when formatting bindings (#325)

Fixes #321

14da6fb7fe0141771d88662b73efa53d39946b1f authored over 2 years ago
[fix] format `{#await .. catch ..}..{/await}` correctly (#324)

Fixes #323

7cfd71b2c747c134bd761f2c421700e4ee522a6b authored over 2 years ago
(chore) release 2.8 (#316)

ebd7e9a0dd7d5096098e16d74e6d88b9e249916f authored almost 3 years ago
(feat) add `svelteSortOrder: none` (#315)

Closes #314

0957c4bdf0a44ae460db6125c3bbbb4455fd6f36 authored almost 3 years ago
update changelog

59f76c9771576841dfe6073feb8e77c0d341d061 authored almost 3 years ago
(feat) support singleAttributePerLine (#313)

Closes #305

db2543fc3b4267912698f720bffbbf8d7e56d807 authored almost 3 years ago
(chore) release (#308)

781bdd24b4bc4f874752a1cade25d0557d290cee authored almost 3 years ago
(fix) handle doctype (#307)

Fixes #298

5c51e9aba5ffee5268920c1ad2686c4c6a1752c9 authored almost 3 years ago
update changelog

64f67ac4660b907fdd24b84a904dcd15223296e3 authored almost 3 years ago
[fix] check for snipped content in JS expressions (#306)

Fixes #290

4c23ba45c5190efbf376b7b52cab9cd97aa50618 authored almost 3 years ago
(docs) add whitespace FAQ

ccccee344970be0d713f90ba5d1f75905b90eef4 authored about 3 years ago
-> v2.7.0

009cda5c12ee09e188b5d3e67a520089c41b34c1 authored over 3 years ago
fix changelog

1981bb7cb0a4bacdb21d4ee471b6aa78b1f1acb4 authored over 3 years ago
(feat) support svelte:element (#285)

20d3cb4758523e0b8118ab8e40b5f1c6f2847e7c authored over 3 years ago
(chore) replace deprecated String.prototype.substr() (#283)

b10349d101a6569fc7ca4d18e489ba793d710c13 authored over 3 years ago
(fix) ignore whitespace sensitivity with Svelte components (#281) (#282)

Fixes #281

d91867579c8ad4cf349f101dea4f3a3eb35a7883 authored over 3 years ago
(docs) tailwind note

Closes #275

fa742ba54e37f067f3a9a36315d7a8307bbae246 authored over 3 years ago
-> v2.6.0

807937cdce31a39a073dd1b531cd45b767bef602 authored over 3 years ago
(feat) support style directive (#274)

Requires Svelte 3.46.1 or later

ec6539e60818619366f3906c8c37bf05692cf259 authored over 3 years ago
(feat) support const tag (#273)

Fixes #272

Also update package-lock.json for npm 8

d97d7f62c5fcdf6fd7cfd6305bfe764fc5c82362 authored over 3 years ago
-> v2.5.1

0473f025efb23d278dd2ac0c1865932134b587e4 authored over 3 years ago
(fix) format everything except text in pre (#267)

Fixes #266
It remains to be seen if this is the desired behavior, but let's go with it for now....

8af609470cff77894635fc90722839c4d6031cd3 authored over 3 years ago
(docs) more info about whitespace sensitivity

#270

d524893475795532cc33f119a230d9a516dc58a1 authored over 3 years ago
update changelog

29f789730c80bac271e5953f0b1ef6f69cf196e7 authored over 3 years ago
(fix) destructuring with default values (#269)

- use expandNode for each context
- support array and object expressions in expandNode

#265

af1d500bbf135ff7b5f47783cc671a038964246d authored over 3 years ago
(fix) adjust snipTagContent (#268)

Correctly deal with changing spans
Fixes #261

3ea98f0e7d7018c125f2d86f1a5420c3e28fdee8 authored over 3 years ago
(docs) more concise prettier config section (#264)

4e73ff633515b8d0480f6253a858c394b00909ea authored over 3 years ago
-> v2.5.0

93be55a12cf360accf415071f270dfbff89bb418 authored over 3 years ago
(fix) properly format nested array patterns (#260)

Fixes #259

8cf94c7289169021e454234a14795ffd3226af4d authored over 3 years ago
Bump normalize-url from 4.5.0 to 4.5.1 (#232)

Bumps [normalize-url](https://github.com/sindresorhus/normalize-url) from 4.5.0 to 4.5.1.
- [Re...

934b37fa014f72f5cc91329ef5929ebe33281c80 authored almost 4 years ago
(fix) adjust snipping spans (#256)

When snipping the tag contents, after replacing a match, we need to adjust the matching spans as...

f5e5c4f8ed524a823ffa14a1811944a7629c926c authored almost 4 years ago
(feat) support bracketSameLine (#251)

21a9a545973fdea305d4f27358384207940706c5 authored almost 4 years ago
-> v2.4.0

bf13623e394c478e3546902532422098a0e5aae9 authored almost 4 years ago
update unreleased

78f9194d50805583a6e6c729be2d26b35a38a434 authored almost 4 years ago
(feat) format pug (#248)

If the pug plugin is available, format template tags with that

230fa9cb92992c57c6298573d9def5dc657ec821 authored almost 4 years ago
(fix) adjust wrong "is inside other tag" check (#247)

Fixes #244

0c77275bdca01622061e124f037a7ecb9f9c6587 authored almost 4 years ago
Bump path-parse from 1.0.6 to 1.0.7 (#243)

Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release n...

3d2ef3ddd138d414faa447924e26cc97306153c4 authored almost 4 years ago
ci(workflow): add 'npm' cache for actions/setup-node in .github/workflows (#236)

Fixes #237

011ae004b6613c34fd7d720adebecc2842a0cf75 authored about 4 years ago
-> v2.3.1

d7c3d5b7ac52c436e2a1f0afbc5300d9c2ad1568 authored about 4 years ago
(fix) better check for hardline (#235)

The check for hardline was insufficient. It could happen that one version of Prettier did create...

c50f5eb2f3c65d9829f02d2d360486fcc9f32c84 authored about 4 years ago
Bump glob-parent from 5.1.1 to 5.1.2 (#231)

Bumps [glob-parent](https://github.com/gulpjs/glob-parent) from 5.1.1 to 5.1.2.
- [Release note...

44fb6bd6a1b02556a5048ef041102b3c3633f1f6 authored about 4 years ago
-> v2.3.0

558cc0b5f7edf75d5923ff5258b2a3b7712d37e1 authored about 4 years ago
Bump hosted-git-info from 2.8.8 to 2.8.9 (#228)

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release...

a7bdb5edfdd834fd539a8a0a0990da1c8d441b72 authored about 4 years ago
Bump lodash from 4.17.20 to 4.17.21 (#227)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](htt...

aa76330356e6694ae8895cc2f43fc1376bbebd70 authored about 4 years ago
tidy up

b73e245b86ffeadd8aa83b6fe5034f47f8a08766 authored about 4 years ago
(feat) Support range ignores in HTML top level (#226)

`<!-- prettier-ignore-start --> ... <!-- prettier-ignore-end -->` is now supported at HTML top l...

bb132d9dbf3495ce5d2784d847400850e76d8cff authored about 4 years ago
(fix) Keep parantheses in script tags for which JS is assumed (#224)

If a script tag is assumed to be JS, use babel-ts now to format the contents. The formatter prin...

9d1486edbd506e3997a88f79005be4cf80bda6ec authored about 4 years ago
(fix) adjust according to Prettier 2.3.0 updates (#223)

Prettier 2.3.0 changed the representation of concats from `{ type: 'concat', parts: [..] }` to `...

69fc702df32a7e8730f8f7bd509a111aa02692e4 authored about 4 years ago
(fix) better print of long attribute values with mustache tags (#221)

0299332eb64b5bf27715c91f9b536fb11380b41f authored about 4 years ago
Update unreleased

924a3b9ba4530d3b726d9971bff231ee609fc701 authored about 4 years ago
(fix) don't snip tag inside other tag (#220)

Fixes #219
Fixes the comment case of #70
Closes #72

7bfe5a90e6fec01ad0358f02a9ab067c02ee751f authored about 4 years ago