@esmx/router 3.0.0-rc.62 → 3.0.0-rc.64

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/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  <div align="center">
2
- <img src="https://www.esmnext.com/logo.svg?t=2025" width="120" alt="Esmx Logo" />
2
+ <img src="https://esmx.dev/logo.svg?t=2025" width="120" alt="Esmx Logo" />
3
3
  <h1>@esmx/router</h1>
4
4
 
5
5
  <div>
@@ -9,7 +9,7 @@
9
9
  <a href="https://github.com/esmnext/esmx/actions/workflows/build.yml">
10
10
  <img src="https://github.com/esmnext/esmx/actions/workflows/build.yml/badge.svg" alt="Build" />
11
11
  </a>
12
- <a href="https://www.esmnext.com/coverage/">
12
+ <a href="https://esmx.dev/coverage/">
13
13
  <img src="https://img.shields.io/badge/coverage-live%20report-brightgreen" alt="Coverage Report" />
14
14
  </a>
15
15
  <a href="https://nodejs.org/">
@@ -63,7 +63,7 @@ await router.push('/about');
63
63
 
64
64
  ## 📚 Documentation
65
65
 
66
- Visit the [official documentation](https://www.esmnext.com) for detailed usage guides and API reference.
66
+ Visit the [official documentation](https://esmx.dev) for detailed usage guides and API reference.
67
67
 
68
68
  ## 📄 License
69
69
 
package/README.zh-CN.md CHANGED
@@ -1,5 +1,5 @@
1
1
  <div align="center">
2
- <img src="https://www.esmnext.com/logo.svg?t=2025" width="120" alt="Esmx Logo" />
2
+ <img src="https://esmx.dev/logo.svg?t=2025" width="120" alt="Esmx Logo" />
3
3
  <h1>@esmx/router</h1>
4
4
 
5
5
  <div>
@@ -9,7 +9,7 @@
9
9
  <a href="https://github.com/esmnext/esmx/actions/workflows/build.yml">
10
10
  <img src="https://github.com/esmnext/esmx/actions/workflows/build.yml/badge.svg" alt="Build" />
11
11
  </a>
12
- <a href="https://www.esmnext.com/coverage/">
12
+ <a href="https://esmx.dev/coverage/">
13
13
  <img src="https://img.shields.io/badge/coverage-live%20report-brightgreen" alt="Coverage Report" />
14
14
  </a>
15
15
  <a href="https://nodejs.org/">
@@ -63,7 +63,7 @@ await router.push('/about');
63
63
 
64
64
  ## 📚 文档
65
65
 
66
- 访问[官方文档](https://www.esmnext.com)获取详细的使用指南和 API 参考。
66
+ 访问[官方文档](https://esmx.dev)获取详细的使用指南和 API 参考。
67
67
 
68
68
  ### 路由导航时大致的流程说明
69
69
 
package/dist/options.mjs CHANGED
@@ -15,16 +15,16 @@ function getBaseUrl(options) {
15
15
  const path = req.url || "";
16
16
  sourceUrl = "".concat(protocol, "://").concat(host).concat(port ? ":".concat(port) : "").concat(path);
17
17
  } else {
18
- sourceUrl = "https://www.esmnext.com/";
18
+ sourceUrl = "https://esmx.dev/";
19
19
  }
20
20
  let base;
21
21
  try {
22
22
  base = new URL(".", sourceUrl);
23
23
  } catch (e) {
24
24
  console.warn(
25
- "Failed to parse base URL '".concat(sourceUrl, "', using default: https://www.esmnext.com/")
25
+ "Failed to parse base URL '".concat(sourceUrl, "', using default: https://esmx.dev/")
26
26
  );
27
- base = new URL("https://www.esmnext.com/");
27
+ base = new URL("https://esmx.dev/");
28
28
  }
29
29
  base.search = base.hash = "";
30
30
  return base;
package/package.json CHANGED
@@ -39,7 +39,7 @@
39
39
  "unbuild": "3.6.0",
40
40
  "vitest": "3.2.4"
41
41
  },
42
- "version": "3.0.0-rc.62",
42
+ "version": "3.0.0-rc.64",
43
43
  "type": "module",
44
44
  "private": false,
45
45
  "exports": {
@@ -58,5 +58,5 @@
58
58
  "template",
59
59
  "public"
60
60
  ],
61
- "gitHead": "e5a1e811403bf1db4437dff88c3ea8bc6b576f64"
61
+ "gitHead": "8c103750d1e623fa4fa23b6ed9149f39e4a9bd58"
62
62
  }
package/src/options.ts CHANGED
@@ -36,7 +36,7 @@ function getBaseUrl(options: RouterOptions): URL {
36
36
 
37
37
  sourceUrl = `${protocol}://${host}${port ? `:${port}` : ''}${path}`;
38
38
  } else {
39
- sourceUrl = 'https://www.esmnext.com/';
39
+ sourceUrl = 'https://esmx.dev/';
40
40
  }
41
41
 
42
42
  // Parse the URL, falling back to a default on failure.
@@ -46,9 +46,9 @@ function getBaseUrl(options: RouterOptions): URL {
46
46
  base = new URL('.', sourceUrl);
47
47
  } catch (e) {
48
48
  console.warn(
49
- `Failed to parse base URL '${sourceUrl}', using default: https://www.esmnext.com/`
49
+ `Failed to parse base URL '${sourceUrl}', using default: https://esmx.dev/`
50
50
  );
51
- base = new URL('https://www.esmnext.com/');
51
+ base = new URL('https://esmx.dev/');
52
52
  }
53
53
 
54
54
  // Clean up and return