Skip to content
This repository was archived by the owner on Feb 12, 2025. It is now read-only.

Bump to 18.1.2 #9

Merged
merged 99 commits into from
Feb 4, 2025
Merged
Show file tree
Hide file tree
Changes from 93 commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
90c513c
fix: keep direction when collapsing pools
sombrek Jul 31, 2024
2fb84d6
chore(main): release 17.9.2
github-actions[bot] Aug 5, 2024
c9cb0bd
docs: update translations for v17.9.0
bpmn-io-bot Jun 28, 2024
8025600
chore: update dependency babel-plugin-istanbul to v7
renovate[bot] Jul 5, 2024
82e8fa7
docs(modeling): improve connect optional param jsdoc definition
makepanic Jul 23, 2024
a1eea14
docs(context-pad): correct argument type (#2204)
J4CKVVH173 Jul 23, 2024
cdf7461
chore: update dependency puppeteer to v23
renovate[bot] Aug 8, 2024
3153b08
fix: auto-place elements vertically in sub-processes
sombrek Aug 19, 2024
7737f9d
deps: update to [email protected]
nikku Aug 20, 2024
93e59cb
chore(types): correct type used
nikku Aug 19, 2024
1994afd
chore(types): add missing type
nikku Aug 19, 2024
da59558
chore(types): add missing type declarations
nikku Aug 19, 2024
c840a9f
chore(types): correct renderer types
nikku Aug 19, 2024
9f50b97
chore(types): implement generic element
nikku Aug 19, 2024
392f484
chore: test types without skipping lib check
nikku Aug 19, 2024
988cb29
fix: label text visible while editing
abdul99ahad Aug 27, 2024
7a137cc
fix: lane resize constraints for horizontal and vertical lanes
abdul99ahad Aug 12, 2024
cd6bcad
test: add unit tests for resize constraints to cover all directions i…
abdul99ahad Aug 12, 2024
afdd676
chore: update changelog
abdul99ahad Aug 12, 2024
4359f18
fix: pasting compensation activity without boundary event
abdul99ahad Aug 20, 2024
235d9b9
test: properly provide businessObject with label
nikku Aug 28, 2024
2373641
chore(CHANGELOG): update to v17.10.0
nikku Sep 9, 2024
6c94509
17.10.0
nikku Sep 9, 2024
35a911f
docs: link awesome list (#2230)
nikku Sep 11, 2024
a2211cb
chore(search): replace deprecated method
philippfromme Jun 1, 2024
4789c1f
feat(search): sort matches by location
philippfromme Jun 3, 2024
8278bc7
deps: update to [email protected]
nikku Sep 12, 2024
054b02e
chore(CHANGELOG): update to v17.11.0
nikku Sep 12, 2024
14d14f7
17.11.0
nikku Sep 12, 2024
58d7d7a
fix(search): handle elements without label
philippfromme Sep 12, 2024
2c600d0
chore(CHANGELOG): update to v17.11.1
nikku Sep 16, 2024
fc11af5
17.11.1
nikku Sep 16, 2024
346a946
chore(CHANGELOG): update style
nikku Sep 20, 2024
6bd0d8f
deps: update to [email protected]
nikku Sep 23, 2024
cba252b
chore: merge main to develop
bpmn-io-bot Sep 23, 2024
7451286
chore: update rollup* dependencies
renovate[bot] Sep 23, 2024
303ca88
fix: empty whitespaces label in group
abdul99ahad Sep 18, 2024
dca5dfb
deps: bump to [email protected]
nikku Sep 25, 2024
3e2a765
deps!: update to `bpmn-moddle@9`
nikku Mar 7, 2024
88cf98b
chore: remove `eslint-plugin-import`
nikku Mar 7, 2024
7130396
chore(CHANGELOG): update
nikku Oct 7, 2024
c41479d
chore(CHANGELOG): fix formatting
nikku Oct 7, 2024
96c4399
chore: update dependency del-cli to v6
renovate[bot] Oct 7, 2024
50ad6ac
chore: update dependency del to v8
renovate[bot] Oct 10, 2024
48aaad8
chore: update eslint* dependencies
renovate[bot] Oct 11, 2024
986e2bb
fix: generate types for main entry point
nikku Oct 11, 2024
8190fcf
chore: remove `eslint-plugin-import`
nikku Oct 11, 2024
352d325
chore: migrate config to eslint@9
nikku Oct 11, 2024
8e81aaa
style: adjust code style to latest configuration
nikku Oct 11, 2024
47ff6f9
test: add `FirefoxHeadless`
nikku Oct 11, 2024
38f4ee3
chore: bump to [email protected]
nikku Oct 11, 2024
8b8e2b1
style: rename `process` to `bpmnProcess` for clarity
nikku Oct 11, 2024
ca2f369
chore: bump test dependencies
nikku Oct 11, 2024
4fe82c0
chore: bump @types/node
nikku Oct 11, 2024
52860cf
test: skip failing spec
nikku Oct 11, 2024
e48603e
chore: document different eslint configs
nikku Oct 15, 2024
4e24b58
chore: update dependency npm-run-all2 to v7
renovate[bot] Oct 22, 2024
e5f1637
fix: flow text alignment issue when placed text annotationt (#2241)
abdul99ahad Oct 30, 2024
33ab4fe
chore(CHANGELOG): update
nikku Oct 30, 2024
591e5a7
chore: fix JSDoc
philippfromme Oct 31, 2024
e937bd9
fix(replace-menu): keep existing loop characteristics (#2251)
philippfromme Oct 31, 2024
7deaf5e
ci: adjust job names to `snake_case`
nikku Nov 1, 2024
ae7d4ac
deps: update to [email protected]
jarekdanielak Nov 4, 2024
6efbb8d
chore: require node@20
nikku Nov 1, 2024
583195a
fix(viewer): remove outline module from default modules
misiekhardcore Oct 30, 2024
0d846a1
chore(deps): bump puppeteer to 23.6.1
misiekhardcore Oct 31, 2024
41db0da
chore(CHANGELOG): update
misiekhardcore Nov 1, 2024
8e019cf
chore(CHANGELOG): update
nikku Nov 4, 2024
8383966
feat(search): integrate with unified search
nikku Sep 13, 2024
1fd28b1
test(draw): cleanup left over log statement
nikku Nov 1, 2024
a580f38
deps: update to [email protected]
nikku Nov 4, 2024
911dbae
chore(CHANGELOG): update
nikku Nov 4, 2024
9f41690
fix(Modeler): re-add outline feature
nikku Nov 5, 2024
2405cd5
test: don't mount modeler for service testing
nikku Nov 5, 2024
b8c0143
deps: update to [email protected]
jarekdanielak Nov 6, 2024
8f6db7c
chore(CHANGELOG): update for 18.0.0
jarekdanielak Nov 6, 2024
f061e55
18.0.0
jarekdanielak Nov 6, 2024
469e471
chore: update codecov/codecov-action action to v5
renovate[bot] Nov 14, 2024
63f9a90
chore: update slackapi/slack-github-action action to v2
renovate[bot] Nov 14, 2024
08f83bc
ci: migrate to slack action v2
barmac Nov 18, 2024
7b38530
chore(CHANGELOG): update
nikku Nov 20, 2024
2af459c
deps: update to [email protected]
nikku Nov 20, 2024
aa2f28d
chore(CHANGELOG): update to v18.1.0
nikku Nov 20, 2024
1c63c28
18.1.0
nikku Nov 20, 2024
72996b3
deps: update to [email protected]
nikku Nov 21, 2024
a9032a5
chore(CHANGELOG): update to v18.1.1
nikku Nov 21, 2024
b01d630
test(search): account for full pattern now matched
nikku Nov 21, 2024
16270a4
18.1.1
nikku Nov 21, 2024
e9da867
chore: update dependency @rollup/plugin-node-resolve to v16
renovate[bot] Dec 15, 2024
8e2099c
deps: update to [email protected]
nikku Dec 20, 2024
d9fc726
18.1.2
nikku Dec 20, 2024
a44af7a
chore(CHANGELOG): link breaking changes context
nikku Jan 6, 2025
052c9ba
Merge remote-tracking branch 'bpmnjs/develop' into feature/merge_from…
ElRaptorus Jan 9, 2025
d472742
chore: update dependency puppeteer to v24
renovate[bot] Jan 10, 2025
0a6e428
ci: run on ubuntu-latest and add setup action
barmac Jan 13, 2025
e44e925
fix(BaseViewer): swap canvas and project logo
nikku Jan 17, 2025
61c2651
test: improve robustness
nikku Jan 20, 2025
dd5bce7
fix(BaseViewer): swap canvas and project logo
nikku Jan 17, 2025
4e80d1c
Merge remote-tracking branch 'bpmnjs/develop' into feature/merge_from…
ElRaptorus Jan 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

9 changes: 0 additions & 9 deletions .eslintrc

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/CODE_SCANNING.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- '**/*.md'

jobs:
CodeQL-Build:
codeql-build:
# CodeQL runs on ubuntu-latest, windows-latest, and macos-latest
runs-on: ubuntu-latest

Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"pull-request-title-pattern": "chore: release v${version}",
"changelog-sections": "[{\"type\":\"feat\",\"section\":\"Features\",\"hidden\":false},{\"type\":\"fix\",\"section\":\"Bug Fixes\",\"hidden\":false},{\"type\":\"deps\",\"section\":\"Dependency Updates\",\"hidden\":false}]",
"changelog-type": "github",
".": "17.9.1"
".": "17.9.2"
}
67 changes: 67 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,73 @@ All notable changes to [bpmn-js](https://github.com/bpmn-io/bpmn-js) are documen

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

## 18.1.2

* `FIX`: canvas `autoFocus` must explicitly be enabled ([bpmn-io/diagram-js#956](https://github.com/bpmn-io/diagram-js/pull/956))
* `FIX`: properly integrate `zoomscroll` with canvas focus ([bpmn-io/diagram-js#956](https://github.com/bpmn-io/diagram-js/pull/956))
* `FIX`: properly integrate `movecanvas` with canvas focus ([bpmn-io/diagram-js#956](https://github.com/bpmn-io/diagram-js/pull/956))

## 18.1.1

* `FIX`: adjust search to prioritize start of word and exact matches ([bpmn-io/diagram-js#953](https://github.com/bpmn-io/diagram-js/pull/953))
* `FIX`: ignore whitespace when searching ([bpmn-io/diagram-js#954](https://github.com/bpmn-io/diagram-js/pull/954))

## 18.1.0

* `FIX`: clear selection when opening search pad ([bpmn-io/diagram-js#947](https://github.com/bpmn-io/diagram-js/pull/947))
* `FIX`: correct dangling selection after search pad interaction ([bpmn-io/diagram-js#947](https://github.com/bpmn-io/diagram-js/pull/947))
* `DEPS`: update to `[email protected]`

## 18.0.0

* `FEAT`: remove `outline` from `Viewer` modules ([#2135](https://github.com/bpmn-io/bpmn-js/issues/2135))
* `FEAT`: make `Canvas` a focusable element ([bpmn-io/diagram-js#662](https://github.com/bpmn-io/diagram-js/pull/662))
* `FEAT`: implicit keyboard binding ([bpmn-io/diagram-js#662](https://github.com/bpmn-io/diagram-js/pull/662))
* `FEAT`: integrate with global `search` ([#2235](https://github.com/bpmn-io/bpmn-js/pull/2235))
* `FEAT`: integrate `popup-menu` with `search` ([bpmn-io/diagram-js#932](https://github.com/bpmn-io/diagram-js/pull/932))
* `FEAT`: recognize modern `search` tokens in `search-pad` ([bpmn-io/diagram-js#932](https://github.com/bpmn-io/diagram-js/pull/932))
* `FIX`: correctly handle duplicate entries and whitespace in `search` ([bpmn-io/diagram-js#932](https://github.com/bpmn-io/diagram-js/pull/932))
* `FIX`: find `search` terms across all keys ([bpmn-io/diagram-js#932](https://github.com/bpmn-io/diagram-js/pull/932))
* `FIX`: `search` always returns tokens for matched items ([bpmn-io/diagram-js#932](https://github.com/bpmn-io/diagram-js/pull/932))
* `FIX`: prevent crash during label adjustment ([#2239](https://github.com/bpmn-io/bpmn-js/issues/2239))
* `FIX`: keep existing loop characteristics when toggling through the replace menu ([#2251](https://github.com/bpmn-io/bpmn-js/pull/2251))
* `FIX`: prevent covering multi selection with black box in `Viewer` ([#2135](https://github.com/bpmn-io/bpmn-js/issues/2135))
* `FIX`: generate types for main entry ([`986e2bb`](https://github.com/bpmn-io/bpmn-js/commit/986e2bb51ea301e6e0df56f3606a27424fb90179))
* `FIX`: correct handling of group name with whitespace only ([#2231](https://github.com/bpmn-io/bpmn-js/issues/2231))
* `DEPS`: update to `bpmn-moddle@9` ([#2114](https://github.com/bpmn-io/bpmn-js/pull/2114))
* `DEPS`: update to `[email protected]`
* `DEPS`: update to `[email protected]`

### Breaking Changes

* Require `Node >= 20`
* `Canvas` is now a focusable element and provides better support for native browser behaviors. Focus can be controlled with new `focus` and `restoreFocus` APIs ([bpmn-io/diagram-js#662](https://github.com/bpmn-io/diagram-js/pull/662)).
* Keyboard is now implicitly bound to canvas SVG element. Calls to `keyboard.bind` and `keyboard.bindTo` now result with a descriptive console error and have no effect ([bpmn-io/diagram-js#662](https://github.com/bpmn-io/diagram-js/pull/662)).

## 17.11.1

* `FIX`: handle searching elements without labels ([#2232](https://github.com/bpmn-io/bpmn-js/issues/2232), [#2234](https://github.com/bpmn-io/bpmn-js/pull/2234))

## 17.11.0

* `FEAT`: align search styles with other popups ([#2187](https://github.com/bpmn-io/bpmn-js/pull/2187))
* `FEAT`: prioritize start of tokens in search results ([#2187](https://github.com/bpmn-io/bpmn-js/pull/2187))
* `FIX`: do not commit viewport changes on `ESC` ([#2189](https://github.com/bpmn-io/bpmn-js/issues/2189), [#2187](https://github.com/bpmn-io/bpmn-js/pull/2187))
* `DEPS`: update to `[email protected]`

## 17.10.0

* `CHORE`: correct various type hints ([#2228](https://github.com/bpmn-io/bpmn-js/issues/2228))
* `FIX`: pasting compensation activity without boundary event ([#2070](https://github.com/bpmn-io/bpmn-js/issues/2070))
* `FIX`: lane resize constraints for se and nw direction ([#2209](https://github.com/bpmn-io/bpmn-js/issues/2209))
* `FIX`: auto place elements vertically in sub-processes ([#2127](https://github.com/bpmn-io/bpmn-js/issues/2127))
* `FIX`: hide lane label during direct editing
* `DEPS`: update to `[email protected]`

## 17.9.2

* `FIX`: keep direction when collapsing pools ([#2208](https://github.com/bpmn-io/bpmn-js/issues/2208))

## 17.9.1

* `FIX`: show delete action for labels ([#2163](https://github.com/bpmn-io/bpmn-js/issues/2163))
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ bpmn-js builds on top of a few powerful tools:
* [bpmn-moddle](https://github.com/bpmn-io/bpmn-moddle): Read / write support for BPMN 2.0 XML in the browsers
* [diagram-js](https://github.com/bpmn-io/diagram-js): Diagram rendering and editing toolkit

It is an extensible toolkit, complemented by many [additional utilities](https://github.com/bpmn-io/awesome-bpmn-io).

## License

Use under the terms of the [bpmn.io license](http://bpmn.io/license).
59 changes: 59 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
import bpmnIoPlugin from 'eslint-plugin-bpmn-io';

const files = {
ignored: [
'dist',
'coverage'
],
build: [
'test/config/*.js',
'tasks/**/*.mjs',
'*.js',
'*.mjs'
],
test: [
'test/**/*.js'
]
};

export default [
{
ignores: files.ignored
},

// build
...bpmnIoPlugin.configs.node.map(config => {

return {
...config,
files: files.build
};
}),

// lib + test
...bpmnIoPlugin.configs.browser.map(config => {

return {
...config,
ignores: files.build
};
}),

// test
...bpmnIoPlugin.configs.mocha.map(config => {

return {
...config,
files: files.test,
};
}),
{
languageOptions: {
globals: {
sinon: true,
require: true
}
},
files: files.test
}
];
3 changes: 0 additions & 3 deletions index.js

This file was deleted.

8 changes: 0 additions & 8 deletions lib/.eslintrc

This file was deleted.

4 changes: 3 additions & 1 deletion lib/Modeler.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import ReplacePreviewModule from './features/replace-preview';
import ResizeModule from 'diagram-js/lib/features/resize';
import SnappingModule from './features/snapping';
import SearchModule from './features/search';
import OutlineModule from './features/outline';

var initialDiagram =
'<?xml version="1.0" encoding="UTF-8"?>' +
Expand Down Expand Up @@ -187,7 +188,8 @@ Modeler.prototype._modelingModules = [
ReplacePreviewModule,
ResizeModule,
SnappingModule,
SearchModule
SearchModule,
OutlineModule
];


Expand Down
2 changes: 0 additions & 2 deletions lib/Viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import inherits from 'inherits-browser';

import CoreModule from './core';
import DrilldownModdule from './features/drilldown';
import OutlineModule from './features/outline';
import OverlaysModule from 'diagram-js/lib/features/overlays';
import SelectionModule from 'diagram-js/lib/features/selection';
import TranslateModule from 'diagram-js/lib/i18n/translate';
Expand Down Expand Up @@ -69,7 +68,6 @@ inherits(Viewer, BaseViewer);
Viewer.prototype._modules = [
CoreModule,
DrilldownModdule,
OutlineModule,
OverlaysModule,
SelectionModule,
TranslateModule
Expand Down
36 changes: 19 additions & 17 deletions lib/draw/BpmnRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ var DEFAULT_OPACITY = 0.95,

/**
* @typedef { import('../model/Types').Element } Element
* @typedef { import('../model/Types').Shape } Shape
* @typedef { import('../model/Types').Connection } Connection
*/

/**
Expand Down Expand Up @@ -2266,57 +2268,57 @@ BpmnRenderer.prototype.canRender = function(element) {
* Draw shape into parentGfx.
*
* @param {SVGElement} parentGfx
* @param {Element} element
* @param {Shape} shape
* @param {Attrs} [attrs]
*
* @return {SVGElement} mainGfx
*/
BpmnRenderer.prototype.drawShape = function(parentGfx, element, attrs = {}) {
var { type } = element;
BpmnRenderer.prototype.drawShape = function(parentGfx, shape, attrs = {}) {
var { type } = shape;

var handler = this._renderer(type);

return handler(parentGfx, element, attrs);
return handler(parentGfx, shape, attrs);
};

/**
* Draw connection into parentGfx.
*
* @param {SVGElement} parentGfx
* @param {Element} element
* @param {Connection} connection
* @param {Attrs} [attrs]
*
* @return {SVGElement} mainGfx
*/
BpmnRenderer.prototype.drawConnection = function(parentGfx, element, attrs = {}) {
var { type } = element;
BpmnRenderer.prototype.drawConnection = function(parentGfx, connection, attrs = {}) {
var { type } = connection;

var handler = this._renderer(type);

return handler(parentGfx, element, attrs);
return handler(parentGfx, connection, attrs);
};

/**
* Get shape path.
*
* @param {Element} element
* @param {Shape} shape
*
* @return {string} path
*/
BpmnRenderer.prototype.getShapePath = function(element) {
if (is(element, 'bpmn:Event')) {
return getCirclePath(element);
BpmnRenderer.prototype.getShapePath = function(shape) {
if (is(shape, 'bpmn:Event')) {
return getCirclePath(shape);
}

if (is(element, 'bpmn:Activity')) {
return getRoundRectPath(element, TASK_BORDER_RADIUS);
if (is(shape, 'bpmn:Activity')) {
return getRoundRectPath(shape, TASK_BORDER_RADIUS);
}

if (is(element, 'bpmn:Gateway')) {
return getDiamondPath(element);
if (is(shape, 'bpmn:Gateway')) {
return getDiamondPath(shape);
}

return getRectPath(element);
return getRectPath(shape);
};

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import ICONS from './AlignElementsIcons';
*
* @typedef {import('../../model/Types').Element} Element
* @typedef {import('diagram-js/lib/features/context-pad/ContextPad').ContextPadEntries} ContextPadEntries
* @typedef {import('diagram-js/lib/features/context-pad/ContextPadProvider').default} ContextPadProvider
* @typedef {import('diagram-js/lib/features/context-pad/ContextPadProvider').default<Element>} ContextPadProvider
*/

var LOW_PRIORITY = 900;
Expand Down
4 changes: 2 additions & 2 deletions lib/features/append-preview/AppendPreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const round = Math.round;
* @typedef {import('diagram-js/lib/layout/ConnectionDocking').default} ConnectionDocking
* @typedef {import('../modeling/ElementFactory').default} ElementFactory
* @typedef {import('diagram-js/lib/core/EventBus').default} EventBus
* @typedef {import('diagram-js/lib/layout/ManhattanLayout').default} ManhattanLayout
* @typedef {import('../modeling/BpmnLayouter').default} BpmnLayouter
* @typedef {import('diagram-js/lib/features/rules/Rules').default} Rules
*
* @typedef {import('../../model/Types').Shape} Shape
Expand All @@ -23,7 +23,7 @@ const round = Math.round;
* @param {ConnectionDocking} connectionDocking
* @param {ElementFactory} elementFactory
* @param {EventBus} eventBus
* @param {ManhattanLayout} layouter
* @param {BpmnLayouter} layouter
* @param {Rules} rules
*/
export default function AppendPreview(complexPreview, connectionDocking, elementFactory, eventBus, layouter, rules) {
Expand Down
8 changes: 5 additions & 3 deletions lib/features/auto-place/BpmnAutoPlace.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,22 @@ import { getNewShapePosition } from './BpmnAutoPlaceUtil';

/**
* @typedef {import('diagram-js/lib/core/EventBus').default} EventBus
* @typedef {import('diagram-js/lib/core/ElementRegistry').default} ElementRegistry
*/

/**
* BPMN auto-place behavior.
*
* @param {EventBus} eventBus
* @param {ElementRegistry} elementRegistry
*/
export default function AutoPlace(eventBus) {
export default function AutoPlace(eventBus, elementRegistry) {
eventBus.on('autoPlace', function(context) {
var shape = context.shape,
source = context.source;

return getNewShapePosition(source, shape);
return getNewShapePosition(source, shape, elementRegistry);
});
}

AutoPlace.$inject = [ 'eventBus' ];
AutoPlace.$inject = [ 'eventBus', 'elementRegistry' ];
Loading
Loading