Skip to content

v4.3.0

Choose a tag to compare

@LebCit LebCit released this 23 Feb 19:52
· 18 commits to main since this release

LiteNode 4.3.0

I'm excited to announce LiteNode 4.3.0, bringing significant enhancements to template handling, static asset management, and configuration capabilities. This release focuses on improved flexibility, performance, and developer experience.

Major Features

Enhanced Template Engine Path Resolution

  • Universal directory structure support with unlimited nesting depth
  • Flexible include paths that work at any directory level:
    • Support for root level files (index.html)
    • Single directory files (theme/index.html)
    • Deeply nested files (site/theme/templates/index.html)
  • Intelligent path resolution that adapts to file location context
  • Backward compatible with absolute paths while adding relative path support (./file.html, ../folder/file.html)
  • Works seamlessly in both standard (views directory) and root mode

Improved Array Filter System

  • New unified property access system for consistent object traversal
  • Enhanced error reporting with filter-specific context
  • New sortByDate filter for chronological sorting
  • Improved handling of nested properties in sortBy, groupBy, and where filters
  • Consistent behavior across all array-handling operations

Optimized Static Asset Loading

  • Intelligent caching system with environment awareness
  • ETag support for validation caching
  • Content-type caching to reduce MIME type lookups
  • Smart Cache-Control headers based on environment
  • Improved file watching with deletion handling
  • Cross-platform path normalization
  • Enhanced error logging and recovery

Built-in Environment Variable Support

  • Native .env file support without external dependencies
  • Automatic type conversion for environment variables
  • Support for default values and fallbacks
  • Configuration for environment-specific settings
  • Full TypeScript definition updates

Breaking Changes

None. This release maintains full backward compatibility.

Upgrading

npm install litenode@4.3.0

Documentation

Full documentation for these new features is available at https://litenode.pages.dev/docs/