Releases: PSModule/Fonts
v1.1.27
🪲 [Fix]: Module import no longer fails when a newer Admin version is installed (#59)
Importing the Fonts module no longer fails when a newer version of the Admin dependency is installed. Previously, the #Requires directives pinned an exact version (RequiredVersion = '1.1.6'), which caused Import-Module Fonts to error out if only a newer version of Admin was present. The directives now specify a major-pinned range using ModuleVersion and MaximumVersion, accepting any Admin version from 1.1.6 up to (but not including) 2.0.0.
- Fixes #58
Fixed: Module import fails with newer Admin dependency
The three public functions (Get-Font, Install-Font, Uninstall-Font) used RequiredVersion in their #Requires -Modules directive, demanding an exact version match for the Admin module. This caused Import-Module Fonts to fail when only a newer version of Admin was installed.
The directives now use a major-pinned range — ModuleVersion sets the minimum acceptable version, and MaximumVersion caps at 1.999.999 to prevent a future Admin v2.0.0 (with potential breaking changes) from being used. Any version of Admin from 1.1.6 through 1.x will satisfy the requirement.
# Before (exact pin — fails if 1.1.6 is not installed)
#Requires -Modules @{ ModuleName = 'Admin'; RequiredVersion = '1.1.6' }
# After (major-pinned range — 1.1.6 through 1.x accepted)
#Requires -Modules @{ ModuleName = 'Admin'; ModuleVersion = '1.1.6'; MaximumVersion = '1.999.999' }Technical Details
- Changed
RequiredVersiontoModuleVersion+MaximumVersionin#Requires -Modulesdirective in three files:src/functions/public/Get-Font.ps1src/functions/public/Install-Font.ps1src/functions/public/Uninstall-Font.ps1
- Minimum version stays at
1.1.6(unchanged from the originalRequiredVersionvalue). MaximumVersion = '1.999.999'added to cap at the1.xmajor version range, preventing breakage from a futureAdminv2.0.0.- Implementation plan progress: Core change tasks (all 3 files) completed. Verification tasks remain for CI.
v1.1.26
What's Changed
Other Changes
- 🪲 [Fix]: Fix linter settings and docs by Marius Storhaug (@MariusStorhaug) in #50
Full Changelog: v1.1.25...v1.1.26
v1.1.25
What's Changed
Other Changes
- 🪲 [Fix]: Fix linter settings and docs by Marius Storhaug (@MariusStorhaug) in #49
Full Changelog: v1.1.24...v1.1.25
v1.1.24
What's Changed
Other Changes
- 🩹 [Patch]: Add linter environment variables to PSModule.yml by Marius Storhaug (@MariusStorhaug) in #48
Full Changelog: v1.1.23...v1.1.24
v1.1.23
What's Changed
Other Changes
- 🩹 [Patch]: Bump Process-PSModule to v5 by Marius Storhaug (@MariusStorhaug) in #47
Full Changelog: v1.1.22...v1.1.23
v1.1.22
What's Changed
Other Changes
- Bump actions/checkout from 4 to 5 by Dependabot (@dependabot)[bot] in #46
Full Changelog: v1.1.21...v1.1.22
v1.1.21
What's Changed
Other Changes
- 🩹 [Patch]: Bump
Admindependency to v1.1.6 by Marius Storhaug (@MariusStorhaug) in #45
Full Changelog: v1.1.20...v1.1.21
v1.1.20
What's Changed
Other Changes
- 🩹 [Patch]: Bump
Adminto 1.1.6 by Marius Storhaug (@MariusStorhaug) in #44
Full Changelog: v1.1.19...v1.1.20
v1.1.19
What's Changed
Other Changes
- Bump PSModule/Process-PSModule from 3 to 4 by Dependabot (@dependabot) in #42
New Contributors
- Dependabot (@dependabot) made their first contribution in #42
Full Changelog: v1.1.18...v1.1.19
v1.1.18
What's Changed
Other Changes
- 🩹 [Patch]: Support 5.1 by Marius Storhaug (@MariusStorhaug) in #41
Full Changelog: v1.1.17...v1.1.18