Skip to content

Commit f079033

Browse files
committed
chore(deps): upgrade
1 parent 867e1dd commit f079033

File tree

8 files changed

+807
-754
lines changed

8 files changed

+807
-754
lines changed

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,30 +23,30 @@
2323
"@tailwindcss-mangle/core": "workspace:*",
2424
"@tailwindcss-mangle/shared": "workspace:*",
2525
"@tsconfig/recommended": "^1.0.3",
26-
"@types/lodash-es": "^4.17.9",
27-
"@types/node": "^20.6.3",
28-
"@vitest/coverage-v8": "^0.34.5",
26+
"@types/lodash-es": "^4.17.10",
27+
"@types/node": "^20.8.7",
28+
"@vitest/coverage-v8": "^0.34.6",
2929
"bumpp": "^9.2.0",
3030
"cross-env": "^7.0.3",
3131
"dedent": "^1.5.1",
3232
"defu": "^6.1.2",
3333
"del": "^7.1.0",
34-
"eslint": "^8.49.0",
34+
"eslint": "^8.51.0",
3535
"eslint-config-icebreaker": "^1.2.2",
3636
"eslint-config-prettier": "^9.0.0",
37-
"eslint-plugin-prettier": "^5.0.0",
37+
"eslint-plugin-prettier": "^5.0.1",
3838
"lodash-es": "^4.17.21",
39-
"only-allow": "^1.1.1",
39+
"only-allow": "^1.2.1",
4040
"prettier": "^3.0.3",
41-
"rollup": "^3.29.2",
41+
"rollup": "^4.1.4",
4242
"tailwindcss-patch": "workspace:*",
4343
"ts-node": "^10.9.1",
4444
"tslib": "^2.6.2",
4545
"tsup": "^7.2.0",
4646
"typescript": "^5.2.2",
4747
"unbuild": "^2.0.0",
4848
"unplugin-tailwindcss-mangle": "workspace:*",
49-
"vitest": "^0.34.5"
49+
"vitest": "^0.34.6"
5050
},
5151
"engines": {
5252
"node": ">=16.6.0"

packages/config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
},
4747
"dependencies": {
4848
"@tailwindcss-mangle/shared": "workspace:^",
49-
"c12": "^1.4.2",
49+
"c12": "^1.5.1",
5050
"dedent": "^1.5.1"
5151
},
5252
"homepage": "https://github.com/sonofmagic/tailwindcss-mangle",

packages/core/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,23 +44,23 @@
4444
},
4545
"dependencies": {
4646
"@ast-core/escape": "^1.0.1",
47-
"@babel/core": "^7.22.20",
47+
"@babel/core": "^7.23.2",
4848
"@babel/helper-plugin-utils": "^7.22.5",
49-
"@babel/preset-typescript": "^7.22.15",
50-
"@babel/types": "^7.22.19",
49+
"@babel/preset-typescript": "^7.23.2",
50+
"@babel/types": "^7.23.0",
5151
"@tailwindcss-mangle/config": "workspace:^",
5252
"@tailwindcss-mangle/shared": "workspace:^",
5353
"fast-sort": "^3.4.0",
54-
"magic-string": "^0.30.3",
54+
"magic-string": "^0.30.5",
5555
"micromatch": "^4.0.5",
5656
"parse5": "^7.1.2",
57-
"postcss": "^8.4.30",
57+
"postcss": "^8.4.31",
5858
"postcss-selector-parser": "^6.0.13"
5959
},
6060
"devDependencies": {
6161
"@parse5/tools": "^0.3.0",
62-
"@types/babel__core": "^7.20.2",
63-
"@types/micromatch": "^4.0.2",
62+
"@types/babel__core": "^7.20.3",
63+
"@types/micromatch": "^4.0.4",
6464
"@vue/compiler-core": "^3.3.4",
6565
"@vue/compiler-sfc": "^3.3.4"
6666
},

packages/tailwindcss-patch/package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,24 +40,24 @@
4040
}
4141
},
4242
"devDependencies": {
43-
"@types/babel__generator": "^7.6.4",
44-
"@types/babel__traverse": "^7.20.1",
45-
"@types/resolve": "^1.20.2",
46-
"@types/semver": "^7.5.2",
43+
"@types/babel__generator": "^7.6.6",
44+
"@types/babel__traverse": "^7.20.3",
45+
"@types/resolve": "^1.20.4",
46+
"@types/semver": "^7.5.4",
4747
"pkg-types": "^1.0.3",
4848
"tailwindcss": "^3.3.3"
4949
},
5050
"dependencies": {
51-
"@babel/generator": "^7.22.15",
52-
"@babel/parser": "^7.22.16",
53-
"@babel/traverse": "^7.22.19",
54-
"@babel/types": "^7.22.19",
51+
"@babel/generator": "^7.23.0",
52+
"@babel/parser": "^7.23.0",
53+
"@babel/traverse": "^7.23.2",
54+
"@babel/types": "^7.23.0",
5555
"@tailwindcss-mangle/config": "workspace:^",
5656
"cac": "^6.7.14",
5757
"jiti": "^1.20.0",
5858
"lilconfig": "^2.1.0",
59-
"postcss": "^8.4.29",
60-
"resolve": "^1.22.5",
59+
"postcss": "^8.4.31",
60+
"resolve": "^1.22.8",
6161
"semver": "^7.5.4"
6262
},
6363
"homepage": "https://github.com/sonofmagic/tailwindcss-mangle",

packages/tailwindcss-patch/test/__snapshots__/postcss.test.ts.snap

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,3 +489,20 @@ video {
489489
text-decoration-line: underline;
490490
}"
491491
`;
492+
493+
exports[`postcss > rpx case 0 1`] = `
494+
"*, ::before, ::after {--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / 0.5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia:
495+
}::backdrop {--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / 0.5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia:
496+
}.m-\\\\[23\\\\.43rpx\\\\] {margin: 23.43rpx
497+
}.h-\\\\[12rpx\\\\] {height: 12rpx
498+
}.max-h-\\\\[12rpx\\\\] {max-height: 12rpx
499+
}.min-h-\\\\[12rpx\\\\] {min-height: 12rpx
500+
}.w-\\\\[12rpx\\\\] {width: 12rpx
501+
}.min-w-\\\\[12rpx\\\\] {min-width: 12rpx
502+
}.max-w-\\\\[12rpx\\\\] {max-width: 12rpx
503+
}.basis-\\\\[32rpx\\\\] {flex-basis: 32rpx
504+
}.space-y-\\\\[12\\\\.0rpx\\\\] > :not([hidden]) ~ :not([hidden]) {--tw-space-y-reverse: 0;margin-top: calc(12.0rpx * calc(1 - var(--tw-space-y-reverse)));margin-bottom: calc(12.0rpx * var(--tw-space-y-reverse))
505+
}.p-\\\\[0\\\\.32rpx\\\\] {padding: 0.32rpx
506+
}.text-\\\\[32rpx\\\\] {font-size: 32rpx
507+
}"
508+
`;

packages/tailwindcss-patch/test/postcss.test.ts

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import path from 'node:path'
2+
import postcss from 'postcss'
3+
import type { Config } from 'tailwindcss'
24
import { appRoot } from './utils'
35
import { processTailwindcss } from '@/core/postcss'
46
import { TailwindcssPatcher } from '@/core/tw-patcher'
@@ -18,4 +20,38 @@ describe('postcss', () => {
1820
})
1921
expect(set.size).toBe(4)
2022
})
23+
24+
it('rpx case 0', async () => {
25+
const config: Config = {
26+
content: [
27+
'p-[0.32rpx]',
28+
'm-[23.43rpx]',
29+
'space-y-[12.0rpx]',
30+
'w-[12rpx]',
31+
'min-w-[12rpx]',
32+
'max-w-[12rpx]',
33+
'h-[12rpx]',
34+
'min-h-[12rpx]',
35+
'max-h-[12rpx]',
36+
'basis-[32rpx]',
37+
'text-[32rpx]'
38+
].map((x) => {
39+
return {
40+
raw: x
41+
}
42+
}),
43+
corePlugins: {
44+
preflight: false
45+
}
46+
}
47+
const { css } = await postcss([
48+
require('tailwindcss')({
49+
config
50+
})
51+
]).process('@tailwind base;@tailwind components;@tailwind utilities;', {
52+
from: undefined
53+
})
54+
55+
expect(css).toMatchSnapshot()
56+
})
2157
})

packages/unplugin-tailwindcss-mangle/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,26 +74,26 @@
7474
"@tailwindcss-mangle/config": "workspace:^",
7575
"@tailwindcss-mangle/core": "workspace:^",
7676
"@tailwindcss-mangle/shared": "workspace:^",
77-
"magic-string": "^0.30.3",
77+
"magic-string": "^0.30.5",
7878
"unplugin": "^1.5.0"
7979
},
8080
"publishConfig": {
8181
"access": "public",
8282
"registry": "https://registry.npmjs.org/"
8383
},
8484
"devDependencies": {
85-
"@types/babel__helper-plugin-utils": "^7.10.1",
85+
"@types/babel__helper-plugin-utils": "^7.10.2",
8686
"astro": "^2.10.12",
8787
"css-loader": "^6.8.1",
8888
"html-webpack-plugin": "^5.5.3",
8989
"mini-css-extract-plugin": "^2.7.6",
9090
"normalize-newline": "^4.1.0",
91-
"postcss": "^8.4.30",
91+
"postcss": "^8.4.31",
9292
"postcss-loader": "^7.3.3",
9393
"tailwindcss": "^3.3.3",
9494
"tailwindcss-patch": "workspace:^",
95-
"vite": "^4.4.9",
96-
"webpack": "^5.88.2",
95+
"vite": "^4.5.0",
96+
"webpack": "^5.89.0",
9797
"webpack-build-utils": "^0.0.4"
9898
},
9999
"homepage": "https://github.com/sonofmagic/tailwindcss-mangle",

0 commit comments

Comments
 (0)