wevu 6.10.0 → 6.10.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.
Files changed (2) hide show
  1. package/dist/index.mjs +5 -5
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -860,7 +860,7 @@ function diffSnapshots(prev, next) {
860
860
  function collapsePayload(input) {
861
861
  const keys = Object.keys(input).sort();
862
862
  if (keys.length <= 1) return input;
863
- const out = Object.create(null);
863
+ const out = {};
864
864
  const prefixStack = [];
865
865
  for (const key of keys) {
866
866
  while (prefixStack.length) {
@@ -971,7 +971,7 @@ function mergeSiblingPayload(options) {
971
971
  out: input,
972
972
  merged: 0
973
973
  };
974
- const out = Object.create(null);
974
+ const out = {};
975
975
  Object.assign(out, input);
976
976
  let merged = 0;
977
977
  const valueSizeCache = /* @__PURE__ */ new WeakMap();
@@ -1019,7 +1019,7 @@ function normalizeSetDataValue(value) {
1019
1019
  function cloneSnapshotValue(value) {
1020
1020
  if (Array.isArray(value)) return value.map((item) => cloneSnapshotValue(item));
1021
1021
  if (!isPlainObjectLike(value)) return value;
1022
- const out = Object.create(null);
1022
+ const out = {};
1023
1023
  for (const key of Object.keys(value)) out[key] = cloneSnapshotValue(value[key]);
1024
1024
  return out;
1025
1025
  }
@@ -1071,7 +1071,7 @@ function applySnapshotUpdate(snapshot, path, value, op) {
1071
1071
  let current = snapshot;
1072
1072
  for (let i = 0; i < segments.length - 1; i++) {
1073
1073
  const key = segments[i];
1074
- if (!Object.hasOwn(current, key) || current[key] == null || typeof current[key] !== "object") current[key] = Object.create(null);
1074
+ if (!Object.hasOwn(current, key) || current[key] == null || typeof current[key] !== "object") current[key] = {};
1075
1075
  current = current[key];
1076
1076
  }
1077
1077
  const leaf = segments.at(-1);
@@ -1085,7 +1085,7 @@ function applySnapshotUpdate(snapshot, path, value, op) {
1085
1085
  function collectSnapshot(options) {
1086
1086
  const { state, computedRefs, includeComputed, shouldIncludeKey, plainCache, toPlainMaxDepth, toPlainMaxKeys } = options;
1087
1087
  const seen = /* @__PURE__ */ new WeakMap();
1088
- const out = Object.create(null);
1088
+ const out = {};
1089
1089
  const budget = Number.isFinite(toPlainMaxKeys) ? { keys: toPlainMaxKeys } : void 0;
1090
1090
  const rawState = isReactive(state) ? toRaw(state) : state;
1091
1091
  const stateKeys = Object.keys(rawState);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wevu",
3
3
  "type": "module",
4
- "version": "6.10.0",
4
+ "version": "6.10.2",
5
5
  "description": "Vue 3 风格的小程序运行时,包含响应式、diff+setData 与轻量状态管理",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -96,7 +96,7 @@
96
96
  "dependencies": {
97
97
  "vue": "^3.5.30",
98
98
  "@wevu/api": "0.2.2",
99
- "@wevu/compiler": "6.10.0"
99
+ "@wevu/compiler": "6.10.2"
100
100
  },
101
101
  "scripts": {
102
102
  "dev": "tsdown -w",