@eightshift/frontend-libs-tailwind 3.5.0 → 3.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -6,6 +6,19 @@ This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a
6
6
 
7
7
  ---
8
8
 
9
+ ## [3.5.1]
10
+
11
+ ### Fixed
12
+
13
+ - Fixed stylelint false positives on Tailwind `@apply`: `at-rule-prelude-no-invalid` now ignores `@apply`, as the CSS Mixins spec `@apply` syntax only accepts dashed idents.
14
+ - Fixed stylelint false positives on `&` inside `@utility` and `@custom-variant` (`nesting-selector-no-missing-scoping-root`).
15
+ - Fixed stylelint false positives on declarations in at-rules nested inside `@utility`, such as `@supports` (`no-invalid-position-declaration`).
16
+
17
+ ### Updated
18
+
19
+ - Updated dependencies (`@wordpress/dependency-extraction-webpack-plugin` 7, `@wordpress/api-fetch` 8, `stylelint`, `eslint`, `oxlint`, `webpack`, `webpack-cli`, `@swc/core`, `eslint-plugin-better-tailwindcss`, `prettier`, `lint-staged`).
20
+ - `@wordpress/dependency-extraction-webpack-plugin` 7 requires Node.js 22.13 or newer.
21
+
9
22
  ## [3.5.0]
10
23
 
11
24
  ### Added
@@ -392,6 +405,7 @@ Co-authored with @piqusy
392
405
 
393
406
  - Initial release.
394
407
 
408
+ [3.5.1]: https://github.com/infinum/eightshift-frontend-libs-tailwind/compare/3.5.0...3.5.1
395
409
  [3.5.0]: https://github.com/infinum/eightshift-frontend-libs-tailwind/compare/3.4.0...3.5.0
396
410
  [3.4.0]: https://github.com/infinum/eightshift-frontend-libs-tailwind/compare/3.4.0...3.4.0
397
411
  [3.3.0]: https://github.com/infinum/eightshift-frontend-libs-tailwind/compare/3.2.0...3.3.0
@@ -145,5 +145,30 @@ module.exports = {
145
145
  ignoreAtRules: ['tailwind'],
146
146
  },
147
147
  ],
148
+
149
+ // Tailwind's `@apply` takes utility classes, but the CSS Mixins spec `@apply` in csstree's syntax data only accepts dashed idents.
150
+ // `media` is kept from stylelint-config-recommended, as setting options replaces its list.
151
+ 'at-rule-prelude-no-invalid': [
152
+ true,
153
+ {
154
+ ignoreAtRules: ['media', 'apply'],
155
+ },
156
+ ],
157
+
158
+ // In Tailwind's `@utility` and `@custom-variant`, `&` resolves to the generated utility class, so it has a scoping root.
159
+ 'nesting-selector-no-missing-scoping-root': [
160
+ true,
161
+ {
162
+ ignoreAtRules: ['utility', 'custom-variant'],
163
+ },
164
+ ],
165
+
166
+ // Tailwind's `@utility` acts as a style rule, so declarations in at-rules nested inside it (e.g. `@supports`) are valid.
167
+ 'no-invalid-position-declaration': [
168
+ true,
169
+ {
170
+ ignoreAtRules: ['utility'],
171
+ },
172
+ ],
148
173
  },
149
174
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eightshift/frontend-libs-tailwind",
3
- "version": "3.5.0",
3
+ "version": "3.5.1",
4
4
  "description": "A framework for creating modern Gutenberg themes with styling provided by Tailwind CSS.",
5
5
  "author": {
6
6
  "name": "Eightshift team",
@@ -38,42 +38,42 @@
38
38
  "license": "MIT",
39
39
  "dependencies": {
40
40
  "@stylistic/eslint-plugin": "^5.10.0",
41
- "@stylistic/stylelint-plugin": "^5.2.1",
42
- "@swc/core": "^1.15.43",
41
+ "@stylistic/stylelint-plugin": "^5.3.1",
42
+ "@swc/core": "^1.16.18",
43
43
  "@tailwindcss/node": "^4.3.3",
44
44
  "@tailwindcss/webpack": "^4.3.3",
45
- "@wordpress/dependency-extraction-webpack-plugin": "^6.51.0",
46
- "browserslist": "^4.28.6",
47
- "css-loader": "^7.1.4",
45
+ "@wordpress/dependency-extraction-webpack-plugin": "^7.0.0",
46
+ "browserslist": "^4.29.4",
47
+ "css-loader": "^7.1.5",
48
48
  "css-minimizer-webpack-plugin": "^8.0.0",
49
- "eslint": "^10.7.0",
49
+ "eslint": "^10.13.0",
50
50
  "eslint-config-prettier": "^10.1.8",
51
- "eslint-plugin-better-tailwindcss": "^4.7.0",
52
- "eslint-plugin-prettier": "^5.5.6",
51
+ "eslint-plugin-better-tailwindcss": "^4.10.0",
52
+ "eslint-plugin-prettier": "^5.5.7",
53
53
  "eslint-plugin-react": "^7.37.5",
54
54
  "eslint-plugin-react-hooks": "^7.1.1",
55
55
  "eslint-plugin-unused-imports": "^4.4.1",
56
56
  "glob": "^13.0.6",
57
- "globals": "^17.7.0",
57
+ "globals": "^17.13.0",
58
58
  "husky": "^9.1.7",
59
- "lightningcss": "^1.32.0",
59
+ "lightningcss": "^1.33.0",
60
60
  "mini-css-extract-plugin": "^2.10.2",
61
- "oxlint": "^1.82.0",
62
- "prettier": "^3.9.5",
61
+ "oxlint": "^1.89.0",
62
+ "prettier": "^3.9.10",
63
63
  "prettier-plugin-tailwindcss": "^0.8.1",
64
- "sonner": "^2.0.7",
65
- "stylelint": "^17.14.0",
64
+ "sonner": "^2.0.8",
65
+ "stylelint": "^17.16.0",
66
66
  "stylelint-config-standard": "^40.0.0",
67
67
  "swc-loader": "^0.2.7",
68
68
  "terser-webpack-plugin": "^5.6.1",
69
- "webpack": "^5.108.4",
70
- "webpack-cli": "^7.2.1",
69
+ "webpack": "^5.112.0",
70
+ "webpack-cli": "^7.2.3",
71
71
  "webpack-manifest-plugin": "^6.0.1",
72
72
  "webpack-merge": "^6.0.1"
73
73
  },
74
74
  "devDependencies": {
75
- "@wordpress/api-fetch": "^7.51.0",
76
- "lint-staged": "^17.1.0"
75
+ "@wordpress/api-fetch": "^8.0.0",
76
+ "lint-staged": "^17.6.0"
77
77
  },
78
78
  "peerDependencies": {
79
79
  "@eightshift/ui-components": "^8.0.0"