Skip to content

v3.0.0

Compare
Choose a tag to compare
@LebCit LebCit released this 05 Jul 21:32
· 32 commits to main since this release

Details

In LiteNode v3.0.0, I've undertaken a complete ground-up rewrite to enhance modularity and maintainability. This major update reorganizes the core structure by breaking down functionalities into individual modules, allowing for cleaner code and easier management. By separating internal methods and classes into dedicated files, I've significantly improved code readability and extensibility, paving the way for future enhancements and smoother integrations. This release marks a pivotal step in LiteNode's evolution, offering a more robust and scalable framework for your projects.

BREAKING CHANGE: As of version 3.0.0, LiteNode no longer supports being loaded using require. This change aims to maintain and enhance LiteNode in a modular way, which would be difficult to achieve if backward compatibility with CommonJS were maintained.

Changes

  • Put LiteNode's declaration in a "types" directory
  • Create utility functions in "utils" folder within "core" directory
  • Refactor preprocessConditionals: split into multiple files
  • Refactor: Separate readFileContent and handleIncludes into individual files
  • Refactor: Modularize STE class by importing functions from separate files
  • Refactor: Break down SMP class functions into separate files
  • Refactor: Modularize SMP class by importing functions from separate files
  • Refactor: Separate Markdown helper functions into individual files
  • Refactor: Separate LiteNode's private methods into individual files
  • Refactor: Separate RouteNode and StaticAssetLoader classes into individual files
  • Refactor: Modularize LiteNode class by importing functions from separate files
  • Docs: Update README with breaking change note and remove incompatible code
  • Chore: Bump version to 3.0.0 and update package.json configuration