Skip to content

Conversation

@dcastil
Copy link
Owner

@dcastil dcastil commented Jun 10, 2022

Closes #101

v3.1.0

Added

  • Support PostCSS Document nodes (#7291)
  • Add text-start and text-end utilities (#6656)
  • Support customizing class name when using darkMode: 'class' (#5800)
  • Add --poll option to the CLI (#7725)
  • Add new border-spacing utilities (#7102)
  • Add enabled variant (#7905)
  • Add TypeScript types for the tailwind.config.js file (#7891)
  • Add backdrop variant (#7924, #8526)
  • Add grid-flow-dense utility (#8193)
  • Add mix-blend-plus-lighter utility (#8288)
  • Add arbitrary variants (#8299)
  • Add experimental matchVariant API (#8310, 34fd0fb8)
  • Add prefers-contrast media query variants (#8410)
  • Add opacity support when referencing colors with theme function (#8416)
  • Add postcss-import support to the CLI (#8437)
  • Add optional variant (#8486)
  • Add <alpha-value> placeholder support for custom colors (#8501)

Fixed

  • Types: allow for arbitrary theme values (for 3rd party plugins) (#7926)
  • Don’t split vars with numbers in them inside arbitrary values (#8091)
  • Require matching prefix when detecting negatives (#8121)
  • Handle duplicate At Rules without children (#8122)
  • Allow arbitrary values with commas in @apply (#8125)
  • Fix intellisense for plugins with multiple @apply rules (#8213)
  • Improve type detection for arbitrary color values (#8201)
  • Support PostCSS config options in config file in CLI (#8226)
  • Remove default [hidden] style in preflight (#8248)
  • Only check selectors containing base apply candidates for circular dependencies (#8222)
  • Rewrite default class extractor (#8204)
  • Move important selector to the front when @apply-ing selector-modifying variants in custom utilities (#8313)
  • Error when registering an invalid custom variant (#8345)
  • Create tailwind.config.cjs file in ESM package when running init (#8363)
  • Fix matchVariants that use at-rules and placeholders (#8392)
  • Improve types of the tailwindcss/plugin (#8400)
  • Allow returning parallel variants from addVariant or matchVariant callback functions (#8455)
  • Try using local postcss installation first in the CLI (#8270)
  • Allow default ring color to be a function (#7587)
  • Don't inherit to value from parent gradients (#8489)
  • Remove process dependency from log functions (#8530)
  • Ensure we can use @import 'tailwindcss/...' without node_modules (#8537)

Changed

  • Only apply hover styles when supported (future) (#8394)
  • Respect default ring color opacity (future) (#8448, 3f4005e)

v3.1.1

Fixed

  • Fix candidate extractor regression (#8558)
  • Split ::backdrop into separate defaults group (#8567)
  • Fix postcss plugin type (#8564)
  • Fix class detection in markdown code fences and slim templates (#8569)

v3.1.2

Fixed

  • Ensure \\ is a valid arbitrary variant token (#8576)
  • Enable postcss-import in the CLI by default in watch mode (#8574, #8580)

@github-actions github-actions bot added the feature Is new feature label Jun 10, 2022
@github-actions
Copy link

github-actions bot commented Jun 10, 2022

size-limit report 📦

Path Size
dist/tailwind-merge.mjs 6.88 KB (+9.14% 🔺)
dist/tailwind-merge.cjs.production.min.js 6.74 KB (+9.71% 🔺)

@dcastil
Copy link
Owner Author

dcastil commented Jun 11, 2022

The code in https://github.com/tailwindlabs/tailwindcss/blob/ad98a619a446a58de24286a3d3e8f442668fd00d/src/lib/defaultExtractor.js#L69-L77 evaluates to this partial regex:

/((?=(((?:([^\s"'`\[\\]+-)?\[[^\s"'`]+\]:|[^\s"'`\[\\]+:))+))\2)?/

@dcastil dcastil marked this pull request as ready for review June 12, 2022 17:56
@dcastil dcastil merged commit f543405 into main Jun 12, 2022
@dcastil dcastil deleted the feature/101/add-support-for-tailwind-v3.1 branch June 12, 2022 17:57
@dcastil dcastil added the context-v1 Related to tailwind-merge v1 label Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

context-v1 Related to tailwind-merge v1 feature Is new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for Tailwind v3.1

2 participants