@@ -73,6 +73,229 @@ changes since the last release, see the [diff on GitHub][unreleased].
73
73
74
74
<!-- Unreleased change links -->
75
75
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.
140
+
141
+ <details ><summary >Related work items</summary >
142
+
143
+ - Issues: [ #57 ] [ #57 ]
144
+ - PRs: [ #511 ] [ #511 ]
145
+
146
+ </details >
147
+
148
+ - Added support for indexing into arrays when using configuration functions. This enables users to
149
+ access specific items in an array of values returned by a configuration function, such as whe
150
+ referencing the output of a resource.
151
+
152
+ <details ><summary >Related work items</summary >
153
+
154
+ - Issues: [ #509 ] [ #509 ]
155
+ - PRs: [ #514 ] [ #514 ]
156
+
157
+ </details >
158
+
159
+ - Added handling to ensure that the folder containing ` dsc ` is always searched for resources. This
160
+ enables users to find and use built-in resources without manually updating their ` PATH `
161
+ environment variable. This change has no effect when the ` DSC_RESOURCE_PATH ` environment variable
162
+ is defined.
163
+
164
+ <details ><summary >Related work items</summary >
165
+
166
+ - Issues: [ #494 ] [ #494 ]
167
+ - PRs: [ #499 ] [ #499 ]
168
+
169
+ </details >
170
+
171
+ - Added support for PSDSC resources defined as derived classes. Prior to this release, the adapter
172
+ didn't support invoking derived classes as resources.
173
+
174
+ <details ><summary >Related work items</summary >
175
+
176
+ - Issues: [ #462 ] [ #462 ]
177
+ - PRs: [ #469 ] [ #469 ]
178
+
179
+ </details >
180
+
181
+ - Added the option to clear the PowerShell adapter caches with the ` ClearCache ` operation. Prior to
182
+ this release, the caches needed to be cleared manually.
183
+
184
+ <details ><summary >Related work items</summary >
185
+
186
+ - Issues: _ None_ .
187
+ - PRs: [ #468 ] [ #468 ]
188
+
189
+ </details >
190
+
191
+ - Improved reliability of the PowerShell adapter caches. Starting with this release, the adapter
192
+ caches include a property defining the version of the caching logic they use. If the adapter
193
+ caching version doesn't match the property of the cache, the adapter rebuilds it with the new
194
+ version. This enables updating the caching logic in new releases.
195
+
196
+ <details ><summary >Related work items</summary >
197
+
198
+ - Issues: _ None_ .
199
+ - PRs: [ #468 ] [ #468 ]
200
+
201
+ </details >
202
+
203
+ - Added support for the [ --what-if] to the ` Microsoft.Windows/Registry ` resource.
204
+
205
+ <details ><summary >Related work items</summary >
206
+
207
+ - Issues: [ #452 ] [ #452 ]
208
+ - PRs: [ #465 ] [ #465 ]
209
+
210
+ </details >
211
+
212
+ - Added handling for when ` dsc ` is launched from Explorer or the Microsoft Store. Starting with
213
+ this release, when ` dsc ` is launched from the Microsoft Store application or Explorer, it shows a
214
+ message linking users to the documentation and waits for a key press before exiting.
215
+
216
+ <details ><summary >Related work items</summary >
217
+
218
+ - Issues: _ None_ .
219
+ - PRs: [ #481 ] [ #481 ]
220
+
221
+ </details >
222
+
223
+ - Improved performance for the PowerShell adapter caching by immediately invalidating the cache
224
+ when the cache timestampe entries are stale or missing instead of checking each module in the
225
+ cache.
226
+
227
+ <details ><summary >Related work items</summary >
228
+
229
+ - Issues: _ None_ .
230
+ - PRs: [ #497 ] [ #497 ]
231
+
232
+ </details >
233
+
234
+ ### Fixed
235
+
236
+ - Fixed a bug in the ` Microsoft.Windows/PowerShell ` adapter causing it to always invoke the ` Get ` operation.
237
+
238
+ <details ><summary >Related work items</summary >
239
+
240
+ - Issues: [ #445 ] [ #445 ]
241
+ - PRs: [ #480 ] [ #480 ]
242
+
243
+ </details >
244
+
245
+ - Fixed a bug in the PowerShell adapters that caused errors when it discovered multiple modules
246
+ with the same name. Starting with this release, the adapter chooses the version of the module
247
+ with the latest version.
248
+
249
+ <details ><summary >Related work items</summary >
250
+
251
+ - Issues: [ #487 ] [ #487 ]
252
+ - PRs: [ #489 ] [ #489 ]
253
+
254
+ </details >
255
+
256
+ - Fixed the error messaging when DSC doesn't get any input for a ` Test ` operation to clearly
257
+ indicate the problem. Prior to this release, users received a difficult-to-decipher message about
258
+ an unexpected end of file instead.
259
+
260
+ <details ><summary >Related work items</summary >
261
+
262
+ - Issues: [ #484 ] [ #484 ]
263
+ - PRs: [ #504 ] [ #504 ]
264
+
265
+ </details >
266
+
267
+ - Fixed the behavior when a user specifies an invalid name or wildcard filter when calling
268
+ ` dsc resource list ` with the ` --adapter ` option. Prior to this release, DSC returned no data.
269
+ Starting with this release, DSC writes a message to STDERR indicating that no adapter was found.
270
+ The operation still exits with exit code ` 0 ` .
271
+
272
+ <details ><summary >Related work items</summary >
273
+
274
+ - Issues: [ #477 ] [ #477 ]
275
+ - PRs: [ #506 ] [ #506 ]
276
+
277
+ </details >
278
+
279
+ - Fixed the PowerShell adapters to correctly handle cache updates when a module containing
280
+ resources is deleted externally.
281
+
282
+ <details ><summary >Related work items</summary >
283
+
284
+ - Issues: [ #495 ] [ #495 ]
285
+ - PRs: [ #497 ] [ #497 ]
286
+
287
+ </details >
288
+
289
+ - Fixed the PowerShell adapters to return a clear error message when a user attempts to call the
290
+ ` Export ` operation on an adapted resource that doesn't support it.
291
+
292
+ <details ><summary >Related work items</summary >
293
+
294
+ - Issues: [ #503 ] [ #503 ]
295
+ - PRs: [ #505 ] [ #505 ]
296
+
297
+ </details >
298
+
76
299
## [ v3.0.0-preview.8] [ release-v3.0.0-preview.8 ] - 2024-06-19
77
300
78
301
This section includes a summary of changes for the ` preview.8 ` release. For the full list of changes
@@ -1574,10 +1797,38 @@ For the full list of changes in this release, see the [diff on GitHub][compare-v
1574
1797
[#439]: https://github.com/PowerShell/DSC/issues/439
1575
1798
[#441]: https://github.com/PowerShell/DSC/issues/441
1576
1799
[#444]: https://github.com/PowerShell/DSC/issues/444
1800
+ [#445]: https://github.com/PowerShell/DSC/issues/445
1801
+ [#45]: https://github.com/PowerShell/DSC/issues/45
1802
+ [#452]: https://github.com/PowerShell/DSC/issues/452
1577
1803
[#454]: https://github.com/PowerShell/DSC/issues/454
1804
+ [#457]: https://github.com/PowerShell/DSC/issues/457
1805
+ [#462]: https://github.com/PowerShell/DSC/issues/462
1578
1806
[#464]: https://github.com/PowerShell/DSC/issues/464
1579
- [#45]: https://github.com/PowerShell/DSC/issues/45
1807
+ [#465]: https://github.com/PowerShell/DSC/issues/465
1808
+ [#468]: https://github.com/PowerShell/DSC/issues/468
1809
+ [#469]: https://github.com/PowerShell/DSC/issues/469
1810
+ [#477]: https://github.com/PowerShell/DSC/issues/477
1811
+ [#480]: https://github.com/PowerShell/DSC/issues/480
1812
+ [#481]: https://github.com/PowerShell/DSC/issues/481
1813
+ [#482]: https://github.com/PowerShell/DSC/issues/482
1814
+ [#484]: https://github.com/PowerShell/DSC/issues/484
1815
+ [#487]: https://github.com/PowerShell/DSC/issues/487
1816
+ [#489]: https://github.com/PowerShell/DSC/issues/489
1580
1817
[#49]: https://github.com/PowerShell/DSC/issues/49
1818
+ [#491]: https://github.com/PowerShell/DSC/issues/491
1819
+ [#493]: https://github.com/PowerShell/DSC/issues/493
1820
+ [#494]: https://github.com/PowerShell/DSC/issues/494
1821
+ [#495]: https://github.com/PowerShell/DSC/issues/495
1822
+ [#497]: https://github.com/PowerShell/DSC/issues/497
1823
+ [#499]: https://github.com/PowerShell/DSC/issues/499
1824
+ [#500]: https://github.com/PowerShell/DSC/issues/500
1825
+ [#503]: https://github.com/PowerShell/DSC/issues/503
1826
+ [#504]: https://github.com/PowerShell/DSC/issues/504
1827
+ [#505]: https://github.com/PowerShell/DSC/issues/505
1828
+ [#506]: https://github.com/PowerShell/DSC/issues/504
1829
+ [#509]: https://github.com/PowerShell/DSC/issues/509
1830
+ [#511]: https://github.com/PowerShell/DSC/issues/511
1831
+ [#514]: https://github.com/PowerShell/DSC/issues/514
1581
1832
[#57]: https://github.com/PowerShell/DSC/issues/57
1582
1833
[#70]: https://github.com/PowerShell/DSC/issues/70
1583
1834
[#73]: https://github.com/PowerShell/DSC/issues/73
0 commit comments