@vobs/runtime 1.7.8 → 1.8.1
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.
- package/README.md +1 -1
- package/dist/async-boundary.cjs +14 -4
- package/dist/async-boundary.cjs.map +1 -1
- package/dist/async-boundary.js +17 -7
- package/dist/async-boundary.js.map +1 -1
- package/dist/bind.cjs +43 -3
- package/dist/bind.cjs.map +1 -1
- package/dist/bind.js +48 -8
- package/dist/bind.js.map +1 -1
- package/dist/boundary.cjs +159 -84
- package/dist/boundary.cjs.map +1 -1
- package/dist/boundary.js +162 -87
- package/dist/boundary.js.map +1 -1
- package/dist/client-only.cjs +323 -0
- package/dist/client-only.cjs.map +1 -0
- package/dist/client-only.d.cts +42 -0
- package/dist/client-only.d.ts +42 -0
- package/dist/client-only.js +299 -0
- package/dist/client-only.js.map +1 -0
- package/dist/debug.cjs.map +1 -1
- package/dist/debug.d.cts +12 -2
- package/dist/debug.d.ts +12 -2
- package/dist/debug.js.map +1 -1
- package/dist/dom-events.cjs +46 -0
- package/dist/dom-events.cjs.map +1 -0
- package/dist/dom-events.d.cts +23 -0
- package/dist/dom-events.d.ts +23 -0
- package/dist/dom-events.js +21 -0
- package/dist/dom-events.js.map +1 -0
- package/dist/dom-props.cjs +154 -0
- package/dist/dom-props.cjs.map +1 -0
- package/dist/dom-props.d.cts +21 -0
- package/dist/dom-props.d.ts +21 -0
- package/dist/dom-props.js +128 -0
- package/dist/dom-props.js.map +1 -0
- package/dist/dynamic.cjs +68 -14
- package/dist/dynamic.cjs.map +1 -1
- package/dist/dynamic.js +73 -19
- package/dist/dynamic.js.map +1 -1
- package/dist/error-boundary.cjs +159 -84
- package/dist/error-boundary.cjs.map +1 -1
- package/dist/error-boundary.js +162 -87
- package/dist/error-boundary.js.map +1 -1
- package/dist/error.cjs +52 -20
- package/dist/error.cjs.map +1 -1
- package/dist/error.d.cts +8 -0
- package/dist/error.d.ts +8 -0
- package/dist/error.js +52 -20
- package/dist/error.js.map +1 -1
- package/dist/fragment.cjs.map +1 -1
- package/dist/fragment.js +1 -1
- package/dist/fragment.js.map +1 -1
- package/dist/hmr.cjs +137 -1
- package/dist/hmr.cjs.map +1 -1
- package/dist/hmr.js +135 -1
- package/dist/hmr.js.map +1 -1
- package/dist/index.cjs +713 -236
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +715 -245
- package/dist/index.js.map +1 -1
- package/dist/ops.cjs +561 -107
- package/dist/ops.cjs.map +1 -1
- package/dist/ops.d.cts +49 -4
- package/dist/ops.d.ts +49 -4
- package/dist/ops.js +557 -108
- package/dist/ops.js.map +1 -1
- package/dist/profiler.cjs +14 -4
- package/dist/profiler.cjs.map +1 -1
- package/dist/profiler.js +17 -7
- package/dist/profiler.js.map +1 -1
- package/dist/ref.cjs +160 -5
- package/dist/ref.cjs.map +1 -1
- package/dist/ref.js +160 -5
- package/dist/ref.js.map +1 -1
- package/dist/renderer.cjs.map +1 -1
- package/dist/renderer.d.cts +2 -0
- package/dist/renderer.d.ts +2 -0
- package/dist/show.cjs +196 -0
- package/dist/show.cjs.map +1 -0
- package/dist/show.d.cts +54 -0
- package/dist/show.d.ts +54 -0
- package/dist/show.js +171 -0
- package/dist/show.js.map +1 -0
- package/dist/svg.cjs +102 -0
- package/dist/svg.cjs.map +1 -0
- package/dist/svg.d.cts +21 -0
- package/dist/svg.d.ts +21 -0
- package/dist/svg.js +76 -0
- package/dist/svg.js.map +1 -0
- package/package.json +20 -2
- package/src/bind.ts +30 -2
- package/src/boundaries.test.ts +54 -1
- package/src/boundary.ts +24 -8
- package/src/clear-remove.test.ts +85 -0
- package/src/client-only.test.ts +140 -0
- package/src/client-only.ts +65 -0
- package/src/component-empty-return.test.ts +123 -0
- package/src/debug.ts +12 -1
- package/src/dom-events.ts +32 -0
- package/src/dom-props-consistency.test.ts +149 -0
- package/src/dom-props.test.ts +70 -0
- package/src/dom-props.ts +107 -0
- package/src/dynamic.ts +91 -14
- package/src/error.test.ts +76 -1
- package/src/error.ts +87 -22
- package/src/event-cleanup-growth.test.ts +128 -0
- package/src/events.test.ts +16 -3
- package/src/hmr.ts +8 -2
- package/src/index.ts +13 -1
- package/src/invariants.test.ts +252 -0
- package/src/list-fast-path.test.ts +83 -0
- package/src/list-reactive-item.test.ts +77 -0
- package/src/ops.ts +419 -60
- package/src/props.test.ts +61 -1
- package/src/ref-cleanup.test.ts +144 -0
- package/src/ref.ts +57 -8
- package/src/remove-listener-identity.test.ts +97 -0
- package/src/renderer.ts +3 -1
- package/src/select-hidden-subscription.test.ts +104 -0
- package/src/show-classlist.test.ts +205 -0
- package/src/show.ts +107 -0
- package/src/spread-stable-shape.test.ts +109 -0
- package/src/spread.test.ts +86 -0
- package/src/svg.test.ts +28 -1
- package/src/svg.ts +34 -0
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { VobsRenderer } from './renderer.cjs';
|
|
2
|
-
export { RuntimeDebugContext, RuntimeDebugEnvironment, RuntimeDebugHooks, RuntimeDomMutation, RuntimeDomMutationOperation, RuntimeErrorEvent, RuntimeHydrationMismatch, describeDebugNode, getRuntimeDebugContext, getRuntimeDebugHooks, invokeRuntimeDebug, pushRuntimeDebugContext, runWithRuntimeDebugContext, setRuntimeDebugHooks } from './debug.cjs';
|
|
2
|
+
export { RuntimeDebugContext, RuntimeDebugEnvironment, RuntimeDebugHooks, RuntimeDomMutation, RuntimeDomMutationOperation, RuntimeErrorEvent, RuntimeHydrationMismatch, RuntimeProvisionalText, describeDebugNode, getRuntimeDebugContext, getRuntimeDebugHooks, invokeRuntimeDebug, pushRuntimeDebugContext, runWithRuntimeDebugContext, setRuntimeDebugHooks } from './debug.cjs';
|
|
3
3
|
export { FragmentFactory, VobsFragment, VobsNode, createFragment, isVobsFragment } from './fragment.cjs';
|
|
4
|
-
export { VobsLocatedError, VobsSourceLocation, addEventListener, clear, createBlock, createComment, createComponent, createElement, createText, disposeNodeOwner, getRenderer, insertBefore, removeChild, removeEventListener, setAttribute, setProperty, setRenderer, setStaticProps, setTextContent, spreadProps } from './ops.cjs';
|
|
4
|
+
export { VobsLocatedError, VobsSourceLocation, addEventListener, applyClassList, bindSpreadProps, clear, createBlock, createComment, createComponent, createElement, createSvgElement, createText, disposeNodeOwner, getRenderer, insertBefore, parseClassList, removeAttribute, removeChild, removeEventListener, setAttribute, setProperty, setRenderer, setStaticProps, setTextContent, spreadProps } from './ops.cjs';
|
|
5
5
|
export { ValueSource, bindAttribute, bindProperty, bindText } from './bind.cjs';
|
|
6
6
|
export { Ref, RefTarget, ref, setRef } from './ref.cjs';
|
|
7
7
|
export { DynamicChild, NodeFactory, insertDynamic, insertDynamicValue, insertList, normalizeDynamicChild } from './dynamic.cjs';
|
|
@@ -12,4 +12,7 @@ export { ErrorBoundary, ErrorBoundaryFallback, ErrorBoundaryOptions, ErrorBounda
|
|
|
12
12
|
export { BoundaryFallback, BoundaryOptions, BoundaryRetry, insertBoundary } from './boundary.cjs';
|
|
13
13
|
export { AsyncBoundary, AsyncBoundaryFallback, AsyncBoundaryOptions, AsyncBoundaryProps, AsyncBoundaryView, insertAsyncBoundary } from './async-boundary.cjs';
|
|
14
14
|
export { Profiler, ProfilerOptions, ProfilerProps, ProfilerRenderInfo, insertProfiler } from './profiler.cjs';
|
|
15
|
+
export { Show, ShowProps } from './show.cjs';
|
|
16
|
+
export { ClientOnly, ClientOnlyProps } from './client-only.cjs';
|
|
15
17
|
import '@vobs/reactivity';
|
|
18
|
+
import './svg.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { VobsRenderer } from './renderer.js';
|
|
2
|
-
export { RuntimeDebugContext, RuntimeDebugEnvironment, RuntimeDebugHooks, RuntimeDomMutation, RuntimeDomMutationOperation, RuntimeErrorEvent, RuntimeHydrationMismatch, describeDebugNode, getRuntimeDebugContext, getRuntimeDebugHooks, invokeRuntimeDebug, pushRuntimeDebugContext, runWithRuntimeDebugContext, setRuntimeDebugHooks } from './debug.js';
|
|
2
|
+
export { RuntimeDebugContext, RuntimeDebugEnvironment, RuntimeDebugHooks, RuntimeDomMutation, RuntimeDomMutationOperation, RuntimeErrorEvent, RuntimeHydrationMismatch, RuntimeProvisionalText, describeDebugNode, getRuntimeDebugContext, getRuntimeDebugHooks, invokeRuntimeDebug, pushRuntimeDebugContext, runWithRuntimeDebugContext, setRuntimeDebugHooks } from './debug.js';
|
|
3
3
|
export { FragmentFactory, VobsFragment, VobsNode, createFragment, isVobsFragment } from './fragment.js';
|
|
4
|
-
export { VobsLocatedError, VobsSourceLocation, addEventListener, clear, createBlock, createComment, createComponent, createElement, createText, disposeNodeOwner, getRenderer, insertBefore, removeChild, removeEventListener, setAttribute, setProperty, setRenderer, setStaticProps, setTextContent, spreadProps } from './ops.js';
|
|
4
|
+
export { VobsLocatedError, VobsSourceLocation, addEventListener, applyClassList, bindSpreadProps, clear, createBlock, createComment, createComponent, createElement, createSvgElement, createText, disposeNodeOwner, getRenderer, insertBefore, parseClassList, removeAttribute, removeChild, removeEventListener, setAttribute, setProperty, setRenderer, setStaticProps, setTextContent, spreadProps } from './ops.js';
|
|
5
5
|
export { ValueSource, bindAttribute, bindProperty, bindText } from './bind.js';
|
|
6
6
|
export { Ref, RefTarget, ref, setRef } from './ref.js';
|
|
7
7
|
export { DynamicChild, NodeFactory, insertDynamic, insertDynamicValue, insertList, normalizeDynamicChild } from './dynamic.js';
|
|
@@ -12,4 +12,7 @@ export { ErrorBoundary, ErrorBoundaryFallback, ErrorBoundaryOptions, ErrorBounda
|
|
|
12
12
|
export { BoundaryFallback, BoundaryOptions, BoundaryRetry, insertBoundary } from './boundary.js';
|
|
13
13
|
export { AsyncBoundary, AsyncBoundaryFallback, AsyncBoundaryOptions, AsyncBoundaryProps, AsyncBoundaryView, insertAsyncBoundary } from './async-boundary.js';
|
|
14
14
|
export { Profiler, ProfilerOptions, ProfilerProps, ProfilerRenderInfo, insertProfiler } from './profiler.js';
|
|
15
|
+
export { Show, ShowProps } from './show.js';
|
|
16
|
+
export { ClientOnly, ClientOnlyProps } from './client-only.js';
|
|
15
17
|
import '@vobs/reactivity';
|
|
18
|
+
import './svg.js';
|