Skip to content

2.1.0

Compare
Choose a tag to compare
@blipson89 blipson89 released this 09 Oct 18:55
· 27 commits to main since this release
57a1c45

Highlights

  • Update to Sitecore CLI 4.0
  • Added watch support to the Sitecore Input Provider
  • You can now override the generated type of a specific field
  • ⚠️See Backwards Compatibility Notes⚠️

Enhancements / Changes

  • Added: watch capability to the Sitecore input provider
  • Added: version number to CSX templates. Generated code can now accurately reflect the version of Leprechaun
  • Added: ability to override the type on a specific field (#11)
  • Changed: Stack traces are hidden by default. Use /d or /debug to show full error messages
  • Changed: Updated the GlassMapper.csx template with a bit more detail (#45)

Bug Fixes

  • #44 - SitecoreTemplateReader no longer crashes when scope is set to DescendantsOnly
  • #44 - SitecoreTemplateReader now properly respects the template predicate (see note below)
  • #46 - Multiple base templates now get parsed correctly (thank you @Viktar-Semiarykou)

⚠️ Backwards Compatibility Notes

  • [MINOR] For the Sitecore Input Provider, the name in the include of the templatePredicate MUST match the name of the Include in the .module.json file in order to generate templates. See the Leprechaun.config file for more information.

How to Update

  1. Run either:
    • dotnet tool update leprechaun.cli (if installed locally)
    • dotnet tool update -g leprechaun.cli (if installed globally)
  2. If using Sitecore Serialization, ensure the templatePredicate is setup correctly in your Leprechaun.config (see backwards compatibility notes)