Skip to content

Commit cc67020

Browse files
committed
deps: update @bpmn-io/feel-lint to 2.0.1
Related to camunda/camunda-modeler#5190
1 parent 5495510 commit cc67020

4 files changed

Lines changed: 35 additions & 16 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ All notable changes to [@bpmn-io/feel-editor](https://github.com/bpmn-io/feel-ed
66

77
___Note:__ Yet to be released changes appear here._
88

9+
* `FIX`: recognize unclosed string literal as syntax error
10+
* `DEPS`: update to `@bpmn-io/feel-lint@2.0.1`
11+
912
## 1.11.0
1013

1114
* `FEAT`: update camunda built-ins (added `fromAi`) ([@camunda/feel-builtins#1](https://github.com/camunda/feel-builtins/pull/1))

package-lock.json

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
],
4646
"license": "MIT",
4747
"dependencies": {
48-
"@bpmn-io/feel-lint": "^1.4.0",
48+
"@bpmn-io/feel-lint": "^2.0.1",
4949
"@camunda/feel-builtins": "^0.2.0",
5050
"@codemirror/autocomplete": "^6.16.2",
5151
"@codemirror/commands": "^6.8.0",

test/spec/CodeEditor.spec.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,22 @@ return
563563
});
564564

565565

566+
it('should highlight unclosed string literal', async function() {
567+
const initialValue = '"unclosed string';
568+
569+
const editor = new FeelEditor({
570+
container,
571+
value: initialValue
572+
});
573+
574+
// when
575+
const diagnostics = await lint(editor);
576+
577+
// then
578+
expect(diagnostics).to.eql(1);
579+
});
580+
581+
566582
describe('should call onLint', function() {
567583

568584
it('with errors', async function() {

0 commit comments

Comments
 (0)