Skip to content

v1.17.2

Choose a tag to compare

@github-actions github-actions released this 15 Nov 16:23
eda3d50

Two bug fixes: a design-system worker that could fall one message out of step under heavy CPU load,
and no-default-palette reporting nothing in a project with a prefix().

Before you upgrade

  • Nothing to change in your config. Every project computes its design system once more on the
    first run after upgrading.
  • Reports that can appear with the same config: under @import "tailwindcss" prefix(…),
    no-default-palette on the default palette's colors, and no-dark-without-light on a variant
    class whose only colour is a var(--tw-color-*) read.

Bug fixes

  • A rare TypeError: Cannot convert undefined or null to object under heavy CPU load is gone
    (#251).
    The host and the design-system worker each took "Atomics.wait returned" to mean "the
    flag is set". store and notify are separate steps, so a thread descheduled between them
    delivered its notify late, to the next wait; the host then read the shared buffer before the
    worker had answered and found its own request there, and the two stayed one message out of step
    for the next few files. Both sides now wait on the flag itself and ignore a wake-up that arrives
    without it.
  • no-default-palette reports under a project prefix (#253). With
    @import "tailwindcss" prefix(tw), Tailwind names the theme's colors --tw-color-*, and the
    precompute only looked for --color-*, so it found neither the palette nor the project's colors:
    tw:bg-gray-500 passed. It reads both spellings now. The same gap made no-hardcoded-colors use
    the message that doesn't name your theme colors, and no-dark-without-light skip a class whose
    only colour is such a read (an @utility with background: var(--tw-color-brand)).

Dependencies

  • Tested against oxlint 1.93.0 and Tailwind CSS 4.3.5, which is the engine the plugin ships and the
    newest one the engine check accepts without a warning.