|
| 1 | +# Change Log |
| 2 | + |
| 3 | +All notable changes to this project will be documented in this file. |
| 4 | + |
| 5 | +The format is based on [Keep a Changelog](http://keepachangelog.com/), |
| 6 | +and this project adheres to [Semantic Versioning](http://semver.org/). |
| 7 | + |
| 8 | +## [2.0.0] - 2017-08-17 |
| 9 | +A new major version! ConfluencePS has been totally refactored to introduce new features and greatly improve efficiency. |
| 10 | + |
| 11 | +"A new major version" means limited older functionality was intentionally broken. In addition, there are a ton of good changes, so some big picture notes first: |
| 12 | + |
| 13 | +- All functions changed from "Wiki" prefix to "Confluence", like `Get-ConfluencePage` |
| 14 | + - But the module accommodates for any prefix you want, e.g. `Import-Module ConfluencePS -Prefix Wiki` |
| 15 | +- Functions changed or removed: |
| 16 | + - `Get-WikiLabelApplied` [removed; functionality added to `Get-ConfluencePage -Label foo`] |
| 17 | + - `Get-WikiPageLabel` > `Get-ConfluenceLabel` |
| 18 | + - `New-WikiLabel` > `Add-ConfluenceLabel` |
| 19 | +- `Get-*` functions now support paging, and defining your preferred page size |
| 20 | +- `-Limit` and `-Expand` parameters were removed from functions |
| 21 | + - With paging implementation, modifying the returned object limit isn't necessary |
| 22 | + - And allows for richer objects to be returned by default |
| 23 | +- `-ApiUri` and `-Credential` parameters added to every function |
| 24 | + - This is useful if you have more than one Confluence instance |
| 25 | + - `Set-ConfluenceInfo` now defines `ApiUri` and `Credential` defaults for the current session |
| 26 | + - And you can override any single function: |
| 27 | + - `Get-ConfluenceSpace -ApiUri 'https://wiki2.example.com' -Credential (Get-Credential)` |
| 28 | +- All functions now output custom object types, like `[ConfluencePS.Page]` |
| 29 | + - Allows for returning more object properties... |
| 30 | + - ...and only displaying the most relevant in the default output |
| 31 | + - Also enables a much improved pipeline flow |
| 32 | + - This behavior removed the need for the `-Expand` parameter |
| 33 | +- Private functions are leveraged heavily to reduce repeat code |
| 34 | + - `Invoke-Method` is the most prominent example |
| 35 | + |
| 36 | +If you like drinking from the firehose, here's [everything we closed for 2.0], because we probably forgot to list something here. Otherwise, read on for summarized details. |
| 37 | + |
| 38 | +### Added |
| 39 | +- All `Get-*` functions now support paging |
| 40 | +- `-ApiUri` and `-Credential` parameters added to functions |
| 41 | + - `Set-ConfluenceInfo` behavior is mostly unchanged (see below) |
| 42 | +- Objects returned are now custom typed, like `[ConfluencePS.Page]` |
| 43 | + - Try piping ConfluencePS objects into `Format-List *` to see all properties |
| 44 | + |
| 45 | +### Changed |
| 46 | +- Function prefix defaults to "Confluence" instead of "Wiki" (`Get-ConfluenceSpace`) |
| 47 | + - If you like "Wiki", you can `Import-Module ConfluencePS -Prefix Wiki` |
| 48 | +- `Add-ConfluenceLabel` |
| 49 | + - Name used to be `New-WikiLabel` |
| 50 | + - The "Add" verb better reflects the function's behavior |
| 51 | +- `Get-ConfluenceChildPage` |
| 52 | + - Default behavior returns only immediate child pages. Which also means... |
| 53 | + - Added `-Recurse` to return all pages below the given page, not just immediate child objects |
| 54 | + - NOTE: Recurse is not available in on-prem installs right now, only Atlassian cloud instances |
| 55 | + - `-ParentID` > `-PageID` |
| 56 | +- `Get-ConfluenceLabel` |
| 57 | + - Name used to be `Get-WikiPageLabel` |
| 58 | + - Now returns `[ConfluencePS.ContentLabelSet]` objects |
| 59 | + - Which are relationships of `[ConfluencePS.Label]` & `[ConfluencePS.Page]` objects |
| 60 | +- `Get-ConfluencePage` |
| 61 | + - `Get-ConfluencePage` (with no parameters) doesn't work anymore |
| 62 | + - With paging supported, this would be a ton of pages |
| 63 | + - `Get-ConfluenceSpace | Get-ConfluencePage` still works, if you really need it |
| 64 | + - Now returns `[ConfluencePS.Page]` objects |
| 65 | + - New `-Label` parameter filters returned pages by applied label(s) |
| 66 | + - New `-Space` parameter accepts Space objects |
| 67 | +- `Get-ConfluenceSpace` |
| 68 | + - Now returns `[ConfluencePS.Space]` objects |
| 69 | + - `-Key` renamed to `-SpaceKey` ("Key" still works as an alias) |
| 70 | + - `-Name` parameter removed |
| 71 | +- `New-ConfluencePage` |
| 72 | + - New `-Parent` parameter accepts Page objects |
| 73 | + - New `-Space` parameter accepts Space objects |
| 74 | +- `New-ConfluenceSpace` |
| 75 | + - `-Key` renamed to `-SpaceKey` ("Key" still works as an alias) |
| 76 | +- `Set-ConfluenceInfo` |
| 77 | + - Now adds the URI/Credential to `$PSDefaultParameterValues` |
| 78 | + - `-ApiUri` & `-Credential` parameters now exist on every function |
| 79 | + - `Set-ConfluenceInfo` defines their defaults for the current session |
| 80 | + - Meaning they could still be overwritten on any single command |
| 81 | + - No longer automatically prompts for credentials if `-Credential` is absent |
| 82 | + - Allows for anonymous authentication to public instances |
| 83 | + - New `-PromptCredentials` parameter displays a `Get-Credential` dialog while connecting |
| 84 | + - New `-PageSize` parameter optionally defines default page size for the session |
| 85 | +- `Set-ConfluencePage` |
| 86 | + - Now returns `[ConfluencePS.Page]` objects |
| 87 | + - `-CurrentVersion` parameter removed (determined and incremented automatically now) |
| 88 | + - New `-Parent` parameter accepts Page objects |
| 89 | + |
| 90 | +### Removed |
| 91 | +- `-Limit` and `-Expand` parameters |
| 92 | + - `Get-*` function paging removes the need for fiddling with returned object limits |
| 93 | + - Custom object types hold relevant properties, removing the need to manually "expand" results |
| 94 | +- `Get-WikiLabelApplied` |
| 95 | + - Functionality replaced with `Get-ConfluencePage -Label foo` |
| 96 | + |
| 97 | +### Much ❤ |
| 98 | +[@lipkau](https://github.com/lipkau) refactored the entire module, and is the only reason `2.0` is a reality. In short, he is amazing. Thank you! |
| 99 | + |
| 100 | + |
| 101 | +## [1.0.0-69] - 2016-11-28 |
| 102 | +No changelog available for version `1.0` of ConfluencePS. `1.0` was created in late 2015. Version `.69` was published to the PowerShell Gallery in Nov 2016, and it remained unchanged until `2.0`. If you're looking for things that changed prior to `2.0`...sorry, but these probably aren't the droids you're looking for. :) |
| 103 | + |
| 104 | + |
| 105 | + |
| 106 | +[everything we closed for 2.0]: https://github.com/AtlassianPS/ConfluencePS/issues?utf8=%E2%9C%93&q=closed%3A2017-04-01..2017-08-17 |
0 commit comments