Skip to content

Commit a8016b4

Browse files
committed
fix: build against current n8n-workflow for provenance publish
Replace NodeConnectionType.Main enum value (now a type-only export in n8n-workflow 1.95+) with the 'main' literal, and pin n8n-workflow as a build dependency so CI and local builds resolve the same version. Compiled output is unchanged.
1 parent 0ab706a commit a8016b4

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
### Changed
1313
- Publish to npm via a GitHub Actions workflow with an npm provenance statement (Sigstore build attestation), so the package build source can be cryptographically verified. Required for n8n Cloud verification; no functional change to the node.
14+
- Use the `'main'` connection-type literal for node inputs/outputs and pin the `n8n-workflow` build dependency, so the package builds reproducibly against current `n8n-workflow` releases. Compiled output is unchanged.
1415
- User-Agent header updated to `1.3.2`.
1516

1617
## [1.3.1] - 2026-06-11

nodes/Hedy/Hedy.node.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import {
55
INodeTypeDescription,
66
IDataObject,
77
NodeOperationError,
8-
NodeConnectionType,
98
} from 'n8n-workflow';
109

1110
import {
@@ -55,8 +54,8 @@ export class Hedy implements INodeType {
5554
defaults: {
5655
name: 'Hedy',
5756
},
58-
inputs: [{type: NodeConnectionType.Main}],
59-
outputs: [{type: NodeConnectionType.Main}],
57+
inputs: [{type: 'main'}],
58+
outputs: [{type: 'main'}],
6059
credentials: [
6160
{
6261
name: 'hedyApi',

nodes/Hedy/HedyTrigger.node.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import {
55
INodeTypeDescription,
66
IDataObject,
77
NodeOperationError,
8-
NodeConnectionType,
98
} from 'n8n-workflow';
109

1110
import {
@@ -28,7 +27,7 @@ export class HedyTrigger implements INodeType {
2827
name: 'Hedy Trigger',
2928
},
3029
inputs: [],
31-
outputs: [{type: NodeConnectionType.Main}],
30+
outputs: [{type: 'main'}],
3231
credentials: [
3332
{
3433
name: 'hedyApi',

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
"eslint": "^8.56.0",
5959
"eslint-config-prettier": "^9.1.0",
6060
"eslint-plugin-n8n-nodes-base": "^1.16.1",
61+
"n8n-workflow": "1.120.17",
6162
"prettier": "^3.2.4",
6263
"typescript": "^5.3.3"
6364
},

0 commit comments

Comments
 (0)