Skip to content

Commit 945a99e

Browse files
committed
chore: rename signal folder to reactive-primitves
1 parent a41c83f commit 945a99e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+104
-90
lines changed

packages/qwik/src/core/client/vnode-diff.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,18 +91,18 @@ import {
9191
import { mapApp_findIndx } from './util-mapArray';
9292
import { mapArray_set } from './util-mapArray';
9393
import { getNewElementNamespaceData } from './vnode-namespace';
94-
import { isSignal } from '../signal/signal';
95-
import type { Signal } from '../signal/signal.public';
94+
import { isSignal } from '../reactive-primitives/signal';
95+
import type { Signal } from '../reactive-primitives/signal.public';
9696
import { executeComponent } from '../shared/component-execution';
9797
import { isSlotProp } from '../shared/utils/prop';
9898
import { escapeHTML } from '../shared/utils/character-escaping';
99-
import { clearAllEffects } from '../signal/signal-cleanup';
99+
import { clearAllEffects } from '../reactive-primitives/signal-cleanup';
100100
import { serializeAttribute } from '../shared/utils/styles';
101101
import { QError, qError } from '../shared/error/error';
102102
import { getFileLocationFromJsx } from '../shared/utils/jsx-filename';
103-
import { EffectProperty } from '../signal/types';
104-
import { SubscriptionData } from '../signal/subscription-data';
105-
import { WrappedSignalImpl } from '../signal/impl/wrapped-signal-impl';
103+
import { EffectProperty } from '../reactive-primitives/types';
104+
import { SubscriptionData } from '../reactive-primitives/subscription-data';
105+
import { WrappedSignalImpl } from '../reactive-primitives/impl/wrapped-signal-impl';
106106

107107
export const vnode_diff = (
108108
container: ClientContainer,

packages/qwik/src/core/client/vnode-diff.unit.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { describe, expect, it } from 'vitest';
44
import { vnode_applyJournal, vnode_getFirstChild, vnode_getNode } from './vnode';
55
import { vnode_diff } from './vnode-diff';
66
import type { QElement } from '../shared/types';
7-
import { createSignal } from '../signal/signal-api';
7+
import { createSignal } from '../reactive-primitives/signal-api';
88
import { QError, qError } from '../shared/error/error';
99

1010
describe('vNode-diff', () => {

packages/qwik/src/core/client/vnode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ import {
175175
vnode_getElementNamespaceFlags,
176176
} from './vnode-namespace';
177177
import { mergeMaps } from '../shared/utils/maps';
178-
import { _EFFECT_BACK_REF } from '../signal/types';
178+
import { _EFFECT_BACK_REF } from '../reactive-primitives/types';
179179

180180
//////////////////////////////////////////////////////////////////////////////////////////////////////
181181

packages/qwik/src/core/debug.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import { isQrl } from '../server/prefetch-strategy';
22
import { isJSXNode } from './shared/jsx/jsx-runtime';
33
import { isTask } from './use/use-task';
44
import { vnode_getProp, vnode_isVNode } from './client/vnode';
5-
import { isSignal } from './signal/signal';
6-
import { isStore } from './signal/store';
5+
import { isSignal } from './reactive-primitives/signal';
6+
import { isStore } from './reactive-primitives/store';
77
import { DEBUG_TYPE } from './shared/types';
8-
import { ComputedSignalImpl } from './signal/impl/computed-signal-impl';
9-
import { WrappedSignalImpl } from './signal/impl/wrapped-signal-impl';
8+
import { ComputedSignalImpl } from './reactive-primitives/impl/computed-signal-impl';
9+
import { WrappedSignalImpl } from './reactive-primitives/impl/wrapped-signal-impl';
1010

1111
const stringifyPath: any[] = [];
1212
export function qwikDebugToString(value: any): any {

packages/qwik/src/core/index.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,15 +133,19 @@ export { useVisibleTask$ } from './use/use-visible-task-dollar';
133133
export { useComputed$ } from './use/use-computed';
134134
export { useErrorBoundary } from './use/use-error-boundary';
135135
export type { ErrorBoundaryStore } from './shared/error/error-handling';
136-
export { type ReadonlySignal, type Signal, type ComputedSignal } from './signal/signal.public';
136+
export {
137+
type ReadonlySignal,
138+
type Signal,
139+
type ComputedSignal,
140+
} from './reactive-primitives/signal.public';
137141
export {
138142
isSignal,
139143
createSignal,
140144
createComputedQrl,
141145
createComputed$,
142146
createSerializerQrl,
143147
createSerializer$,
144-
} from './signal/signal.public';
148+
} from './reactive-primitives/signal.public';
145149

146150
//////////////////////////////////////////////////////////////////////////////////////////
147151
// Developer Low-Level API

packages/qwik/src/core/internal.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export { _walkJSX } from './ssr/ssr-render-jsx';
33
export { _SharedContainer } from './shared/shared-container';
44
export { queueQRL as _run } from './client/queue-qrl';
55
export { scheduleTask as _task } from './use/use-task';
6-
export { _wrapSignal, _wrapProp, _wrapStore } from './signal/internal-api';
6+
export { _wrapSignal, _wrapProp, _wrapStore } from './reactive-primitives/internal-api';
77
export { _restProps } from './shared/utils/prop';
88
export { _IMMUTABLE } from './shared/utils/constants';
99
export { _CONST_PROPS, _VAR_PROPS } from './shared/utils/constants';
@@ -37,5 +37,5 @@ export {
3737
export { EMPTY_ARRAY as _EMPTY_ARRAY } from './shared/utils/flyweight';
3838
export { _serialize, _deserialize } from './shared/shared-serialization';
3939
export { _jsxQ, _jsxC, _jsxS } from './shared/jsx/jsx-runtime';
40-
export { _EFFECT_BACK_REF } from './signal/types';
41-
export { SubscriptionData as _SubscriptionData } from './signal/subscription-data';
40+
export { _EFFECT_BACK_REF } from './reactive-primitives/types';
41+
export { SubscriptionData as _SubscriptionData } from './reactive-primitives/subscription-data';

0 commit comments

Comments
 (0)