@markdy/core 0.8.21 → 0.8.22

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/index.js +4 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1917,7 +1917,8 @@ function parseStringToken(raw) {
1917
1917
  return null;
1918
1918
  }
1919
1919
  function splitTargets(raw) {
1920
- return raw.split(/[\s,]+/).map((t) => t.trim()).filter(Boolean);
1920
+ const tokens = raw.match(/"(?:[^"\\]|\\.)*"|[^\s,]+/g) ?? [];
1921
+ return tokens.map((token) => token.trim()).filter((token) => token.length > 0 && !token.startsWith('"'));
1921
1922
  }
1922
1923
  function splitOutsideQuotes(raw, separator) {
1923
1924
  const parts = [];
@@ -2375,7 +2376,8 @@ function validateReferences(ast) {
2375
2376
  }
2376
2377
  }
2377
2378
  function detectFlowCycles(ast) {
2378
- if (ast.meta.type === "state") return;
2379
+ const dtype = ast.meta.type ?? "architecture";
2380
+ if (dtype !== "architecture" && dtype !== "flowchart") return;
2379
2381
  const seen = /* @__PURE__ */ new Set();
2380
2382
  const adj = /* @__PURE__ */ new Map();
2381
2383
  const ensure = (id) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markdy/core",
3
- "version": "0.8.21",
3
+ "version": "0.8.22",
4
4
  "description": "Diagram-native MarkdyScript parser and compiler (auto-layout, edge routing, cue scheduling) — zero runtime dependencies.",
5
5
  "license": "MIT",
6
6
  "type": "module",