4.0
Version 4.0
A lot of hard work went into this release. Wasn't released as soon as we hoped, but we are certain many of you will be pleased with the results. Happy coding!
Full issue list available on GitHub - 95 issues.
Summary of important changes
Breaking Changes
- The
Rebuild-SearchIndexcommand now returns an existing job 558 for an index if currently rebuilding. - Request related variables such as
$HttpContextare no longer added to the session 557 but can still be accessed through their static context properties. - The
Publish-Itemcommand now supports the additional publishing options 539 introduced in Sitecore 7.1. The default behavior was changed to synchronous and requires theAsJobparameter to run asynchronously. - The
Add-ItemLanguageandRemove-ItemLanguagecommands were renamed 532 toAdd-ItemVersionandRemove-ItemVersionsince item versions and languages are managed almost the same. - The user management commands received an adjustment 520 498 497 in which
New-Roleno longer requires-Passthruto output the resulting account. Also, theRemove-Usercommand now accepts theUserobject as input. - User reported 511 that SPE conflicted with the InSite Commerce product due to the 2.x services location so we went ahead and broke compatibility.
New Features
- A new Experience Button integration point was added 546.
- Method signature in the ISE received a face lift 541. Now you can see the argument data types!
- Type names now autocomplete 540.
- SPE Remoting now supports uploading large files 528.
- Rebuilding the index for single items is now possible 523 with
Rebuild-SearchIndexItemand removing withRemove-SearchIndexItem. - Added a report 513 for unpublished items in one or more targets.
- Users can now peek the session variable values by way of a tooltip 495.
- The ISE now shows when a script is modified or not yet saved 458.
Enhancements
- We went crazy on the styling of the console windows so now you can 565 configure the foreground and background colors. The
Show-Resultcommand also retains 566 the colors of the host session. - Variables are now hidden from the autocomplete 560 unless the token begins with a
$. - The
ScriptSessionnow contains a property LastErrors 559 that contains the errors encountered in a script rather than cluttering the log. - The
Publish-Itemcommand suggests database names 553 and filesystem is no longer an option. - The export command in reports no longer require a temporary file 551. This should now add support in hosted environments such as Azure 549529.
- The
Show-ListViewcommand now enumerates collections 544 rather than printing the class name. - The
UseDefaultCredentialsparameter is now supported 531 when using theNew-ScriptSessioncommand in SPE Remoting. - The
Publish-Itemcommand will not publish to all targets by default 530 without requiring the target to be specified. - Some of the UI elements using
Show-ListViewcan be hidden when using the Hide parameter 521. - Your favorite commands
Get-ItemandGet-ChildItemnow have 519 tab completion on the-Languageand-Databaseparameters. - SPE Remoting supports
$using:[variablename]in the scriptblock 499.
Fixes
- The SPE Remoting commands
Send-RemoteItemandReceive-RemoteItemnow useWrite-Errorwhen an error is encountered 564. - The
Show-Resultcommand was not adhering to the font settings 552. - The
GetItemWorkflowEventcommand threw exceptions for missing optional parameters 545. - Automatic properties no longer require a restart to update 534.