@vue/shared 3.3.8 → 3.3.10

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.
@@ -16,8 +16,8 @@ const EMPTY_ARR = Object.freeze([]) ;
16
16
  const NOOP = () => {
17
17
  };
18
18
  const NO = () => false;
19
- const onRE = /^on[^a-z]/;
20
- const isOn = (key) => onRE.test(key);
19
+ const isOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // uppercase letter
20
+ (key.charCodeAt(2) > 122 || key.charCodeAt(2) < 97);
21
21
  const isModelListener = (key) => key.startsWith("onUpdate:");
22
22
  const extend = Object.assign;
23
23
  const remove = (arr, el) => {
@@ -112,7 +112,7 @@ const PatchFlagNames = {
112
112
  [4]: `STYLE`,
113
113
  [8]: `PROPS`,
114
114
  [16]: `FULL_PROPS`,
115
- [32]: `HYDRATE_EVENTS`,
115
+ [32]: `NEED_HYDRATION`,
116
116
  [64]: `STABLE_FRAGMENT`,
117
117
  [128]: `KEYED_FRAGMENT`,
118
118
  [256]: `UNKEYED_FRAGMENT`,
@@ -16,8 +16,8 @@ const EMPTY_ARR = [];
16
16
  const NOOP = () => {
17
17
  };
18
18
  const NO = () => false;
19
- const onRE = /^on[^a-z]/;
20
- const isOn = (key) => onRE.test(key);
19
+ const isOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // uppercase letter
20
+ (key.charCodeAt(2) > 122 || key.charCodeAt(2) < 97);
21
21
  const isModelListener = (key) => key.startsWith("onUpdate:");
22
22
  const extend = Object.assign;
23
23
  const remove = (arr, el) => {
@@ -112,7 +112,7 @@ const PatchFlagNames = {
112
112
  [4]: `STYLE`,
113
113
  [8]: `PROPS`,
114
114
  [16]: `FULL_PROPS`,
115
- [32]: `HYDRATE_EVENTS`,
115
+ [32]: `NEED_HYDRATION`,
116
116
  [64]: `STABLE_FRAGMENT`,
117
117
  [128]: `KEYED_FRAGMENT`,
118
118
  [256]: `UNKEYED_FRAGMENT`,
package/dist/shared.d.ts CHANGED
@@ -129,10 +129,11 @@ export declare const enum PatchFlags {
129
129
  */
130
130
  FULL_PROPS = 16,
131
131
  /**
132
- * Indicates an element with event listeners (which need to be attached
133
- * during hydration)
132
+ * Indicates an element that requires props hydration
133
+ * (but not necessarily patching)
134
+ * e.g. event listeners & v-bind with prop modifier
134
135
  */
135
- HYDRATE_EVENTS = 32,
136
+ NEED_HYDRATION = 32,
136
137
  /**
137
138
  * Indicates a fragment whose children order doesn't change.
138
139
  */
@@ -12,8 +12,8 @@ const EMPTY_ARR = !!(process.env.NODE_ENV !== "production") ? Object.freeze([])
12
12
  const NOOP = () => {
13
13
  };
14
14
  const NO = () => false;
15
- const onRE = /^on[^a-z]/;
16
- const isOn = (key) => onRE.test(key);
15
+ const isOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // uppercase letter
16
+ (key.charCodeAt(2) > 122 || key.charCodeAt(2) < 97);
17
17
  const isModelListener = (key) => key.startsWith("onUpdate:");
18
18
  const extend = Object.assign;
19
19
  const remove = (arr, el) => {
@@ -108,7 +108,7 @@ const PatchFlagNames = {
108
108
  [4]: `STYLE`,
109
109
  [8]: `PROPS`,
110
110
  [16]: `FULL_PROPS`,
111
- [32]: `HYDRATE_EVENTS`,
111
+ [32]: `NEED_HYDRATION`,
112
112
  [64]: `STABLE_FRAGMENT`,
113
113
  [128]: `KEYED_FRAGMENT`,
114
114
  [256]: `UNKEYED_FRAGMENT`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/shared",
3
- "version": "3.3.8",
3
+ "version": "3.3.10",
4
4
  "description": "internal utils shared across @vue packages",
5
5
  "main": "index.js",
6
6
  "module": "dist/shared.esm-bundler.js",