valaxy 0.28.11 → 1.0.0-beta.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.
@@ -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, Y as startValaxyDev } from '../../shared/valaxy.DeExWA-9.mjs';
4
+ export { c as cli, I as registerDevCommand, W as run, Y as startValaxyDev } from '../../shared/valaxy._QBHi6cy.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 startValaxyDev, Z as toAtFS, _ as transformObject, $ as version } from '../shared/valaxy.DeExWA-9.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 startValaxyDev, Z as toAtFS, _ as transformObject, $ as version } from '../shared/valaxy._QBHi6cy.mjs';
2
2
  import 'node:path';
3
3
  import 'consola';
4
4
  import 'fs-extra';
@@ -1493,26 +1493,36 @@ function sendText(res, content, headOnly) {
1493
1493
 
1494
1494
  const POOL_SIZE_MULTIPLIER = 128;
1495
1495
  let pool, poolOffset;
1496
+
1496
1497
  function fillPool(bytes) {
1497
- if (bytes < 0 || bytes > 1024) throw new RangeError('Wrong ID size')
1498
- if (!pool || pool.length < bytes) {
1499
- pool = Buffer.allocUnsafe(bytes * POOL_SIZE_MULTIPLIER);
1500
- webcrypto.getRandomValues(pool);
1501
- poolOffset = 0;
1502
- } else if (poolOffset + bytes > pool.length) {
1503
- webcrypto.getRandomValues(pool);
1504
- poolOffset = 0;
1498
+ if (bytes < 0) throw new RangeError('Wrong ID size')
1499
+ try {
1500
+ if (!pool || pool.length < bytes) {
1501
+ pool = Buffer.allocUnsafe(bytes * POOL_SIZE_MULTIPLIER);
1502
+ webcrypto.getRandomValues(pool);
1503
+ poolOffset = 0;
1504
+ } else if (poolOffset + bytes > pool.length) {
1505
+ webcrypto.getRandomValues(pool);
1506
+ poolOffset = 0;
1507
+ }
1508
+ } catch (e) {
1509
+ pool = undefined;
1510
+ throw e
1505
1511
  }
1506
1512
  poolOffset += bytes;
1507
1513
  }
1514
+
1508
1515
  function random(bytes) {
1509
1516
  fillPool((bytes |= 0));
1510
1517
  return pool.subarray(poolOffset - bytes, poolOffset)
1511
1518
  }
1519
+
1512
1520
  function customRandom(alphabet, defaultSize, getRandom) {
1513
1521
  let safeByteCutoff = 256 - (256 % alphabet.length);
1522
+
1514
1523
  if (safeByteCutoff === 256) {
1515
1524
  let mask = alphabet.length - 1;
1525
+
1516
1526
  return (size = defaultSize) => {
1517
1527
  if (!size) return ''
1518
1528
  let id = '';
@@ -1526,7 +1536,9 @@ function customRandom(alphabet, defaultSize, getRandom) {
1526
1536
  }
1527
1537
  }
1528
1538
  }
1539
+
1529
1540
  let step = Math.ceil((1.6 * 256 * defaultSize) / safeByteCutoff);
1541
+
1530
1542
  return (size = defaultSize) => {
1531
1543
  if (!size) return ''
1532
1544
  let id = '';
@@ -1542,6 +1554,7 @@ function customRandom(alphabet, defaultSize, getRandom) {
1542
1554
  }
1543
1555
  }
1544
1556
  }
1557
+
1545
1558
  function customAlphabet(alphabet, size = 21) {
1546
1559
  return customRandom(alphabet, size, random)
1547
1560
  }
@@ -2714,7 +2727,7 @@ async function setupMarkdownPlugins(md, options, base = "/") {
2714
2727
  return md;
2715
2728
  }
2716
2729
 
2717
- const version = "0.28.11";
2730
+ const version = "1.0.0-beta.2";
2718
2731
 
2719
2732
  const GLOBAL_STATE = {
2720
2733
  valaxyApp: void 0,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "valaxy",
3
3
  "type": "module",
4
- "version": "0.28.11",
4
+ "version": "1.0.0-beta.2",
5
5
  "description": "📄 Vite & Vue powered static blog generator.",
6
6
  "author": {
7
7
  "email": "me@yunyoujun.cn",
@@ -66,22 +66,22 @@
66
66
  "dependencies": {
67
67
  "@antfu/install-pkg": "^1.1.0",
68
68
  "@antfu/utils": "^9.3.0",
69
- "@clack/prompts": "^1.3.0",
69
+ "@clack/prompts": "^1.7.0",
70
70
  "@iconify-json/ri": "^1.2.10",
71
- "@intlify/unplugin-vue-i18n": "^11.1.2",
71
+ "@intlify/unplugin-vue-i18n": "^11.2.4",
72
72
  "@shikijs/transformers": "^3.23.0",
73
73
  "@types/katex": "^0.16.8",
74
- "@unhead/addons": "^2.1.13",
75
- "@unhead/schema-org": "^2.1.13",
76
- "@unhead/vue": "^2.1.13",
77
- "@vitejs/plugin-vue": "^6.0.6",
74
+ "@unhead/addons": "^2.1.15",
75
+ "@unhead/schema-org": "^2.1.15",
76
+ "@unhead/vue": "^2.1.15",
77
+ "@vitejs/plugin-vue": "^6.0.7",
78
78
  "@vue/devtools-api": "7.7.2",
79
79
  "@vueuse/core": "^14.3.0",
80
80
  "@vueuse/integrations": "^14.3.0",
81
81
  "consola": "^3.4.2",
82
82
  "cross-spawn": "^7.0.6",
83
83
  "css-i18n": "^0.0.5",
84
- "dayjs": "^1.11.20",
84
+ "dayjs": "^1.11.21",
85
85
  "debug": "^4.4.3",
86
86
  "define-config-ts": "^0.1.3",
87
87
  "defu": "^6.1.7",
@@ -90,20 +90,20 @@
90
90
  "fast-glob": "^3.3.3",
91
91
  "feed": "^5.2.1",
92
92
  "floating-vue": "^5.2.2",
93
- "fs-extra": "^11.3.5",
94
- "fuse.js": "^7.3.0",
93
+ "fs-extra": "^11.3.6",
94
+ "fuse.js": "^7.4.2",
95
95
  "gray-matter": "^4.0.3",
96
96
  "hookable": "^6.1.1",
97
97
  "html-to-text": "^9.0.5",
98
98
  "jiti": "^2.7.0",
99
- "js-base64": "^3.7.8",
100
- "js-yaml": "^4.1.1",
101
- "katex": "^0.16.45",
102
- "lru-cache": "^11.3.6",
103
- "markdown-it": "^14.1.1",
99
+ "js-base64": "^3.8.0",
100
+ "js-yaml": "^4.3.0",
101
+ "katex": "^0.16.47",
102
+ "lru-cache": "^11.5.1",
103
+ "markdown-it": "^14.3.0",
104
104
  "markdown-it-anchor": "^9.2.0",
105
105
  "markdown-it-async": "^2.2.0",
106
- "markdown-it-attrs": "^4.3.1",
106
+ "markdown-it-attrs": "^4.5.0",
107
107
  "markdown-it-container": "^4.0.0",
108
108
  "markdown-it-emoji": "^3.0.0",
109
109
  "markdown-it-footnote": "^4.0.0",
@@ -111,36 +111,36 @@
111
111
  "markdown-it-table-of-contents": "^1.2.0",
112
112
  "markdown-it-task-lists": "^2.1.1",
113
113
  "medium-zoom": "^1.1.0",
114
- "mermaid": "^11.14.0",
114
+ "mermaid": "^11.16.0",
115
115
  "minisearch": "^7.2.0",
116
116
  "mlly": "^1.8.2",
117
117
  "nprogress": "^0.2.0",
118
118
  "open": "10.1.0",
119
- "ora": "^9.4.0",
120
- "p-map": "^7.0.4",
119
+ "ora": "^9.4.1",
120
+ "p-map": "^7.0.5",
121
121
  "pascalcase": "^2.0.0",
122
122
  "pathe": "^2.0.3",
123
123
  "pinia": "^3.0.4",
124
124
  "qrcode": "^1.5.4",
125
125
  "resolve-global": "^2.0.0",
126
- "sass": "^1.99.0",
126
+ "sass": "^1.101.0",
127
127
  "shiki": "^3.23.0",
128
128
  "star-markdown-css": "^0.5.3",
129
129
  "table": "^6.9.0",
130
- "unhead": "^2.1.13",
130
+ "unhead": "^2.1.15",
131
131
  "unocss": "66.7.2",
132
132
  "unplugin-vue-components": "28.0.0",
133
133
  "unplugin-vue-markdown": "^32.0.0",
134
134
  "vanilla-lazyload": "^19.1.3",
135
- "vite": "^8.0.11",
136
- "vite-plugin-vue-devtools": "^8.1.1",
135
+ "vite": "^8.1.3",
136
+ "vite-plugin-vue-devtools": "^8.1.5",
137
137
  "vite-plugin-vue-layouts-next": "^2.1.0",
138
138
  "vite-ssg-sitemap": "^0.10.0",
139
139
  "vitepress-plugin-group-icons": "^1.7.5",
140
- "vue-i18n": "^11.4.2",
140
+ "vue-i18n": "^11.4.6",
141
141
  "yargs": "^18.0.0",
142
- "@valaxyjs/utils": "0.28.11",
143
- "@valaxyjs/devtools": "0.28.11"
142
+ "@valaxyjs/devtools": "1.0.0-beta.2",
143
+ "@valaxyjs/utils": "1.0.0-beta.2"
144
144
  },
145
145
  "devDependencies": {
146
146
  "@mdit-vue/plugin-component": "^3.0.2",
@@ -163,11 +163,11 @@
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.11",
166
+ "nanoid": "^5.1.16",
167
167
  "rollup-plugin-visualizer": "^7.0.1",
168
168
  "unbuild": "^3.6.1",
169
169
  "vue": "3.5.22",
170
- "vue-router": "^5.0.6"
170
+ "vue-router": "^5.1.0"
171
171
  },
172
172
  "scripts": {
173
173
  "clean": "rimraf dist",