Skip to content

Commit 0af370f

Browse files
Add v15 breaking changes section
1 parent 818fd9c commit 0af370f

File tree

1 file changed

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

1 file changed

+15
-2
lines changed

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

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,19 @@ Use the [general upgrade guide](../) to complete the upgrade of your project.
1919

2020
<details>
2121

22+
<summary>Umbraco 15</summary>
23+
24+
* **Snapshots are removed**
25+
26+
Snapshots has been removed, this means that any code that used `IPublishedSnapshot`, and by extension `IPublishedSnapshotAccessor`, must be updated. The specific changes depends on the use case of the snapshot, in most cases it can be solved by instead injecting `IPublishedContentCache` or `IPublishedMediaCache` and using those directly.
27+
28+
* **Modelsbuilder models needs to be rebuilt**
29+
30+
Models generated by ModelsBuilder used the `IPublishedSnapshot` interface, which has been removed. This means that the models needs to be rebuilt, the approach to this will differ on the models mode chosen:
31+
32+
* InMemoryAuto - Remove the `umbraco\Data\TEMP\InMemoryAuto` folder, this will trigger a rebuild of the models.
33+
* SourceCodeAuto and SourceCodeManual - Remove the old models, by default these are located in the `\umbraco\models` folder, and then trigger a rebuild of the models from the dashboard in the backoffice.
34+
2235
<summary>Umbraco 14</summary>
2336

2437
Read more about the release of Umbraco 14 in the [Blog Post](https://umbraco.com/blog/umbraco-14-release/).
@@ -952,7 +965,7 @@ Task<bool> TryFindContent(IPublishedRequestBuilder request);
952965
[**Async tree search**](https://github.com/umbraco/Umbraco-CMS/pull/12344)
953966

954967
```CSharp
955-
IEnumerable<SearchResultEntity?> Search(string query, int pageSize, long pageIndex, out long totalFound, string? searchFrom
968+
IEnumerable<SearchResultEntity?> Search(string query, int pageSize, long pageIndex, out long totalFound, string? searchFrom
956969
= null)
957970
```
958971

@@ -996,7 +1009,7 @@ In the `_ViewImports.cshtml` of your project, remove the following lines:
9961009

9971010
```
9981011
@addTagHelper *, Smidge
999-
@inject Smidge.SmidgeHelper SmidgeHelper
1012+
@inject Smidge.SmidgeHelper SmidgeHelper
10001013
```
10011014

10021015
Otherwise, it will cause an error on the front end.

0 commit comments

Comments
 (0)