Skip to content

Releases: PSModule/Fonts

v1.1.27

19 Apr 17:11
5d65476

Choose a tag to compare

🪲 [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.

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 rangeModuleVersion 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 RequiredVersion to ModuleVersion + MaximumVersion in #Requires -Modules directive in three files:
    • src/functions/public/Get-Font.ps1
    • src/functions/public/Install-Font.ps1
    • src/functions/public/Uninstall-Font.ps1
  • Minimum version stays at 1.1.6 (unchanged from the original RequiredVersion value).
  • MaximumVersion = '1.999.999' added to cap at the 1.x major version range, preventing breakage from a future Admin v2.0.0.
  • Implementation plan progress: Core change tasks (all 3 files) completed. Verification tasks remain for CI.

v1.1.26

09 Oct 19:09
72fa20a

Choose a tag to compare

What's Changed

Other Changes

Full Changelog: v1.1.25...v1.1.26

v1.1.25

06 Oct 21:33
27ce734

Choose a tag to compare

What's Changed

Other Changes

Full Changelog: v1.1.24...v1.1.25

v1.1.24

06 Oct 13:23
51fe2be

Choose a tag to compare

What's Changed

Other Changes

Full Changelog: v1.1.23...v1.1.24

v1.1.23

04 Oct 07:33
ee673e6

Choose a tag to compare

What's Changed

Other Changes

Full Changelog: v1.1.22...v1.1.23

v1.1.22

20 Aug 08:08
e7bfaa2

Choose a tag to compare

What's Changed

Other Changes

Full Changelog: v1.1.21...v1.1.22

v1.1.21

20 May 20:41
48e6ee0

Choose a tag to compare

What's Changed

Other Changes

Full Changelog: v1.1.20...v1.1.21

v1.1.20

19 May 21:30
167efdb

Choose a tag to compare

What's Changed

Other Changes

Full Changelog: v1.1.19...v1.1.20

v1.1.19

14 Mar 10:33
b97ad0f

Choose a tag to compare

What's Changed

Other Changes

New Contributors

Full Changelog: v1.1.18...v1.1.19

v1.1.18

25 Feb 00:24
e26d135

Choose a tag to compare

What's Changed

Other Changes

Full Changelog: v1.1.17...v1.1.18