valaxy 0.28.6 → 0.28.7

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/client/main.ts CHANGED
@@ -13,12 +13,9 @@ import ClientOnly from './components/ClientOnly'
13
13
 
14
14
  import setupMain from './setup/main'
15
15
  import { setupValaxyDevTools } from './utils/dev'
16
- /**
17
- * user styles
18
- * virtual module
19
- */
20
- import '#valaxy/styles'
16
+ // uno.css 先于 #valaxy/styles 加载,使主题/用户样式可以覆盖 utility
21
17
  import 'uno.css'
18
+ import '#valaxy/styles'
22
19
 
23
20
  const valaxyConfig = initValaxyConfig()
24
21
 
@@ -1,7 +1,7 @@
1
1
  import 'node:process';
2
2
  import 'yargs';
3
3
  import 'yargs/helpers';
4
- export { c as cli, J as registerDevCommand, X as run, _ as startValaxyDev } from '../../shared/valaxy.BteINvcX.mjs';
4
+ export { c as cli, J as registerDevCommand, X as run, _ as startValaxyDev } from '../../shared/valaxy.BIDC5qac.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 fixViteSsgHtml, r as generateClientRedirects, s as getGitTimestamp, t as getIndexHtml, u as getServerInfoText, v as isExternal, w as isInstalledGlobally, x as isKatexEnabled, y as isKatexPluginNeeded, z as isMathJaxEnabled, B as isPath, C as loadConfigFromFile, D as mergeValaxyConfig, F as mergeViteConfigs, H as postProcessForSSG, I as processValaxyOptions, J as registerDevCommand, K as resolveAddonsConfig, L as resolveImportPath, M as resolveImportUrl, N as resolveOptions, O as resolveSiteConfig, Q as resolveSiteConfigFromRoot, R as resolveThemeConfigFromRoot, S as resolveThemeValaxyConfig, T as resolveUserThemeConfig, U as resolveValaxyConfig, W as resolveValaxyConfigFromRoot, X as run, Y as ssgBuild, Z as ssgBuildLegacy, _ as startValaxyDev, $ as toAtFS, a0 as transformObject, a1 as version } from '../shared/valaxy.BteINvcX.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 fixViteSsgHtml, r as generateClientRedirects, s as getGitTimestamp, t as getIndexHtml, u as getServerInfoText, v as isExternal, w as isInstalledGlobally, x as isKatexEnabled, y as isKatexPluginNeeded, z as isMathJaxEnabled, B as isPath, C as loadConfigFromFile, D as mergeValaxyConfig, F as mergeViteConfigs, H as postProcessForSSG, I as processValaxyOptions, J as registerDevCommand, K as resolveAddonsConfig, L as resolveImportPath, M as resolveImportUrl, N as resolveOptions, O as resolveSiteConfig, Q as resolveSiteConfigFromRoot, R as resolveThemeConfigFromRoot, S as resolveThemeValaxyConfig, T as resolveUserThemeConfig, U as resolveValaxyConfig, W as resolveValaxyConfigFromRoot, X as run, Y as ssgBuild, Z as ssgBuildLegacy, _ as startValaxyDev, $ as toAtFS, a0 as transformObject, a1 as version } from '../shared/valaxy.BIDC5qac.mjs';
2
2
  import 'node:path';
3
3
  import 'consola';
4
4
  import 'fs-extra';
@@ -198,6 +198,7 @@ async function callHookWithLog(hookName, valaxyApp) {
198
198
  const POOL_SIZE_MULTIPLIER = 128;
199
199
  let pool, poolOffset;
200
200
  function fillPool(bytes) {
201
+ if (bytes < 0 || bytes > 1024) throw new RangeError('Wrong ID size')
201
202
  if (!pool || pool.length < bytes) {
202
203
  pool = Buffer.allocUnsafe(bytes * POOL_SIZE_MULTIPLIER);
203
204
  webcrypto.getRandomValues(pool);
@@ -1750,7 +1751,7 @@ async function setupMarkdownPlugins(md, options, base = "/") {
1750
1751
  return md;
1751
1752
  }
1752
1753
 
1753
- const version = "0.28.6";
1754
+ const version = "0.28.7";
1754
1755
 
1755
1756
  const GLOBAL_STATE = {
1756
1757
  valaxyApp: void 0,
@@ -4241,7 +4242,6 @@ const templateStyles = {
4241
4242
  }
4242
4243
  }
4243
4244
  }
4244
- imports.unshift(`import "${await resolveImportUrl("@unocss/reset/tailwind-compat.css")}"`);
4245
4245
  return imports.join("\n");
4246
4246
  }
4247
4247
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "valaxy",
3
3
  "type": "module",
4
- "version": "0.28.6",
4
+ "version": "0.28.7",
5
5
  "description": "📄 Vite & Vue powered static blog generator.",
6
6
  "author": {
7
7
  "email": "me@yunyoujun.cn",
@@ -62,7 +62,7 @@
62
62
  "dependencies": {
63
63
  "@antfu/install-pkg": "^1.1.0",
64
64
  "@antfu/utils": "^9.3.0",
65
- "@clack/prompts": "^1.2.0",
65
+ "@clack/prompts": "^1.3.0",
66
66
  "@iconify-json/ri": "^1.2.10",
67
67
  "@intlify/unplugin-vue-i18n": "^11.1.2",
68
68
  "@shikijs/transformers": "^3.23.0",
@@ -72,8 +72,8 @@
72
72
  "@unhead/vue": "^2.1.13",
73
73
  "@vitejs/plugin-vue": "^6.0.6",
74
74
  "@vue/devtools-api": "7.7.2",
75
- "@vueuse/core": "^14.2.1",
76
- "@vueuse/integrations": "^14.2.1",
75
+ "@vueuse/core": "^14.3.0",
76
+ "@vueuse/integrations": "^14.3.0",
77
77
  "beasties": "^0.4.2",
78
78
  "consola": "^3.4.2",
79
79
  "cross-spawn": "^7.0.6",
@@ -87,16 +87,16 @@
87
87
  "fast-glob": "^3.3.3",
88
88
  "feed": "^5.2.1",
89
89
  "floating-vue": "^5.2.2",
90
- "fs-extra": "^11.3.4",
90
+ "fs-extra": "^11.3.5",
91
91
  "fuse.js": "^7.3.0",
92
92
  "gray-matter": "^4.0.3",
93
93
  "hookable": "^6.1.1",
94
94
  "html-to-text": "^9.0.5",
95
- "jiti": "^2.6.1",
95
+ "jiti": "^2.7.0",
96
96
  "js-base64": "^3.7.8",
97
97
  "js-yaml": "^4.1.1",
98
98
  "katex": "^0.16.45",
99
- "lru-cache": "^11.3.5",
99
+ "lru-cache": "^11.3.6",
100
100
  "markdown-it": "^14.1.1",
101
101
  "markdown-it-anchor": "^9.2.0",
102
102
  "markdown-it-async": "^2.2.0",
@@ -129,18 +129,18 @@
129
129
  "unplugin-vue-components": "28.0.0",
130
130
  "unplugin-vue-markdown": "^30.0.0",
131
131
  "vanilla-lazyload": "^19.1.3",
132
- "vite": "^8.0.10",
132
+ "vite": "^8.0.11",
133
133
  "vite-plugin-vue-devtools": "^8.1.1",
134
134
  "vite-plugin-vue-layouts-next": "^2.1.0",
135
135
  "vite-ssg": "^28.3.0",
136
136
  "vite-ssg-sitemap": "^0.10.0",
137
137
  "vitepress-plugin-group-icons": "^1.7.5",
138
138
  "vue": "3.5.22",
139
- "vue-i18n": "^11.4.0",
139
+ "vue-i18n": "^11.4.2",
140
140
  "vue-router": "^5.0.6",
141
141
  "yargs": "^18.0.0",
142
- "@valaxyjs/devtools": "0.28.6",
143
- "@valaxyjs/utils": "0.28.6"
142
+ "@valaxyjs/devtools": "0.28.7",
143
+ "@valaxyjs/utils": "0.28.7"
144
144
  },
145
145
  "devDependencies": {
146
146
  "@mdit-vue/plugin-component": "^3.0.2",
@@ -163,7 +163,7 @@
163
163
  "@types/yargs": "^17.0.35",
164
164
  "gh-pages": "^6.3.0",
165
165
  "https-localhost": "^4.7.1",
166
- "nanoid": "^5.1.9",
166
+ "nanoid": "^5.1.11",
167
167
  "rollup-plugin-visualizer": "^7.0.1",
168
168
  "unbuild": "^3.6.1"
169
169
  },