@bpmnkit/core 1.0.0 → 1.2.0

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 (73) hide show
  1. package/README.md +30 -3
  2. package/dist/bpmn/agentic.js +3 -1
  3. package/dist/bpmn/auto-layout.js +184 -15
  4. package/dist/bpmn/bpmn-builder.js +69 -7
  5. package/dist/bpmn/bpmn-model.d.ts +78 -0
  6. package/dist/bpmn/bpmn-parser.js +195 -37
  7. package/dist/bpmn/bpmn-serializer.js +121 -72
  8. package/dist/bpmn/bpmnlint.d.ts +153 -0
  9. package/dist/bpmn/bpmnlint.js +364 -0
  10. package/dist/bpmn/camunda-compat-data.d.ts +165 -0
  11. package/dist/bpmn/camunda-compat-data.js +423 -0
  12. package/dist/bpmn/camunda-compat-feel.d.ts +68 -0
  13. package/dist/bpmn/camunda-compat-feel.js +338 -0
  14. package/dist/bpmn/camunda-compat.d.ts +120 -0
  15. package/dist/bpmn/camunda-compat.js +1677 -0
  16. package/dist/bpmn/camunda7/juel.d.ts +41 -0
  17. package/dist/bpmn/camunda7/juel.js +333 -0
  18. package/dist/bpmn/camunda7/migrate.d.ts +72 -0
  19. package/dist/bpmn/camunda7/migrate.js +1152 -0
  20. package/dist/bpmn/compact.d.ts +4 -0
  21. package/dist/bpmn/compact.js +80 -0
  22. package/dist/bpmn/full-operations.js +5 -2
  23. package/dist/bpmn/label-style.d.ts +51 -0
  24. package/dist/bpmn/label-style.js +116 -0
  25. package/dist/bpmn/lint.d.ts +23 -3
  26. package/dist/bpmn/lint.js +47 -10
  27. package/dist/bpmn/optimize/bpmnlint-rules.d.ts +31 -0
  28. package/dist/bpmn/optimize/bpmnlint-rules.js +916 -0
  29. package/dist/bpmn/optimize/deploy.d.ts +8 -2
  30. package/dist/bpmn/optimize/deploy.js +16 -3
  31. package/dist/bpmn/optimize/index.js +11 -2
  32. package/dist/bpmn/optimize/patterns.js +3 -0
  33. package/dist/bpmn/optimize/types.d.ts +14 -0
  34. package/dist/bpmn/optimize/variable-flow.js +4 -1
  35. package/dist/bpmn/process-delta.d.ts +88 -0
  36. package/dist/bpmn/process-delta.js +236 -0
  37. package/dist/bpmn/process-text-writer.d.ts +53 -0
  38. package/dist/bpmn/process-text-writer.js +193 -0
  39. package/dist/bpmn/process-text.d.ts +175 -0
  40. package/dist/bpmn/process-text.js +1255 -0
  41. package/dist/bpmn/process-types.d.ts +112 -0
  42. package/dist/bpmn/process-types.js +490 -0
  43. package/dist/bpmn/svg.js +51 -22
  44. package/dist/doc/docx.d.ts +20 -0
  45. package/dist/doc/docx.js +253 -0
  46. package/dist/doc/html.d.ts +21 -0
  47. package/dist/doc/html.js +303 -0
  48. package/dist/doc/index.d.ts +7 -0
  49. package/dist/doc/index.js +5 -0
  50. package/dist/doc/markdown.d.ts +11 -0
  51. package/dist/doc/markdown.js +160 -0
  52. package/dist/doc/model.d.ts +129 -0
  53. package/dist/doc/model.js +617 -0
  54. package/dist/doc/zip.d.ts +5 -0
  55. package/dist/doc/zip.js +75 -0
  56. package/dist/index.d.ts +22 -0
  57. package/dist/index.js +11 -0
  58. package/dist/layout/annotations.d.ts +4 -2
  59. package/dist/layout/annotations.js +31 -2
  60. package/dist/layout/collaboration/ordering.d.ts +8 -0
  61. package/dist/layout/collaboration/ordering.js +57 -18
  62. package/dist/layout/orthogonal.d.ts +32 -0
  63. package/dist/layout/orthogonal.js +367 -0
  64. package/dist/layout/repair.d.ts +31 -0
  65. package/dist/layout/repair.js +220 -0
  66. package/dist/layout/semantic/route.js +45 -3
  67. package/dist/node/bpmnlint.d.ts +109 -0
  68. package/dist/node/bpmnlint.js +198 -0
  69. package/dist/node/index.d.ts +2 -0
  70. package/dist/node/index.js +1 -0
  71. package/dist/xml/xml-patch.d.ts +21 -0
  72. package/dist/xml/xml-patch.js +27 -1
  73. package/package.json +2 -2
@@ -0,0 +1,109 @@
1
+ /**
2
+ * Finding a project's `.bpmnlintrc` and, when the project has installed
3
+ * bpmnlint itself, running it.
4
+ *
5
+ * bpmnlint is never a dependency of BPMN Kit. It is loaded — with a dynamic
6
+ * `import()` — from the project that owns the `.bpmnlintrc`, the way ESLint
7
+ * integrations load a project's own ESLint. That is what makes third-party
8
+ * `bpmnlint-plugin-*` rules work: they resolve from the project's
9
+ * `node_modules`, exactly as they do for the `bpmnlint` CLI.
10
+ *
11
+ * When bpmnlint is not installed, nothing is lost but the plugin rules: the
12
+ * config still governs BPMN Kit's own equivalents (`applyBpmnlintConfig`).
13
+ *
14
+ * @packageDocumentation
15
+ */
16
+ import { type BpmnlintConfig, type ResolvedBpmnlintConfig } from "../bpmn/bpmnlint.js";
17
+ import type { OptimizationSeverity } from "../bpmn/optimize/types.js";
18
+ /** The file name bpmnlint reads its configuration from. */
19
+ export declare const BPMNLINTRC = ".bpmnlintrc";
20
+ /**
21
+ * Looks for a `.bpmnlintrc` in `startDir` and each directory above it.
22
+ *
23
+ * @param startDir - Where to start, usually the directory of the file being linted.
24
+ * @returns The absolute path of the nearest config, or `undefined`.
25
+ */
26
+ export declare function findBpmnlintrc(startDir: string): Promise<string | undefined>;
27
+ /**
28
+ * Reads and parses a `.bpmnlintrc`.
29
+ *
30
+ * @param path - The file to read.
31
+ * @throws With the path in the message when the file is not a valid config.
32
+ */
33
+ export declare function readBpmnlintrc(path: string): Promise<BpmnlintConfig>;
34
+ /** One problem reported by real bpmnlint. */
35
+ export interface BpmnlintReport {
36
+ /** The rule that reported it, as bpmnlint names it (`label-required`, `camunda-compat/timer`). */
37
+ rule: string;
38
+ severity: OptimizationSeverity;
39
+ message: string;
40
+ /** The element it concerns, when the rule named one. */
41
+ elementId?: string;
42
+ /** The rule's documentation page, when it declares one. */
43
+ documentationUrl?: string;
44
+ }
45
+ export type RunBpmnlintResult = {
46
+ status: "ok";
47
+ /** The version of bpmnlint that ran. */
48
+ version: string;
49
+ reports: BpmnlintReport[];
50
+ /**
51
+ * The rules bpmnlint actually applied, plugin configs included — what
52
+ * `applyBpmnlintConfig({ delegated: true })` needs to know which BPMN
53
+ * Kit findings bpmnlint has already covered.
54
+ */
55
+ config: ResolvedBpmnlintConfig;
56
+ }
57
+ /** bpmnlint (or bpmn-moddle, which it parses with) is not installed in the project. */
58
+ | {
59
+ status: "unavailable";
60
+ missing: string[];
61
+ }
62
+ /** bpmnlint is installed but could not lint — an unknown plugin, a broken rule, bad XML. */
63
+ | {
64
+ status: "failed";
65
+ error: string;
66
+ };
67
+ /**
68
+ * Lints a diagram with the project's own bpmnlint, if the project has one.
69
+ *
70
+ * @param xml - The diagram source.
71
+ * @param config - The parsed `.bpmnlintrc`.
72
+ * @param projectDir - Where bpmnlint, bpmn-moddle, plugins and moddle
73
+ * extensions are resolved from — the `.bpmnlintrc`'s directory.
74
+ */
75
+ export declare function runBpmnlint(xml: string, config: BpmnlintConfig, projectDir: string): Promise<RunBpmnlintResult>;
76
+ /** What a host needs to honour a project's `.bpmnlintrc` for one file. */
77
+ export interface BpmnlintSetup {
78
+ /** The `.bpmnlintrc` that applies. */
79
+ path: string;
80
+ /** The rules to apply to BPMN Kit's findings. */
81
+ config: ResolvedBpmnlintConfig;
82
+ /** True when real bpmnlint ran the rules — pass as `delegated`/`bpmnlintDelegated`. */
83
+ delegated: boolean;
84
+ /** Real bpmnlint's findings; empty when it did not run. */
85
+ reports: BpmnlintReport[];
86
+ /** Why real bpmnlint did not run, when it is installed but failed. */
87
+ failure?: string;
88
+ /** The bpmnlint version that ran, when one did. */
89
+ version?: string;
90
+ }
91
+ /**
92
+ * Finds the `.bpmnlintrc` governing a file and prepares it: parses it, and
93
+ * runs the project's own bpmnlint when there is one.
94
+ *
95
+ * When real bpmnlint runs, its view of the config wins — it can expand
96
+ * `plugin:` configs this package cannot — and `delegated` is true, so the
97
+ * caller drops BPMN Kit's equivalents of the rules bpmnlint just reported.
98
+ * When it is not installed, or fails, BPMN Kit's equivalents stand in.
99
+ *
100
+ * @param filePath - The diagram being linted.
101
+ * @param xml - Its contents.
102
+ * @param options - `runBpmnlint: false` skips real bpmnlint even if installed.
103
+ * @returns `undefined` when no `.bpmnlintrc` applies.
104
+ * @throws When the `.bpmnlintrc` found is not a valid config.
105
+ */
106
+ export declare function prepareBpmnlint(filePath: string, xml: string, options?: {
107
+ runBpmnlint?: boolean;
108
+ }): Promise<BpmnlintSetup | undefined>;
109
+ //# sourceMappingURL=bpmnlint.d.ts.map
@@ -0,0 +1,198 @@
1
+ /**
2
+ * Finding a project's `.bpmnlintrc` and, when the project has installed
3
+ * bpmnlint itself, running it.
4
+ *
5
+ * bpmnlint is never a dependency of BPMN Kit. It is loaded — with a dynamic
6
+ * `import()` — from the project that owns the `.bpmnlintrc`, the way ESLint
7
+ * integrations load a project's own ESLint. That is what makes third-party
8
+ * `bpmnlint-plugin-*` rules work: they resolve from the project's
9
+ * `node_modules`, exactly as they do for the `bpmnlint` CLI.
10
+ *
11
+ * When bpmnlint is not installed, nothing is lost but the plugin rules: the
12
+ * config still governs BPMN Kit's own equivalents (`applyBpmnlintConfig`).
13
+ *
14
+ * @packageDocumentation
15
+ */
16
+ import { readFile, stat } from "node:fs/promises";
17
+ import { createRequire } from "node:module";
18
+ import { dirname, join, resolve } from "node:path";
19
+ import { pathToFileURL } from "node:url";
20
+ import { parseBpmnlintConfig, resolveBpmnlintConfig, } from "../bpmn/bpmnlint.js";
21
+ /** The file name bpmnlint reads its configuration from. */
22
+ export const BPMNLINTRC = ".bpmnlintrc";
23
+ /**
24
+ * Looks for a `.bpmnlintrc` in `startDir` and each directory above it.
25
+ *
26
+ * @param startDir - Where to start, usually the directory of the file being linted.
27
+ * @returns The absolute path of the nearest config, or `undefined`.
28
+ */
29
+ export async function findBpmnlintrc(startDir) {
30
+ let dir = resolve(startDir);
31
+ while (true) {
32
+ const candidate = join(dir, BPMNLINTRC);
33
+ try {
34
+ if ((await stat(candidate)).isFile())
35
+ return candidate;
36
+ }
37
+ catch {
38
+ // Not here — keep walking up.
39
+ }
40
+ const parent = dirname(dir);
41
+ if (parent === dir)
42
+ return undefined;
43
+ dir = parent;
44
+ }
45
+ }
46
+ /**
47
+ * Reads and parses a `.bpmnlintrc`.
48
+ *
49
+ * @param path - The file to read.
50
+ * @throws With the path in the message when the file is not a valid config.
51
+ */
52
+ export async function readBpmnlintrc(path) {
53
+ const text = await readFile(path, "utf-8");
54
+ try {
55
+ return parseBpmnlintConfig(text);
56
+ }
57
+ catch (err) {
58
+ throw new Error(`${path}: ${err.message}`);
59
+ }
60
+ }
61
+ const REPORT_SEVERITY = {
62
+ error: "error",
63
+ "rule-error": "error",
64
+ warn: "warning",
65
+ info: "info",
66
+ };
67
+ /** A module's export, whether it came through as a named ESM export or CommonJS `module.exports`. */
68
+ function exported(mod, name) {
69
+ const record = mod;
70
+ return (record[name] ?? record.default?.[name]);
71
+ }
72
+ /**
73
+ * Lints a diagram with the project's own bpmnlint, if the project has one.
74
+ *
75
+ * @param xml - The diagram source.
76
+ * @param config - The parsed `.bpmnlintrc`.
77
+ * @param projectDir - Where bpmnlint, bpmn-moddle, plugins and moddle
78
+ * extensions are resolved from — the `.bpmnlintrc`'s directory.
79
+ */
80
+ export async function runBpmnlint(xml, config, projectDir) {
81
+ const projectRequire = createRequire(join(resolve(projectDir), "__placeholder__.js"));
82
+ const locate = (specifier) => {
83
+ try {
84
+ return projectRequire.resolve(specifier);
85
+ }
86
+ catch {
87
+ return undefined;
88
+ }
89
+ };
90
+ const paths = {
91
+ bpmnlint: locate("bpmnlint"),
92
+ resolver: locate("bpmnlint/lib/resolver/node-resolver"),
93
+ moddle: locate("bpmn-moddle"),
94
+ };
95
+ const missing = [
96
+ ...(paths.bpmnlint === undefined || paths.resolver === undefined ? ["bpmnlint"] : []),
97
+ ...(paths.moddle === undefined ? ["bpmn-moddle"] : []),
98
+ ];
99
+ if (paths.bpmnlint === undefined || paths.resolver === undefined || paths.moddle === undefined) {
100
+ return { status: "unavailable", missing };
101
+ }
102
+ try {
103
+ // One at a time: bpmnlint is CommonJS that `require()`s ESM shared with
104
+ // bpmn-moddle, and Node refuses that require while a concurrent import()
105
+ // of the same ESM is still loading.
106
+ const moddleModule = await import(pathToFileURL(paths.moddle).href);
107
+ const lintModule = await import(pathToFileURL(paths.bpmnlint).href);
108
+ const resolverModule = await import(pathToFileURL(paths.resolver).href);
109
+ const LinterClass = exported(lintModule, "Linter");
110
+ const NodeResolver = resolverModule.default;
111
+ const Moddle = exported(moddleModule, "BpmnModdle") ??
112
+ moddleModule.default;
113
+ if (LinterClass === undefined || NodeResolver === undefined || Moddle === undefined) {
114
+ return {
115
+ status: "failed",
116
+ error: "the installed bpmnlint or bpmn-moddle does not export the expected API",
117
+ };
118
+ }
119
+ const extensions = {};
120
+ for (const [prefix, path] of Object.entries(config.moddleExtensions ?? {})) {
121
+ extensions[prefix] = projectRequire(path);
122
+ }
123
+ const { rootElement, warnings = [] } = await new Moddle(extensions).fromXML(xml);
124
+ const linter = new LinterClass({
125
+ config,
126
+ resolver: new NodeResolver({ require: projectRequire }),
127
+ });
128
+ const [results, effective] = await Promise.all([
129
+ linter.lint(rootElement),
130
+ linter.resolveConfiguredRules(config),
131
+ ]);
132
+ // bpmnlint's CLI reports import warnings as errors under no rule; so do we.
133
+ const reports = warnings.map((warning) => ({
134
+ rule: "bpmnlint/import",
135
+ severity: "error",
136
+ message: `Import warning: ${warning.message.split("\n")[0]}`,
137
+ ...(warning.element?.id !== undefined ? { elementId: warning.element.id } : {}),
138
+ }));
139
+ for (const [rule, ruleReports] of Object.entries(results)) {
140
+ for (const report of ruleReports) {
141
+ const url = report.meta?.documentation?.url;
142
+ reports.push({
143
+ rule,
144
+ severity: REPORT_SEVERITY[report.category] ?? "error",
145
+ message: report.category === "rule-error" ? `Rule failed: ${report.message}` : report.message,
146
+ ...(report.id !== undefined ? { elementId: report.id } : {}),
147
+ ...(url !== undefined ? { documentationUrl: url } : {}),
148
+ });
149
+ }
150
+ }
151
+ const version = projectRequire("bpmnlint/package.json").version;
152
+ return { status: "ok", version, reports, config: resolveBpmnlintConfig({ rules: effective }) };
153
+ }
154
+ catch (err) {
155
+ return { status: "failed", error: err.message };
156
+ }
157
+ }
158
+ /**
159
+ * Finds the `.bpmnlintrc` governing a file and prepares it: parses it, and
160
+ * runs the project's own bpmnlint when there is one.
161
+ *
162
+ * When real bpmnlint runs, its view of the config wins — it can expand
163
+ * `plugin:` configs this package cannot — and `delegated` is true, so the
164
+ * caller drops BPMN Kit's equivalents of the rules bpmnlint just reported.
165
+ * When it is not installed, or fails, BPMN Kit's equivalents stand in.
166
+ *
167
+ * @param filePath - The diagram being linted.
168
+ * @param xml - Its contents.
169
+ * @param options - `runBpmnlint: false` skips real bpmnlint even if installed.
170
+ * @returns `undefined` when no `.bpmnlintrc` applies.
171
+ * @throws When the `.bpmnlintrc` found is not a valid config.
172
+ */
173
+ export async function prepareBpmnlint(filePath, xml, options = {}) {
174
+ const path = await findBpmnlintrc(dirname(resolve(filePath)));
175
+ if (path === undefined)
176
+ return undefined;
177
+ const raw = await readBpmnlintrc(path);
178
+ const fallback = resolveBpmnlintConfig(raw);
179
+ if (options.runBpmnlint === false) {
180
+ return { path, config: fallback, delegated: false, reports: [] };
181
+ }
182
+ const run = await runBpmnlint(xml, raw, dirname(path));
183
+ switch (run.status) {
184
+ case "ok":
185
+ return {
186
+ path,
187
+ config: run.config,
188
+ delegated: true,
189
+ reports: run.reports,
190
+ version: run.version,
191
+ };
192
+ case "failed":
193
+ return { path, config: fallback, delegated: false, reports: [], failure: run.error };
194
+ case "unavailable":
195
+ return { path, config: fallback, delegated: false, reports: [] };
196
+ }
197
+ }
198
+ //# sourceMappingURL=bpmnlint.js.map
@@ -7,4 +7,6 @@
7
7
  */
8
8
  export { writeBpmn } from "./write.js";
9
9
  export type { WriteBpmnOptions, WriteBpmnResult } from "./write.js";
10
+ export { BPMNLINTRC, findBpmnlintrc, prepareBpmnlint, readBpmnlintrc, runBpmnlint, } from "./bpmnlint.js";
11
+ export type { BpmnlintReport, BpmnlintSetup, RunBpmnlintResult } from "./bpmnlint.js";
10
12
  //# sourceMappingURL=index.d.ts.map
@@ -6,4 +6,5 @@
6
6
  * `node:` builtins and keeps working in browsers, workers and edge runtimes.
7
7
  */
8
8
  export { writeBpmn } from "./write.js";
9
+ export { BPMNLINTRC, findBpmnlintrc, prepareBpmnlint, readBpmnlintrc, runBpmnlint, } from "./bpmnlint.js";
9
10
  //# sourceMappingURL=index.js.map
@@ -47,6 +47,27 @@ export interface PreserveOptions {
47
47
  * `exportPreserving` in the BPMN module.
48
48
  */
49
49
  readonly droppedAttributes?: "remove" | "keep";
50
+ /**
51
+ * What to do about an attribute whose value the update spells as a different
52
+ * number — `x="30.0"` against `x="30"`.
53
+ *
54
+ * - `"rewrite"` (default) — write the update's spelling.
55
+ * - `"keep"` — keep the original's. A model that stores coordinates as numbers
56
+ * writes them back in its own spelling, and files from other tools use
57
+ * another; keeping theirs is only safe when re-reading gives the same model,
58
+ * which `preserveFormattingVerified` checks.
59
+ */
60
+ readonly equalNumbers?: "rewrite" | "keep";
61
+ /**
62
+ * What to do about an element the update drops that has no attributes, no
63
+ * children and no text — `<extensionElements/>`.
64
+ *
65
+ * - `"remove"` (default) — take it out, because the update says so.
66
+ * - `"keep"` — leave it. A serializer omits an empty container it has nothing
67
+ * to put in. Keeping it is only safe when re-reading gives the same model,
68
+ * which `preserveFormattingVerified` checks.
69
+ */
70
+ readonly droppedEmptyElements?: "remove" | "keep";
50
71
  }
51
72
  /**
52
73
  * Rewrites `original` to say what `updated` says, changing as little as it can.
@@ -18,6 +18,13 @@
18
18
  */
19
19
  import { escapeAttr, escapeText } from "./xml-parser.js";
20
20
  import { parseXmlSpans } from "./xml-spans.js";
21
+ /** Whether two attribute values are the same finite number spelled differently. */
22
+ function sameNumber(a, b) {
23
+ if (a.trim() === "" || b.trim() === "")
24
+ return false;
25
+ const x = Number(a);
26
+ return Number.isFinite(x) && x === Number(b);
27
+ }
21
28
  const WHITESPACE = new Set([" ", "\t", "\n", "\r"]);
22
29
  function isBlank(text) {
23
30
  return text.trim() === "";
@@ -214,6 +221,8 @@ function diffAttributes(original, a, b, edits, settings) {
214
221
  // rewriting one into the other is a diff that says nothing.
215
222
  if (present.value === wanted.value)
216
223
  continue;
224
+ if (settings.equalNumbers === "keep" && sameNumber(present.value, wanted.value))
225
+ continue;
217
226
  edits.push({ start: present.start, end: present.end, text: escapeAttr(wanted.value) });
218
227
  }
219
228
  if (settings.droppedAttributes === "keep")
@@ -262,6 +271,10 @@ function attributesOf(a, b) {
262
271
  }
263
272
  return parts.join("");
264
273
  }
274
+ /** An element that says nothing: no attributes, no children, no text. */
275
+ function isEmpty(element) {
276
+ return element.attributes.size === 0 && element.children.length === 0 && isBlank(element.text);
277
+ }
265
278
  function diffChildren(original, updated, a, b, edits, settings) {
266
279
  const aKeys = a.children.map(childKey);
267
280
  const bKeys = b.children.map(childKey);
@@ -277,6 +290,8 @@ function diffChildren(original, updated, a, b, edits, settings) {
277
290
  for (const [index, child] of a.children.entries()) {
278
291
  const match = pairing[index] ?? -1;
279
292
  if (match < 0) {
293
+ if (settings.droppedEmptyElements === "keep" && isEmpty(child))
294
+ continue;
280
295
  // Take the whitespace that put the child on its own line with it;
281
296
  // anything else between siblings — a comment — stays where it is.
282
297
  edits.push({ start: whitespaceStart(original, child.start), end: child.end, text: "" });
@@ -401,6 +416,8 @@ export function preserveFormatting(original, updated, options = {}) {
401
416
  diffElement(original, updated, before, after, edits, {
402
417
  siblingOrder: options.siblingOrder ?? "follow",
403
418
  droppedAttributes: options.droppedAttributes ?? "remove",
419
+ equalNumbers: options.equalNumbers ?? "rewrite",
420
+ droppedEmptyElements: options.droppedEmptyElements ?? "remove",
404
421
  });
405
422
  if (edits.length === 0)
406
423
  return original;
@@ -436,7 +453,16 @@ export function preserveFormattingVerified(original, updated, read) {
436
453
  }
437
454
  // Most to least faithful to the file.
438
455
  const attempts = [
439
- ["preserved", { siblingOrder: "keep", droppedAttributes: "keep" }],
456
+ [
457
+ "preserved",
458
+ {
459
+ siblingOrder: "keep",
460
+ droppedAttributes: "keep",
461
+ equalNumbers: "keep",
462
+ droppedEmptyElements: "keep",
463
+ },
464
+ ],
465
+ ["preserved", { siblingOrder: "keep", equalNumbers: "keep" }],
440
466
  ["preserved", { siblingOrder: "keep" }],
441
467
  ["reordered", { siblingOrder: "follow" }],
442
468
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bpmnkit/core",
3
- "version": "1.0.0",
3
+ "version": "1.2.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -24,7 +24,7 @@
24
24
  "node": ">=20"
25
25
  },
26
26
  "dependencies": {
27
- "@bpmnkit/feel": "^1.0.0"
27
+ "@bpmnkit/feel": "^1.1.0"
28
28
  },
29
29
  "description": "TypeScript-first BPMN 2.0 SDK — parse, build, layout, and optimize diagrams",
30
30
  "keywords": [