@statorjs/language-server 0.1.19 → 0.1.20

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.
Files changed (2) hide show
  1. package/dist/server.cjs +6 -0
  2. package/package.json +2 -2
package/dist/server.cjs CHANGED
@@ -45209,6 +45209,12 @@ function compile(source, opts = {}) {
45209
45209
  const script = scripts.join("\n");
45210
45210
  if (script.trim()) {
45211
45211
  if (analyzeScriptClasses(script).length > 0) {
45212
+ if (frontmatter.trim()) {
45213
+ throw new CompileError(
45214
+ `stator: an island file (a template with a StatorElement <script>) can't have frontmatter \u2014 the fence would never run: the island's shell renders from props. Move the server work into the route or component that renders this island and pass the results as props.`,
45215
+ locAt(source, 0, opts.id)
45216
+ );
45217
+ }
45212
45218
  return compileClient(template, script, {
45213
45219
  hash,
45214
45220
  scopeAttr,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@statorjs/language-server",
3
- "version": "0.1.19",
3
+ "version": "0.1.20",
4
4
  "description": "Volar-based language server for .stator files.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -33,7 +33,7 @@
33
33
  "volar-service-typescript": "0.0.71",
34
34
  "vscode-css-languageservice": "^6.3.0",
35
35
  "vscode-uri": "^3.0.8",
36
- "@statorjs/stator": "2.0.1"
36
+ "@statorjs/stator": "2.0.2"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "typescript": "^5.6.0"