2023-05-03 11:55:00 +02:00
|
|
|
Module Migration Guide
|
|
|
|
======================
|
|
|
|
|
|
|
|
See [humhub/documentation::docs/develop/modules-migrate.md](https://github.com/humhub/documentation/blob/master/docs/develop/modules-migrate.md)
|
|
|
|
for full version.
|
|
|
|
|
|
|
|
Version 1.15 (Unreleased)
|
|
|
|
-------------------------
|
|
|
|
|
|
|
|
### Behaviour change
|
|
|
|
- `\humhub\libs\BaseSettingsManager::deleteAll()` no longer uses the `$prefix` parameter as a full wildcard, but
|
|
|
|
actually as a prefix. Use `$prefix = '%pattern%'` to get the old behaviour. Or use `$parameter = '%suffix'` if you
|
|
|
|
want to match against the end of the names.
|
|
|
|
- `\humhub\libs\BaseSettingsManager::get()` now returns a pure int in case the (trimmed) value can be converted
|
2023-05-30 11:36:24 +02:00
|
|
|
- New `PolymorphicRelation::getObjectModel()`: should replace `get_class()`
|
2023-06-15 14:18:28 +04:00
|
|
|
- Removed deprecated javascript method `setModalLoader()`
|
2023-06-23 00:45:08 +04:00
|
|
|
- Javascript CSP Nonces are now required and enabled by default! See: https://docs.humhub.org/docs/develop/javascript/
|
2023-07-17 17:15:47 +04:00
|
|
|
- Use the verifying `Content->canArchive()` before run the methods `Content->archive()`
|
|
|
|
and `Content->archive()`, because it was removed from within there.
|
2023-05-03 11:55:00 +02:00
|
|
|
|
2023-06-29 18:31:08 +02:00
|
|
|
### Deprecations
|
|
|
|
|
|
|
|
- `Content::addTags()` and `Content::addTag()` are now deprecated. Use `ContentTagService` instead.
|
2023-07-03 22:30:03 +04:00
|
|
|
- Removed deprecated classes `humhub\widgets\AjaxButton` and `humhub\widgets\ModalConfirm`
|
2023-06-29 18:31:08 +02:00
|
|
|
|
|
|
|
|
2023-05-03 11:55:00 +02:00
|
|
|
### Type restrictions
|
|
|
|
- `\humhub\libs\BaseSettingsManager` and its child classes on fields, method parameters, & return types
|
2023-07-07 09:19:25 +02:00
|
|
|
|
|
|
|
### Removed Deprecations
|
|
|
|
|
|
|
|
- `humhub\modules\content\widgets\richtext\PreviewMarkdown`
|
|
|
|
- `humhub\modules\content\widgets\richtext\ProsemirrorRichText::replaceLinkExtension`
|
|
|
|
- `humhub\modules\content\widgets\richtext\ProsemirrorRichText::scanLinkExtension`
|
|
|
|
- `humhub\modules\content\widgets\richtext\ProsemirrorRichText::parseOutput`
|
|
|
|
- `humhub\modules\content\widgets\richtext\AbstractRichText::$minimal`
|
|
|
|
- `humhub\modules\content\widgets\richtext\AbstractRichText::$maxLength`
|
|
|
|
- `humhub\modules\content\widgets\richtext\AbstractRichText::$markdown`
|
|
|
|
- `humhub\libs\Markdown`
|
|
|
|
- `humhub\libs\MarkdownPreview`
|
|
|
|
- `humhub\widgets\MarkdownEditor`
|
|
|
|
- `humhub\widgets\MarkdownField`
|
|
|
|
- `humhub\widgets\MarkdownFieldModals`
|
|
|
|
- `humhub\modules\ui\form\widgets\Markdown`
|
|
|
|
-
|