Skip to content

Conversation

@JanHranicky
Copy link

@JanHranicky JanHranicky commented Nov 19, 2025

Closes issue

  • Replaced deprecated http functions with httpRequestWithAuthentication
  • Implemented item pairing and continue on fail
  • Removed n8n-core dependency
    • This involved mocking a lot of functions in tests
    • Removed tests of trigger.node as we would have had to mock many functions with the removal of n8n-core. The trigger node doesn't have any exec() function and when triggered the functionality is called from n8n-core so we would have to mock this logic somehow, and the tests would have ended up being just mock values from mock functions passed around, which is not worth it in my opinion
  • replaced pnpm with npm

Most of the changes in the PR are caused by the change of npm for pnpm. They have different files for dependencies so the old pnpm-lock.yaml was deleted the new package-lock.json file

@JanHranicky JanHranicky marked this pull request as ready for review November 19, 2025 15:27
Copy link

@protoss70 protoss70 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good :)
Left some comments

"n8n-workflow": "1.82.0"
},
"dependencies": {
"axios": "^1.13.2"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are not allowed to have dependencies

this.helpers.httpRequestWithAuthentication.call(this, authenticationMethod, options),
);
} catch (error) {
/**

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to change the error handling below. We should use typeof as they requested

"lint": "eslint nodes credentials package.json",
"lintfix": "eslint nodes credentials package.json --fix",
"prepublishOnly": "pnpm build && pnpm lint -c .eslintrc.prepublish.js nodes credentials package.json",
"prepublishOnly": "npm build && npm lint -c .eslintrc.prepublish.js nodes credentials package.json",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry forgot to mention in the ticket description, we need to remove prepublishOnly as well

- name: Commit version update
run: |
git add package.json pnpm-lock.yaml
git add package.json npm-lock.yaml

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be package-lock.json


- name: Install dependencies
run: pnpm install --frozen-lockfile
run: npm install --frozen-lockfile

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

npm doesn't have --frozen-lockfile command I think we can change it for npm ci


- name: Install dependencies
run: pnpm install --frozen-lockfile
run: npm install --frozen-lockfile

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again no --frozen-lockfile I think it should be npm ci


- name: Format check
run: pnpm exec prettier --check nodes credentials
run: npx prettier --check nodes credentials

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I think we should add this command into the package.json like

"format:check": "prettier --check nodes credentials"

2. Version extraction (`X.Y.Z`) from the release tag.
3. Build and test processes.
4. Update `package.json` and `pnpm-lock.yaml` to version `X.Y.Z`.
4. Update `package.json` and `npm-lock.yaml` to version `X.Y.Z`.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here, package-lock.json

@protoss70
Copy link

Also I think it might be worth renaming the PR title to fix. I think there are a lot of fixes. What do you think?

Copy link
Member

@drobnikj drobnikj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree with @protoss70 notes, otherwise fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants