Skip to content

Commit fa11827

Browse files
authored
Merge pull request #523 from michaeltlombardi/docs/main/preview.9
(DOCS) Updates for `preview.9`
2 parents ed2b94e + cf6a720 commit fa11827

File tree

11 files changed

+708
-70
lines changed

11 files changed

+708
-70
lines changed

CHANGELOG.md

Lines changed: 263 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,240 @@ changes since the last release, see the [diff on GitHub][unreleased].
7373

7474
<!-- Unreleased change links -->
7575

76+
## [v3.0.0-preview.9][release-v3.0.0-preview.9] - 2024-08-15
77+
78+
This section includes a summary of changes for the `preview.9` release. For the full list of changes
79+
in this release, see the [diff on GitHub][compare-v3.0.0-preview.9].
80+
81+
<!-- Release links -->
82+
[release-v3.0.0-preview.9]: https://github.com/PowerShell/DSC/releases/tag/v3.0.0-preview.9 "Link to the DSC v3.0.0-preview.9 release on GitHub"
83+
[compare-v3.0.0-preview.9]: https://github.com/PowerShell/DSC/compare/v3.0.0-alpha.4...v3.0.0-preview.9
84+
85+
### Removed
86+
87+
- Removed the `url` sub-property from the `schema` property in resource manifests. Starting with
88+
this release, resources must either embed their instance property JSON schema in the manifest or
89+
define the command that returns the JSON schema for validation.
90+
91+
<details><summary>Related work items</summary>
92+
93+
- Issues: _None_.
94+
- PRs: [#457][#457]
95+
96+
</details>
97+
98+
### Changed
99+
100+
- Changed the invocation for resources from synchronous to asynchronous. Starting with this
101+
release, resource invocations are handled asynchronously. This reduced errors related to
102+
processing and laid the groundwork for real-time progress reporting.
103+
104+
<details><summary>Related work items</summary>
105+
106+
- Issues: [#491][#491]
107+
- PRs: [#493][#493]
108+
109+
</details>
110+
111+
- Changed the `import` resource type to function as a group resource. This resource instances
112+
resolved from import to be used correctly for all operations.
113+
114+
<details><summary>Related work items</summary>
115+
116+
- Issues: _None_.
117+
- PRs: [#500][#500]
118+
119+
</details>
120+
121+
- Changed the inserted property indicating the fully qualified type for an adapted resource from
122+
`type` to `adapted_dsc_type`. Prior to this release, DSC forwarded the information about adapted
123+
resource instances to the adapters by inserting the `type` property into the property bag for the
124+
instance, which had the potential to cause conflicts with actual resource properties named
125+
`type`. This change reduces the probability of conflicts by renaming the inserted property to the
126+
more explicit `adapted_dsc_type`.
127+
128+
<details><summary>Related work items</summary>
129+
130+
- Issues: _None_.
131+
- PRs: [#482][#482]
132+
133+
</details>
134+
135+
### Added
136+
137+
- Added support for using variables in a configuration document. Prior to this release, variables
138+
could be defined in the document but not referenced from resource instances with a configuration
139+
function. This release includes the new `variables()` configuration function. For more
140+
information, see the [reference documentation][p9-01].
141+
142+
<details><summary>Related work items</summary>
143+
144+
- Issues: [#57][#57]
145+
- PRs: [#511][#511]
146+
147+
</details>
148+
149+
- Added support for indexing into arrays when using configuration functions. This enables users to
150+
access specific items in an array of values returned by a configuration function, such as whe
151+
referencing the output of a resource. For more information about configuration functions, see
152+
[DSC Configuration document functions reference][p9-02]. For a detailed example showing how to
153+
access items in an array, see [Example 4][p9-03].
154+
155+
<details><summary>Related work items</summary>
156+
157+
- Issues: [#509][#509]
158+
- PRs: [#514][#514]
159+
160+
</details>
161+
162+
- Added handling to ensure that the folder containing `dsc` is always searched for resources. This
163+
enables users to find and use built-in resources without manually updating their `PATH`
164+
environment variable. This change has no effect when the `DSC_RESOURCE_PATH` environment variable
165+
is defined.
166+
167+
<details><summary>Related work items</summary>
168+
169+
- Issues: [#494][#494]
170+
- PRs: [#499][#499]
171+
172+
</details>
173+
174+
- Added support for PSDSC resources defined as derived classes. Prior to this release, the adapter
175+
didn't support invoking derived classes as resources.
176+
177+
<details><summary>Related work items</summary>
178+
179+
- Issues: [#462][#462]
180+
- PRs: [#469][#469]
181+
182+
</details>
183+
184+
- Added the option to clear the PowerShell adapter caches with the `ClearCache` operation. Prior to
185+
this release, the caches needed to be cleared manually.
186+
187+
<details><summary>Related work items</summary>
188+
189+
- Issues: _None_.
190+
- PRs: [#468][#468]
191+
192+
</details>
193+
194+
- Improved reliability of the PowerShell adapter caches. Starting with this release, the adapter
195+
caches include a property defining the version of the caching logic they use. If the adapter
196+
caching version doesn't match the property of the cache, the adapter rebuilds it with the new
197+
version. This enables updating the caching logic in new releases.
198+
199+
<details><summary>Related work items</summary>
200+
201+
- Issues: _None_.
202+
- PRs: [#468][#468]
203+
204+
</details>
205+
206+
- Added support for the [WhatIf capability][p9-04] to the `Microsoft.Windows/Registry` resource,
207+
improving the user experience when calling `dsc config set` with the [--what-if][p9-05] option.
208+
209+
<details><summary>Related work items</summary>
210+
211+
- Issues: [#452][#452]
212+
- PRs: [#465][#465]
213+
214+
</details>
215+
216+
- Added handling for when `dsc` is launched from Explorer or the Microsoft Store. Starting with
217+
this release, when `dsc` is launched from the Microsoft Store application or Explorer, it shows a
218+
message linking users to the documentation and waits for a key press before exiting.
219+
220+
<details><summary>Related work items</summary>
221+
222+
- Issues: _None_.
223+
- PRs: [#481][#481]
224+
225+
</details>
226+
227+
- Improved performance for the PowerShell adapter caching by immediately invalidating the cache
228+
when the cache timestampe entries are stale or missing instead of checking each module in the
229+
cache.
230+
231+
<details><summary>Related work items</summary>
232+
233+
- Issues: _None_.
234+
- PRs: [#497][#497]
235+
236+
</details>
237+
238+
### Fixed
239+
240+
- Fixed a bug in the `Microsoft.Windows/PowerShell` adapter causing it to always invoke the `Get` operation.
241+
242+
<details><summary>Related work items</summary>
243+
244+
- Issues: [#445][#445]
245+
- PRs: [#480][#480]
246+
247+
</details>
248+
249+
- Fixed a bug in the PowerShell adapters that caused errors when it discovered multiple modules
250+
with the same name. Starting with this release, the adapter chooses the version of the module
251+
with the latest version.
252+
253+
<details><summary>Related work items</summary>
254+
255+
- Issues: [#487][#487]
256+
- PRs: [#489][#489]
257+
258+
</details>
259+
260+
- Fixed the error messaging when DSC doesn't get any input for a `Test` operation to clearly
261+
indicate the problem. Prior to this release, users received a difficult-to-decipher message about
262+
an unexpected end of file instead.
263+
264+
<details><summary>Related work items</summary>
265+
266+
- Issues: [#484][#484]
267+
- PRs: [#504][#504]
268+
269+
</details>
270+
271+
- Fixed the behavior when a user specifies an invalid name or wildcard filter when calling
272+
`dsc resource list` with the `--adapter` option. Prior to this release, DSC returned no data.
273+
Starting with this release, DSC writes a message to STDERR indicating that no adapter was found.
274+
The operation still exits with exit code `0`.
275+
276+
<details><summary>Related work items</summary>
277+
278+
- Issues: [#477][#477]
279+
- PRs: [#506][#506]
280+
281+
</details>
282+
283+
- Fixed the PowerShell adapters to correctly handle cache updates when a module containing
284+
resources is deleted externally.
285+
286+
<details><summary>Related work items</summary>
287+
288+
- Issues: [#495][#495]
289+
- PRs: [#497][#497]
290+
291+
</details>
292+
293+
- Fixed the PowerShell adapters to return a clear error message when a user attempts to call the
294+
`Export` operation on an adapted resource that doesn't support it.
295+
296+
<details><summary>Related work items</summary>
297+
298+
- Issues: [#503][#503]
299+
- PRs: [#505][#505]
300+
301+
</details>
302+
303+
<!-- Preview.9 links -->
304+
[p9-01]: docs/reference/schemas/config/functions/variables.md
305+
[p9-02]: docs/reference/schemas/config/functions/overview.md
306+
[p9-03]: docs/reference/schemas/config/functions/overview.md#example-4---access-object-properties-and-array-items
307+
[p9-04]: docs/reference/schemas/outputs/resource/list.md#capability-whatif
308+
[p9-05]: docs/reference/cli/config/set.md#-w---what-if
309+
76310
## [v3.0.0-preview.8][release-v3.0.0-preview.8] - 2024-06-19
77311

78312
This section includes a summary of changes for the `preview.8` release. For the full list of changes
@@ -1574,10 +1808,38 @@ For the full list of changes in this release, see the [diff on GitHub][compare-v
15741808
[#439]: https://github.com/PowerShell/DSC/issues/439
15751809
[#441]: https://github.com/PowerShell/DSC/issues/441
15761810
[#444]: https://github.com/PowerShell/DSC/issues/444
1811+
[#445]: https://github.com/PowerShell/DSC/issues/445
1812+
[#45]: https://github.com/PowerShell/DSC/issues/45
1813+
[#452]: https://github.com/PowerShell/DSC/issues/452
15771814
[#454]: https://github.com/PowerShell/DSC/issues/454
1815+
[#457]: https://github.com/PowerShell/DSC/issues/457
1816+
[#462]: https://github.com/PowerShell/DSC/issues/462
15781817
[#464]: https://github.com/PowerShell/DSC/issues/464
1579-
[#45]: https://github.com/PowerShell/DSC/issues/45
1818+
[#465]: https://github.com/PowerShell/DSC/issues/465
1819+
[#468]: https://github.com/PowerShell/DSC/issues/468
1820+
[#469]: https://github.com/PowerShell/DSC/issues/469
1821+
[#477]: https://github.com/PowerShell/DSC/issues/477
1822+
[#480]: https://github.com/PowerShell/DSC/issues/480
1823+
[#481]: https://github.com/PowerShell/DSC/issues/481
1824+
[#482]: https://github.com/PowerShell/DSC/issues/482
1825+
[#484]: https://github.com/PowerShell/DSC/issues/484
1826+
[#487]: https://github.com/PowerShell/DSC/issues/487
1827+
[#489]: https://github.com/PowerShell/DSC/issues/489
15801828
[#49]: https://github.com/PowerShell/DSC/issues/49
1829+
[#491]: https://github.com/PowerShell/DSC/issues/491
1830+
[#493]: https://github.com/PowerShell/DSC/issues/493
1831+
[#494]: https://github.com/PowerShell/DSC/issues/494
1832+
[#495]: https://github.com/PowerShell/DSC/issues/495
1833+
[#497]: https://github.com/PowerShell/DSC/issues/497
1834+
[#499]: https://github.com/PowerShell/DSC/issues/499
1835+
[#500]: https://github.com/PowerShell/DSC/issues/500
1836+
[#503]: https://github.com/PowerShell/DSC/issues/503
1837+
[#504]: https://github.com/PowerShell/DSC/issues/504
1838+
[#505]: https://github.com/PowerShell/DSC/issues/505
1839+
[#506]: https://github.com/PowerShell/DSC/issues/504
1840+
[#509]: https://github.com/PowerShell/DSC/issues/509
1841+
[#511]: https://github.com/PowerShell/DSC/issues/511
1842+
[#514]: https://github.com/PowerShell/DSC/issues/514
15811843
[#57]: https://github.com/PowerShell/DSC/issues/57
15821844
[#70]: https://github.com/PowerShell/DSC/issues/70
15831845
[#73]: https://github.com/PowerShell/DSC/issues/73

0 commit comments

Comments
 (0)