Skip to content

4.0

Compare
Choose a tag to compare
@AdamNaj AdamNaj released this 18 Mar 15:21
· 1481 commits to master since this release

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-SearchIndex command now returns an existing job 558 for an index if currently rebuilding.
  • Request related variables such as $HttpContext are no longer added to the session 557 but can still be accessed through their static context properties.
  • The Publish-Item command now supports the additional publishing options 539 introduced in Sitecore 7.1. The default behavior was changed to synchronous and requires the AsJob parameter to run asynchronously.
  • The Add-ItemLanguage and Remove-ItemLanguage commands were renamed 532 to Add-ItemVersion and Remove-ItemVersion since item versions and languages are managed almost the same.
  • The user management commands received an adjustment 520 498 497 in which New-Role no longer requires -Passthru to output the resulting account. Also, the Remove-User command now accepts the User object 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-SearchIndexItem and removing with Remove-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-Result command also retains 566 the colors of the host session.
  • Variables are now hidden from the autocomplete 560 unless the token begins with a $.
  • The ScriptSession now contains a property LastErrors 559 that contains the errors encountered in a script rather than cluttering the log.
  • The Publish-Item command 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-ListView command now enumerates collections 544 rather than printing the class name.
  • The UseDefaultCredentials parameter is now supported 531 when using the New-ScriptSession command in SPE Remoting.
  • The Publish-Item command will not publish to all targets by default 530 without requiring the target to be specified.
  • Some of the UI elements using Show-ListView can be hidden when using the Hide parameter 521.
  • Your favorite commands Get-Item and Get-ChildItem now have 519 tab completion on the -Language and -Database parameters.
  • SPE Remoting supports $using:[variablename] in the scriptblock 499.

Fixes

  • The SPE Remoting commands Send-RemoteItem and Receive-RemoteItem now use Write-Error when an error is encountered 564.
  • The Show-Result command was not adhering to the font settings 552.
  • The GetItemWorkflowEvent command threw exceptions for missing optional parameters 545.
  • Automatic properties no longer require a restart to update 534.