Skip to content

Commit 134e8d2

Browse files
committed
provenance release
1 parent af00291 commit 134e8d2

25 files changed

+88
-33
lines changed

.github/workflows/build.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
node-version: [18, 20, 22, latest]
14+
node-version: [18, 20, 22, 24, latest]
1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@v5
1818
- name: Use Node.js ${{ matrix.node-version }}
19-
uses: actions/setup-node@v4
19+
uses: actions/setup-node@v6
2020
with:
2121
node-version: ${{ matrix.node-version }}
2222
- run: npm i

.github/workflows/release.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Publish Package
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
permissions:
9+
id-token: write
10+
contents: read
11+
12+
jobs:
13+
publish:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v5
17+
18+
- uses: actions/setup-node@v6
19+
with:
20+
node-version: '24'
21+
registry-url: 'https://registry.npmjs.org'
22+
23+
- name: Update npm
24+
run: npm install -g npm@latest
25+
- run: npm i
26+
- run: npm publish

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## [25.0.1] - 2025-11-14
4+
5+
- provenance release to get green badge next to npm package version
6+
- bump all provenance updated packages
7+
38
## [25.0.0] - 2025-03-17
49

510
It has been possible to recover a running engine. The execution was overwritten and all references to timers etc was lost. This stops with this version. Either stop the the execution or wait for it to end if the engine should be re-used. It is highly recommended to initiate a new Engine when recovering from state.

docs/API.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!-- version -->
22

3-
# 25.0.0 API Reference
3+
# 25.0.1 API Reference
44

55
<!-- versionstop -->
66

eslint.config.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,15 @@ const rules = {
4444
'no-underscore-dangle': 0,
4545
'no-unused-expressions': 2,
4646
'no-unused-vars': 2,
47-
'no-use-before-define': 0,
47+
'no-use-before-define': [
48+
'error',
49+
{
50+
functions: false,
51+
classes: true,
52+
variables: true,
53+
allowNamedExports: false,
54+
},
55+
],
4856
'no-var': 2,
4957
'no-with': 2,
5058
'prefer-const': ['error', { destructuring: 'all' }],

package.json

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
{
22
"name": "bpmn-engine",
33
"description": "BPMN 2.0 execution engine. Open source javascript workflow engine.",
4-
"version": "25.0.0",
4+
"version": "25.0.1",
55
"type": "module",
66
"module": "./src/index.js",
77
"main": "./lib/index.cjs",
88
"types": "./types/bpmn-engine.d.ts",
99
"sideEffects": false,
10+
"exports": {
11+
".": {
12+
"types": "./types/bpmn-engine.d.ts",
13+
"require": "./lib/index.cjs",
14+
"import": "./src/index.js"
15+
}
16+
},
1017
"repository": {
1118
"type": "git",
1219
"url": "git://github.com/paed01/bpmn-engine.git"
@@ -52,27 +59,27 @@
5259
],
5360
"devDependencies": {
5461
"@bonniernews/hot-bev": "^0.4.0",
55-
"@rollup/plugin-commonjs": "^28.0.0",
62+
"@rollup/plugin-commonjs": "^29.0.0",
5663
"@types/bpmn-moddle": "^5.1.6",
5764
"@types/node": "^18.19.31",
5865
"bent": "^7.3.12",
5966
"c8": "^10.0.0",
6067
"camunda-bpmn-moddle": "^7.0.1",
61-
"chai": "^5.1.0",
62-
"chronokinesis": "^7.0.0",
68+
"chai": "^6.2.0",
69+
"chronokinesis": "^7.0.1",
6370
"eslint": "^9.10.0",
6471
"markdown-toc": "^1.2.0",
6572
"mocha": "^11.0.1",
6673
"mocha-cakes-2": "^3.3.0",
6774
"prettier": "^3.2.5",
6875
"rollup": "^4.10.0",
69-
"texample": "^0.0.8"
76+
"texample": "^0.1.0"
7077
},
7178
"dependencies": {
72-
"bpmn-elements": "^17.0.0",
73-
"bpmn-moddle": "^9.0.1",
74-
"debug": "^4.3.7",
75-
"moddle-context-serializer": "^4.3.0"
79+
"bpmn-elements": "^17.2.2",
80+
"bpmn-moddle": "^9.0.4",
81+
"debug": "^4.4.3",
82+
"moddle-context-serializer": "^4.4.1"
7683
},
7784
"peerDependencies": {
7885
"smqp": ">=9"

test/Engine-test.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
import { EventEmitter } from 'node:events';
2-
import * as Bpmn from '../src/index.js';
2+
import * as Bpmn from 'bpmn-engine';
3+
import Engine from 'bpmn-engine';
34
import * as factory from './helpers/factory.js';
45
import * as testHelpers from './helpers/testHelpers.js';
56

67
describe('Engine', () => {
8+
describe('module', () => {
9+
it('exports Engine class as default', () => {
10+
expect(Bpmn.Engine).to.equal(Engine);
11+
});
12+
});
13+
714
describe('constructor', () => {
815
it('instance of Engine', () => {
916
const engine = new Bpmn.Engine();

test/feature/Engine-feature.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { EventEmitter } from 'node:events';
2-
import { Engine } from '../../src/index.js';
2+
import { Engine } from 'bpmn-engine';
33
import * as factory from '../helpers/factory.js';
44
import { camundaBpmnModdle as camunda } from '../helpers/testHelpers.js';
55

test/feature/backward-compatibility-feature.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { EventEmitter } from 'node:events';
2-
import { Engine } from '../../src/index.js';
2+
import { Engine } from 'bpmn-engine';
33

44
Feature('Backward compatability', () => {
55
Scenario('Version 13 state without process environment', () => {

test/feature/call-activity-feature.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
import { Engine } from '../../src/index.js';
1+
import { Engine } from 'bpmn-engine';
22
import * as factory from '../helpers/factory.js';
33

44
Feature('Call activity', () => {
55
Scenario('call process in the same diagram', () => {
6+
/** @type {Engine} */
67
let engine;
78
Given('a process with a call activity referencing a process', () => {
89
const source = factory.resource('call-activity.bpmn');
@@ -24,6 +25,7 @@ Feature('Call activity', () => {
2425
});
2526

2627
Scenario('called process throws', () => {
28+
/** @type {Engine} */
2729
let engine;
2830
Given('a process with a call activity referencing a process that throws', () => {
2931
const source = `

0 commit comments

Comments
 (0)