tailwindcss 3.4.15 → 3.4.17

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
@@ -9,6 +9,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
 
10
10
  - Nothing yet!
11
11
 
12
+ ## [3.4.17] - 2024-12-17
13
+
14
+ ### Fixed
15
+
16
+ - Work around Node v22.12+ issue ([#15421](https://github.com/tailwindlabs/tailwindcss/pull/15421))
17
+
18
+ ## [3.4.16] - 2024-12-03
19
+
20
+ ### Fixed
21
+
22
+ - Ensure the TypeScript types for `PluginsConfig` allow `undefined` values ([#14668](https://github.com/tailwindlabs/tailwindcss/pull/14668))
23
+
24
+ # Changed
25
+
26
+ - Bumped lilconfig to v3.x ([#15289](https://github.com/tailwindlabs/tailwindcss/pull/15289))
27
+
12
28
  ## [3.4.15] - 2024-11-14
13
29
 
14
30
  - Bump versions for security vulnerabilities ([#14697](https://github.com/tailwindlabs/tailwindcss/pull/14697))
@@ -2461,7 +2477,9 @@ No release notes
2461
2477
 
2462
2478
  - Everything!
2463
2479
 
2464
- [unreleased]: https://github.com/tailwindlabs/tailwindcss/compare/v3.4.15...HEAD
2480
+ [unreleased]: https://github.com/tailwindlabs/tailwindcss/compare/v3.4.17...HEAD
2481
+ [3.4.17]: https://github.com/tailwindlabs/tailwindcss/compare/v3.4.16...v3.4.17
2482
+ [3.4.16]: https://github.com/tailwindlabs/tailwindcss/compare/v3.4.15...v3.4.16
2465
2483
  [3.4.15]: https://github.com/tailwindlabs/tailwindcss/compare/v3.4.14...v3.4.15
2466
2484
  [3.4.14]: https://github.com/tailwindlabs/tailwindcss/compare/v3.4.13...v3.4.14
2467
2485
  [3.4.13]: https://github.com/tailwindlabs/tailwindcss/compare/v3.4.12...v3.4.13
@@ -46,6 +46,10 @@ function lazyJiti() {
46
46
  }
47
47
  function loadConfig(path) {
48
48
  let config = function() {
49
+ if (!path) return {};
50
+ // Always use jiti for now. There is a a bug that occurs in Node v22.12+
51
+ // where imported files return invalid results
52
+ return lazyJiti()(path);
49
53
  // Always use jiti for ESM or TS files
50
54
  if (path && (path.endsWith(".mjs") || path.endsWith(".ts") || path.endsWith(".cts") || path.endsWith(".mts"))) {
51
55
  return lazyJiti()(path);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tailwindcss",
3
- "version": "3.4.15",
3
+ "version": "3.4.17",
4
4
  "description": "A utility-first CSS framework for rapidly building custom user interfaces.",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",
@@ -73,7 +73,7 @@
73
73
  "glob-parent": "^6.0.2",
74
74
  "is-glob": "^4.0.3",
75
75
  "jiti": "^1.21.6",
76
- "lilconfig": "^2.1.0",
76
+ "lilconfig": "^3.1.3",
77
77
  "micromatch": "^4.0.8",
78
78
  "normalize-path": "^3.0.0",
79
79
  "object-hash": "^3.0.0",
package/peers/index.js CHANGED
@@ -18212,12 +18212,13 @@ var require_autoprefixer = __commonJS({
18212
18212
  }
18213
18213
  });
18214
18214
 
18215
- // node_modules/cssnano/node_modules/lilconfig/src/index.js
18215
+ // node_modules/lilconfig/src/index.js
18216
18216
  var require_src = __commonJS({
18217
- "node_modules/cssnano/node_modules/lilconfig/src/index.js"(exports2, module2) {
18217
+ "node_modules/lilconfig/src/index.js"(exports2, module2) {
18218
18218
  var path = require("path");
18219
18219
  var fs = require("fs");
18220
18220
  var os = require("os");
18221
+ var url = require("url");
18221
18222
  var fsReadFileAsync = fs.promises.readFile;
18222
18223
  function getDefaultSearchPlaces(name, sync) {
18223
18224
  return [
@@ -18250,9 +18251,10 @@ var require_src = __commonJS({
18250
18251
  module2.exports.defaultLoadersSync = defaultLoadersSync;
18251
18252
  var dynamicImport = async (id) => {
18252
18253
  try {
18254
+ const fileUrl = url.pathToFileURL(id).href;
18253
18255
  const mod = await import(
18254
18256
  /* webpackIgnore: true */
18255
- id
18257
+ fileUrl
18256
18258
  );
18257
18259
  return mod.default;
18258
18260
  } catch (e) {
@@ -33,6 +33,12 @@ function lazyJiti() {
33
33
 
34
34
  export function loadConfig(path: string): Config {
35
35
  let config = (function () {
36
+ if (!path) return {}
37
+
38
+ // Always use jiti for now. There is a a bug that occurs in Node v22.12+
39
+ // where imported files return invalid results
40
+ return lazyJiti()(path)
41
+
36
42
  // Always use jiti for ESM or TS files
37
43
  if (
38
44
  path &&
package/types/config.d.ts CHANGED
@@ -344,9 +344,12 @@ export interface PluginAPI {
344
344
  export type PluginCreator = (api: PluginAPI) => void
345
345
  export type PluginsConfig = (
346
346
  | PluginCreator
347
- | { handler: PluginCreator; config?: Partial<Config> }
347
+ | { handler: PluginCreator; config?: Partial<Config> | undefined }
348
348
  | {
349
- (options: any): { handler: PluginCreator; config?: Partial<Config> }
349
+ (options: any): {
350
+ handler: PluginCreator;
351
+ config?: Partial<Config> | undefined;
352
+ };
350
353
  __isOptionsFunction: true
351
354
  }
352
355
  )[]