valaxy 0.28.0-beta.3 → 0.28.0-beta.4

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.
@@ -1,4 +1,5 @@
1
1
  <script lang="ts" setup>
2
+ import { isClient } from '@vueuse/core'
2
3
  import { runContentUpdated, useDecrypt, useFrontmatter } from 'valaxy'
3
4
  import { computed, defineComponent, h, ref } from 'vue'
4
5
 
@@ -61,7 +62,7 @@ const ValaxyDeprecatedContent = defineComponent({
61
62
  },
62
63
  })
63
64
 
64
- const hasWarning = computed(() => location.protocol !== 'https:')
65
+ const hasWarning = computed(() => isClient && location.protocol !== 'https:')
65
66
  </script>
66
67
 
67
68
  <template>
@@ -1,7 +1,7 @@
1
1
  import 'node:process';
2
2
  import 'yargs';
3
3
  import 'yargs/helpers';
4
- export { c as cli, I as registerDevCommand, W as run, Z as startValaxyDev } from '../../shared/valaxy.BA87T2zA.mjs';
4
+ export { c as cli, I as registerDevCommand, W as run, Z as startValaxyDev } from '../../shared/valaxy.CAIbzGO-.mjs';
5
5
  import 'node:os';
6
6
  import 'node:path';
7
7
  import 'consola';
@@ -1,4 +1,4 @@
1
- export { A as ALL_ROUTE, E as EXCERPT_SEPARATOR, G as GLOBAL_STATE, P as PATHNAME_PROTOCOL_RE, V as ViteValaxyPlugins, b as build, c as cli, a as createServer, d as createValaxyPlugin, e as customElements, f as defaultSiteConfig, g as defaultValaxyConfig, h as defaultViteConfig, i as defineAddon, j as defineConfig, k as defineSiteConfig, l as defineTheme, m as defineValaxyAddon, n as defineValaxyConfig, o as defineValaxyTheme, p as encryptContent, q as generateClientRedirects, r as getGitTimestamp, s as getIndexHtml, t as getServerInfoText, u as isExternal, v as isInstalledGlobally, w as isKatexEnabled, x as isKatexPluginNeeded, y as isMathJaxEnabled, z as isPath, B as loadConfigFromFile, C as mergeValaxyConfig, D as mergeViteConfigs, F as postProcessForSSG, H as processValaxyOptions, I as registerDevCommand, J as resolveAddonsConfig, K as resolveImportPath, L as resolveImportUrl, M as resolveOptions, N as resolveSiteConfig, O as resolveSiteConfigFromRoot, Q as resolveThemeConfigFromRoot, R as resolveThemeValaxyConfig, S as resolveUserThemeConfig, T as resolveValaxyConfig, U as resolveValaxyConfigFromRoot, W as run, X as ssgBuild, Y as ssgBuildLegacy, Z as startValaxyDev, _ as toAtFS, $ as transformObject, a0 as version } from '../shared/valaxy.BA87T2zA.mjs';
1
+ export { A as ALL_ROUTE, E as EXCERPT_SEPARATOR, G as GLOBAL_STATE, P as PATHNAME_PROTOCOL_RE, V as ViteValaxyPlugins, b as build, c as cli, a as createServer, d as createValaxyPlugin, e as customElements, f as defaultSiteConfig, g as defaultValaxyConfig, h as defaultViteConfig, i as defineAddon, j as defineConfig, k as defineSiteConfig, l as defineTheme, m as defineValaxyAddon, n as defineValaxyConfig, o as defineValaxyTheme, p as encryptContent, q as generateClientRedirects, r as getGitTimestamp, s as getIndexHtml, t as getServerInfoText, u as isExternal, v as isInstalledGlobally, w as isKatexEnabled, x as isKatexPluginNeeded, y as isMathJaxEnabled, z as isPath, B as loadConfigFromFile, C as mergeValaxyConfig, D as mergeViteConfigs, F as postProcessForSSG, H as processValaxyOptions, I as registerDevCommand, J as resolveAddonsConfig, K as resolveImportPath, L as resolveImportUrl, M as resolveOptions, N as resolveSiteConfig, O as resolveSiteConfigFromRoot, Q as resolveThemeConfigFromRoot, R as resolveThemeValaxyConfig, S as resolveUserThemeConfig, T as resolveValaxyConfig, U as resolveValaxyConfigFromRoot, W as run, X as ssgBuild, Y as ssgBuildLegacy, Z as startValaxyDev, _ as toAtFS, $ as transformObject, a0 as version } from '../shared/valaxy.CAIbzGO-.mjs';
2
2
  import 'node:path';
3
3
  import 'fs-extra';
4
4
  import 'consola/utils';
@@ -1675,7 +1675,7 @@ async function setupMarkdownPlugins(md, options, base = "/") {
1675
1675
  return md;
1676
1676
  }
1677
1677
 
1678
- const version = "0.28.0-beta.3";
1678
+ const version = "0.28.0-beta.4";
1679
1679
 
1680
1680
  const GLOBAL_STATE = {
1681
1681
  valaxyApp: void 0,
@@ -5659,19 +5659,6 @@ async function initServer(valaxyApp, viteConfig) {
5659
5659
  process.exit(1);
5660
5660
  }
5661
5661
  }
5662
- if (import.meta.hot) {
5663
- await import.meta.hot.data.stopping;
5664
- let reload = async () => {
5665
- consola.info("HMR: Stop Server");
5666
- await GLOBAL_STATE.server?.close();
5667
- };
5668
- import.meta.hot.on("vite:beforeFullReload", () => {
5669
- const stopping = reload();
5670
- reload = () => Promise.resolve();
5671
- if (import.meta.hot)
5672
- import.meta.hot.data.stopping = stopping;
5673
- });
5674
- }
5675
5662
 
5676
5663
  async function execBuild({ ssg, ssgEngine, root, output, log }) {
5677
5664
  setEnvProd();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "valaxy",
3
3
  "type": "module",
4
- "version": "0.28.0-beta.3",
4
+ "version": "0.28.0-beta.4",
5
5
  "description": "📄 Vite & Vue powered static blog generator.",
6
6
  "author": {
7
7
  "email": "me@yunyoujun.cn",
@@ -90,13 +90,13 @@
90
90
  "fs-extra": "^11.3.4",
91
91
  "fuse.js": "^7.1.0",
92
92
  "gray-matter": "^4.0.3",
93
- "hookable": "^6.0.1",
93
+ "hookable": "^6.1.0",
94
94
  "html-to-text": "^9.0.5",
95
95
  "jiti": "^2.6.1",
96
96
  "js-base64": "^3.7.8",
97
97
  "js-yaml": "^4.1.1",
98
98
  "katex": "^0.16.38",
99
- "lru-cache": "^11.2.6",
99
+ "lru-cache": "^11.2.7",
100
100
  "markdown-it": "^14.1.1",
101
101
  "markdown-it-anchor": "^9.2.0",
102
102
  "markdown-it-async": "^2.2.0",
@@ -140,8 +140,8 @@
140
140
  "vue-i18n": "^11.3.0",
141
141
  "vue-router": "^5.0.3",
142
142
  "yargs": "^18.0.0",
143
- "@valaxyjs/devtools": "0.28.0-beta.3",
144
- "@valaxyjs/utils": "0.28.0-beta.3"
143
+ "@valaxyjs/devtools": "0.28.0-beta.4",
144
+ "@valaxyjs/utils": "0.28.0-beta.4"
145
145
  },
146
146
  "devDependencies": {
147
147
  "@mdit-vue/plugin-component": "^3.0.2",
@@ -164,7 +164,7 @@
164
164
  "@types/yargs": "^17.0.35",
165
165
  "gh-pages": "^6.3.0",
166
166
  "https-localhost": "^4.7.1",
167
- "nanoid": "^5.1.6",
167
+ "nanoid": "^5.1.7",
168
168
  "rollup-plugin-visualizer": "^7.0.1",
169
169
  "unbuild": "^3.6.1"
170
170
  },