From e70f0c69e5e42e5b29a61cbce2134ee27ca16b35 Mon Sep 17 00:00:00 2001 From: Luke LaValva Date: Tue, 9 Sep 2025 15:55:38 -0700 Subject: [PATCH] docs: Marko 6 links (#2817) * docs: Marko 6 README * fix: use markojs.com * chore: add changeset --- .changeset/warm-hotels-argue.md | 6 ++ README.md | 2 +- packages/runtime-tags/README.md | 72 +++++++++++++++++++ .../dom.expected/template.error.txt | 2 +- .../html.expected/template.error.txt | 2 +- .../dom.expected/template.error.txt | 2 +- .../html.expected/template.error.txt | 2 +- .../dom.expected/template.error.txt | 2 +- .../html.expected/template.error.txt | 2 +- .../dom.expected/template.error.txt | 2 +- .../html.expected/template.error.txt | 2 +- .../dom.expected/template.error.txt | 2 +- .../html.expected/template.error.txt | 2 +- .../dom.expected/template.error.txt | 2 +- .../html.expected/template.error.txt | 2 +- .../dom.expected/template.error.txt | 2 +- .../html.expected/template.error.txt | 2 +- .../dom.expected/template.error.txt | 2 +- .../html.expected/template.error.txt | 2 +- .../dom.expected/template.error.txt | 2 +- .../html.expected/template.error.txt | 2 +- .../dom.expected/template.error.txt | 2 +- .../html.expected/template.error.txt | 2 +- .../dom.expected/template.error.txt | 2 +- .../html.expected/template.error.txt | 2 +- .../dom.expected/template.error.txt | 2 +- .../html.expected/template.error.txt | 2 +- .../dom.expected/template.error.txt | 2 +- .../html.expected/template.error.txt | 2 +- .../dom.expected/template.error.txt | 2 +- .../html.expected/template.error.txt | 2 +- .../dom.expected/template.error.txt | 2 +- .../html.expected/template.error.txt | 2 +- .../dom.expected/template.error.txt | 2 +- .../html.expected/template.error.txt | 2 +- .../dom.expected/template.error.txt | 2 +- .../html.expected/template.error.txt | 2 +- .../dom.expected/template.error.txt | 2 +- .../html.expected/template.error.txt | 2 +- .../dom.expected/template.error.txt | 2 +- .../html.expected/template.error.txt | 2 +- .../dom.expected/template.error.txt | 2 +- .../html.expected/template.error.txt | 2 +- .../dom.expected/template.error.txt | 2 +- .../html.expected/template.error.txt | 2 +- .../dom.expected/template.error.txt | 2 +- .../html.expected/template.error.txt | 2 +- .../dom.expected/template.error.txt | 2 +- .../html.expected/template.error.txt | 2 +- .../dom.expected/template.error.txt | 2 +- .../html.expected/template.error.txt | 2 +- .../dom.expected/template.error.txt | 2 +- .../html.expected/template.error.txt | 2 +- .../dom.expected/template.error.txt | 2 +- .../html.expected/template.error.txt | 2 +- .../dom.expected/template.error.txt | 2 +- .../html.expected/template.error.txt | 2 +- .../dom.expected/template.error.txt | 2 +- .../html.expected/template.error.txt | 2 +- .../dom.expected/template.error.txt | 2 +- .../html.expected/template.error.txt | 2 +- .../dom.expected/template.error.txt | 2 +- .../html.expected/template.error.txt | 2 +- .../dom.expected/template.error.txt | 2 +- .../html.expected/template.error.txt | 2 +- .../template.error.txt | 2 +- .../dom.expected/template.error.txt | 2 +- .../template.error.txt | 2 +- .../html.expected/template.error.txt | 2 +- .../dom.expected/template.error.txt | 2 +- .../html.expected/template.error.txt | 2 +- .../dom.expected/template.error.txt | 2 +- .../html.expected/template.error.txt | 2 +- .../dom.expected/template.error.txt | 2 +- .../html.expected/template.error.txt | 2 +- .../dom.expected/template.error.txt | 2 +- .../html.expected/template.error.txt | 2 +- .../runtime-tags/src/translator/core/await.ts | 11 ++- .../runtime-tags/src/translator/core/const.ts | 9 ++- .../runtime-tags/src/translator/core/debug.ts | 5 +- .../src/translator/core/define.ts | 5 +- .../runtime-tags/src/translator/core/for.ts | 11 ++- .../src/translator/core/html-comment.ts | 4 +- .../src/translator/core/html-script.ts | 2 +- .../src/translator/core/html-style.ts | 2 +- .../runtime-tags/src/translator/core/id.ts | 8 +-- .../runtime-tags/src/translator/core/if.ts | 16 ++--- .../runtime-tags/src/translator/core/let.ts | 11 ++- .../src/translator/core/lifecycle.ts | 6 +- .../runtime-tags/src/translator/core/log.ts | 7 +- .../src/translator/core/return.ts | 11 ++- .../src/translator/core/script.ts | 8 +-- .../runtime-tags/src/translator/core/style.ts | 6 +- .../runtime-tags/src/translator/core/try.ts | 5 +- .../src/translator/util/assert.ts | 4 +- .../translator/visitors/tag/attribute-tag.ts | 2 +- .../src/translator/visitors/tag/custom-tag.ts | 8 +-- .../src/translator/visitors/tag/native-tag.ts | 2 +- 98 files changed, 219 insertions(+), 152 deletions(-) create mode 100644 .changeset/warm-hotels-argue.md create mode 100644 packages/runtime-tags/README.md diff --git a/.changeset/warm-hotels-argue.md b/.changeset/warm-hotels-argue.md new file mode 100644 index 000000000..d1f601540 --- /dev/null +++ b/.changeset/warm-hotels-argue.md @@ -0,0 +1,6 @@ +--- +"@marko/runtime-tags": patch +"@marko/translator-interop-class-tags": patch +--- + +Update error messages to markojs.com diff --git a/README.md b/README.md index ac9aacb0f..f2d5d4ab5 120000 --- a/README.md +++ b/README.md @@ -1 +1 @@ -packages/runtime-class/README.md +packages/runtime-tags/README.md \ No newline at end of file diff --git a/packages/runtime-tags/README.md b/packages/runtime-tags/README.md new file mode 100644 index 000000000..0597b78a4 --- /dev/null +++ b/packages/runtime-tags/README.md @@ -0,0 +1,72 @@ +
+ +# [Marko](https://markojs.com/) + +**A declarative, HTML-based language that makes building web apps fun 🔥** + +[![NPM](https://img.shields.io/npm/v/marko.svg)](https://www.npmjs.com/package/marko) +[![Discord Chat](https://img.shields.io/badge/discord-chat-7188da.svg)](https://discord.gg/RFGxYGs) +[![Continuous Integration status](https://github.com/marko-js/marko/actions/workflows/ci.yml/badge.svg)](https://github.com/marko-js/marko/actions/workflows/ci.yml) +[![Code coverage %](https://codecov.io/gh/marko-js/marko/branch/master/graph/badge.svg)](https://codecov.io/gh/marko-js/marko) +[![# of monthly downloads](https://img.shields.io/npm/dm/marko.svg)](https://npm-stat.com/charts.html?package=marko) +[![OpenSSF Best Practices](https://bestpractices.coreinfrastructure.org/projects/7029/badge)](https://bestpractices.coreinfrastructure.org/projects/7029) + +[Docs](https://markojs.com/docs/introduction/getting-started) ∙ [Try Online](https://markojs.com/playground) ∙ [Contribute](#contributors) ∙ [Get Support](#community--support) + +
+ +## Intro + +Marko is HTML _reimagined_ as a language for building dynamic and reactive user interfaces. Almost any valid HTML is valid Marko, and Marko extends HTML for building modern applications more declaratively. Among these extensions are [components](https://markojs.com/docs/reference/custom-tag), [conditionals](https://markojs.com/docs/reference/core-tag#if--else) and [loops](https://markojs.com/docs/reference/core-tag#for), and a full [reactivity system](https://markojs.com/docs/reference/reactivity). + +### Example Component + +The following renders a button and a counter of how many times the button has been pressed: + +**click-count.marko** + +```marko +// HTML + JavaScript = 💜 + + +``` + +## Getting Started + +1. `npm init marko` +2. Read the [docs](https://markojs.com/docs/introduction/getting-started) + +## Community & Support + + + +
+ + + +
+ +Hang out in our [Discord server](https://discord.gg/marko) to ask questions & discuss marko + +Keep up with the community on Bluesky at [@markojs.com](https://bsky.app/profile/markojs.com) + +Tweet to [@MarkoDevTeam](https://twitter.com/MarkoDevTeam) or use the [#markojs](https://twitter.com/search?q=%23markojs%20OR%20%40markodevteam&f=live) hashtag + +Browse the code, open issues, & make pull requests on [GitHub](https://github.com/marko-js/marko) + +
+ +### Contributors + +Marko would not be what it is without all those who have contributed ✨ + +[![All marko-js/marko GitHub contributors](https://opencollective.com/marko-js/contributors.svg?width=890&button=false)](https://github.com/marko-js/marko/graphs/contributors) + +### Get Involved! + +- Pull requests are welcome! +- Submit [GitHub issues](https://github.com/marko-js/marko/issues) for any feature enhancements, bugs, or documentation problems +- [Read the Contribution Tips and Guidelines](.github/CONTRIBUTING.md) +- Participants in this project agree to abide by [its Code of Conduct](https://github.com/eBay/.github/blob/main/CODE_OF_CONDUCT.md) diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-const-extra-attr/__snapshots__/dom.expected/template.error.txt b/packages/runtime-tags/src/__tests__/fixtures/error-const-extra-attr/__snapshots__/dom.expected/template.error.txt index d356f3558..d690d18b7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-const-extra-attr/__snapshots__/dom.expected/template.error.txt +++ b/packages/runtime-tags/src/__tests__/fixtures/error-const-extra-attr/__snapshots__/dom.expected/template.error.txt @@ -1,5 +1,5 @@ at packages/runtime-tags/src/__tests__/fixtures/error-const-extra-attr/template.marko:1:2 > 1 | - | ^^^^^ The [`` tag](https://next.markojs.com/docs/reference/core-tag#const) only supports the [`value=` attribute](https://next.markojs.com/docs/reference/language#shorthand-value). + | ^^^^^ The [`` tag](https://markojs.com/docs/reference/core-tag#const) only supports the [`value=` attribute](https://markojs.com/docs/reference/language#shorthand-value). 2 | \ No newline at end of file diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-const-extra-attr/__snapshots__/html.expected/template.error.txt b/packages/runtime-tags/src/__tests__/fixtures/error-const-extra-attr/__snapshots__/html.expected/template.error.txt index d356f3558..d690d18b7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-const-extra-attr/__snapshots__/html.expected/template.error.txt +++ b/packages/runtime-tags/src/__tests__/fixtures/error-const-extra-attr/__snapshots__/html.expected/template.error.txt @@ -1,5 +1,5 @@ at packages/runtime-tags/src/__tests__/fixtures/error-const-extra-attr/template.marko:1:2 > 1 | - | ^^^^^ The [`` tag](https://next.markojs.com/docs/reference/core-tag#const) only supports the [`value=` attribute](https://next.markojs.com/docs/reference/language#shorthand-value). + | ^^^^^ The [`` tag](https://markojs.com/docs/reference/core-tag#const) only supports the [`value=` attribute](https://markojs.com/docs/reference/language#shorthand-value). 2 | \ No newline at end of file diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-const-no-default-value/__snapshots__/dom.expected/template.error.txt b/packages/runtime-tags/src/__tests__/fixtures/error-const-no-default-value/__snapshots__/dom.expected/template.error.txt index 5d8e754fd..854ec6300 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-const-no-default-value/__snapshots__/dom.expected/template.error.txt +++ b/packages/runtime-tags/src/__tests__/fixtures/error-const-no-default-value/__snapshots__/dom.expected/template.error.txt @@ -1,5 +1,5 @@ at packages/runtime-tags/src/__tests__/fixtures/error-const-no-default-value/template.marko:1:2 > 1 | - | ^^^^^ The [`` tag](https://next.markojs.com/docs/reference/core-tag#const) requires a [`value=` attribute](https://next.markojs.com/docs/reference/language#shorthand-value). + | ^^^^^ The [`` tag](https://markojs.com/docs/reference/core-tag#const) requires a [`value=` attribute](https://markojs.com/docs/reference/language#shorthand-value). 2 | \ No newline at end of file diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-const-no-default-value/__snapshots__/html.expected/template.error.txt b/packages/runtime-tags/src/__tests__/fixtures/error-const-no-default-value/__snapshots__/html.expected/template.error.txt index 5d8e754fd..854ec6300 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-const-no-default-value/__snapshots__/html.expected/template.error.txt +++ b/packages/runtime-tags/src/__tests__/fixtures/error-const-no-default-value/__snapshots__/html.expected/template.error.txt @@ -1,5 +1,5 @@ at packages/runtime-tags/src/__tests__/fixtures/error-const-no-default-value/template.marko:1:2 > 1 | - | ^^^^^ The [`` tag](https://next.markojs.com/docs/reference/core-tag#const) requires a [`value=` attribute](https://next.markojs.com/docs/reference/language#shorthand-value). + | ^^^^^ The [`` tag](https://markojs.com/docs/reference/core-tag#const) requires a [`value=` attribute](https://markojs.com/docs/reference/language#shorthand-value). 2 | \ No newline at end of file diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-const-no-tag-var/__snapshots__/dom.expected/template.error.txt b/packages/runtime-tags/src/__tests__/fixtures/error-const-no-tag-var/__snapshots__/dom.expected/template.error.txt index cfb282ce2..6461bb3a6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-const-no-tag-var/__snapshots__/dom.expected/template.error.txt +++ b/packages/runtime-tags/src/__tests__/fixtures/error-const-no-tag-var/__snapshots__/dom.expected/template.error.txt @@ -1,5 +1,5 @@ at packages/runtime-tags/src/__tests__/fixtures/error-const-no-tag-var/template.marko:1:2 > 1 | - | ^^^^^ The [`` tag](https://next.markojs.com/docs/reference/core-tag#const) requires a [tag variable](https://next.markojs.com/docs/reference/language#tag-variables). + | ^^^^^ The [`` tag](https://markojs.com/docs/reference/core-tag#const) requires a [tag variable](https://markojs.com/docs/reference/language#tag-variables). 2 | \ No newline at end of file diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-const-no-tag-var/__snapshots__/html.expected/template.error.txt b/packages/runtime-tags/src/__tests__/fixtures/error-const-no-tag-var/__snapshots__/html.expected/template.error.txt index cfb282ce2..6461bb3a6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-const-no-tag-var/__snapshots__/html.expected/template.error.txt +++ b/packages/runtime-tags/src/__tests__/fixtures/error-const-no-tag-var/__snapshots__/html.expected/template.error.txt @@ -1,5 +1,5 @@ at packages/runtime-tags/src/__tests__/fixtures/error-const-no-tag-var/template.marko:1:2 > 1 | - | ^^^^^ The [`` tag](https://next.markojs.com/docs/reference/core-tag#const) requires a [tag variable](https://next.markojs.com/docs/reference/language#tag-variables). + | ^^^^^ The [`` tag](https://markojs.com/docs/reference/core-tag#const) requires a [tag variable](https://markojs.com/docs/reference/language#tag-variables). 2 | \ No newline at end of file diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-custom-tag-local-case/__snapshots__/dom.expected/template.error.txt b/packages/runtime-tags/src/__tests__/fixtures/error-custom-tag-local-case/__snapshots__/dom.expected/template.error.txt index c5dad8d1c..96aa385eb 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-custom-tag-local-case/__snapshots__/dom.expected/template.error.txt +++ b/packages/runtime-tags/src/__tests__/fixtures/error-custom-tag-local-case/__snapshots__/dom.expected/template.error.txt @@ -3,4 +3,4 @@ 1 | static const myTag = "div" 2 | > 3 | - | ^^^^^ Local variables must be in a [dynamic tag](https://next.markojs.com/docs/reference/language#dynamic-tags) unless they are PascalCase. Use `<${myTag}/>` or rename to `MyTag`. \ No newline at end of file + | ^^^^^ Local variables must be in a [dynamic tag](https://markojs.com/docs/reference/language#dynamic-tags) unless they are PascalCase. Use `<${myTag}/>` or rename to `MyTag`. \ No newline at end of file diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-custom-tag-local-case/__snapshots__/html.expected/template.error.txt b/packages/runtime-tags/src/__tests__/fixtures/error-custom-tag-local-case/__snapshots__/html.expected/template.error.txt index c5dad8d1c..96aa385eb 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-custom-tag-local-case/__snapshots__/html.expected/template.error.txt +++ b/packages/runtime-tags/src/__tests__/fixtures/error-custom-tag-local-case/__snapshots__/html.expected/template.error.txt @@ -3,4 +3,4 @@ 1 | static const myTag = "div" 2 | > 3 | - | ^^^^^ Local variables must be in a [dynamic tag](https://next.markojs.com/docs/reference/language#dynamic-tags) unless they are PascalCase. Use `<${myTag}/>` or rename to `MyTag`. \ No newline at end of file + | ^^^^^ Local variables must be in a [dynamic tag](https://markojs.com/docs/reference/language#dynamic-tags) unless they are PascalCase. Use `<${myTag}/>` or rename to `MyTag`. \ No newline at end of file diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-custom-tag-not-found/__snapshots__/dom.expected/template.error.txt b/packages/runtime-tags/src/__tests__/fixtures/error-custom-tag-not-found/__snapshots__/dom.expected/template.error.txt index 40aea6292..8cc92af34 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-custom-tag-not-found/__snapshots__/dom.expected/template.error.txt +++ b/packages/runtime-tags/src/__tests__/fixtures/error-custom-tag-not-found/__snapshots__/dom.expected/template.error.txt @@ -1,4 +1,4 @@ at packages/runtime-tags/src/__tests__/fixtures/error-custom-tag-not-found/template.marko:1:2 > 1 | - | ^^^^^ Unable to find entry point for [custom tag](https://next.markojs.com/docs/reference/custom-tag#relative-custom-tags) ``. \ No newline at end of file + | ^^^^^ Unable to find entry point for [custom tag](https://markojs.com/docs/reference/custom-tag#relative-custom-tags) ``. \ No newline at end of file diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-custom-tag-not-found/__snapshots__/html.expected/template.error.txt b/packages/runtime-tags/src/__tests__/fixtures/error-custom-tag-not-found/__snapshots__/html.expected/template.error.txt index 40aea6292..8cc92af34 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-custom-tag-not-found/__snapshots__/html.expected/template.error.txt +++ b/packages/runtime-tags/src/__tests__/fixtures/error-custom-tag-not-found/__snapshots__/html.expected/template.error.txt @@ -1,4 +1,4 @@ at packages/runtime-tags/src/__tests__/fixtures/error-custom-tag-not-found/template.marko:1:2 > 1 | - | ^^^^^ Unable to find entry point for [custom tag](https://next.markojs.com/docs/reference/custom-tag#relative-custom-tags) ``. \ No newline at end of file + | ^^^^^ Unable to find entry point for [custom tag](https://markojs.com/docs/reference/custom-tag#relative-custom-tags) ``. \ No newline at end of file diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-debug-extra-attr/__snapshots__/dom.expected/template.error.txt b/packages/runtime-tags/src/__tests__/fixtures/error-debug-extra-attr/__snapshots__/dom.expected/template.error.txt index 713fecc59..d05bdf271 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-debug-extra-attr/__snapshots__/dom.expected/template.error.txt +++ b/packages/runtime-tags/src/__tests__/fixtures/error-debug-extra-attr/__snapshots__/dom.expected/template.error.txt @@ -2,5 +2,5 @@ at packages/runtime-tags/src/__tests__/fixtures/error-debug-extra-attr/template.marko:2:2 1 | > 2 | - | ^^^^^ The [`` tag](https://next.markojs.com/docs/reference/core-tag#debug) only supports the [`value=` attribute](https://next.markojs.com/docs/reference/language#shorthand-value). + | ^^^^^ The [`` tag](https://markojs.com/docs/reference/core-tag#debug) only supports the [`value=` attribute](https://markojs.com/docs/reference/language#shorthand-value). 3 | \ No newline at end of file diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-debug-extra-attr/__snapshots__/html.expected/template.error.txt b/packages/runtime-tags/src/__tests__/fixtures/error-debug-extra-attr/__snapshots__/html.expected/template.error.txt index 713fecc59..d05bdf271 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-debug-extra-attr/__snapshots__/html.expected/template.error.txt +++ b/packages/runtime-tags/src/__tests__/fixtures/error-debug-extra-attr/__snapshots__/html.expected/template.error.txt @@ -2,5 +2,5 @@ at packages/runtime-tags/src/__tests__/fixtures/error-debug-extra-attr/template.marko:2:2 1 | > 2 | - | ^^^^^ The [`` tag](https://next.markojs.com/docs/reference/core-tag#debug) only supports the [`value=` attribute](https://next.markojs.com/docs/reference/language#shorthand-value). + | ^^^^^ The [`` tag](https://markojs.com/docs/reference/core-tag#debug) only supports the [`value=` attribute](https://markojs.com/docs/reference/language#shorthand-value). 3 | \ No newline at end of file diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-define-no-tag-var/__snapshots__/dom.expected/template.error.txt b/packages/runtime-tags/src/__tests__/fixtures/error-define-no-tag-var/__snapshots__/dom.expected/template.error.txt index 75da4eb76..237f6b4a6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-define-no-tag-var/__snapshots__/dom.expected/template.error.txt +++ b/packages/runtime-tags/src/__tests__/fixtures/error-define-no-tag-var/__snapshots__/dom.expected/template.error.txt @@ -1,5 +1,5 @@ at packages/runtime-tags/src/__tests__/fixtures/error-define-no-tag-var/template.marko:1:2 > 1 | Hello! - | ^^^^^^ The [`` tag](https://next.markojs.com/docs/reference/core-tag#define) requires a [tag variable](https://next.markojs.com/docs/reference/language#tag-variables). + | ^^^^^^ The [`` tag](https://markojs.com/docs/reference/core-tag#define) requires a [tag variable](https://markojs.com/docs/reference/language#tag-variables). 2 | \ No newline at end of file diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-define-no-tag-var/__snapshots__/html.expected/template.error.txt b/packages/runtime-tags/src/__tests__/fixtures/error-define-no-tag-var/__snapshots__/html.expected/template.error.txt index 75da4eb76..237f6b4a6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-define-no-tag-var/__snapshots__/html.expected/template.error.txt +++ b/packages/runtime-tags/src/__tests__/fixtures/error-define-no-tag-var/__snapshots__/html.expected/template.error.txt @@ -1,5 +1,5 @@ at packages/runtime-tags/src/__tests__/fixtures/error-define-no-tag-var/template.marko:1:2 > 1 | Hello! - | ^^^^^^ The [`` tag](https://next.markojs.com/docs/reference/core-tag#define) requires a [tag variable](https://next.markojs.com/docs/reference/language#tag-variables). + | ^^^^^^ The [`` tag](https://markojs.com/docs/reference/core-tag#define) requires a [tag variable](https://markojs.com/docs/reference/language#tag-variables). 2 | \ No newline at end of file diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-effect-body-content/__snapshots__/dom.expected/template.error.txt b/packages/runtime-tags/src/__tests__/fixtures/error-effect-body-content/__snapshots__/dom.expected/template.error.txt index bb56f0133..78e33ba82 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-effect-body-content/__snapshots__/dom.expected/template.error.txt +++ b/packages/runtime-tags/src/__tests__/fixtures/error-effect-body-content/__snapshots__/dom.expected/template.error.txt @@ -1,5 +1,5 @@ at packages/runtime-tags/src/__tests__/fixtures/error-effect-body-content/template.marko:1:2 > 1 | {})>Hello - | ^^^^^^ The [``](https://next.markojs.com/docs/reference/core-tag#effect) tag does not support body content. + | ^^^^^^ The [``](https://markojs.com/docs/reference/core-tag#effect) tag does not support body content. 2 | \ No newline at end of file diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-effect-body-content/__snapshots__/html.expected/template.error.txt b/packages/runtime-tags/src/__tests__/fixtures/error-effect-body-content/__snapshots__/html.expected/template.error.txt index bb56f0133..78e33ba82 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-effect-body-content/__snapshots__/html.expected/template.error.txt +++ b/packages/runtime-tags/src/__tests__/fixtures/error-effect-body-content/__snapshots__/html.expected/template.error.txt @@ -1,5 +1,5 @@ at packages/runtime-tags/src/__tests__/fixtures/error-effect-body-content/template.marko:1:2 > 1 | {})>Hello - | ^^^^^^ The [``](https://next.markojs.com/docs/reference/core-tag#effect) tag does not support body content. + | ^^^^^^ The [``](https://markojs.com/docs/reference/core-tag#effect) tag does not support body content. 2 | \ No newline at end of file diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-effect-extra-attr/__snapshots__/dom.expected/template.error.txt b/packages/runtime-tags/src/__tests__/fixtures/error-effect-extra-attr/__snapshots__/dom.expected/template.error.txt index 4fc296688..5ead2b00e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-effect-extra-attr/__snapshots__/dom.expected/template.error.txt +++ b/packages/runtime-tags/src/__tests__/fixtures/error-effect-extra-attr/__snapshots__/dom.expected/template.error.txt @@ -1,5 +1,5 @@ at packages/runtime-tags/src/__tests__/fixtures/error-effect-extra-attr/template.marko:1:20 > 1 | {}) y=1/> - | ^^^ The [`"} - | ^^^^^^^^^^^^^^^^^^^^^^^^ Unexpected content in [` 4 | \ No newline at end of file diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-script-attrs/__snapshots__/dom.expected/template.error.txt b/packages/runtime-tags/src/__tests__/fixtures/error-script-attrs/__snapshots__/dom.expected/template.error.txt index 7918a26ad..1aa5da95e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-script-attrs/__snapshots__/dom.expected/template.error.txt +++ b/packages/runtime-tags/src/__tests__/fixtures/error-script-attrs/__snapshots__/dom.expected/template.error.txt @@ -1,7 +1,7 @@ at packages/runtime-tags/src/__tests__/fixtures/error-script-attrs/template.marko:1:9 > 1 | 4 | \ No newline at end of file diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-script-attrs/__snapshots__/html.expected/error-script-placeholder/template.error.txt b/packages/runtime-tags/src/__tests__/fixtures/error-script-attrs/__snapshots__/html.expected/error-script-placeholder/template.error.txt index eb375e353..fa65d91da 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-script-attrs/__snapshots__/html.expected/error-script-placeholder/template.error.txt +++ b/packages/runtime-tags/src/__tests__/fixtures/error-script-attrs/__snapshots__/html.expected/error-script-placeholder/template.error.txt @@ -2,6 +2,6 @@ at packages/runtime-tags/src/__tests__/fixtures/error-script-attrs/error-script-placeholder/template.marko:2:3 1 | "} - | ^^^^^^^^^^^^^^^^^^^^^^^^ Unexpected content in [` 4 | \ No newline at end of file diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-script-attrs/__snapshots__/html.expected/template.error.txt b/packages/runtime-tags/src/__tests__/fixtures/error-script-attrs/__snapshots__/html.expected/template.error.txt index 7918a26ad..1aa5da95e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-script-attrs/__snapshots__/html.expected/template.error.txt +++ b/packages/runtime-tags/src/__tests__/fixtures/error-script-attrs/__snapshots__/html.expected/template.error.txt @@ -1,7 +1,7 @@ at packages/runtime-tags/src/__tests__/fixtures/error-script-attrs/template.marko:1:9 > 1 | 4 | \ No newline at end of file diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-script-placeholder/__snapshots__/dom.expected/template.error.txt b/packages/runtime-tags/src/__tests__/fixtures/error-script-placeholder/__snapshots__/dom.expected/template.error.txt index b11f926d3..0da3b68a8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-script-placeholder/__snapshots__/dom.expected/template.error.txt +++ b/packages/runtime-tags/src/__tests__/fixtures/error-script-placeholder/__snapshots__/dom.expected/template.error.txt @@ -2,6 +2,6 @@ at packages/runtime-tags/src/__tests__/fixtures/error-script-placeholder/template.marko:2:3 1 | "} - | ^^^^^^^^^^^^^^^^^^^^^^^^ Unexpected content in [` 4 | \ No newline at end of file diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-script-placeholder/__snapshots__/html.expected/template.error.txt b/packages/runtime-tags/src/__tests__/fixtures/error-script-placeholder/__snapshots__/html.expected/template.error.txt index b11f926d3..0da3b68a8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-script-placeholder/__snapshots__/html.expected/template.error.txt +++ b/packages/runtime-tags/src/__tests__/fixtures/error-script-placeholder/__snapshots__/html.expected/template.error.txt @@ -2,6 +2,6 @@ at packages/runtime-tags/src/__tests__/fixtures/error-script-placeholder/template.marko:2:3 1 | "} - | ^^^^^^^^^^^^^^^^^^^^^^^^ Unexpected content in [` 4 | \ No newline at end of file diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-style-attrs/__snapshots__/dom.expected/template.error.txt b/packages/runtime-tags/src/__tests__/fixtures/error-style-attrs/__snapshots__/dom.expected/template.error.txt index d24552448..d7f32d4f6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-style-attrs/__snapshots__/dom.expected/template.error.txt +++ b/packages/runtime-tags/src/__tests__/fixtures/error-style-attrs/__snapshots__/dom.expected/template.error.txt @@ -1,7 +1,7 @@ at packages/runtime-tags/src/__tests__/fixtures/error-style-attrs/template.marko:1:17 > 1 | 6 | \ No newline at end of file diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-style-placeholder/__snapshots__/html.expected/template.error.txt b/packages/runtime-tags/src/__tests__/fixtures/error-style-placeholder/__snapshots__/html.expected/template.error.txt index 7720af3e7..f16078a82 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-style-placeholder/__snapshots__/html.expected/template.error.txt +++ b/packages/runtime-tags/src/__tests__/fixtures/error-style-placeholder/__snapshots__/html.expected/template.error.txt @@ -3,7 +3,7 @@ 1 | 6 | \ No newline at end of file diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-compile-error/__snapshots__/dom.expected/template.error.txt b/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-compile-error/__snapshots__/dom.expected/template.error.txt index 5be9276ea..cea41fb75 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-compile-error/__snapshots__/dom.expected/template.error.txt +++ b/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-compile-error/__snapshots__/dom.expected/template.error.txt @@ -2,7 +2,7 @@ at packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-compile-error/template.marko:2:22 1 | > 2 | - | ^ The [`` tag](https://next.markojs.com/docs/reference/core-tag#let) [`valueChange=` attribute](https://next.markojs.com/docs/reference/core-tag#controllable-let) must be a function. + | ^ The [`` tag](https://markojs.com/docs/reference/core-tag#let) [`valueChange=` attribute](https://markojs.com/docs/reference/core-tag#controllable-let) must be a function. 3 | \ No newline at end of file diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-compile-error/__snapshots__/html.expected/template.error.txt b/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-compile-error/__snapshots__/html.expected/template.error.txt index 5be9276ea..cea41fb75 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-compile-error/__snapshots__/html.expected/template.error.txt +++ b/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-compile-error/__snapshots__/html.expected/template.error.txt @@ -2,7 +2,7 @@ at packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-compile-error/template.marko:2:22 1 | > 2 | - | ^ The [`` tag](https://next.markojs.com/docs/reference/core-tag#let) [`valueChange=` attribute](https://next.markojs.com/docs/reference/core-tag#controllable-let) must be a function. + | ^ The [`` tag](https://markojs.com/docs/reference/core-tag#let) [`valueChange=` attribute](https://markojs.com/docs/reference/core-tag#controllable-let) must be a function. 3 | \ No newline at end of file diff --git a/packages/runtime-tags/src/translator/core/await.ts b/packages/runtime-tags/src/translator/core/await.ts index bc0c5d438..97579662d 100644 --- a/packages/runtime-tags/src/translator/core/await.ts +++ b/packages/runtime-tags/src/translator/core/await.ts @@ -64,7 +64,7 @@ export default { throw tag .get("name") .buildCodeFrameError( - "The [`` tag](https://next.markojs.com/docs/reference/core-tag#await) requires a [`value=` attribute](https://next.markojs.com/docs/reference/language#shorthand-value).", + "The [`` tag](https://markojs.com/docs/reference/core-tag#await) requires a [`value=` attribute](https://markojs.com/docs/reference/language#shorthand-value).", ); } @@ -76,7 +76,7 @@ export default { throw tag .get("name") .buildCodeFrameError( - "The [`` tag](https://next.markojs.com/docs/reference/core-tag#await) only supports the [`value=` attribute](https://next.markojs.com/docs/reference/language#shorthand-value).", + "The [`` tag](https://markojs.com/docs/reference/core-tag#await) only supports the [`value=` attribute](https://markojs.com/docs/reference/language#shorthand-value).", ); } @@ -84,7 +84,7 @@ export default { throw tag .get("name") .buildCodeFrameError( - "The [`` tag](https://next.markojs.com/docs/reference/core-tag#await) requires [content](https://next.markojs.com/docs/reference/language#tag-content).", + "The [`` tag](https://markojs.com/docs/reference/core-tag#await) requires [content](https://markojs.com/docs/reference/language#tag-content).", ); } @@ -95,7 +95,7 @@ export default { throw tag .get("name") .buildCodeFrameError( - "The [`` tag](https://next.markojs.com/docs/reference/core-tag#await) only supports a single parameter.", + "The [`` tag](https://markojs.com/docs/reference/core-tag#await) only supports a single parameter.", ); } @@ -205,8 +205,7 @@ export default { autocomplete: [ { description: "Use to consume asynchronous an data.", - descriptionMoreURL: - "https://next.markojs.com/docs/reference/core-tag#await", + descriptionMoreURL: "https://markojs.com/docs/reference/core-tag#await", }, ], types: runtimeInfo.name + "/tags/await.d.marko", diff --git a/packages/runtime-tags/src/translator/core/const.ts b/packages/runtime-tags/src/translator/core/const.ts index 4d4b75bb0..a415396e9 100644 --- a/packages/runtime-tags/src/translator/core/const.ts +++ b/packages/runtime-tags/src/translator/core/const.ts @@ -30,7 +30,7 @@ export default { throw tag .get("name") .buildCodeFrameError( - "The [`` tag](https://next.markojs.com/docs/reference/core-tag#const) requires a [tag variable](https://next.markojs.com/docs/reference/language#tag-variables).", + "The [`` tag](https://markojs.com/docs/reference/core-tag#const) requires a [tag variable](https://markojs.com/docs/reference/language#tag-variables).", ); } @@ -38,7 +38,7 @@ export default { throw tag .get("name") .buildCodeFrameError( - "The [`` tag](https://next.markojs.com/docs/reference/core-tag#const) requires a [`value=` attribute](https://next.markojs.com/docs/reference/language#shorthand-value).", + "The [`` tag](https://markojs.com/docs/reference/core-tag#const) requires a [`value=` attribute](https://markojs.com/docs/reference/language#shorthand-value).", ); } @@ -50,7 +50,7 @@ export default { throw tag .get("name") .buildCodeFrameError( - "The [`` tag](https://next.markojs.com/docs/reference/core-tag#const) only supports the [`value=` attribute](https://next.markojs.com/docs/reference/language#shorthand-value).", + "The [`` tag](https://markojs.com/docs/reference/core-tag#const) only supports the [`value=` attribute](https://markojs.com/docs/reference/language#shorthand-value).", ); } @@ -107,8 +107,7 @@ export default { autocomplete: [ { description: "Use to create an constant binding.", - descriptionMoreURL: - "https://next.markojs.com/docs/reference/core-tag#const", + descriptionMoreURL: "https://markojs.com/docs/reference/core-tag#const", }, ], types: runtimeInfo.name + "/tags/const.d.marko", diff --git a/packages/runtime-tags/src/translator/core/debug.ts b/packages/runtime-tags/src/translator/core/debug.ts index 8c7f5d771..ec59dd4f8 100644 --- a/packages/runtime-tags/src/translator/core/debug.ts +++ b/packages/runtime-tags/src/translator/core/debug.ts @@ -30,7 +30,7 @@ export default { throw tag .get("name") .buildCodeFrameError( - "The [`` tag](https://next.markojs.com/docs/reference/core-tag#debug) only supports the [`value=` attribute](https://next.markojs.com/docs/reference/language#shorthand-value).", + "The [`` tag](https://markojs.com/docs/reference/core-tag#debug) only supports the [`value=` attribute](https://markojs.com/docs/reference/language#shorthand-value).", ); } }, @@ -58,8 +58,7 @@ export default { autocomplete: [ { description: "Debug on value change.", - descriptionMoreURL: - "https://next.markojs.com/docs/reference/core-tag#debug", + descriptionMoreURL: "https://markojs.com/docs/reference/core-tag#debug", }, ], types: runtimeInfo.name + "/tags/debug.d.marko", diff --git a/packages/runtime-tags/src/translator/core/define.ts b/packages/runtime-tags/src/translator/core/define.ts index 2f3107e84..aeb8c3c7a 100644 --- a/packages/runtime-tags/src/translator/core/define.ts +++ b/packages/runtime-tags/src/translator/core/define.ts @@ -30,7 +30,7 @@ export default { throw tag .get("name") .buildCodeFrameError( - "The [`` tag](https://next.markojs.com/docs/reference/core-tag#define) requires a [tag variable](https://next.markojs.com/docs/reference/language#tag-variables).", + "The [`` tag](https://markojs.com/docs/reference/core-tag#define) requires a [tag variable](https://markojs.com/docs/reference/language#tag-variables).", ); } @@ -103,8 +103,7 @@ export default { { description: "Use to create a constant object binding that can be rendered.", - descriptionMoreURL: - "https://next.markojs.com/docs/reference/core-tag#define", + descriptionMoreURL: "https://markojs.com/docs/reference/core-tag#define", }, ], types: runtimeInfo.name + "/tags/define.d.marko", diff --git a/packages/runtime-tags/src/translator/core/for.ts b/packages/runtime-tags/src/translator/core/for.ts index 97528b022..3a2aff826 100644 --- a/packages/runtime-tags/src/translator/core/for.ts +++ b/packages/runtime-tags/src/translator/core/for.ts @@ -80,7 +80,7 @@ export default { break; default: throw tag.buildCodeFrameError( - "The [`` tag](https://next.markojs.com/docs/reference/core-tag#for) requires an `of=`, `in=`, or `to=` attribute.", + "The [`` tag](https://markojs.com/docs/reference/core-tag#for) requires an `of=`, `in=`, or `to=` attribute.", ); } @@ -332,18 +332,15 @@ export default { snippet: "for|${1:value, index}| of=${3:array}", description: "Use to iterate over lists, object properties, or between ranges.", - descriptionMoreURL: - "https://next.markojs.com/docs/reference/core-tag#for", + descriptionMoreURL: "https://markojs.com/docs/reference/core-tag#for", }, { snippet: "for|${1:name, value}| in=${3:object}", - descriptionMoreURL: - "https://next.markojs.com/docs/reference/core-tag#for", + descriptionMoreURL: "https://markojs.com/docs/reference/core-tag#for", }, { snippet: "for|${1:index}| to=${2:number}", - descriptionMoreURL: - "https://next.markojs.com/docs/reference/core-tag#for", + descriptionMoreURL: "https://markojs.com/docs/reference/core-tag#for", }, ], } satisfies Tag; diff --git a/packages/runtime-tags/src/translator/core/html-comment.ts b/packages/runtime-tags/src/translator/core/html-comment.ts index 2eee3c5a5..bad894517 100644 --- a/packages/runtime-tags/src/translator/core/html-comment.ts +++ b/packages/runtime-tags/src/translator/core/html-comment.ts @@ -63,7 +63,7 @@ export default { throw tag .get("var") .buildCodeFrameError( - "The [`` tag](https://next.markojs.com/docs/reference/core-tag#html-comment) tag variable cannot be destructured.", + "The [`` tag](https://markojs.com/docs/reference/core-tag#html-comment) tag variable cannot be destructured.", ); } needsBinding = true; @@ -244,7 +244,7 @@ export default { description: "Use to create an html comment that is not stripped from the output.", descriptionMoreURL: - "https://next.markojs.com/docs/reference/core-tag#html-comment", + "https://markojs.com/docs/reference/core-tag#html-comment", }, ], } as Tag; diff --git a/packages/runtime-tags/src/translator/core/html-script.ts b/packages/runtime-tags/src/translator/core/html-script.ts index 5aa87b0af..7c67443be 100644 --- a/packages/runtime-tags/src/translator/core/html-script.ts +++ b/packages/runtime-tags/src/translator/core/html-script.ts @@ -484,7 +484,7 @@ export default { description: "Use instead of `