@cratis/pi 7.182.0 → 7.182.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -333,6 +333,26 @@ public class ReactorSideEffectHandlers(IInstancesOf<IReactorSideEffectHandler> h
333
333
  - Keep log messages in a separate `<ClassName>Logging.cs` partial static internal class.
334
334
  - Use `[LoggerMessage]` attribute (without `eventId`).
335
335
 
336
+ ## C# 14/15 Language Features
337
+
338
+ Cratis .NET repos build with SDK 11 (C# 15); libraries target `net10.0;net11.0`.
339
+
340
+ Use in new code:
341
+
342
+ - Extension blocks (`extension(T x) { ... }`, C# 14) for new extension APIs; leave existing extension classes as they are.
343
+ - The `field` keyword (C# 14) in property accessors instead of a hand-written backing field.
344
+ - `System.Threading.Lock` for new lock objects instead of `object`.
345
+ - Collection expression arguments `with(...)` (C# 15), e.g. to pass a comparer or capacity.
346
+ - `closed` (C# 15) for new internal class hierarchies.
347
+
348
+ Avoid:
349
+
350
+ - Union types in public APIs of libraries that also target `net10.0` — consumers on C# 14 cannot use them.
351
+ - Adding `closed` to existing public types — it is a breaking change.
352
+ - Runtime-async — it is still preview.
353
+
354
+ Keep `ConceptAs<T>` and the existing result envelopes unchanged.
355
+
336
356
  ## Async
337
357
 
338
358
  - Use `async`/`await` for asynchronous programming.
@@ -332,6 +332,26 @@ public class ReactorSideEffectHandlers(IInstancesOf<IReactorSideEffectHandler> h
332
332
  - Keep log messages in a separate `<ClassName>Logging.cs` partial static internal class.
333
333
  - Use `[LoggerMessage]` attribute (without `eventId`).
334
334
 
335
+ ## C# 14/15 Language Features
336
+
337
+ Cratis .NET repos build with SDK 11 (C# 15); libraries target `net10.0;net11.0`.
338
+
339
+ Use in new code:
340
+
341
+ - Extension blocks (`extension(T x) { ... }`, C# 14) for new extension APIs; leave existing extension classes as they are.
342
+ - The `field` keyword (C# 14) in property accessors instead of a hand-written backing field.
343
+ - `System.Threading.Lock` for new lock objects instead of `object`.
344
+ - Collection expression arguments `with(...)` (C# 15), e.g. to pass a comparer or capacity.
345
+ - `closed` (C# 15) for new internal class hierarchies.
346
+
347
+ Avoid:
348
+
349
+ - Union types in public APIs of libraries that also target `net10.0` — consumers on C# 14 cannot use them.
350
+ - Adding `closed` to existing public types — it is a breaking change.
351
+ - Runtime-async — it is still preview.
352
+
353
+ Keep `ConceptAs<T>` and the existing result envelopes unchanged.
354
+
335
355
  ## Async
336
356
 
337
357
  - Use `async`/`await` for asynchronous programming.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cratis/pi",
3
- "version": "7.182.0",
3
+ "version": "7.182.1",
4
4
  "description": "Configuration-aware Cratis AI integration for Pi",
5
5
  "type": "module",
6
6
  "files": [