valaxy 0.25.6 → 0.25.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.
@@ -1,6 +1,6 @@
1
1
  <script setup lang="ts">
2
2
  import type { Component } from 'vue'
3
- import { compile, defineAsyncComponent, onMounted, shallowRef } from 'vue'
3
+ import { compile, defineAsyncComponent, shallowRef, watch } from 'vue'
4
4
 
5
5
  const props = withDefaults(
6
6
  defineProps<{
@@ -23,9 +23,9 @@ async function createComponent() {
23
23
  dynamicComponent.value = defineAsyncComponent(() => Promise.resolve(componentDefinition))
24
24
  }
25
25
 
26
- onMounted(() => {
26
+ watch(() => [props.templateStr, props.data], () => {
27
27
  createComponent()
28
- })
28
+ }, { immediate: true })
29
29
  </script>
30
30
 
31
31
  <template>
@@ -4,7 +4,7 @@ import yargs from "yargs";
4
4
  import { hideBin } from "yargs/helpers";
5
5
 
6
6
  // package.json
7
- var version = "0.25.6";
7
+ var version = "0.25.7";
8
8
 
9
9
  // node/modules/fuse.ts
10
10
  import path4 from "path";
@@ -3,7 +3,7 @@ import {
3
3
  registerDevCommand,
4
4
  run,
5
5
  startValaxyDev
6
- } from "../../chunk-KREZGAGZ.js";
6
+ } from "../../chunk-DB5JAECK.js";
7
7
  export {
8
8
  cli,
9
9
  registerDevCommand,
@@ -50,7 +50,7 @@ import {
50
50
  startValaxyDev,
51
51
  toAtFS,
52
52
  transformObject
53
- } from "../chunk-KREZGAGZ.js";
53
+ } from "../chunk-DB5JAECK.js";
54
54
  export {
55
55
  $t,
56
56
  ALL_ROUTE,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "valaxy",
3
3
  "type": "module",
4
- "version": "0.25.6",
4
+ "version": "0.25.7",
5
5
  "description": "📄 Vite & Vue powered static blog generator.",
6
6
  "author": {
7
7
  "email": "me@yunyoujun.cn",
@@ -131,8 +131,8 @@
131
131
  "vue-i18n": "^11.1.10",
132
132
  "vue-router": "^4.5.1",
133
133
  "yargs": "^18.0.0",
134
- "@valaxyjs/devtools": "0.25.6",
135
- "@valaxyjs/utils": "0.25.6"
134
+ "@valaxyjs/devtools": "0.25.7",
135
+ "@valaxyjs/utils": "0.25.7"
136
136
  },
137
137
  "devDependencies": {
138
138
  "@mdit-vue/plugin-component": "^2.1.4",