Skip to content

Commit 316d210

Browse files
authored
Merge pull request #6648 from umbraco/15/somebreaking
Add Trimstart/end notes
2 parents ba1d868 + 64be232 commit 316d210

File tree

1 file changed

+7
-2
lines changed
  • 15/umbraco-cms/fundamentals/setup/upgrading/version-specific

1 file changed

+7
-2
lines changed

15/umbraco-cms/fundamentals/setup/upgrading/version-specific/README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,16 @@ Use the [general upgrade guide](../) to complete the upgrade of your project.
2121

2222
<summary>Umbraco 15</summary>
2323

24-
* **Snapshots are removed**
24+
**`TrimStart` & `TrimEnd`**
25+
26+
The string extension methods `TrimStart` and `TrimEnd` are implemented natively in .NET 9 and behave differently from the ones used by Umbraco.
27+
Due to this, the Umbraco versions have changed names. Use `TrimStartExact` and `TrimEndExact` instead.
28+
29+
**Snapshots are removed**
2530

2631
Snapshots have been removed, meaning any code using `IPublishedSnapshot`, and by extension `IPublishedSnapshotAccessor`, must be updated. Inject `IPublishedContentCache` or `IPublishedMediaCache` and use those directly instead.
2732

28-
* **Modelsbuilder models needs to be rebuilt**
33+
**Modelsbuilder models needs to be rebuilt**
2934

3035
Models generated by ModelsBuilder used the `IPublishedSnapshot` interface, which has been removed. This means that the models need to be rebuilt. The approach to this will differ depending on the mode chosen:
3136

0 commit comments

Comments
 (0)