Releases: blipson89/Leprechaun
Releases · blipson89/Leprechaun
2.2.5
2.2.4
Enhancements / Changes
- Added: better error handling around Sitecore CLI errors to help users determine how to resolve the issue (thanks @daivagna)
- Added: Sitecore Headless codegen csx files (thanks @Davy803)
How to Update
- Run either:
dotnet tool update leprechaun.cli
(if installed locally)dotnet tool update -g leprechaun.cli
(if installed globally)
2.2.2
Enhancements / Changes
- Added: ability to write to multiple files at once #56
- Changed: Updated to .NET 6
- Changed: Updated unit test suite
Bug Fixes
How to Update
- Run either:
dotnet tool update leprechaun.cli
(if installed locally)dotnet tool update -g leprechaun.cli
(if installed globally)
2.1.0
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 whenscope
is set toDescendantsOnly
- #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 theinclude
of thetemplatePredicate
MUST match the name of theInclude
in the.module.json
file in order to generate templates. See the Leprechaun.config file for more information.
How to Update
- Run either:
dotnet tool update leprechaun.cli
(if installed locally)dotnet tool update -g leprechaun.cli
(if installed globally)
- If using Sitecore Serialization, ensure the
templatePredicate
is setup correctly in your Leprechaun.config (see backwards compatibility notes)
2.0.1
2.0.0
Highlights
- Leprechaun is now a dotnet tool!
- Added support for Sitecore Serialization (Sitecore 10)
- Major refactor to support additional serialization providers
⚠️ BACKWARDS INCOMPATIBLE CHANGES See upgrading section in the readme⚠️
Enhancements / Changes
- Added:
Leprechaun.Cli
dotnet tool - Added:
Sitecore.InputProviders.Sitecore
- Input provider for Sitecore Serialization (Sitecore 10) - Changed: Moved Rainbow related code to
Sitecore.InputProviders.Rainbow
Installation
Going forward, Leprechaun is available as a dotnet tool. Read the Installing Leprechaun section of the readme
1.1.1
Highlights
- Added whitelisting for base templates, and added the "Rendering Parameters" template to this list
- Merged some community enhancements to the
.csx
scripts - Under the hood: changed the solution to use the modern SDK format for
csproj
files ⚠️ Updated Leprechaun to .NET 4.7.2⚠️
Enhancements / Changes
- Added: whitelisting for missing base templates (#20)
- See lines 106-108 in Leprechaun.config
- Added: All template field info fields are now available (PR #28 - thanks @jbreuer )
- Added:
[GeneratedCode]
attribute has been added to the out of the box CSX scripts (PR #26 - thanks @basvanmeer) - Changed: Removed hardcoded namespace in default Glass Mapper (PR #25 - thanks @whuu)
- Changed: "Multilist with Search" has been added to the default CSX scripts (PR #23 - thanks @lcjordan)
- Changed:
global::
namespace added to the default CSX scripts (PR #22 - thanks @lcjordan) - Changed: now requires .NET 4.7.2
1.0.1
Highlights
- Glass Mapper Support
- NuGet Package Tweaks
- Fixes and Enhancements
Enhancements / Changes
- Added Glass Mapper support with GlassMapper.csx! Special thanks to @sitecoremaster
- Add the global scope to namespaces to inherited interfaces in Synthesis.csx for friending (#14 - credit @lcjordan)
- Added more unit tests
- Updated Readme to contain a troubleshooting section. More to come later.
HelpText
for fields will fall back toName
if bothField.HelpText
andDisplayName
are blank- Added new attribute to
<typeNameGenerator>
calledkeepLeadingUnderscores
to allow for item names to keep a leading_
(i.e._Foo
andI_Foo
)⚠️ BACKWARDS COMPATIBILITY NOTE. If you are upgrading from an older version, you must addkeepLeadingUnderscores="false"
to your<typeNameGenerator>
node inLeprechaun.config
Fixes
1.0.1-pre03
Version 1.0.1-pre03
This is a small release that adds a few enhancements and changes.
Enhancements / Changes
- Updated Readme to contain a troubleshooting section. More to come later.
HelpText
for fields will fall back toName
if bothField.HelpText
andDisplayName
are blank- Added new attribute to
<typeNameGenerator>
calledkeepLeadingUnderscores
to allow for item names to keep a leading_
(i.e._Foo
andI_Foo
)⚠️ BACKWARDS COMPATIBILITY NOTE. If you are upgrading from an older version, you must addkeepLeadingUnderscores="false"
to your<typeNameGenerator>
node inLeprechaun.config
1.0.1-pre02
Version 1.0.1-pre02
This is a small release that resolves config path problem (issue #18 )
Fixes
- Fixed: The main config file will now properly resolve exe-relative paths