@udixio/theme 0.5.1 → 0.5.3

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
@@ -1,3 +1,23 @@
1
+ ## 0.5.2 (2025-07-25)
2
+
3
+ ### 🩹 Fixes
4
+
5
+ - **theme:** switch to dynamic ES module imports in config service ([d2ce0fd](https://github.com/Udixio/UI/commit/d2ce0fd))
6
+
7
+ ### ❤️ Thank You
8
+
9
+ - Joël VIGREUX
10
+
11
+ ## 0.5.1 (2025-07-25)
12
+
13
+ ### 🩹 Fixes
14
+
15
+ - **theme:** make config loading asynchronous to improve initialization flow ([d5de04f](https://github.com/Udixio/UI/commit/d5de04f))
16
+
17
+ ### ❤️ Thank You
18
+
19
+ - Joël VIGREUX
20
+
1
21
  ## 0.5.0 (2025-07-25)
2
22
 
3
23
  ### 🚀 Features
package/index.cjs CHANGED
@@ -2759,12 +2759,12 @@ class ConfigService {
2759
2759
  const path = (await import("path")).default;
2760
2760
  const fs = (await import("fs")).default;
2761
2761
  const base = path.resolve(this.configPath);
2762
- const extensions = [".js", ".ts", ".jms", ".jcs"];
2762
+ const extensions = [".js", ".ts", ".mjs", ".jcs"];
2763
2763
  let configImport = null;
2764
2764
  for (const ext of extensions) {
2765
2765
  const path2 = base + ext;
2766
2766
  if (fs.existsSync(path2)) {
2767
- configImport = require(path2);
2767
+ configImport = (await import(path2)).default;
2768
2768
  break;
2769
2769
  }
2770
2770
  }
package/index.js CHANGED
@@ -2735,12 +2735,12 @@ class ConfigService {
2735
2735
  const path = (await import("path")).default;
2736
2736
  const fs = (await import("fs")).default;
2737
2737
  const base = path.resolve(this.configPath);
2738
- const extensions = [".js", ".ts", ".jms", ".jcs"];
2738
+ const extensions = [".js", ".ts", ".mjs", ".jcs"];
2739
2739
  let configImport = null;
2740
2740
  for (const ext of extensions) {
2741
2741
  const path2 = base + ext;
2742
2742
  if (fs.existsSync(path2)) {
2743
- configImport = require(path2);
2743
+ configImport = (await import(path2)).default;
2744
2744
  break;
2745
2745
  }
2746
2746
  }
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@udixio/theme",
3
- "version": "0.5.1",
3
+ "version": "0.5.3",
4
4
  "type": "module",
5
- "main": "src/index.ts",
5
+ "main": "./src/index.ts",
6
6
  "types": "./src/index.d.ts",
7
7
  "exports": {
8
8
  ".": {
9
9
  "import": "./index.js",
10
- "require": "./index.cjs"
10
+ "require": "./index.cjs",
11
+ "types": "./src/index.ts"
11
12
  }
12
13
  },
13
14
  "dependencies": {