Skip to content

NE v2.5.0

Choose a tag to compare

@Kate-alt-69 Kate-alt-69 released this 27 Aug 13:37
· 101 commits to main since this release

Since v2.0.0

  • πŸ› Bug fixes: 50+
  • ⚑ Performance optimizations: 20+
  • ✨ New features: 8+
  • πŸ”§ API/runtime improvements: 25+
  • πŸ“¦ Build & package improvements: 10+
  • πŸ“š Documentation updates: 15+
  • πŸ§ͺ New CI/regression checks: 6+

Highlights

  • New APIStatic system for compiled .route endpoints
  • Major EngineCanvas / 2D / 3D / SVG performance rewrite
  • Major EngineManim performance + lifecycle improvements
  • EngineScroll scheduler and navigation overhaul
  • Hardened EngineBrowser SSR support
  • Better lazy loading, observer pooling, media loading, and code splitting
  • Large EngineAPIResolver correctness pass
  • Automatic main β†’ main-empty package synchronization
  • New production build, APIStatic, SSR, package, and bundle-size CI checks

APIStatic

APIStatic can now:

  • Compile data/endpoint/**/*.route into browser-loadable static endpoint modules
  • Generate a route manifest automatically
  • Use stable logical endpoint names without manually dealing with hashes
  • Support multiple operations per endpoint
  • Support run.query, run.body, run.input, and run.proxy
  • Validate and coerce typed input schemas
  • Support defaults and optional values
  • Use normal async functions, fetch(), objects, arrays, and TypeScript syntax
  • Return normal values or explicit response(...)
  • Throw controlled error(...) responses
  • Call configured backend bridges through proxy()
  • Discover endpoints with APIStatic.names(), has(), and getEndpoints()
  • Automatically watch and recompile .route files during development
  • Preserve the last-known-good build if compilation fails
  • Publish endpoint JS + manifest atomically
  • Handle lexical scopes correctly, including normal variables like const response
  • Safely support compact helper[...] call syntax without corrupting arrays, strings, comments, regex, or shadowed variables
  • Integrate directly with EngineAPIResolver
  • Run dedicated compiler/runtime regression tests in CI

Overall: v2.5.0 focuses heavily on performance, runtime correctness, APIStatic, and making NE's documented APIs actually match the implementation.