@kdujs/shared-canary
Advanced tools
Comparing version 3.20240219.0 to 3.20240226.0-minor.0
@@ -19,4 +19,4 @@ 'use strict'; | ||
const NO = () => false; | ||
const isOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // uppercase letter | ||
(key.charCodeAt(2) > 122 || key.charCodeAt(2) < 97); | ||
const onRE = /^on[^a-z]/; | ||
const isOn = (key) => onRE.test(key); | ||
const isModelListener = (key) => key.startsWith("onUpdate:"); | ||
@@ -116,3 +116,3 @@ const extend = Object.assign; | ||
[16]: `FULL_PROPS`, | ||
[32]: `NEED_HYDRATION`, | ||
[32]: `HYDRATE_EVENTS`, | ||
[64]: `STABLE_FRAGMENT`, | ||
@@ -119,0 +119,0 @@ [128]: `KEYED_FRAGMENT`, |
@@ -19,4 +19,4 @@ 'use strict'; | ||
const NO = () => false; | ||
const isOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // uppercase letter | ||
(key.charCodeAt(2) > 122 || key.charCodeAt(2) < 97); | ||
const onRE = /^on[^a-z]/; | ||
const isOn = (key) => onRE.test(key); | ||
const isModelListener = (key) => key.startsWith("onUpdate:"); | ||
@@ -116,3 +116,3 @@ const extend = Object.assign; | ||
[16]: `FULL_PROPS`, | ||
[32]: `NEED_HYDRATION`, | ||
[32]: `HYDRATE_EVENTS`, | ||
[64]: `STABLE_FRAGMENT`, | ||
@@ -119,0 +119,0 @@ [128]: `KEYED_FRAGMENT`, |
@@ -132,7 +132,6 @@ /** | ||
/** | ||
* Indicates an element that requires props hydration | ||
* (but not necessarily patching) | ||
* e.g. event listeners & k-bind with prop modifier | ||
* Indicates an element with event listeners (which need to be attached | ||
* during hydration) | ||
*/ | ||
NEED_HYDRATION = 32, | ||
HYDRATE_EVENTS = 32, | ||
/** | ||
@@ -139,0 +138,0 @@ * Indicates a fragment whose children order doesn't change. |
@@ -15,4 +15,4 @@ function makeMap(str, expectsLowerCase) { | ||
const NO = () => false; | ||
const isOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // uppercase letter | ||
(key.charCodeAt(2) > 122 || key.charCodeAt(2) < 97); | ||
const onRE = /^on[^a-z]/; | ||
const isOn = (key) => onRE.test(key); | ||
const isModelListener = (key) => key.startsWith("onUpdate:"); | ||
@@ -112,3 +112,3 @@ const extend = Object.assign; | ||
[16]: `FULL_PROPS`, | ||
[32]: `NEED_HYDRATION`, | ||
[32]: `HYDRATE_EVENTS`, | ||
[64]: `STABLE_FRAGMENT`, | ||
@@ -115,0 +115,0 @@ [128]: `KEYED_FRAGMENT`, |
{ | ||
"name": "@kdujs/shared-canary", | ||
"version": "3.20240219.0", | ||
"version": "3.20240226.0-minor.0", | ||
"description": "internal utils shared across @kdujs packages", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
71961
1675
2