Skip to content

Commit 3d478e4

Browse files
committed
Merge branch 'release/1.5.1' into craft3
2 parents bd66bda + 2a088e1 commit 3d478e4

File tree

6 files changed

+14
-5
lines changed

6 files changed

+14
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44

55
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).
66

7+
## 1.5.1 - 2024-07-12
8+
### Fixed
9+
- Added namespace aliasing to prevent integrations with other plugins/modules from breaking
10+
711
## 1.5.0 - 2024-07-11
812
### Changed
913
- Migrated to `jalendport/craft-preparse`

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "jalendport/craft-preparse",
33
"description": "A fieldtype that parses Twig when an element is saved and saves the result as plain text.",
44
"type": "craft-plugin",
5-
"version": "1.5.0",
5+
"version": "1.5.1",
66
"keywords": [
77
"craft",
88
"cms",
@@ -34,7 +34,8 @@
3434
"autoload": {
3535
"psr-4": {
3636
"jalendport\\preparse\\": "src/",
37-
"aelvan\\preparsefield\\": "src_legacy/"
37+
"aelvan\\preparsefield\\": "src/",
38+
"besteadfast\\preparsefield\\": "src/"
3839
}
3940
},
4041
"extra": {

src/PreparseField.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,3 +206,6 @@ private function resetUploads()
206206
UploadedFile::reset();
207207
}
208208
}
209+
210+
class_alias(PreparseField::class, \aelvan\preparsefield\PreparseField::class);
211+
class_alias(PreparseField::class, \besteadfast\preparsefield\PreparseField::class);

src/fields/PreparseFieldType.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,3 +237,4 @@ public function getContentGqlType()
237237
}
238238

239239
class_alias(PreparseFieldType::class, \aelvan\preparsefield\fields\PreparseFieldType::class);
240+
class_alias(PreparseFieldType::class, \besteadfast\preparsefield\fields\PreparseFieldType::class);

src/services/PreparseFieldService.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,3 +157,6 @@ public function shouldParseElementOnMove(Element $element): bool
157157
return false;
158158
}
159159
}
160+
161+
class_alias(PreparseFieldService::class, \aelvan\preparsefield\services\PreparseFieldService::class);
162+
class_alias(PreparseFieldService::class, \besteadfast\preparsefield\services\PreparseFieldService::class);

src_legacy/fields/PreparseFieldType.php

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)