Comparing version 5.0.0-next.234 to 5.0.0-next.235
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "5.0.0-next.234", | ||
"version": "5.0.0-next.235", | ||
"type": "module", | ||
@@ -8,0 +8,0 @@ "types": "./types/index.d.ts", |
@@ -68,6 +68,2 @@ /** @import { Program } from 'estree' */ | ||
if (attribute.value === true || !is_text_attribute(attribute)) { | ||
throw new Error('TODO'); | ||
} | ||
if (attribute.value.length !== 1 || attribute.value[0].type !== 'Text') { | ||
e.script_invalid_context(attribute); | ||
@@ -74,0 +70,0 @@ } |
@@ -49,11 +49,16 @@ /** @import { Effect, TemplateNode } from '#client' */ | ||
/** @type {Effect | null} */ | ||
/** @type {Effect | undefined} */ | ||
var effect; | ||
block(() => { | ||
if (value === (value = get_value())) return; | ||
if (value === (value = get_value())) { | ||
if (hydrating) { | ||
hydrate_next(); | ||
} | ||
return; | ||
} | ||
if (effect) { | ||
if (effect !== undefined) { | ||
destroy_effect(effect); | ||
effect = null; | ||
effect = undefined; | ||
} | ||
@@ -60,0 +65,0 @@ |
/** @import { Raf } from '#client' */ | ||
import { noop } from '../shared/utils.js'; | ||
const is_client = typeof window !== 'undefined'; | ||
import { BROWSER } from 'esm-env'; | ||
const request_animation_frame = is_client ? requestAnimationFrame : noop; | ||
const request_animation_frame = BROWSER ? requestAnimationFrame : noop; | ||
const now = is_client ? () => performance.now() : () => Date.now(); | ||
const now = BROWSER ? () => performance.now() : () => Date.now(); | ||
@@ -10,0 +10,0 @@ /** @type {Raf} */ |
@@ -9,3 +9,3 @@ // generated during release, do not modify | ||
*/ | ||
export const VERSION = '5.0.0-next.234'; | ||
export const VERSION = '5.0.0-next.235'; | ||
export const PUBLIC_VERSION = '5'; |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48925
2208606