Skip to content

Bump tailwind_formatter from 0.4.0 to 0.4.2#115

Open
dependabot[bot] wants to merge 1 commit intodevelopfrom
dependabot/hex/tailwind_formatter-0.4.2
Open

Bump tailwind_formatter from 0.4.0 to 0.4.2#115
dependabot[bot] wants to merge 1 commit intodevelopfrom
dependabot/hex/tailwind_formatter-0.4.2

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Apr 21, 2025

Bumps tailwind_formatter from 0.4.0 to 0.4.2.

Release notes

Sourced from tailwind_formatter's releases.

Release v0.4.2

0.4.2 (2025-01-02)

  • Handle arbitrary values and properties in sorting

Full Changelog: 100phlecs/tailwind_formatter@v0.4.1...v0.4.2

Release v0.4.1

0.4.1 (2024-12-28)

What's Changed

New Contributors

Full Changelog: 100phlecs/tailwind_formatter@v0.4.0...v0.4.1

Changelog

Sourced from tailwind_formatter's changelog.

Changelog for v0.4.0

TailwindFormatter v0.4.0 requires Elixir v1.15+.

Removing TailwindFormatter.MultiFormatter

The above was a stop-gap due to earlier versions of Elixir not supporting multiple formatters in your .formatter.exs.

This is no longer the case for Elixir v1.15. Since TailwindFormatter now requires 1.15 and above, this module has been removed.

Your .formatter.exs should instead look like this:

  [
    plugins: [TailwindFormatter, Phoenix.LiveView.HTMLFormatter],
    # ...
  ]

Support for class lists

TailwindFormatter v0.4.0 now supports class lists like so:

    <div
      role="alert"
      class={[
        "fixed top-2 right-2 mr-2 w-80 sm:w-96 z-50 rounded-lg p-3 ring-1",
        @kind == :info && "bg-emerald-50 text-emerald-800 ring-emerald-500 fill-cyan-900",
        @kind == :error && "bg-rose-50 text-rose-900 shadow-md ring-rose-500 fill-rose-900"
      ]}
      {@rest}
    />

This was achieved by switching our parsing strategy to Phoenix.LiveView.Tokenizer.

Sorting string fragments within elixir expressions

If you have a string fragment with a couple of classes, such as:

"#{if true, do: "px-1 bg-white shadow-md"}"

the fragment will be sorted as well.

Custom Tailwind configuration support

Previously TailwindFormatter could only use a dump of default classes and variants from Tailwind.

... (truncated)

Commits

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps [tailwind_formatter](https://github.com/100phlecs/tailwind_formatter) from 0.4.0 to 0.4.2.
- [Release notes](https://github.com/100phlecs/tailwind_formatter/releases)
- [Changelog](https://github.com/100phlecs/tailwind_formatter/blob/master/CHANGELOG.md)
- [Commits](100phlecs/tailwind_formatter@v0.4.0...v0.4.2)

---
updated-dependencies:
- dependency-name: tailwind_formatter
  dependency-version: 0.4.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file elixir Pull requests that update elixir code labels Apr 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file elixir Pull requests that update elixir code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants