Skip to content

v1.1.4 - Static Validator (No Dependencies)

Choose a tag to compare

@KenKaiii KenKaiii released this 17 Aug 18:48
· 2 commits to dev since this release

๐Ÿš€ Ken8n-Coder v1.1.4

โœจ Major Improvement: Zero-Dependency Validation

This release solves the validation dependency problem by introducing a static validator that works immediately after installation.

๐ŸŽฏ What's New

  • Static Validator: New validate-supercode-static.js that requires NO npm dependencies
  • Instant Validation: Works immediately after installation without npm install
  • Smaller Package: Reduced from ~100MB of dependencies to just 6KB
  • Smart Analysis: Catches common SuperCode errors through static code analysis

๐Ÿ”ง How It Works

The static validator checks for:

  • โŒ Use of require() or import (libraries are pre-loaded)
  • โŒ Incorrect return format [{ json: data }]
  • โŒ Missing $input usage
  • โŒ Module exports (code runs directly)
  • โœ… Proper library usage patterns
  • โœ… Correct return statements

๐Ÿ“ฆ Installation

curl -fsSL https://raw.githubusercontent.com/kenkaiii/ken8n-coder/main/install | bash

๐ŸŽฎ Usage

After creating a SuperCode file:

node ~/.ken8n-coder/validation-scripts/validate-supercode-static.js your-code.js

๐Ÿ’ก Note

For full validation with code execution, you can still install dependencies:

cd ~/.ken8n-coder/validation-scripts && npm install

But this is now optional - the static validator handles most common cases!