Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: tailwindlabs/prettier-plugin-tailwindcss
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.6.0
Choose a base ref
...
head repository: tailwindlabs/prettier-plugin-tailwindcss
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.6.1
Choose a head ref
  • 2 commits
  • 10 files changed
  • 2 contributors

Commits on May 31, 2024

  1. Improve handling of whitespace and duplicate class removal (#276)

    * Add tests
    
    * Be more careful about whitespace removal in concat expressions
    
    * Detect liquid concat expressions in newer ASTs
    
    * Make sure string splicing handles changing string length
    
    * Add option to preserve duplicate classes
    
    This is important when using templating languages
    
    * Disable whitespace removal in Svelte
    
    We’d have to modify the start/end locations of many nodes in the AST. Technically, only AST nodes appearing _after_ the string on the same line but that might actually be sibling nodes and ancestor nodes. It’s a better option for now to disable it.
    
    * Disable whitespace removal in Liquid
    
    * Disable duplicate removal in Liquid and Svelte
    
    * Update changelog
    
    * Update readme
    
    * Update CHANGELOG.md
    
    * Update README.md
    
    ---------
    
    Co-authored-by: Jonathan Reinink <[email protected]>
    thecrypticace and reinink authored May 31, 2024
    Configuration menu
    Copy the full SHA
    8a9094f View commit details
    Browse the repository at this point in the history
  2. 0.6.1

    thecrypticace committed May 31, 2024
    Configuration menu
    Copy the full SHA
    731ae22 View commit details
    Browse the repository at this point in the history
Loading