@udixio/theme 0.5.1 → 0.5.2

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,13 @@
1
+ ## 0.5.1 (2025-07-25)
2
+
3
+ ### 🩹 Fixes
4
+
5
+ - **theme:** make config loading asynchronous to improve initialization flow ([d5de04f](https://github.com/Udixio/UI/commit/d5de04f))
6
+
7
+ ### ❤️ Thank You
8
+
9
+ - Joël VIGREUX
10
+
1
11
  ## 0.5.0 (2025-07-25)
2
12
 
3
13
  ### 🚀 Features
package/index.cjs CHANGED
@@ -2764,7 +2764,7 @@ class ConfigService {
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
@@ -2740,7 +2740,7 @@ class ConfigService {
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@udixio/theme",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "types": "./src/index.d.ts",