Skip to content

Commit

Permalink
Merge branch 'release/2.1.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
jalendport committed Jul 12, 2024
2 parents f3e2357 + 82e15d9 commit b51508b
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 2.1.2 - 2024-07-12
### Fixed
- Added namespace aliasing to prevent integrations with other plugins/modules from breaking

## 2.1.1 - 2024-07-12
### Fixed
- Fixed a bug where the `preparseFieldService` could not be found([#100](https://github.com/jalendport/craft-preparse/issues/100))
Expand Down
6 changes: 4 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "jalendport/craft-preparse",
"description": "A fieldtype that parses Twig when an element is saved and saves the result as plain text.",
"type": "craft-plugin",
"version": "2.1.1",
"version": "2.1.2",
"keywords": [
"craft",
"cms",
Expand Down Expand Up @@ -34,7 +34,9 @@
},
"autoload": {
"psr-4": {
"jalendport\\preparse\\": "src/"
"jalendport\\preparse\\": "src/",
"aelvan\\preparsefield\\": "src/",
"besteadfast\\preparsefield\\": "src/"
}
},
"extra": {
Expand Down
3 changes: 3 additions & 0 deletions src/PreparseField.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,3 +206,6 @@ private function resetUploads()
UploadedFile::reset();
}
}

class_alias(PreparseField::class, \aelvan\preparsefield\PreparseField::class);
class_alias(PreparseField::class, \besteadfast\preparsefield\PreparseField::class);
3 changes: 3 additions & 0 deletions src/fields/PreparseFieldType.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,3 +238,6 @@ public function getContentGqlType(): Type|array
return parent::getContentGqlType();
}
}

class_alias(PreparseFieldType::class, \aelvan\preparsefield\fields\PreparseFieldType::class);
class_alias(PreparseFieldType::class, \besteadfast\preparsefield\fields\PreparseFieldType::class);
5 changes: 4 additions & 1 deletion src/services/PreparseFieldService.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function getPreparseFieldsContent(Element $element, string $eventHandle):

return $content;
}

/**
* Parses field for a given element.
*
Expand Down Expand Up @@ -156,3 +156,6 @@ public function shouldParseElementOnMove(Element $element): bool
return false;
}
}

class_alias(PreparseFieldService::class, \aelvan\preparsefield\services\PreparseFieldService::class);
class_alias(PreparseFieldService::class, \besteadfast\preparsefield\services\PreparseFieldService::class);

0 comments on commit b51508b

Please sign in to comment.