Your AdonisJS ecosystem, in the loop.
All insights
release

Faster container resolution in @adonisjs/fold v11.1.1

· Developer impact : medium

The @adonisjs/fold package version 11.1.1 introduces a performance improvement where classes without dependencies are constructed directly, bypassing the usual resolution pipeline. This results in approximately 3x faster execution of container.make and resolver.call for such classes or methods. The behavior remains consistent with previous versions, including error handling and event emissions. Additionally, a bug fix ensures classes defining a static toString method are correctly detected as classes by the container.

What this means for your code

Developers using @adonisjs/fold will experience faster instantiation of classes without dependencies, improving application startup and runtime performance. No changes to existing code are required as observable behavior and APIs remain unchanged. The bug fix improves class detection reliability, potentially resolving edge cases where classes with static toString methods were misidentified.

  • Upgrade @adonisjs/fold to version 11.1.1 to benefit from faster container resolution and the class detection bug fix.
  • No code changes or migration steps are necessary.
  • Test applications to confirm no regressions in container behavior.

Original sources

AI-generated analysis based on the linked sources. Check the original documentation before changing your application.

Independent ecosystem watch. Sources linked in every insight.Built with AdonisJS · AI-assisted summariesBy Jérémy Chaufourier · chaufourier.fr