Skip to content

Commit 57699a0

Browse files
Prep for patch release (#8098)
* Disable backdrop variant * Disable enabled variant * Disable border spacing utilities * Disable text-start/end utilities * Disable poll option in CLI * Disable ring color default fn * Disable dark mode class name customization * Disable support for `Document` node types * Disable rgb/hsl fns * Update tests * Temporarily disable type generation * Update changelog
1 parent c1ed8dd commit 57699a0

23 files changed

+77
-132
lines changed

CHANGELOG.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2222
- Fix generation of `div:not(.foo)` if `.foo` is never defined ([#7815](https://github.com/tailwindlabs/tailwindcss/pull/7815))
2323
- Allow for custom properties in `rgb`, `rgba`, `hsl` and `hsla` colors ([#7933](https://github.com/tailwindlabs/tailwindcss/pull/7933))
2424
- Remove autoprefixer as explicit peer-dependency to avoid invalid warnings in situations where it isn't actually needed ([#7949](https://github.com/tailwindlabs/tailwindcss/pull/7949))
25-
- Types: allow for arbitrary theme values (for 3rd party plugins) ([#7926](https://github.com/tailwindlabs/tailwindcss/pull/7926))
2625
- Ensure the `percentage` data type is validated correctly ([#8015](https://github.com/tailwindlabs/tailwindcss/pull/8015))
2726

2827
### Changed
@@ -31,19 +30,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3130
- Replace `cosmiconfig` with `lilconfig` ([#6039](https://github.com/tailwindlabs/tailwindcss/pull/6038))
3231
- Update `cssnano` to avoid removing empty variables when minifying ([#7818](https://github.com/tailwindlabs/tailwindcss/pull/7818))
3332

34-
### Added
35-
36-
- Allow default ring color to be a function ([#7587](https://github.com/tailwindlabs/tailwindcss/pull/7587))
37-
- Add `rgb` and `hsl` color helpers for CSS variables ([#7665](https://github.com/tailwindlabs/tailwindcss/pull/7665))
38-
- Support PostCSS `Document` nodes ([#7291](https://github.com/tailwindlabs/tailwindcss/pull/7291))
39-
- Add `text-start` and `text-end` utilities ([#6656](https://github.com/tailwindlabs/tailwindcss/pull/6656))
40-
- Support customizing class name when using `darkMode: 'class'` ([#5800](https://github.com/tailwindlabs/tailwindcss/pull/5800))
41-
- Add `--poll` option to the CLI ([#7725](https://github.com/tailwindlabs/tailwindcss/pull/7725))
42-
- Add new `border-spacing` utilities ([#7102](https://github.com/tailwindlabs/tailwindcss/pull/7102))
43-
- Add `enabled` variant ([#7905](https://github.com/tailwindlabs/tailwindcss/pull/7905))
44-
- Add TypeScript types for the `tailwind.config.js` file ([#7891](https://github.com/tailwindlabs/tailwindcss/pull/7891))
45-
- Add `backdrop` variant ([#7924](https://github.com/tailwindlabs/tailwindcss/pull/7924))
46-
4733
## [3.0.23] - 2022-02-16
4834

4935
### Fixed

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"description": "A utility-first CSS framework for rapidly building custom user interfaces.",
55
"license": "MIT",
66
"main": "lib/index.js",
7-
"types": "types/index.d.ts",
87
"repository": "https://github.com/tailwindlabs/tailwindcss.git",
98
"bugs": "https://github.com/tailwindlabs/tailwindcss/issues",
109
"homepage": "https://tailwindcss.com",
@@ -26,7 +25,7 @@
2625
"posttest": "npm run style",
2726
"generate:plugin-list": "node -r @swc/register scripts/create-plugin-list.js",
2827
"generate:types": "node -r @swc/register scripts/generate-types.js",
29-
"generate": "npm run generate:plugin-list && npm run generate:types"
28+
"generate": "npm run generate:plugin-list"
3029
},
3130
"files": [
3231
"src/*",
@@ -36,8 +35,6 @@
3635
"scripts/*.js",
3736
"stubs/*.stub.js",
3837
"nesting/*",
39-
"types/**/*",
40-
"*.d.ts",
4138
"*.css",
4239
"*.js"
4340
],

src/cli.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,12 @@ let commands = {
165165
'--input': { type: String, description: 'Input file' },
166166
'--output': { type: String, description: 'Output file' },
167167
'--watch': { type: Boolean, description: 'Watch for changes and rebuild as needed' },
168+
/*
168169
'--poll': {
169170
type: Boolean,
170171
description: 'Use polling instead of filesystem events when watching',
171172
},
173+
*/
172174
'--content': {
173175
type: String,
174176
description: 'Content paths to use for removing unused classes',
@@ -195,7 +197,9 @@ let commands = {
195197
'-o': '--output',
196198
'-m': '--minify',
197199
'-w': '--watch',
200+
/*
198201
'-p': '--poll',
202+
*/
199203
},
200204
},
201205
}
@@ -383,7 +387,10 @@ async function build() {
383387
let input = args['--input']
384388
let output = args['--output']
385389
let shouldWatch = args['--watch']
390+
let shouldPoll = false
391+
/*
386392
let shouldPoll = args['--poll']
393+
*/
387394
let shouldCoalesceWriteEvents = shouldPoll || process.platform === 'win32'
388395
let includePostCss = args['--postcss']
389396

src/corePlugins.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ export let variantPlugins = {
2727

2828
addVariant('placeholder', '&::placeholder')
2929

30+
/*
3031
addVariant('backdrop', '&::backdrop')
32+
*/
3133

3234
addVariant('before', ({ container }) => {
3335
container.walkRules((rule) => {
@@ -120,7 +122,9 @@ export let variantPlugins = {
120122
'focus',
121123
'focus-visible',
122124
'active',
125+
/*
123126
'enabled',
127+
*/
124128
'disabled',
125129
].map((variant) => (Array.isArray(variant) ? variant : [variant, `:${variant}`]))
126130

@@ -187,7 +191,10 @@ export let variantPlugins = {
187191
}
188192

189193
if (mode === 'class') {
194+
addVariant('dark', `.dark &`)
195+
/*
190196
addVariant('dark', `${className} &`)
197+
*/
191198
} else if (mode === 'media') {
192199
addVariant('dark', '@media (prefers-color-scheme: dark)')
193200
}
@@ -532,6 +539,7 @@ export let corePlugins = {
532539
})
533540
},
534541

542+
/*
535543
borderSpacing: ({ addDefaults, matchUtilities, theme }) => {
536544
addDefaults('border-spacing', {
537545
'--tw-border-spacing-x': 0,
@@ -566,6 +574,7 @@ export let corePlugins = {
566574
{ values: theme('borderSpacing') }
567575
)
568576
},
577+
*/
569578

570579
transformOrigin: createUtilityPlugin('transformOrigin', [['origin', ['transformOrigin']]]),
571580
translate: createUtilityPlugin(
@@ -1562,8 +1571,10 @@ export let corePlugins = {
15621571
'.text-center': { 'text-align': 'center' },
15631572
'.text-right': { 'text-align': 'right' },
15641573
'.text-justify': { 'text-align': 'justify' },
1574+
/*
15651575
'.text-start': { 'text-align': 'start' },
15661576
'.text-end': { 'text-align': 'end' },
1577+
*/
15671578
})
15681579
},
15691580

@@ -1967,7 +1978,10 @@ export let corePlugins = {
19671978
ringWidth: ({ matchUtilities, addDefaults, addUtilities, theme }) => {
19681979
let ringOpacityDefault = theme('ringOpacity.DEFAULT', '0.5')
19691980
let ringColorDefault = withAlphaValue(
1981+
/*
19701982
theme('ringColor')?.DEFAULT,
1983+
*/
1984+
theme('ringColor.DEFAULT'),
19711985
ringOpacityDefault,
19721986
`rgb(147 197 253 / ${ringOpacityDefault})`
19731987
)

src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ module.exports = function tailwindcss(configOrPath) {
1515
function (root, result) {
1616
let context = setupTrackingContext(configOrPath)
1717

18+
/*
1819
if (root.type === 'document') {
1920
let roots = root.nodes.filter((node) => node.type === 'root')
2021
@@ -26,6 +27,7 @@ module.exports = function tailwindcss(configOrPath) {
2627
2728
return
2829
}
30+
*/
2931

3032
processTailwindFeatures(context)(root, result)
3133
},

src/util/resolveConfig.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ const configUtils = {
6666
{}
6767
)
6868
},
69+
/*
6970
rgb(property) {
7071
if (!property.startsWith('--')) {
7172
throw new Error(
@@ -96,6 +97,7 @@ const configUtils = {
9697
return `hsl(var(${property}) / ${opacityValue})`
9798
}
9899
},
100+
*/
99101
}
100102

101103
function value(valueToResolve, ...args) {

stubs/defaultConfig.stub.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,11 @@ module.exports = {
194194
'3xl': '1.5rem',
195195
full: '9999px',
196196
},
197+
/*
197198
borderSpacing: ({ theme }) => ({
198199
...theme('spacing'),
199200
}),
201+
*/
200202
borderWidth: {
201203
DEFAULT: '1px',
202204
0: '0px',

tests/__snapshots__/source-maps.test.js.snap

Lines changed: 42 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -268,50 +268,48 @@ Array [
268268
"2:4-18 -> 368:2-15",
269269
"2:18 -> 369:0",
270270
"2:4 -> 371:0",
271-
"2:4-18 -> 372:2-26",
272-
"2:4-18 -> 373:2-26",
273-
"2:4-18 -> 374:2-21",
274-
"2:4-18 -> 375:2-21",
271+
"2:4-18 -> 372:2-21",
272+
"2:4-18 -> 373:2-21",
273+
"2:4-18 -> 374:2-16",
274+
"2:4-18 -> 375:2-16",
275275
"2:4-18 -> 376:2-16",
276-
"2:4-18 -> 377:2-16",
277-
"2:4-18 -> 378:2-16",
278-
"2:4-18 -> 379:2-17",
279-
"2:4-18 -> 380:2-17",
280-
"2:4-18 -> 381:2-15",
281-
"2:4-18 -> 382:2-15",
282-
"2:4-18 -> 383:2-20",
283-
"2:4-18 -> 384:2-40",
284-
"2:4-18 -> 385:2-17",
285-
"2:4-18 -> 386:2-22",
286-
"2:4-18 -> 387:2-24",
287-
"2:4-18 -> 388:2-25",
288-
"2:4-18 -> 389:2-26",
289-
"2:4-18 -> 390:2-20",
290-
"2:4-18 -> 391:2-29",
291-
"2:4-18 -> 392:2-30",
292-
"2:4-18 -> 393:2-40",
293-
"2:4-18 -> 394:2-36",
294-
"2:4-18 -> 395:2-29",
295-
"2:4-18 -> 396:2-24",
296-
"2:4-18 -> 397:2-32",
297-
"2:4-18 -> 398:2-14",
298-
"2:4-18 -> 399:2-20",
299-
"2:4-18 -> 400:2-18",
300-
"2:4-18 -> 401:2-19",
301-
"2:4-18 -> 402:2-20",
302-
"2:4-18 -> 403:2-16",
303-
"2:4-18 -> 404:2-18",
304-
"2:4-18 -> 405:2-15",
305-
"2:4-18 -> 406:2-21",
306-
"2:4-18 -> 407:2-23",
307-
"2:4-18 -> 408:2-29",
308-
"2:4-18 -> 409:2-27",
309-
"2:4-18 -> 410:2-28",
310-
"2:4-18 -> 411:2-29",
311-
"2:4-18 -> 412:2-25",
312-
"2:4-18 -> 413:2-26",
313-
"2:4-18 -> 414:2-27",
314-
"2:4 -> 415:2",
315-
"2:18 -> 416:0",
276+
"2:4-18 -> 377:2-17",
277+
"2:4-18 -> 378:2-17",
278+
"2:4-18 -> 379:2-15",
279+
"2:4-18 -> 380:2-15",
280+
"2:4-18 -> 381:2-20",
281+
"2:4-18 -> 382:2-40",
282+
"2:4-18 -> 383:2-17",
283+
"2:4-18 -> 384:2-22",
284+
"2:4-18 -> 385:2-24",
285+
"2:4-18 -> 386:2-25",
286+
"2:4-18 -> 387:2-26",
287+
"2:4-18 -> 388:2-20",
288+
"2:4-18 -> 389:2-29",
289+
"2:4-18 -> 390:2-30",
290+
"2:4-18 -> 391:2-40",
291+
"2:4-18 -> 392:2-36",
292+
"2:4-18 -> 393:2-29",
293+
"2:4-18 -> 394:2-24",
294+
"2:4-18 -> 395:2-32",
295+
"2:4-18 -> 396:2-14",
296+
"2:4-18 -> 397:2-20",
297+
"2:4-18 -> 398:2-18",
298+
"2:4-18 -> 399:2-19",
299+
"2:4-18 -> 400:2-20",
300+
"2:4-18 -> 401:2-16",
301+
"2:4-18 -> 402:2-18",
302+
"2:4-18 -> 403:2-15",
303+
"2:4-18 -> 404:2-21",
304+
"2:4-18 -> 405:2-23",
305+
"2:4-18 -> 406:2-29",
306+
"2:4-18 -> 407:2-27",
307+
"2:4-18 -> 408:2-28",
308+
"2:4-18 -> 409:2-29",
309+
"2:4-18 -> 410:2-25",
310+
"2:4-18 -> 411:2-26",
311+
"2:4-18 -> 412:2-27",
312+
"2:4 -> 413:2",
313+
"2:18 -> 414:0",
316314
]
317315
`;

tests/basic-usage.test.css

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
*,
22
::before,
33
::after {
4-
--tw-border-spacing-x: 0;
5-
--tw-border-spacing-y: 0;
64
--tw-translate-x: 0;
75
--tw-translate-y: 0;
86
--tw-rotate: 0;
@@ -254,19 +252,6 @@
254252
.border-collapse {
255253
border-collapse: collapse;
256254
}
257-
.border-spacing-4 {
258-
--tw-border-spacing-x: 1rem;
259-
--tw-border-spacing-y: 1rem;
260-
border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y);
261-
}
262-
.border-spacing-x-6 {
263-
--tw-border-spacing-x: 1.5rem;
264-
border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y);
265-
}
266-
.border-spacing-y-8 {
267-
--tw-border-spacing-y: 2rem;
268-
border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y);
269-
}
270255
.origin-top-right {
271256
transform-origin: top right;
272257
}

tests/basic-usage.test.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,6 @@ test('default ring color can be a function', () => {
152152
*,
153153
::before,
154154
::after {
155-
--tw-border-spacing-x: 0;
156-
--tw-border-spacing-y: 0;
157155
--tw-translate-x: 0;
158156
--tw-translate-y: 0;
159157
--tw-rotate: 0;
@@ -173,7 +171,7 @@ test('default ring color can be a function', () => {
173171
--tw-ring-inset: ;
174172
--tw-ring-offset-width: 0px;
175173
--tw-ring-offset-color: #fff;
176-
--tw-ring-color: rgba(var(--red), 0.5);
174+
--tw-ring-color: rgb(147 197 253 / 0.5);
177175
--tw-ring-offset-shadow: 0 0 #0000;
178176
--tw-ring-shadow: 0 0 #0000;
179177
--tw-shadow: 0 0 #0000;

0 commit comments

Comments
 (0)