mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
refactor: rename apply-hydrate to signals
This commit is contained in:
parent
acbff4ee27
commit
b32feb8329
@ -7,7 +7,7 @@ import {
|
||||
import { ReserveType } from "../util/reserve";
|
||||
import { getOrCreateSectionId } from "../util/sections";
|
||||
import { currentProgramPath } from "../visitors/program";
|
||||
import { initSource } from "../util/apply-hydrate";
|
||||
import { initSource } from "../util/signals";
|
||||
|
||||
declare module "@marko/compiler/dist/types" {
|
||||
export interface ProgramExtra {
|
||||
|
||||
@ -8,7 +8,7 @@ import {
|
||||
getSignal,
|
||||
setSubscriberBuilder,
|
||||
writeHTMLHydrateStatements,
|
||||
} from "../../util/apply-hydrate";
|
||||
} from "../../util/signals";
|
||||
import { callRuntime } from "../../util/runtime";
|
||||
import { isCoreTagName } from "../../util/is-core-tag";
|
||||
import toFirstStatementOrBlock from "../../util/to-first-statement-or-block";
|
||||
|
||||
@ -3,7 +3,7 @@ import { Tag, assertNoParams } from "@marko/babel-utils";
|
||||
import { assertNoBodyContent } from "../util/assert";
|
||||
import translateVar from "../util/translate-var";
|
||||
import { isOutputDOM } from "../util/marko-config";
|
||||
import { initDerivation } from "../util/apply-hydrate";
|
||||
import { initDerivation } from "../util/signals";
|
||||
|
||||
export default {
|
||||
translate(tag) {
|
||||
|
||||
@ -2,7 +2,7 @@ import { types as t } from "@marko/compiler";
|
||||
import { Tag, assertNoParams } from "@marko/babel-utils";
|
||||
import { assertNoBodyContent } from "../util/assert";
|
||||
import { isOutputDOM } from "../util/marko-config";
|
||||
import { addStatement, addHTMLHydrateCall } from "../util/apply-hydrate";
|
||||
import { addStatement, addHTMLHydrateCall } from "../util/signals";
|
||||
import { callRuntime } from "../util/runtime";
|
||||
import { getSectionId } from "../util/sections";
|
||||
import { ReserveType, reserveScope } from "../util/reserve";
|
||||
|
||||
@ -15,7 +15,7 @@ import {
|
||||
subscribe,
|
||||
writeHTMLHydrateStatements,
|
||||
getComputeFn,
|
||||
} from "../util/apply-hydrate";
|
||||
} from "../util/signals";
|
||||
import { getOrCreateSectionId, getSectionId } from "../util/sections";
|
||||
import {
|
||||
ReserveType,
|
||||
|
||||
@ -3,7 +3,7 @@ import { Tag, assertNoParams } from "@marko/babel-utils";
|
||||
import { assertNoBodyContent } from "../util/assert";
|
||||
import translateVar from "../util/translate-var";
|
||||
import { isOutputDOM } from "../util/marko-config";
|
||||
import { initSource, queueSource, addStatement } from "../util/apply-hydrate";
|
||||
import { initSource, queueSource, addStatement } from "../util/signals";
|
||||
import { callRuntime } from "../util/runtime";
|
||||
import replaceAssignments from "../util/replace-assignments";
|
||||
import { getSectionId } from "../util/sections";
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
import { types as t } from "@marko/compiler";
|
||||
import type { ReferenceGroup } from "../util/references";
|
||||
import type { ReferenceGroup } from "./references";
|
||||
import {
|
||||
getSectionId,
|
||||
createSectionState,
|
||||
forEachSectionIdReverse,
|
||||
getOrCreateSectionId,
|
||||
} from "../util/sections";
|
||||
import { Reserve, insertReserve } from "../util/reserve";
|
||||
} from "./sections";
|
||||
import { Reserve, insertReserve } from "./reserve";
|
||||
import { currentProgramPath, scopeIdentifier } from "../visitors/program";
|
||||
import { callRuntime, callRead } from "./runtime";
|
||||
import { getTemplateId } from "@marko/babel-utils";
|
||||
@ -5,7 +5,7 @@ import toTemplateOrStringLiteral, {
|
||||
appendLiteral,
|
||||
} from "./to-template-string-or-literal";
|
||||
import { getWalkString } from "./walks";
|
||||
import { getSetup } from "./apply-hydrate";
|
||||
import { getSetup } from "./signals";
|
||||
import { currentProgramPath } from "../visitors/program";
|
||||
|
||||
const [getRenderer] = createSectionState<t.Identifier>(
|
||||
|
||||
@ -5,7 +5,7 @@ import { callRuntime, getHTMLRuntime } from "../util/runtime";
|
||||
import evaluate from "../util/evaluate";
|
||||
import { getSectionId, getOrCreateSectionId } from "../util/sections";
|
||||
import { ReserveType, reserveScope } from "../util/reserve";
|
||||
import { addStatement } from "../util/apply-hydrate";
|
||||
import { addStatement } from "../util/signals";
|
||||
import * as writer from "../util/writer";
|
||||
import * as walks from "../util/walks";
|
||||
import { scopeIdentifier } from "./program";
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import { types as t } from "@marko/compiler";
|
||||
import { callRuntime } from "../../util/runtime";
|
||||
import { forEachSectionIdReverse, getSectionId } from "../../util/sections";
|
||||
import { getClosures, getSignal, writeSignals } from "../../util/apply-hydrate";
|
||||
import { getClosures, getSignal, writeSignals } from "../../util/signals";
|
||||
import * as writer from "../../util/writer";
|
||||
import { visit } from "../../util/walks";
|
||||
import { scopeIdentifier } from ".";
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { types as t } from "@marko/compiler";
|
||||
import { writeHTMLHydrateStatements } from "../../util/apply-hydrate";
|
||||
import { writeHTMLHydrateStatements } from "../../util/signals";
|
||||
import { callRuntime } from "../../util/runtime";
|
||||
import { flushInto } from "../../util/writer";
|
||||
import isStatic from "../../util/is-static";
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import type { types as t } from "@marko/compiler";
|
||||
import { addStatement } from "../util/apply-hydrate";
|
||||
import { addStatement } from "../util/signals";
|
||||
import { isOutputHTML } from "../util/marko-config";
|
||||
import type { ReferenceGroup } from "../util/references";
|
||||
import { getSectionId } from "../util/sections";
|
||||
|
||||
@ -25,7 +25,7 @@ import {
|
||||
addStatement,
|
||||
getSignal,
|
||||
writeHTMLHydrateStatements,
|
||||
} from "../../util/apply-hydrate";
|
||||
} from "../../util/signals";
|
||||
import { reserveScope, ReserveType } from "../../util/reserve";
|
||||
import { currentProgramPath, scopeIdentifier } from "../program";
|
||||
|
||||
|
||||
@ -7,7 +7,7 @@ import { callRuntime } from "../../util/runtime";
|
||||
import translateVar from "../../util/translate-var";
|
||||
import { isOutputHTML } from "../../util/marko-config";
|
||||
import { getOrCreateSectionId, getSectionId } from "../../util/sections";
|
||||
import { getComputeFn, getSignal, subscribe } from "../../util/apply-hydrate";
|
||||
import { getComputeFn, getSignal, subscribe } from "../../util/signals";
|
||||
import {
|
||||
countReserves,
|
||||
Reserve,
|
||||
|
||||
@ -7,7 +7,7 @@ import translateVar from "../../util/translate-var";
|
||||
import evaluate from "../../util/evaluate";
|
||||
import { getOrCreateSectionId, getSectionId } from "../../util/sections";
|
||||
import { ReserveType, reserveScope } from "../../util/reserve";
|
||||
import { addStatement, addHTMLHydrateCall } from "../../util/apply-hydrate";
|
||||
import { addStatement, addHTMLHydrateCall } from "../../util/signals";
|
||||
import * as writer from "../../util/writer";
|
||||
import * as walks from "../../util/walks";
|
||||
import { currentProgramPath, scopeIdentifier } from "../program";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user