✂️ Tailwind CSS utility classes for trimming whitespace above & below capital letters.

  • By Jeff
  • Last update: Dec 1, 2022
  • Comments: 17

tailwindcss-capsize

npm version

A TailwindCSS plugin that generates leading-trim utility classes using Capsize.

$ npm install --save-dev tailwindcss-capsize

Configuration

This plugin requires a fontMetrics key added to your Tailwind theme. It should be an object with keys matching those in your fontFamily definitions, and each key should have an object of the following shape:

{
    ascent: number
    descent: number
    lineGap: number
    unitsPerEm: number
    capHeight: number
}

These values can be determined by using the Capsize website, by using fontkit, or some other means.

A full example

// tailwind.config.js
module.exports = {
    theme: {
        fontFamily: {
            sans: ['Inter', 'sans-serif'],
        },
        fontMetrics: {
            sans: {
                capHeight: 2048,
                ascent: 2728,
                descent: -680,
                lineGap: 0,
                unitsPerEm: 2816,
            },
        },
        fontSize: { ... },
        lineHeight: { ... },
        ...
    },
    plugins: [require('tailwindcss-capsize')],
}

Usage

The new .capsize utility class should be applied to the direct parent element surrounding a text node. This class only provides the neccessary styles for trimming whitespace, utility classes for setting font-family, font-size, and line-height will need to be applied as well.

Options

rootSize

The plugin assumes a root font-size of 16px when converting from rem values. To use a different value, pass it in (without units) to the plugin options.

require('tailwindcss-capsize')({ rootSize: 12 })

className

The default .capsize utility class can be replaced with a custom class name if preferred.

require('tailwindcss-capsize')({ className: 'leading-trim' })

Github

https://github.com/stormwarning/tailwindcss-capsize

Comments(17)

  • 1

    Build fails in JIT mode.

    I love the idea for this plugin but unfortunately it throws errors during build in JIT mode.

    ERROR in ./resources/styles/app.scss
    Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
    ModuleBuildError: Module build failed (from ./node_modules/postcss-loader/dist/cjs.js):
    TypeError: plugin is not a function
        at registerPlugins (/Users/christianmagill/Code/Sites/site/wp-content/themes/site/node_modules/tailwindcss/lib/jit/lib/setupContextUtils.js:540:7)
        at createContext (/Users/christianmagill/Code/Sites/site/wp-content/themes/site/node_modules/tailwindcss/lib/jit/lib/setupContextUtils.js:583:3)
        at getContext (/Users/christianmagill/Code/Sites/site/wp-content/themes/site/node_modules/tailwindcss/lib/jit/lib/setupContextUtils.js:644:17)
        at /Users/christianmagill/Code/Sites/site/wp-content/themes/site/node_modules/tailwindcss/lib/jit/lib/setupTrackingContext.js:177:57
        at /Users/christianmagill/Code/Sites/site/wp-content/themes/site/node_modules/tailwindcss/lib/jit/processTailwindFeatures.js:54:7
        at /Users/christianmagill/Code/Sites/site/wp-content/themes/site/node_modules/tailwindcss/lib/jit/index.js:25:56
        at LazyResult.runOnRoot (/Users/christianmagill/Code/Sites/site/wp-content/themes/site/node_modules/postcss/lib/lazy-result.js:333:16)
        at LazyResult.runAsync (/Users/christianmagill/Code/Sites/site/wp-content/themes/site/node_modules/postcss/lib/lazy-result.js:385:26)
        at LazyResult.async (/Users/christianmagill/Code/Sites/site/wp-content/themes/site/node_modules/postcss/lib/lazy-result.js:215:30)
        at LazyResult.then (/Users/christianmagill/Code/Sites/site/wp-content/themes/site/node_modules/postcss/lib/lazy-result.js:200:17)
        at processResult (/Users/christianmagill/Code/Sites/site/wp-content/themes/site/node_modules/webpack/lib/NormalModule.js:700:19)
        at /Users/christianmagill/Code/Sites/site/wp-content/themes/site/node_modules/webpack/lib/NormalModule.js:806:5
        at /Users/christianmagill/Code/Sites/site/wp-content/themes/site/node_modules/loader-runner/lib/LoaderRunner.js:399:11
        at /Users/christianmagill/Code/Sites/site/wp-content/themes/site/node_modules/loader-runner/lib/LoaderRunner.js:251:18
        at context.callback (/Users/christianmagill/Code/Sites/site/wp-content/themes/site/node_modules/loader-runner/lib/LoaderRunner.js:124:13)
        at Object.loader (/Users/christianmagill/Code/Sites/site/wp-content/themes/site/node_modules/postcss-loader/dist/index.js:96:7)
    
    

    Here's my config... If I remove Capsize compilation works.

    module.exports = {
      // mode: 'jit',
      purge: {
        content: [
          './app/**/*.php',
          './resources/**/*.{php,vue,js}',
        ],
      },
      darkMode: false, // or 'media' or 'class'
      theme: {
        fontFamily: {
          sans: ['Inter', 'sans-serif'],
        },
        fontMetrics: {
          sans: {
            capHeight: 2048,
            ascent: 2728,
            descent: -680,
            lineGap: 0,
            unitsPerEm: 2816,
          },
        },
        aspectRatio: {
          none: 0,
          square: [1, 1],
          "16/9": [16, 9],
          "4/3": [4, 3],
          "21/9": [21, 9],
        },
        extend: {
          colors: {},
        },
      },
      variants: {
        aspectRatio: ['responsive'],
        extend: {},
      },
      plugins: [
        // require('@tailwindcss/typography'),
        // require('@tailwindcss/aspect-ratio'), // https://github.com/tailwindlabs/tailwindcss-aspect-ratio
        // require('tailwindcss-skip-link')(), // https://github.com/opdavies/tailwindcss-plugin-skip-link
        // require('tailwindcss-debug-screens'), // https://github.com/jorenvanhee/tailwindcss-debug-screens
        // require('tailwindcss-elevation')(['responsive']), // https://github.com/jonaskay/tailwindcss-elevation
        // require('@tailwindcss/line-clamp'), // https://github.com/tailwindlabs/tailwindcss-line-clamp
        require('tailwindcss-capsize'), // https://github.com/stormwarning/tailwindcss-capsize
      ],
    };
    
    
    
  • 2

    Upgrade: Bump tailwindcss from 2.2.19 to 3.0.24

    Bumps tailwindcss from 2.2.19 to 3.0.24.

    Release notes

    Sourced from tailwindcss's releases.

    v3.0.24

    Fixed

    • Prevent nesting plugin from breaking other plugins (#7563)
    • Recursively collapse adjacent rules (#7565)
    • Preserve source maps for generated CSS (#7588)
    • Split box shadows on top-level commas only (#7479)
    • Use local user CSS cache for @apply (#7524)
    • Invalidate context when main CSS changes (#7626)
    • Only add ! to selector class matching template candidate when using important modifier with mutli-class selectors (#7664)
    • Correctly parse and prefix animation names with dots (#7163)
    • Fix extraction from template literal/function with array (#7481)
    • Don't output unparsable arbitrary values (#7789)
    • Fix generation of div:not(.foo) if .foo is never defined (#7815)
    • Allow for custom properties in rgb, rgba, hsl and hsla colors (#7933)
    • Remove autoprefixer as explicit peer-dependency to avoid invalid warnings in situations where it isn't actually needed (#7949)
    • Ensure the percentage data type is validated correctly (#8015)

    Changed

    • Replace chalk with picocolors (#6039)
    • Replace cosmiconfig with lilconfig (#6039)
    • Update cssnano to avoid removing empty variables when minifying (#7818)

    v3.0.23

    Fixed

    • Remove opacity variables from :visited pseudo class (#7458)
    • Support arbitrary values + calc + theme with quotes (#7462)
    • Don't duplicate layer output when scanning content with variants + wildcards (#7478)
    • Implement getClassOrder instead of sortClassList (#7459)

    v3.0.22

    Fixed

    • Temporarily move postcss to dependencies (#7424)

    v3.0.21

    Fixed

    • Move prettier plugin to dev dependencies (#7418)

    v3.0.20

    Added

    • Expose context.sortClassList(classes) (#7412)

    v3.0.19

    Fixed

    ... (truncated)

    Changelog

    Sourced from tailwindcss's changelog.

    [3.0.24] - 2022-04-12

    Fixed

    • Prevent nesting plugin from breaking other plugins (#7563)
    • Recursively collapse adjacent rules (#7565)
    • Preserve source maps for generated CSS (#7588)
    • Split box shadows on top-level commas only (#7479)
    • Use local user CSS cache for @apply (#7524)
    • Invalidate context when main CSS changes (#7626)
    • Only add ! to selector class matching template candidate when using important modifier with mutli-class selectors (#7664)
    • Correctly parse and prefix animation names with dots (#7163)
    • Fix extraction from template literal/function with array (#7481)
    • Don't output unparsable arbitrary values (#7789)
    • Fix generation of div:not(.foo) if .foo is never defined (#7815)
    • Allow for custom properties in rgb, rgba, hsl and hsla colors (#7933)
    • Remove autoprefixer as explicit peer-dependency to avoid invalid warnings in situations where it isn't actually needed (#7949)
    • Ensure the percentage data type is validated correctly (#8015)
    • Make sure font-weight is inherited by form controls in all browsers (#8078)

    Changed

    • Replace chalk with picocolors (#6039)
    • Replace cosmiconfig with lilconfig (#6039)
    • Update cssnano to avoid removing empty variables when minifying (#7818)

    [3.0.23] - 2022-02-16

    Fixed

    • Remove opacity variables from :visited pseudo class (#7458)
    • Support arbitrary values + calc + theme with quotes (#7462)
    • Don't duplicate layer output when scanning content with variants + wildcards (#7478)
    • Implement getClassOrder instead of sortClassList (#7459)

    [3.0.22] - 2022-02-11

    Fixed

    • Temporarily move postcss to dependencies (#7424)

    [3.0.21] - 2022-02-10

    Fixed

    • Move prettier plugin to dev dependencies (#7418)

    [3.0.20] - 2022-02-10

    Added

    ... (truncated)

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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 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)
  • 3

    Upgrade: Bump husky from 4.3.0 to 5.1.2

    Bumps husky from 4.3.0 to 5.1.2.

    Release notes

    Sourced from husky's releases.

    v5.1.2

    • docs: recommend prepare script instead of postinstall (#890)
    • cli: husky init use prepare script (#890)

    v5.1.1

    • style(shell): add trailing newlines (#870)
    • fix(init): update package.json postinstall

    v5.1.0

    • Add husky init

    v5.0.9

    • fix(install): do not fail if not inside a Git directory (closes #851)

    See https://github.com/typicode/husky/releases/tag/v5.0.0 for v5 release notes

    v5.0.8

    • fix(install): better handle Git <2.9 (#846) closes #844

    v5.0.7

    • fix(shell): double quote params (#824)

    v5.0.6

    • Remove unused files

    v5.0.5

    • Fix custom directory support #827

    v5.0.0

    👉 See https://typicode.github.io/husky for breaking changes and new installation instructions.

    Note about the license

    Husky 5 is released under The Parity Public License.

    It doesn't affect you if you're using husky in an Open Source project or if you're a sponsor. You're free to use it as usual and I hope you'll enjoy this new release ❤️

    If you're using husky in a commercial project, you may want to consider becoming a sponsor to support the project. You can also try it for 30 days.

    This is only for a limited time, husky will be MIT again later.

    Migrating

    Important Husky v5 brings a lot of improvements but is also very different from v4. Git hooks won't work if you only upgrade husky dependency, existing config needs to be migrated too.

    The best way to switch to v5 is to follow the new installation instructions and migrate existing hooks command using husky add.

    v5.0.0-alpha.5

    No release notes provided.

    ... (truncated)

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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 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)
  • 4

    Upgrade: Bump tailwindcss from 1.6.2 to 1.7.1

    Bumps tailwindcss from 1.6.2 to 1.7.1.

    Release notes

    Sourced from tailwindcss's releases.

    v1.7.1

    • Don't issue duplicate flag notices in long-running build processes

    v1.7.0

    Tailwind v1.7.0

    Another new Tailwind release is here! This one sort of came out of nowhere and is loaded with exciting stuff (especially down in the experiments section...)

    Let's dig in!

    New features

    Gradients

    tailwindlabs/tailwindcss#2176

    The big one for this release — Tailwind now ships with built-in support for background gradients!

    Gradients are designed with a highly composable API that lets you specify up to three color stops in one of 8 directions by default:

    <div class="bg-gradient-to-r from-orange-400 via-red-500 to-pink-500">
      <!-- ... -->
    </div>
    

    Commits
    • d3606b7 1.7.1
    • 4228cf2 Don't issue duplicate flag notices in long running processes
    • c16bf20 1.7.0
    • 2b22d72 Generate experimental build for CDN
    • 092009b Simplify flag logging
    • 6230cc3 Add responsive divide style utilities
    • f32ae23 Merge branch 'master' of github.com:tailwindlabs/tailwindcss
    • fdf4689 Fix issue where motion variants incorrectly stack with group-hover variants
    • 9f9065d Merge pull request #2171 from tailwindlabs/perf-improvements
    • 33ee646 cache className resolve
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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 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)
  • 5

    Upgrade: Bump tailwindcss from 2.2.19 to 3.2.1

    Bumps tailwindcss from 2.2.19 to 3.2.1.

    Release notes

    Sourced from tailwindcss's releases.

    v3.2.1

    Fixed

    • Fix missing supports in types (#9616)
    • Fix missing PostCSS dependencies in the CLI (#9617)
    • Ensure micromatch is a proper CLI dependency (#9620)
    • Ensure modifier values exist when using a modifiers object for matchVariant (ba6551d)

    v3.2.0

    We just released Tailwind CSS v3.2! Read the announcement post for more details about the most exciting new features.


    Added

    • Add new @config directive (#9405)
    • Add new relative: true option to resolve content paths relative to the config file (#9396)
    • Add new supports-* variant (#9453)
    • Add new min-* and max-* variants (#9558)
    • Add new aria-* variants (#9557, #9588)
    • Add new data-* variants (#9559, #9588)
    • Add new break-keep utility for word-break: keep-all (#9393)
    • Add new collapse utility for visibility: collapse (#9181)
    • Add new fill-none utility for fill: none (#9403)
    • Add new stroke-none utility for stroke: none (#9403)
    • Add new place-content-baseline utility for place-content: baseline (#9498)
    • Add new place-items-baseline utility for place-items: baseline (#9507)
    • Add new content-baseline utility for align-content: baseline (#9507)
    • Add support for configuring default font-feature-settings for a font family (#9039)
    • Add standalone CLI build for 32-bit Linux on ARM (node16-linux-armv7) (#9084)
    • Add future flag to disable color opacity utility plugins (#9088)
    • Add negative value support for outline-offset (#9136)
    • Add support for modifiers to matchUtilities (#9541)
    • Allow negating utilities using min/max/clamp (#9237)
    • Implement fallback plugins when there is ambiguity between plugins when using arbitrary values (#9376)
    • Support sort function in matchVariant (#9423)
    • Upgrade to postcss-nested v6.0 (#9546)

    Fixed

    • Use absolute paths when resolving changed files for resilience against working directory changes (#9032)
    • Fix ring color utility generation when using respectDefaultRingColorOpacity (#9070)
    • Sort tags before classes when @apply-ing a selector with joined classes (#9107)
    • Remove invalid outline-hidden utility (#9147)
    • Honor the hidden attribute on elements in preflight (#9174)
    • Don't stop watching atomically renamed files (#9173, #9215)
    • Fix duplicate utilities issue causing memory leaks (#9208)
    • Fix fontFamily config TypeScript types (#9214)
    • Handle variants on complex selector utilities (#9262)
    • Fix shared config mutation issue (#9294)

    ... (truncated)

    Changelog

    Sourced from tailwindcss's changelog.

    [3.2.1] - 2022-10-21

    Fixed

    [3.2.0] - 2022-10-19

    Added

    • Add new @config directive (#9405)
    • Add new relative: true option to resolve content paths relative to the config file (#9396)
    • Add new supports-* variant (#9453)
    • Add new min-* and max-* variants (#9558)
    • Add new aria-* variants (#9557, #9588)
    • Add new data-* variants (#9559, #9588)
    • Add new break-keep utility for word-break: keep-all (#9393)
    • Add new collapse utility for visibility: collapse (#9181)
    • Add new fill-none utility for fill: none (#9403)
    • Add new stroke-none utility for stroke: none (#9403)
    • Add new place-content-baseline utility for place-content: baseline (#9498)
    • Add new place-items-baseline utility for place-items: baseline (#9507)
    • Add new content-baseline utility for align-content: baseline (#9507)
    • Add support for configuring default font-feature-settings for a font family (#9039)
    • Add standalone CLI build for 32-bit Linux on ARM (node16-linux-armv7) (#9084)
    • Add future flag to disable color opacity utility plugins (#9088)
    • Add negative value support for outline-offset (#9136)
    • Add support for modifiers to matchUtilities (#9541)
    • Allow negating utilities using min/max/clamp (#9237)
    • Implement fallback plugins when there is ambiguity between plugins when using arbitrary values (#9376)
    • Support sort function in matchVariant (#9423)
    • Upgrade to postcss-nested v6.0 (#9546)

    Fixed

    • Use absolute paths when resolving changed files for resilience against working directory changes (#9032)
    • Fix ring color utility generation when using respectDefaultRingColorOpacity (#9070)
    • Sort tags before classes when @apply-ing a selector with joined classes (#9107)
    • Remove invalid outline-hidden utility (#9147)
    • Honor the hidden attribute on elements in preflight (#9174)
    • Don't stop watching atomically renamed files (#9173, #9215)
    • Fix duplicate utilities issue causing memory leaks (#9208)
    • Fix fontFamily config TypeScript types (#9214)
    • Handle variants on complex selector utilities (#9262)
    • Fix shared config mutation issue (#9294)
    • Fix ordering of parallel variants (#9282)
    • Handle variants in utility selectors using :where() and :has() (#9309)

    ... (truncated)

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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 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)
  • 6

    Upgrade: Bump jest-diff from 27.2.0 to 29.2.1

    Bumps jest-diff from 27.2.0 to 29.2.1.

    Release notes

    Sourced from jest-diff's releases.

    v29.2.1

    Features

    • [@jest/globals, jest-mock] Add jest.Spied* utility types (#13440)

    Fixes

    • [jest-environment-node] make globalThis.performance writable for Node 19 and fake timers (#13467)
    • [jest-mock] Revert #13398 to restore mocking of setters (#13472)

    Performance

    • [*] Use sha1 instead of sha256 for hashing (#13421)

    Full Changelog: https://github.com/facebook/jest/compare/v29.2.0...v29.2.1

    v29.2.0

    Features

    • [@jest/cli, jest-config] A seed for the test run will be randomly generated, or set by a CLI option (#13400)
    • [@jest/cli, jest-config] --show-seed will display the seed value in the report, and can be set via a CLI flag or through the config file (#13400)
    • [jest-config] Add readInitialConfig utility function (#13356)
    • [jest-core] Allow testResultsProcessor to be async (#13343)
    • [@jest/environment, jest-environment-node, jest-environment-jsdom, jest-runtime] Add getSeed() to the jest object (#13400)
    • [expect, @jest/expect-utils] Allow isA utility to take a type argument (#13355)
    • [expect] Expose AsyncExpectationResult and SyncExpectationResult types (#13411)

    Fixes

    • [babel-plugin-jest-hoist] Ignore TSTypeQuery when checking for hoisted references (#13367)
    • [jest-core] Fix detectOpenHandles false positives for some special objects such as TLSWRAP (#13414)
    • [jest-mock] Fix mocking of getters and setters on classes (#13398)
    • [jest-reporters] Revert: Transform file paths into hyperlinks (#13399)
    • [@jest/types] Infer type of each table correctly when the table is a tuple or array (#13381)
    • [@jest/types] Rework typings to allow the *ReturnedWith matchers to be called with no argument (#13385)

    Chore & Maintenance

    • [*] Update @babel/* deps, resulting in slightly different stack traces for each (#13422)

    Performance

    • [jest-runner] Do not instrument v8 coverage data if coverage should not be collected (#13282)

    New Contributors

    ... (truncated)

    Changelog

    Sourced from jest-diff's changelog.

    29.2.1

    Features

    • [@jest/globals, jest-mock] Add jest.Spied* utility types (#13440)

    Fixes

    • [jest-environment-node] make globalThis.performance writable for Node 19 and fake timers (#13467)
    • [jest-mock] Revert #13398 to restore mocking of setters (#13472)

    Performance

    • [*] Use sha1 instead of sha256 for hashing (#13421)

    29.2.0

    Features

    • [@jest/cli, jest-config] A seed for the test run will be randomly generated, or set by a CLI option (#13400)
    • [@jest/cli, jest-config] --show-seed will display the seed value in the report, and can be set via a CLI flag or through the config file (#13400)
    • [jest-config] Add readInitialConfig utility function (#13356)
    • [jest-core] Allow testResultsProcessor to be async (#13343)
    • [@jest/environment, jest-environment-node, jest-environment-jsdom, jest-runtime] Add getSeed() to the jest object (#13400)
    • [expect, @jest/expect-utils] Allow isA utility to take a type argument (#13355)
    • [expect] Expose AsyncExpectationResult and SyncExpectationResult types (#13411)

    Fixes

    • [babel-plugin-jest-hoist] Ignore TSTypeQuery when checking for hoisted references (#13367)
    • [jest-core] Fix detectOpenHandles false positives for some special objects such as TLSWRAP (#13414)
    • [jest-mock] Fix mocking of getters and setters on classes (#13398)
    • [jest-reporters] Revert: Transform file paths into hyperlinks (#13399)
    • [@jest/types] Infer type of each table correctly when the table is a tuple or array (#13381)
    • [@jest/types] Rework typings to allow the *ReturnedWith matchers to be called with no argument (#13385)

    Chore & Maintenance

    • [*] Update @babel/* deps, resulting in slightly different stack traces for each (#13422)

    Performance

    • [jest-runner] Do not instrument v8 coverage data if coverage should not be collected (#13282)

    29.1.2

    Fixes

    • [expect, @jest/expect] Revert buggy inference of argument types for *CalledWith and *ReturnedWith matchers introduced in 29.1.0 (#13339)
    • [jest-worker] Add missing dependency on jest-util (#13341)

    ... (truncated)

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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 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)
  • 7

    Chore: Bump actions/cache from 3.0.2 to 3.0.10

    Bumps actions/cache from 3.0.2 to 3.0.10.

    Release notes

    Sourced from actions/cache's releases.

    v3.0.10

    • Fix a bug with sorting inputs.
    • Update definition for restore-keys in README.md

    v3.0.9

    • Enhanced the warning message for cache unavailability in case of GHES.

    v3.0.8

    What's Changed

    • Fix zstd not working for windows on gnu tar in issues.
    • Allow users to provide a custom timeout as input for aborting cache segment download using the environment variable SEGMENT_DOWNLOAD_TIMEOUT_MIN. Default is 60 minutes.

    v3.0.7

    What's Changed

    • Fix for the download stuck problem has been added in actions/cache for users who were intermittently facing the issue. As part of this fix, new timeout has been introduced in the download step to stop the download if it doesn't complete within an hour and run the rest of the workflow without erroring out.

    v3.0.6

    What's Changed

    • Add example for clojure lein project dependencies by @​shivamarora1 in PR actions/cache#835
    • Update toolkit's cache npm module to latest. Bump cache version to v3.0.6 by @​pdotl in PR actions/cache#887
    • Fix issue #809 where cache save/restore was failing for Amazon Linux 2 runners due to older tar version
    • Fix issue #833 where cache save was not working for caching github workspace directory

    New Contributors

    Full Changelog: https://github.com/actions/cache/compare/v3...v3.0.6

    v3.0.5

    Removed error handling by consuming actions/cache 3.0 toolkit, Now cache server error handling will be done by toolkit.

    v3.0.4

    In this release, we have fixed the tar creation error while trying to create it with path as ~/ home folder on ubuntu-latest.

    v3.0.3

    Fixed avoiding empty cache save when no files are available for caching. (actions/cache#624)

    Changelog

    Sourced from actions/cache's changelog.

    Releases

    3.0.0

    • Updated minimum runner version support from node 12 -> node 16

    3.0.1

    • Added support for caching from GHES 3.5.
    • Fixed download issue for files > 2GB during restore.
    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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 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)
  • 8

    Chore: Bump actions/setup-node from 3.1.1 to 3.5.0

    Bumps actions/setup-node from 3.1.1 to 3.5.0.

    Release notes

    Sourced from actions/setup-node's releases.

    Add support for engines.node and Volta

    In scope of this release we add support for engines.node. The action will be able to grab the version form package.json#engines.node. actions/setup-node#485. Moreover, we added support for Volta

    Besides, we updated @​actions/core to 1.9.1 and @​actions/cache to 3.0.4

    Fix pnpm output and node-version output issues

    In scope of this release we fixed bugs related to the pnpm 7.5.1 output issue from pnpm store path actions/setup-node#545. Moreover we fixed the issue with falling on node-version output actions/setup-node#540.

    Add support for asdf format and update actions/cache version to 3.0.0

    In scope of this release we updated actions/cache package as the new version contains fixes for caching error handling. Moreover, we added support for asdf format as Node.js version file actions/setup-node#373. Besides, we introduced new output node-version and added npm-shrinkwrap.json to dependency file patterns: actions/setup-node#439

    Add support for lts/-n aliases

    In scope of this release we added support for lts/-n aliases, improve logic for current, latest and node aliases to handle them from toolcache, update ncc package.

    Support of lts/-n aliases

    steps:
    - uses: actions/[email protected]
    - uses: actions/[email protected]
      with:
        node-version: lts/-1
    - run: npm ci
    - run: npm test
    

    Minor improvements

    Add current, node, latest aliases

    In scope of this release we added new aliases to install the latest Node.js version. actions/setup-node#483

    steps:
    - uses: actions/[email protected]
    - uses: actions/[email protected]
      with:
        node-version: current
    - run: npm ci
    - run: npm test
    
    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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 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)
  • 9

    Upgrade: Bump typescript from 4.2.2 to 4.8.4

    Bumps typescript from 4.2.2 to 4.8.4.

    Release notes

    Sourced from typescript's releases.

    TypeScript 4.8.4

    For release notes, check out the release announcement.

    For the complete list of fixed issues, check out the

    Downloads are available on:

    TypeScript 4.8.3

    For release notes, check out the release announcement.

    For the complete list of fixed issues, check out the

    Downloads are available on:

    TypeScript 4.8

    For release notes, check out the release announcement.

    For the complete list of fixed issues, check out the

    Downloads are available on:

    TypeScript 4.8 RC

    For release notes, check out the release announcement.

    ... (truncated)

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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 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)
  • 10

    Upgrade: Bump jest-diff from 27.2.0 to 29.1.2

    Bumps jest-diff from 27.2.0 to 29.1.2.

    Release notes

    Sourced from jest-diff's releases.

    v29.1.2

    Fixes

    • [expect, @jest/expect] Revert buggy inference of argument types for *CalledWith and *ReturnedWith matchers introduced in 29.1.0 (#13339)
    • [jest-worker] Add missing dependency on jest-util (#13341)

    New Contributors

    Full Changelog: https://github.com/facebook/jest/compare/v29.1.1...v29.1.2

    v29.1.1

    Fixes

    • [jest-mock] Revert #13145 which broke mocking of transpiled ES modules

    Full Changelog: https://github.com/facebook/jest/compare/v29.1.0...v29.1.1

    v29.1.0

    Features

    • [expect, @jest/expect] support type inference for function parameters in CalledWith assertions (#13268)
    • [expect, @jest/expect] Infer type of *ReturnedWith matchers argument (#13278)
    • [@jest/environment, jest-runtime] Allow jest.requireActual and jest.requireMock to take a type argument (#13253)
    • [@jest/environment] Allow jest.mock and jest.doMock to take a type argument (#13254)
    • [@jest/fake-timers] Add jest.now() to return the current fake clock time (#13244, #13246)
    • [@jest/mock] Add withImplementation method for temporarily overriding a mock (#13281)
    • [expect] Export toThrow* matchers (#13328)

    Fixes

    • [jest-circus, jest-jasmine2] Fix error messages for Node's assert.throes (#13322)
    • [jest-haste-map] Remove __proto__ usage (#13256)
    • [jest-mock] Improve spyOn typings to handle optional properties (#13247)
    • [jest-mock] Fix mocking of getters and setters on classes (#13145)
    • [jest-snapshot] Throw useful error when an array is passed as property matchers (#13263)
    • [jest-snapshot] Prioritize parser used in the project (#13323)
    • [jest-transform] Attempt to work around issues with atomic writes on Windows (#11423)

    New Contributors

    ... (truncated)

    Changelog

    Sourced from jest-diff's changelog.

    29.1.2

    Fixes

    • [expect, @jest/expect] Revert buggy inference of argument types for *CalledWith and *ReturnedWith matchers introduced in 29.1.0 (#13339)
    • [jest-worker] Add missing dependency on jest-util (#13341)

    29.1.1

    Fixes

    • [jest-mock] Revert #13145 which broke mocking of transpiled ES modules

    29.1.0

    Features

    • [expect, @jest/expect] Support type inference for function parameters in CalledWith assertions (#13268)
    • [expect, @jest/expect] Infer type of *ReturnedWith matchers argument (#13278)
    • [@jest/environment, jest-runtime] Allow jest.requireActual and jest.requireMock to take a type argument (#13253)
    • [@jest/environment] Allow jest.mock and jest.doMock to take a type argument (#13254)
    • [@jest/fake-timers] Add jest.now() to return the current fake clock time (#13244, #13246)
    • [@jest/mock] Add withImplementation method for temporarily overriding a mock (#13281)
    • [expect] Export toThrow* matchers (#13328)

    Fixes

    • [jest-circus, jest-jasmine2] Fix error messages for Node's assert.throes (#13322)
    • [jest-haste-map] Remove __proto__ usage (#13256)
    • [jest-mock] Improve spyOn typings to handle optional properties (#13247)
    • [jest-mock] Fix mocking of getters and setters on classes (#13145)
    • [jest-snapshot] Throw useful error when an array is passed as property matchers (#13263)
    • [jest-snapshot] Prioritize parser used in the project (#13323)
    • [jest-transform] Attempt to work around issues with atomic writes on Windows (#11423)

    29.0.3

    Features

    • [@jest/environment, jest-runtime] Allow passing a generic type argument to jest.createMockFromModule<T>() method (#13202)
    • [expect] Expose ExpectationResult type (#13240)
    • [jest-snapshot] Expose Context type (#13240)
    • [@jest/globals] Add jest.Mock type helper (#13235)

    Fixes

    • [jest-core] Capture execError during TestScheduler.scheduleTests and dispatch to reporters (#13203)
    • [jest-resolve] Make sure to resolve module paths after looking at exports (#13242)
    • [jest-resolve] Improve error on module not found deep in the require stack (#8704)
    • [jest-snapshot] Fix typings of snapshot matchers (#13240)

    ... (truncated)

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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 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)
  • 11

    Upgrade: Bump tailwindcss from 2.2.19 to 3.1.8

    Bumps tailwindcss from 2.2.19 to 3.1.8.

    Release notes

    Sourced from tailwindcss's releases.

    v3.1.8

    Fixed

    • Don’t prefix classes within reused arbitrary variants (#8992)
    • Fix usage of alpha values inside single-named colors that are functions (#9008)
    • Fix @apply of user utilities when negative and non-negative versions both exist (#9027)

    v3.1.7

    Fixed

    • Don't rewrite source maps for @layer rules (#8971)

    Added

    • Added types for resolveConfig (#8924)

    v3.1.6

    Fixed

    • Fix usage on Node 12.x (b4e637e)
    • Handle theme keys with slashes when using theme() in CSS (#8831)

    v3.1.5

    Added

    • Support configuring a default font-weight for each font size utility (#8763)
    • Add support for alpha values in safe list (#8774)

    Fixed

    • Improve types to support fallback values in the CSS-in-JS syntax used in plugin APIs (#8762)
    • Support including tailwindcss and autoprefixer in postcss.config.js in standalone CLI (#8769)
    • Fix using special-characters as prefixes (#8772)
    • Don’t prefix classes used within arbitrary variants (#8773)
    • Add more explicit types for the default theme (#8780)

    v3.1.4

    Fixed

    • Provide default to <alpha-value> when using theme() (#8652)
    • Detect arbitrary variants with quotes (#8687)
    • Don’t add spaces around raw / that are preceded by numbers (#8688)

    v3.1.3

    Fixed

    • Fix extraction of multi-word utilities with arbitrary values and quotes (#8604)
    • Fix casing of import of corePluginList type definition (#8587)
    • Ignore PostCSS nodes returned by addVariant (#8608)
    • Fix missing spaces around arithmetic operators (#8615)

    ... (truncated)

    Changelog

    Sourced from tailwindcss's changelog.

    [3.1.8] - 2022-08-05

    Fixed

    • Don’t prefix classes within reused arbitrary variants (#8992)
    • Fix usage of alpha values inside single-named colors that are functions (#9008)
    • Fix @apply of user utilities when negative and non-negative versions both exist (#9027)

    [3.1.7] - 2022-07-29

    Fixed

    • Don't rewrite source maps for @layer rules (#8971)

    Added

    • Added types for resolveConfig (#8924)

    [3.1.6] - 2022-07-11

    Fixed

    • Fix usage on Node 12.x (b4e637e)
    • Handle theme keys with slashes when using theme() in CSS (#8831)

    [3.1.5] - 2022-07-07

    Added

    • Support configuring a default font-weight for each font size utility (#8763)
    • Add support for alpha values in safe list (#8774)

    Fixed

    • Improve types to support fallback values in the CSS-in-JS syntax used in plugin APIs (#8762)
    • Support including tailwindcss and autoprefixer in postcss.config.js in standalone CLI (#8769)
    • Fix using special-characters as prefixes (#8772)
    • Don’t prefix classes used within arbitrary variants (#8773)
    • Add more explicit types for the default theme (#8780)

    [3.1.4] - 2022-06-21

    Fixed

    • Provide default to <alpha-value> when using theme() (#8652)
    • Detect arbitrary variants with quotes (#8687)
    • Don’t add spaces around raw / that are preceded by numbers (#8688)

    [3.1.3] - 2022-06-14

    ... (truncated)

    Commits
    • 99b53b4 3.1.8
    • 7cfbc8c update changelog
    • f92665c Update changelog
    • 0a3aad9 Revert "Don't use cursor: pointer for buttons by default (#8962)"
    • a6d1783 Update autoprefixer to version 10.4.8
    • 20456ef Fix @apply of user utilities when negative and non-negative versions both e...
    • 2bfd3e7 Update prettier-plugin-tailwindcss to version 0.1.13
    • 23815e9 Update changelog
    • 89b960d Fix resolution of alpha values inside color functions (#9008)
    • 0b5bfc8 Remove class prefix in arbitrary variant that is used multiple times (#8992)
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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 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)
  • 12

    Upgrade: Bump lint-staged from 10.5.4 to 13.0.4

    Bumps lint-staged from 10.5.4 to 13.0.4.

    Release notes

    Sourced from lint-staged's releases.

    v13.0.4

    13.0.4 (2022-11-25)

    Bug Fixes

    • deps: update all dependencies (336f3b5)
    • deps: update all dependencies (ec995e5)

    v13.0.3

    13.0.3 (2022-06-24)

    Bug Fixes

    • correctly handle git stash when using MSYS2 (#1178) (0d627a5)

    v13.0.2

    13.0.2 (2022-06-16)

    Bug Fixes

    • use new --diff and --diff-filter options when checking task modifications (1a5a66a)

    v13.0.1

    13.0.1 (2022-06-08)

    Bug Fixes

    • correct spelling of "0 files" (f27f1d4)
    • suppress error from process.kill when killing tasks on failure (f2c6bdd)
    • deps: update [email protected]^0.6.0 to fix screen size error in WSL (1a77e42)
    • ignore "No matching pid found" error (cb8a432)
    • prevent possible race condition when killing tasks on failure (bc92aff)

    Performance Improvements

    • use EventsEmitter instead of setInterval for killing tasks on failure (c508b46)

    v13.0.0

    13.0.0 (2022-06-01)

    Bug Fixes

    ... (truncated)

    Commits
    • e2bfce1 test: remove Windows snapshot workaround
    • 81ea7fd test: allow file protocol in git submodule test
    • 3ea9b7e test: update Jest snapshot format
    • 0c635c7 ci: install latest npm for older Node.js versions
    • 5f1a00e ci: bump GitHub Actions' versions
    • 336f3b5 fix(deps): update all dependencies
    • ec995e5 fix(deps): update all dependencies
    • 17c51af ci: set GitHub Actions permissions
    • 3f3e152 chore(deps): bump colorette from 2.0.17 to 2.0.19 (#1177)
    • 0d627a5 fix: correctly handle git stash when using MSYS2 (#1178)
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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 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)
  • 13

    Upgrade: Bump tailwindcss from 2.2.19 to 3.2.4

    Bumps tailwindcss from 2.2.19 to 3.2.4.

    Release notes

    Sourced from tailwindcss's releases.

    v3.2.4

    Added

    • Add blocklist option to prevent generating unwanted CSS (#9812)

    Fixed

    • Fix watching of files on Linux when renames are involved (#9796)
    • Make sure errors are always displayed when watching for changes (#9810)

    v3.2.3

    Fixed

    • Fixed use of raw content in the CLI (#9773)
    • Pick up changes from files that are both context and content deps (#9787)
    • Sort pseudo-elements ONLY after classes when using variants and @apply (#9765)
    • Support important utilities in the safelist (pattern must include a !) (#9791)

    v3.2.2

    Fixed

    • Escape special characters in resolved content base paths (#9650)
    • Don't reuse container for array returning variant functions (#9644)
    • Exclude non-relevant selectors when generating rules with the important modifier (#9677)
    • Fix merging of arrays during config resolution (#9706)
    • Ensure configured font-feature-settings are included in Preflight (#9707)
    • Fix fractional values not being parsed properly inside arbitrary properties (#9705)
    • Fix incorrect selectors when using @apply in selectors with combinators and pseudos (#9722)
    • Fix cannot read properties of undefined (reading 'modifier') (#9656, aa979d6)

    v3.2.1

    Fixed

    • Fix missing supports in types (#9616)
    • Fix missing PostCSS dependencies in the CLI (#9617)
    • Ensure micromatch is a proper CLI dependency (#9620)
    • Ensure modifier values exist when using a modifiers object for matchVariant (ba6551d)

    v3.2.0

    We just released Tailwind CSS v3.2! Read the announcement post for more details about the most exciting new features.


    Added

    • Add new @config directive (#9405)
    • Add new relative: true option to resolve content paths relative to the config file (#9396)
    • Add new supports-* variant (#9453)
    • Add new min-* and max-* variants (#9558)
    • Add new aria-* variants (#9557, #9588)

    ... (truncated)

    Changelog

    Sourced from tailwindcss's changelog.

    [3.2.4] - 2022-11-11

    Added

    • Add blocklist option to prevent generating unwanted CSS (#9812)

    Fixed

    • Fix watching of files on Linux when renames are involved (#9796)
    • Make sure errors are always displayed when watching for changes (#9810)

    [3.2.3] - 2022-11-09

    Fixed

    • Fixed use of raw content in the CLI (#9773)
    • Pick up changes from files that are both context and content deps (#9787)
    • Sort pseudo-elements ONLY after classes when using variants and @apply (#9765)
    • Support important utilities in the safelist (pattern must include a !) (#9791)

    [3.2.2] - 2022-11-04

    Fixed

    • Escape special characters in resolved content base paths (#9650)
    • Don't reuse container for array returning variant functions (#9644)
    • Exclude non-relevant selectors when generating rules with the important modifier (#9677)
    • Fix merging of arrays during config resolution (#9706)
    • Ensure configured font-feature-settings are included in Preflight (#9707)
    • Fix fractional values not being parsed properly inside arbitrary properties (#9705)
    • Fix incorrect selectors when using @apply in selectors with combinators and pseudos (#9722)
    • Fix cannot read properties of undefined (reading 'modifier') (#9656, aa979d6)

    [3.2.1] - 2022-10-21

    Fixed

    [3.2.0] - 2022-10-19

    Added

    • Add new @config directive (#9405)
    • Add new relative: true option to resolve content paths relative to the config file (#9396)
    • Add new supports-* variant (#9453)
    • Add new min-* and max-* variants (#9558)

    ... (truncated)

    Commits
    • f2f1ee9 3.2.4
    • 13eb1e2 update changelog
    • 22d45dd Update CHANGELOG.md
    • 602101d Allow users to block generation of certain utilities (#9812)
    • 4ccc0fa Make sure errors are always displayed when watching for changes (#9810)
    • 1482c75 Fix watching of files on Linux when renames are involved (#9796)
    • 757a8d6 update changelog
    • 6166e59 3.2.3
    • 8a2f9ed Fix !important selectors not being classified as valid class inside safelist ...
    • 6bd9912 Only sort pseudo elements after classes when using @apply and variants (#9765)
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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 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)
  • 14

    Upgrade: Bump jest-diff from 27.2.0 to 29.3.1

    Bumps jest-diff from 27.2.0 to 29.3.1.

    Release notes

    Sourced from jest-diff's releases.

    v29.3.1

    Fixes

    • [jest-config] Do not warn about preset in ProjectConfig #13583

    Performance

    • [jest-transform] Defer creation of cache directory #13420

    v29.3.0

    Features

    • [jest-runtime] Support WebAssembly (Wasm) imports in ESM modules (#13505)

    Fixes

    • [jest-config] Add config validation for projects option (#13565)
    • [jest-mock] Treat cjs modules as objects so they can be mocked (#13513)
    • [jest-worker] Throw an error instead of hanging when jest workers terminate unexpectedly (#13566)

    Chore & Maintenance

    • [@jest/transform] Update convert-source-map (#13509)
    • [docs] Mention toStrictEqual in UsingMatchers docs. (#13560)

    New Contributors

    Full Changelog: https://github.com/facebook/jest/compare/v29.2.2...v29.3.0

    v29.2.2

    Fixes

    • [@jest/test-sequencer] Make sure sharding does not produce empty groups (#13476)
    • [jest-circus] Test marked as todo are shown as todo when inside a focussed describe (#13504)
    • [jest-mock] Ensure mock resolved and rejected values are promises from correct realm (#13503)
    • [jest-snapshot] Don't highlight passing asymmetric property matchers in snapshot diff (#13480)

    Chore & Maintenance

    • [docs] Update link to Jest 28 upgrade guide in error message (#13483)
    • [jest-runner, jest-watcher] Update emittery (#13490)

    New Contributors

    ... (truncated)

    Changelog

    Sourced from jest-diff's changelog.

    29.3.1

    Fixes

    • [jest-config] Do not warn about preset in ProjectConfig (#13583)

    Performance

    • [jest-transform] Defer creation of cache directory (#13420)

    29.3.0

    Features

    • [jest-runtime] Support WebAssembly (Wasm) imports in ESM modules (#13505)

    Fixes

    • [jest-config] Add config validation for projects option (#13565)
    • [jest-mock] Treat cjs modules as objects so they can be mocked (#13513)
    • [jest-worker] Throw an error instead of hanging when jest workers terminate unexpectedly (#13566)

    Chore & Maintenance

    • [@jest/transform] Update convert-source-map (#13509)
    • [docs] Mention toStrictEqual in UsingMatchers docs. (#13560)

    29.2.2

    Fixes

    • [@jest/test-sequencer] Make sure sharding does not produce empty groups (#13476)
    • [jest-circus] Test marked as todo are shown as todo when inside a focussed describe (#13504)
    • [jest-mock] Ensure mock resolved and rejected values are promises from correct realm (#13503)
    • [jest-snapshot] Don't highlight passing asymmetric property matchers in snapshot diff (#13480)

    Chore & Maintenance

    • [docs] Update link to Jest 28 upgrade guide in error message (#13483)
    • [jest-runner, jest-watcher] Update emittery (#13490)

    29.2.1

    Features

    • [@jest/globals, jest-mock] Add jest.Spied* utility types (#13440)

    Fixes

    • [jest-environment-node] make globalThis.performance writable for Node 19 and fake timers (#13467)

    ... (truncated)

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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 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)
  • 15

    Upgrade: Bump typescript from 4.2.2 to 4.9.3

    Bumps typescript from 4.2.2 to 4.9.3.

    Release notes

    Sourced from typescript's releases.

    TypeScript 4.9

    For release notes, check out the release announcement.

    Downloads are available on:

    Changes:

    • 93bd577458d55cd720b2677705feab5c91eb12ce Bump version to 4.9.3 and LKG.
    • 107f832b80df2dc97748021cb00af2b6813db75b Update LKG.
    • 31bee5682df130a14ffdd5742f994dbe7313dd0e Cherry-pick PR #50977 into release-4.9 (#51363) [ #50872 ]
    • 1e2fa7ae15f8530910fef8b916ec8a4ed0b59c45 Update version to 4.9.2-rc and LKG.
    • 7ab89e5c6e401d161f31f28a6c555a3ba530910e Merge remote-tracking branch 'origin/main' into release-4.9
    • e5cd686defb1a4cbdb36bd012357ba5bed28f371 Update package-lock.json
    • 8d40dc15d1b9945837e7860320fdccfe27c40cad Update package-lock.json
    • 5cfb3a2fe344a5350734305193e6cc99516285ca Only call return() for an abrupt completion in user code (#51297)
    • a7a9d158e817fcb0e94dc1c24e0a401b21be0cc9 Fix for broken baseline in yieldInForInInDownlevelGenerator (#51345)
    • 7f8426f4df0d0a7dd8b72079dafc3e60164a23b1 fix for-in enumeration containing yield in generator (#51295)
    • 3d2b4017eb6b9a2b94bc673291e56ae95e8beddd Fix assertion functions accessed via wildcard imports (#51324)
    • 64d0d5ae140b7b26a09e75114517b418d6bcaa9f fix(51301): Fixing an unused import at the end of a line removes the newline (#51320)
    • 754eeb2986bde30d5926e0fa99c87dda9266d01b Update CodeQL workflow and configuration, fix found bugs (#51263)
    • d8aad262006ad2d2c91aa7a0e4449b4b83c57f7b Update package-lock.json
    • d4f26c840b1db76c0b25a405c8e73830a2b45cbc fix(51245): Class with parameter decorator in arrow function causes "convert to default export" refactoring failure (#51256)
    • 16faf45682173ea437a50330feb4785578923d7f Update package-lock.json
    • 8b1ecdb701e2a2e19e9f8bcdd6b2beac087eabee fix(50654): "Move to a new file" breaks the declaration of referenced variable (#50681)
    • 170a17fad57eae619c5ef2b7bdb3ac00d6c32c47 Dom update 2022-10-25 (#51300)
    • 9c4e14d75174432f6a4dc5967a09712a6784ab88 Remove "No type information for this code" from baseline (#51311)
    • 88d25b4f232929df59729156dfda6b65277affec fix(50068): Refactors trigger debug failure when JSX text has a ' and a tag on the same line. (#51299)
    • 8bee69acf410d4986cb0cc102b949e2d133d5380 Update package-lock.json
    • 702de1eeaaef88a189e4d06e5a2aae287853790a Fix early call to return/throw on generator (#51294)
    • 2c12b1499908ad7718e65d20e264561207c22375 Add a GH Action to file a new issue if we go a week without seeing a typescript-error-deltas issue (#51271)
    • 6af270dee09d62516f6dc02ec102a745ffebc037 Update package-lock.json
    • 2cc4c16a26672a7ba6c97ba16309fcf334db7cae Update package-lock.json
    • 60934915d9ccc4ca9c0fb2cd060d7ec81601942b Fix apparent typo in getStringMappingType (#51248)
    • 61c26096e3373719ece686b84c698423890e9a5f Update package-lock.json
    • ef69116c41cb6805f89e6592eacb0ccb7f02207d Generate shortest rootDirs module specifier instead of first possible (#51244)
    • bbb42f453dc684e03d977c5b70391124d57543a9 Fix typo in canWatchDirectoryOrFile found by CodeQL (#51262)
    • a56b254ad3c52b598bc5d44f83f3d0a1cf806068 Include 'this' type parameter in isRelatedTo fast path (#51230)
    • 3abd351c0eea55758f27ee5558a4a1525b77f45b Fix super property transform in async arrow in method (#51240)
    • eed05112180e0d94f78aa02d676d49468f15dc31 Update package-lock.json
    • 2625c1feae25aede35465ca835440fc57bf13d52 Make the init config category order predictable (#51247)
    • 1ca99b34029dafad2c18af7bdc0711f4abf7e522 fix(50551): Destructuring assignment with var bypasses "variable is used before being assigned" check (2454) (#50560)
    • 3f28fa12dfecb8dfd66ce4684bf26f64e1f092f1 Update package-lock.json
    • 906ebe49334a3a9c2dbd73cd3c902898bc712b66 Revert structuredTypeRelatedTo change and fix isUnitLikeType (#51076)
    • 8ac465239f52de1da3ada8cdc4c3f107f4d62e45 change type (#51231)
    • 245a02cbed7ad50a21289730159abc8d19a66f40 fix(51222): Go-to-definition on return statements should jump to the containing function declaration (#51227)
    • 2dff34e8c4a91c0005ca9ccfb7e045e225b6f2e4 markAliasReferenced should include ExportValue as well (#51219)

    ... (truncated)

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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 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)
  • 16

    Chore: Bump actions/setup-node from 3.1.1 to 3.5.1

    Bumps actions/setup-node from 3.1.1 to 3.5.1.

    Release notes

    Sourced from actions/setup-node's releases.

    Update @​actions/core and Print Node, Npm, Yarn versions

    In scope of this release we updated actions/core to 1.10.0. Moreover, we added logic to print Nodejs, Npm, Yarn versions after installation.

    Add support for engines.node and Volta

    In scope of this release we add support for engines.node. The action will be able to grab the version form package.json#engines.node. actions/setup-node#485. Moreover, we added support for Volta

    Besides, we updated @​actions/core to 1.9.1 and @​actions/cache to 3.0.4

    Fix pnpm output and node-version output issues

    In scope of this release we fixed bugs related to the pnpm 7.5.1 output issue from pnpm store path actions/setup-node#545. Moreover we fixed the issue with falling on node-version output actions/setup-node#540.

    Add support for asdf format and update actions/cache version to 3.0.0

    In scope of this release we updated actions/cache package as the new version contains fixes for caching error handling. Moreover, we added support for asdf format as Node.js version file actions/setup-node#373. Besides, we introduced new output node-version and added npm-shrinkwrap.json to dependency file patterns: actions/setup-node#439

    Add support for lts/-n aliases

    In scope of this release we added support for lts/-n aliases, improve logic for current, latest and node aliases to handle them from toolcache, update ncc package.

    Support of lts/-n aliases

    steps:
    - uses: actions/[email protected]
    - uses: actions/[email protected]
      with:
        node-version: lts/-1
    - run: npm ci
    - run: npm test
    

    Minor improvements

    Add current, node, latest aliases

    In scope of this release we added new aliases to install the latest Node.js version. actions/setup-node#483

    steps:
    - uses: actions/[email protected]
    - uses: actions/[email protected]
      with:
        node-version: current
    - run: npm ci
    - run: npm test
    
    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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 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)
  • 17

    Chore: Bump actions/cache from 3.0.2 to 3.0.11

    Bumps actions/cache from 3.0.2 to 3.0.11.

    Release notes

    Sourced from actions/cache's releases.

    v3.0.11

    What's Changed

    New Contributors

    Full Changelog: https://github.com/actions/cache/compare/v3...v3.0.11

    v3.0.10

    • Fix a bug with sorting inputs.
    • Update definition for restore-keys in README.md

    v3.0.9

    • Enhanced the warning message for cache unavailability in case of GHES.

    v3.0.8

    What's Changed

    • Fix zstd not working for windows on gnu tar in issues.
    • Allow users to provide a custom timeout as input for aborting cache segment download using the environment variable SEGMENT_DOWNLOAD_TIMEOUT_MIN. Default is 60 minutes.

    v3.0.7

    What's Changed

    • Fix for the download stuck problem has been added in actions/cache for users who were intermittently facing the issue. As part of this fix, new timeout has been introduced in the download step to stop the download if it doesn't complete within an hour and run the rest of the workflow without erroring out.

    v3.0.6

    What's Changed

    • Add example for clojure lein project dependencies by @​shivamarora1 in PR actions/cache#835
    • Update toolkit's cache npm module to latest. Bump cache version to v3.0.6 by @​pdotl in PR actions/cache#887
    • Fix issue #809 where cache save/restore was failing for Amazon Linux 2 runners due to older tar version
    • Fix issue #833 where cache save was not working for caching github workspace directory

    New Contributors

    Full Changelog: https://github.com/actions/cache/compare/v3...v3.0.6

    v3.0.5

    Removed error handling by consuming actions/cache 3.0 toolkit, Now cache server error handling will be done by toolkit.

    v3.0.4

    In this release, we have fixed the tar creation error while trying to create it with path as ~/ home folder on ubuntu-latest.

    v3.0.3

    Fixed avoiding empty cache save when no files are available for caching. (actions/cache#624)

    Changelog

    Sourced from actions/cache's changelog.

    3.0.2

    • Added support for dynamic cache size cap on GHES.

    3.0.3

    • Fixed avoiding empty cache save when no files are available for caching. (issue)

    3.0.4

    • Fixed tar creation error while trying to create tar with path as ~/ home folder on ubuntu-latest. (issue)

    3.0.5

    • Removed error handling by consuming actions/cache 3.0 toolkit, Now cache server error handling will be done by toolkit. (PR)

    3.0.6

    • Fixed #809 - zstd -d: no such file or directory error
    • Fixed #833 - cache doesn't work with github workspace directory

    3.0.7

    • Fixed #810 - download stuck issue. A new timeout is introduced in the download process to abort the download if it gets stuck and doesn't finish within an hour.

    3.0.8

    • Fix zstd not working for windows on gnu tar in issues #888 and #891.
    • Allowing users to provide a custom timeout as input for aborting download of a cache segment using an environment variable SEGMENT_DOWNLOAD_TIMEOUT_MIN. Default is 60 minutes.

    3.0.9

    • Enhanced the warning message for cache unavailablity in case of GHES.

    3.0.10

    • Fix a bug with sorting inputs.
    • Update definition for restore-keys in README.md

    3.0.11

    • Update toolkit version to 3.0.5 to include @actions/[email protected]^1.10.0
    • Update @actions/cache to use updated saveState and setOutput functions from @actions/[email protected]^1.10.0
    Commits
    • 9b0c1fc Merge pull request #956 from actions/pdotl-version-bump
    • 18103f6 Fix licensed status error
    • 3e383cd Update RELEASES
    • 43428ea toolkit versioon update and version bump for cache
    • 1c73980 3.0.11
    • a3f5edc Merge pull request #950 from rentziass/rentziass/update-actions-core
    • 831ee69 Update licenses
    • b9c8bfe Update @​actions/core to 1.10.0
    • 0f20846 Merge pull request #946 from actions/Phantsure-patch-2
    • 862fc14 Update README.md
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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 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)