You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All notable changes to this module will be documented in this file.
4
+
5
+
## [1.0.1] - 2026-03-20
6
+
7
+
### Fixed
8
+
-**Coding standards:** Replaced all loose comparisons (`==`, `!=`) with strict equivalents (`===`, `!==`) in `IndexController.php`.
9
+
-**Coding standards:** Added missing parentheses on `new ViewModel` instantiations.
10
+
-**Bug fix:** Fixed potential negative array index in `getAutoColor()` caused by `crc32()` returning negative values on 32-bit systems; added `abs()` wrapper.
11
+
-**Security:** Added validation (regex allowlist) for `popup_props` query parameter in `getFeaturePopupContentAction()` to prevent injection via untrusted property terms.
12
+
-**Error handling:** Narrowed all `catch (\Throwable)` blocks to `catch (\Exception)` to avoid silently catching fatal errors.
13
+
-**Error handling:** Added `$this->logger()->warn()` / `->debug()` calls to all catch blocks — no more silently swallowed exceptions.
14
+
15
+
### Changed
16
+
-**Namespace:** Renamed root namespace from `Mapping` to `MappingExtensions` across all PHP files to avoid conflicts with the official Mapping module.
17
+
-**Code quality:** Extracted duplicated geography-to-array conversion into new `buildFeatureArray()` helper method.
18
+
-**Code quality:** Extracted duplicated JSON response pattern into new `buildFeaturesJsonResponse()` helper method.
19
+
-**Code quality:** Extracted linked-properties parsing into new `parseLinkedProperties()` helper method.
20
+
-**Code quality:** Merged duplicate `searchOne('properties')` API calls in `addLegendForItem()` into a single call.
21
+
-**Code quality:** Renamed `getFeatureActionforJourneyItems()` to `getFeatureActionForJourneyItems()` for consistent camelCase.
22
+
23
+
### Added
24
+
- Class-level and method-level docblocks on all public and private methods in `IndexController.php`.
25
+
26
+
## [1.0.0] - Initial release
27
+
28
+
- Initial release of the Mapping Extensions module.
0 commit comments