Skip to content

fix: lint errors and prepare package for release - #78

Open
eglesat wants to merge 2 commits into
mainfrom
fix/lint-errors-and-prepare-pkg-for-release
Open

fix: lint errors and prepare package for release#78
eglesat wants to merge 2 commits into
mainfrom
fix/lint-errors-and-prepare-pkg-for-release

Conversation

@eglesat

@eglesat eglesat commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Fix n8n community node review blockers (v1.0.23)

v1.0.22 was rejected by n8n's automated review, so the update never reached the n8n marketplace (v1.0.21 remains live for users). This fixes all 45 linter violations plus both manual findings from the review.

Why local lint passed while the review failed

Two independent reasons, both fixed here:

  1. @n8n/scan-community-package runs eslint with --no-inline-config, so the 43 eslint-disable-next-line comments in HostingerApi.node.ts were ignored. Suppressions can no longer hide these violations, they had to be fixed for real.
  2. @n8n/node-cli was pinned at ^0.23.0, which predates the require-node-api-error and no-overrides-field rules entirely. Bumped to ^0.43.2, so npm run lint (which CI runs before publish) now catches these before submission instead of after.

Changes

nodes/hostingerApi/HostingerApi.node.ts

  • Sentence-cased all 42 action strings via the rule's own autofix (node-param-operation-option-action-miscased). Note this lowercases brand words: 'Create Docker project''Create docker project', 'List Reach contacts''List reach contacts'. Only ALL-CAPS words are exempt from the rule, which is why VPS/DNS actions were never flagged.
  • Moved the 21 resource options into a resourceOptions const, satisfying node-param-resource-with-plural-option. The rule's autofix would rename DNSDN and then VPSVP, since pluralize treats a trailing "S" as plural. The rule intentionally skips options that point to an identifier, and this is also the layout n8n's own nodes use for their descriptions.
  • Replaced the raw re-throw with throw new NodeOperationError(this.getNode(), error, { itemIndex: i }), matching the wrapping already used for HTTP failures (require-node-api-error). The rule flags throw <catchParam> even when the value is already a NodeOperationError.
  • Removed all 43 now-obsolete eslint-disable-next-line comments.

nodes/hostingerApi/HostingerApi.node.json (codex, both manual findings)

  • node: n8n-nodes-base.HostingerApin8n-nodes-hostinger-api.HostingerApi (package prefix must match the npm package name).
  • categories: APIDevelopment (API is not in n8n's documented set).

package.json

  • Removed the overrides field, see the section below.
  • @n8n/node-cli: ^0.23.0^0.43.2.
  • Version bumped to 1.0.23. CI publishes whatever version is in package.json, and publishing a new version is what re-triggers n8n's review; no manual resubmission is needed.

Removal of overrides - required, and safe

The linter rejects the field outright:

The "overrides" field is not allowed in community node packages. Each community package installs into an isolated dependency tree, so overrides do not affect other nodes or n8n core. @n8n/community-nodes/no-overrides-field

Those overrides were deliberate Dependabot fixes (#62, #63, #65, #67, #74), so to be explicit about what is and isn't lost:

  • Nothing changes for users. This package publishes dist/ only, declares zero runtime dependencies, and n8n-workflow is a peer supplied by n8n itself. Every package the overrides targeted lives exclusively in the build tree, so no consumer ever resolved them, which is precisely the linter's argument.
  • What is lost is a quiet package-lock.json. After removal, npm audit reports 13 entries (8 high, 5 moderate) stemming from just 2 advisories: nanoid (high, via @n8n/utils) and uuid@10 (moderate, via@langchain/classic / @langchain/community). Both arrive through @n8n/node-cli@n8n/ai-node-sdk; the remaining 11 entries are transitive "depends on vulnerable versions of" rollups.

Alternatives considered and rejected:

  • Pinning via devDependencies instead: does not work. @n8n/utils requires nanoid@^3, so npm nests the vulnerable copy regardless. overrides is the only npm mechanism that forces transitive versions.
  • npm workspaces (private root holding devDeps + overrides, package in a subdir): would work and keeps the pins, but requires restructuring the repo, release-it config, and the publish workflow. Not worth it for build-only pins.

Action required before merge: suppress the dev-tree Dependabot alerts

@zygintas - this needs one manual step, and it should be done before this PR merges: auto-triage rules are applied as alerts arrive, so creating the rule first means these are never opened at all. (There are 0 open alerts on main
today only because the overrides are still in place.)

Repository SettingsAdvanced SecurityDependabot rulesNew rule:

  • Name: Dismiss build-tooling alerts (not shipped to users)
  • State: Enabled
  • Target alerts: ecosystem npm; package names nanoid, uuid, lodash, form-data, flatted, langsmith, @langchain/community
  • Rule: Dismiss alerts

Justification to record in the rule description: the published package contains dist/ only with zero runtime dependencies; all matching packages are reachable solely through @n8n/node-cli (build/lint tooling) or the n8n-workflow peer that n8n itself provides, so they are never installed by an n8n user.

@eglesat
eglesat requested a review from fizikiukas August 12, 2026 07:41
@eglesat eglesat self-assigned this Aug 12, 2026
@eglesat
eglesat requested a review from a team as a code owner August 12, 2026 07:41
@coderabbitai

coderabbitai Bot commented Aug 12, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 951a1bef-1adb-4229-bdda-7fe94e793201

📥 Commits

Reviewing files that changed from the base of the PR and between 9c70458 and 5fb5412.

📒 Files selected for processing (1)
  • nodes/hostingerApi/HostingerApi.node.ts
🚧 Files skipped from review as they are similar to previous changes (1)
  • nodes/hostingerApi/HostingerApi.node.ts

📝 Walkthrough

Walkthrough

The PR updates Hostinger node metadata, extracts shared resource options, normalizes Docker and Reach labels, improves request-body error context, and updates package release and tooling configuration.

Changes

Hostinger node updates

Layer / File(s) Summary
Node metadata and package release
nodes/hostingerApi/HostingerApi.node.json, package.json
The node identifier and category changed. The package version and node CLI dependency were updated, and package overrides were removed.
Resource and operation definitions
nodes/hostingerApi/HostingerApi.node.ts
Resource options now use a shared constant. Docker and Reach action labels now use lowercase names.
Parameter error context
nodes/hostingerApi/HostingerApi.node.ts
Request-body parsing now uses parseJsonParam. Invalid JSON errors now include node and item context when continueOnFail is disabled.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested reviewers: fizikiukas

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the primary lint fixes and release preparation described in the changeset.
Description check ✅ Passed The description directly explains the n8n review blockers, lint fixes, dependency updates, metadata changes, and release version bump.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/lint-errors-and-prepare-pkg-for-release

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

nodes/hostingerApi/HostingerApi.node.ts

ESLint skipped: missing config or dependency (missing-dependency). The ESLint configuration references a package that is not available in the sandbox.


Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🔇 Additional comments (6)
nodes/hostingerApi/HostingerApi.node.ts (1)

9-38: LGTM!

Also applies to: 67-67, 92-101, 408-420, 435-438, 453-459, 474-481

nodes/hostingerApi/HostingerApi.node.json (2)

2-2: 🎯 Functional Correctness

Verify the community-node codex identifier format.

The new value includes .HostingerApi. The current n8n community-node starter uses the package name alone in this field, while the node implementation uses the runtime name hostingerApi. Confirm the schema required by @n8n/node-cli@0.43.2 and use the exact identifier expected by codex lookup. (raw.githubusercontent.com)


3-6: LGTM!

Also applies to: 20-20

package.json (3)

41-41: 🩺 Stability & Availability

⚠️ Unverified finding
Sandbox verification was unavailable.

Verify that @n8n/node-cli@0.43.2 is published.

The npm package page currently reports 0.40.3 as the latest release. Confirm that 0.43.2 exists in the registry before merging. If it does not exist, clean installs will fail. (npmjs.com)

Verify the registry version

3-3: 🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

⚠️ Unverified finding
Sandbox verification was unavailable.

Commit the lockfile for these manifest changes.

The tracked package-lock.json still declares version 1.0.22 and @n8n/node-cli ^0.23.0, while this manifest declares 1.0.23 and ^0.43.2. npm ci exits when dependency declarations do not match the lockfile. Regenerate and commit package-lock.json. (raw.githubusercontent.com)

Verify manifest and lockfile metadata

Also applies to: 41-48


41-48: 🔒 Security & Privacy

Audit the dependency tree after removing overrides.

Removing these overrides changes transitive versions used by the build and lint toolchain. Regenerate the lockfile, run the dependency audit, and confirm that repository-level Dependabot dismissals cover only the intended tooling findings before release.

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@nodes/hostingerApi/HostingerApi.node.ts`:
- Around line 1954-1957: Update the request-body handling around the
NodeOperationError branch to parse and validate requestBody before issuing the
HTTP request, using parseJsonParam('requestBody', 'Request Body') or converting
JSON.parse SyntaxError into the expected error type. Ensure malformed JSON
follows the existing continueOnFail behavior for both settings and prevents the
HTTP request; add coverage for both cases.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: b28034c9-2e9a-4964-a91f-6ef225088abb

📥 Commits

Reviewing files that changed from the base of the PR and between ce4cf9f and 9c70458.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (3)
  • nodes/hostingerApi/HostingerApi.node.json
  • nodes/hostingerApi/HostingerApi.node.ts
  • package.json

Comment thread nodes/hostingerApi/HostingerApi.node.ts
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.

2 participants