Skip to content

v1.3.0: The Plugin System

Choose a tag to compare

@github-actions github-actions released this 30 Jul 08:15

Added

  • Plugin System: Enterprise teams can now inject their own JavaScript/TypeScript custom rules dynamically at runtime via config.smile.json.
    • Plugins can be loaded via relative paths (./my-rules.js) or NPM packages (smile-plugin-enterprise).
    • Custom rules can target specific formats (e.g. openapi) or apply universally to all formats using "all".
    • Added new plugins array property to the configuration file format.

Docs

  • Plugin Guide: Created a dedicated docs/plugins.md explaining how to build and inject custom rules.
  • Boilerplate: Added a ready-to-use boilerplate plugin in examples/my-custom-plugin.js.

Chore

  • Test Fixtures Isolation: Migrated all internal .yaml test files from the examples/ folder to a dedicated fixtures/ directory. The examples/ folder is now strictly reserved for clean, production-ready boilerplate code. Evaluated and refactored the entire src/core/__tests__ suite to point to the new directory safely.

📦 Installation

npm install -g @mrjacket/smile

View Full CHANGELOG