-
Notifications
You must be signed in to change notification settings - Fork 649
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: avoid over registration of body content
- Loading branch information
1 parent
4c87458
commit 08e0d24
Showing
436 changed files
with
1,294 additions
and
1,647 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@marko/translator-interop-class-tags": patch | ||
"marko": patch | ||
--- | ||
|
||
Update tags api interop layer. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@marko/runtime-tags": patch | ||
--- | ||
|
||
Avoid registering body content when known downstream usage is not serialized. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
..._tests__/fixtures/abort-signal-render-phase-error/__snapshots__/html.expected/template.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
import * as _$ from "@marko/runtime-tags/debug/html"; | ||
const _renderer = /* @__PURE__ */_$.createRenderer(input => { | ||
export default /* @__PURE__ */_$.createTemplate("__tests__/template.marko", input => { | ||
const _scope0_id = _$.nextScopeId(); | ||
_$.write(`<div>${_$.escapeXML((() => { | ||
throw new Error("Cannot use $signal in a server render."); | ||
})().onabort = () => {})}</div>`); | ||
_$.resumeClosestBranch(_scope0_id); | ||
}); | ||
export default /* @__PURE__ */_$.createTemplate("__tests__/template.marko", _renderer); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
...sts__/fixtures/at-tags-dynamic-and-static/__snapshots__/html.expected/tags/hello/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
import * as _$ from "@marko/runtime-tags/debug/html"; | ||
const _renderer = /* @__PURE__ */_$.createRenderer(input => { | ||
export default /* @__PURE__ */_$.createTemplate("__tests__/tags/hello/index.marko", input => { | ||
const _scope0_id = _$.nextScopeId(); | ||
_$.write("<div></div>"); | ||
}); | ||
export default /* @__PURE__ */_$.createTemplate("__tests__/tags/hello/index.marko", _renderer); | ||
}); |
5 changes: 2 additions & 3 deletions
5
...src/__tests__/fixtures/at-tags-dynamic-and-static/__snapshots__/html.expected/template.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
import _hello from "./tags/hello/index.marko"; | ||
import * as _$ from "@marko/runtime-tags/debug/html"; | ||
const _renderer = /* @__PURE__ */_$.createRenderer(input => { | ||
export default /* @__PURE__ */_$.createTemplate("__tests__/template.marko", input => { | ||
const _scope0_id = _$.nextScopeId(); | ||
_hello({}); | ||
}); | ||
export default /* @__PURE__ */_$.createTemplate("__tests__/template.marko", _renderer); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
...ts__/fixtures/at-tags-dynamic-with-params/__snapshots__/html.expected/tags/hello/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
import * as _$ from "@marko/runtime-tags/debug/html"; | ||
const _renderer = /* @__PURE__ */_$.createRenderer(input => { | ||
export default /* @__PURE__ */_$.createTemplate("__tests__/tags/hello/index.marko", input => { | ||
const _scope0_id = _$.nextScopeId(); | ||
_$.write("<div></div>"); | ||
}); | ||
export default /* @__PURE__ */_$.createTemplate("__tests__/tags/hello/index.marko", _renderer); | ||
}); |
5 changes: 2 additions & 3 deletions
5
...rc/__tests__/fixtures/at-tags-dynamic-with-params/__snapshots__/html.expected/template.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
import * as _$ from "@marko/runtime-tags/debug/html"; | ||
import _hello from "./tags/hello/index.marko"; | ||
const _renderer = /* @__PURE__ */_$.createRenderer(input => { | ||
export default /* @__PURE__ */_$.createTemplate("__tests__/template.marko", input => { | ||
const _scope0_id = _$.nextScopeId(); | ||
const { | ||
x | ||
} = input; | ||
_hello({}); | ||
}); | ||
export default /* @__PURE__ */_$.createTemplate("__tests__/template.marko", _renderer); | ||
}); |
5 changes: 2 additions & 3 deletions
5
...gs/src/__tests__/fixtures/at-tags-dynamic/__snapshots__/html.expected/tags/hello/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
import * as _$ from "@marko/runtime-tags/debug/html"; | ||
const _renderer = /* @__PURE__ */_$.createRenderer(input => { | ||
export default /* @__PURE__ */_$.createTemplate("__tests__/tags/hello/index.marko", input => { | ||
const _scope0_id = _$.nextScopeId(); | ||
_$.write("<div></div>"); | ||
}); | ||
export default /* @__PURE__ */_$.createTemplate("__tests__/tags/hello/index.marko", _renderer); | ||
}); |
Oops, something went wrong.