Releases: gaelcolas/Sampler
Releases · gaelcolas/Sampler
v0.118.0-preview0004
[v0.118.0-preview0004]
Changed
- Update template for SECURITY.md and add it to Sampler repository as well.
- Built module is now built in a separate folder. This is to split the paths
for the built module and all required modules, to avoid returning duplicate
modules when usingGet-Module -ListAvailable
. The templates already has
this configuration. - Now PSResourceGet always default to the latest released version if no
specific version is configured or passed as parameter. - Templates was changed to use PSResourceGet as the default method
of resolving dependencies. It is possible to change to the method
PowerShellGet & PSDepend by changing the configuration. Also default to
using PowerShellGet v3 which is a compatibility module that is a wrapper
for the equivalent command in PSResourceGet. - Switch to build worker
windows-latest
for the build phase of the pipeline
due to a issue usingPublish-Module
on the latest updated build worker in
Azure Pipelines.
Fixed
- Update template for module.tests.ps1. Fixes #465
- Now the tasks work when using
Set-SamplerTaskVariable
with tasks that
do not have the parameterChocolateyBuildOutput
. - Remove duplicate SECURITY.md template files, and fix templates to
point to the single version. - Correct description of the parameter
GalleryApiToken
in the build task
script release.module.build.ps1. Fixes #442 - ModuleFast now supports resolving individual pre-release dependencies
that is part of RequiredModules.psd1. It is also possible to specify
NuGet version ranges
in RequiredModules.psd1, although then the file is not compatible with
PSResourceGet or PSDepend (so no fallback can happen). - Now it won't import legacy PowerShellGet and PackageManagement when
PSResourceGet or ModuleFast is used. - Now it works saving PowerShellGet compatibility module when configured.
- Now if both ModuleFast and PowerShellGet compatibility module is configured
PSResourceGet is automatically added as a dependency. This is for example
needed for publishing built module to the gallery.
v0.118.0-preview0003
[v0.118.0-preview0003]
Changed
- Update template for SECURITY.md and add it to Sampler repository as well.
- Built module is now built in a separate folder. This is to split the paths
for the built module and all required modules, to avoid returning duplicate
modules when usingGet-Module -ListAvailable
. The templates already has
this configuration. - Now PSResourceGet always default to the latest released version if no
specific version is configured or passed as parameter. - Templates was changed to use PSResourceGet as the default method
of resolving dependencies. It is possible to change to the method
PowerShellGet & PSDepend by changing the configuration. Also default to
using PowerShellGet v3 which is a compatibility module that is a wrapper
for the equivalent command in PSResourceGet. - Switch to build worker
windows-latest
for the build phase of the pipeline
due to a issue usingPublish-Module
on the latest updated build worker in
Azure Pipelines.
Fixed
- Now the tasks work when using
Set-SamplerTaskVariable
with tasks that
do not have the parameterChocolateyBuildOutput
. - Remove duplicate SECURITY.md template files, and fix templates to
point to the single version. - Correct description of the parameter
GalleryApiToken
in the build task
script release.module.build.ps1. Fixes #442 - ModuleFast now supports resolving individual pre-release dependencies
that is part of RequiredModules.psd1. It is also possible to specify
NuGet version ranges
in RequiredModules.psd1, although then the file is not compatible with
PSResourceGet or PSDepend (so no fallback can happen). - Now it won't import legacy PowerShellGet and PackageManagement when
PSResourceGet or ModuleFast is used. - Now it works saving PowerShellGet compatibility module when configured.
- Now if both ModuleFast and PowerShellGet compatibility module is configured
PSResourceGet is automatically added as a dependency. This is for example
needed for publishing built module to the gallery.
v0.118.0-preview0002
[v0.118.0-preview0002]
Changed
- Update template for SECURITY.md and add it to Sampler repository as well.
- Built module is now built in a separate folder. This is to split the paths
for the built module and all required modules, to avoid returning duplicate
modules when usingGet-Module -ListAvailable
. The templates already has
this configuration. - Now PSResourceGet always default to the latest released version if no
specific version is configured or passed as parameter. - Templates was changed to use PSResourceGet as the default method
of resolving dependencies. It is possible to change to the method
PowerShellGet & PSDepend by changing the configuration. Also default to
using PowerShellGet v3 which is a compatibility module that is a wrapper
for the equivalent command in PSResourceGet.
Fixed
- Now the tasks work when using
Set-SamplerTaskVariable
with tasks that
do not have the parameterChocolateyBuildOutput
. - Remove duplicate SECURITY.md template files, and fix templates to
point to the single version. - Correct description of the parameter
GalleryApiToken
in the build task
script release.module.build.ps1. Fixes #442 - ModuleFast now supports resolving individual pre-release dependencies
that is part of RequiredModules.psd1. It is also possible to specify
NuGet version ranges
in RequiredModules.psd1, although then the file is not compatible with
PSResourceGet or PSDepend (so no fallback can happen). - Now it won't import legacy PowerShellGet and PackageManagement when
PSResourceGet or ModuleFast is used. - Now it works saving PowerShellGet compatibility module when configured.
- Now if both ModuleFast and PowerShellGet compatibility module is configured
PSResourceGet is automatically added as a dependency. This is for example
needed for publishing built module to the gallery.
v0.118.0-preview0001
[v0.118.0-preview0001]
Changed
- Update template for SECURITY.md and add it to Sampler repository as well.
Fixed
- Now the tasks work when using
Set-SamplerTaskVariable
with tasks that
do not have the parameterChocolateyBuildOutput
. - Remove duplicate SECURITY.md template files, and fix templates to
point to the single version. - Correct description of the parameter
GalleryApiToken
in the build task
script release.module.build.ps1. Fixes #442
v0.117.1-preview0002
[v0.117.1-preview0002]
Fixed
- Now the tasks work when using
Set-SamplerTaskVariable
with tasks that
do not have the parameterChocolateyBuildOutput
. - Correct description of the parameter
GalleryApiToken
in the build task
script release.module.build.ps1. Fixes #442
v0.117.1-preview0001
[v0.117.1-preview0001]
Fixed
- Now the tasks work when using
Set-SamplerTaskVariable
with tasks that
do not have the parameterChocolateyBuildOutput
.
v0.117.0
[v0.117.0]
Added
- Integration tests to build and import a module created using the Plaster
template SimpleModule. - Support ModuleFast when
restoring dependencies by adding the parameterUseModuleFast
to the
build.ps1
, e.g../build.ps1 -Tasks noop -ResolveDependency -UseModuleFast
or by enabling it in the configuration file Resolve-Dependency.psd1.
Using ModuleFast will resolve dependencies much faster, but requires
PowerShell 7.2. - Support for PSResourceGet (beta release).
If the modules PSResourceGet can be bootstrapped they will be used. If
PSResourceGet cannot be bootstrapped then it will revert to using
PowerShellGet v2.2.5. If the user requests or configures to use ModuleFast
then that will override both PSResourceGet and PowerShellGet. The method
PSResourceGet can be enabled in the configuration file Resolve-Dependency.psd1.
It is also possible to use PSResourceGet by adding the parameterUsePSResourceGet
to thebuild.ps1
, e.g../build.ps1 -Tasks noop -ResolveDependency -UsePSResourceGet
. - When using PSResourceGet to resolve dependencies it also possible to
use PowerShellGet v2.9.0 (previous CompatPowerShellGet). To use the
compatibility module it can be enabled in the configuration file Resolve-Dependency.psd1.
It is also possible to use it by adding the parameterUsePowerShellGetCompatibilityModule
to thebuild.ps1
, e.g../build.ps1 -Tasks noop -ResolveDependency -UsePSResourceGet -UsePowerShellGetCompatibilityModule
.
The 2.9.0-preview has since then been unlisted, the compatibility
module will now be released as PowerShellGet v3.0.0.
Changed
- Task
publish_nupkg_to_gallery
- Add support for publishing a NuGet package to a gallery using the .NET SDK in addition to using nuget.exe. Fixes #433
- Split up unit tests and integration tests in separate pipeline jobs since
integration tests could change state on a developers machine, and in the
current PowerShell session. Integration tests no longer run when running
./build.ps1 -Tasks test
. To run integration tests pass the parameter
PesterPath
, e.g../build.ps1 -Tasks test -PesterPath 'tests/Integration'
. - Added sample private function and public function samples to Plaster template
SimpleModule so that it is possible to run tasktest
without it failing. - Sample Private function tests updated to Pester 5.
- Sample Public function tests updated to Pester 5.
- Sampler's build.ps1 and the template build.ps1 was aligned.
- PowerShell Team will release the PSResourceGet compatibility module
(previously known as CompatPowerShellGet) as PowerShellGet v2.9.0 (or
higher). The resolve dependency script, when PowerShellGet is used, will
useMaximumVersion
set to2.8.999
to make sure the expected
PowerShellGet version is installed, today that it is v2.2.5.
The 2.9.0-preview has since then been unlisted, the compatibility
module will now be released as PowerShellGet v3.0.0.
Fixed
- Fix unit tests that was wrongly written and failed on Pester 5.5.
- There was different behavior on PowerShell and Windows PowerShell when
creating the module manifest. So when themodify
section that was meant
to reuse the already present but commentedPrerelease
key it also ran
themodify
statement that adds aPrerelease
key that is needed for
a module manifest that is created under Windows PowerShell. This resulted
in twoPrerelease
keys when creating a module under PowerShell 7.x.
Now it will add a commentedPerelease
key and then nextmodify
statement
will remove the comment, making it work on all version of PowerShell.
Fixes #436. - The QA test template was updated so that it is possible to run the tests
without the need to add a git remote (remoteorigin
).
v0.117.0-preview0003
[v0.117.0-preview0003]
Added
- Integration tests to build and import a module created using the Plaster
template SimpleModule. - Support ModuleFast when
restoring dependencies by adding the parameterUseModuleFast
to the
build.ps1
, e.g../build.ps1 -Tasks noop -ResolveDependency -UseModuleFast
or by enabling it in the configuration file Resolve-Dependency.psd1.
Using ModuleFast will resolve dependencies much faster, but requires
PowerShell 7.2. - Support for PSResourceGet (beta release).
If the modules PSResourceGet can be bootstrapped they will be used. If
PSResourceGet cannot be bootstrapped then it will revert to using
PowerShellGet v2.2.5. If the user requests or configures to use ModuleFast
then that will override both PSResourceGet and PowerShellGet. The method
PSResourceGet can be enabled in the configuration file Resolve-Dependency.psd1.
It is also possible to use PSResourceGet by adding the parameterUsePSResourceGet
to thebuild.ps1
, e.g../build.ps1 -Tasks noop -ResolveDependency -UsePSResourceGet
. - When using PSResourceGet to resolve dependencies it also possible to
use PowerShellGet v2.9.0 (previous CompatPowerShellGet). To use the
compatibility module it can be enabled in the configuration file Resolve-Dependency.psd1.
It is also possible to use it by adding the parameterUsePowerShellGetCompatibilityModule
to thebuild.ps1
, e.g../build.ps1 -Tasks noop -ResolveDependency -UsePSResourceGet -UsePowerShellGetCompatibilityModule
.
The 2.9.0-preview has since then been unlisted, the compatibility
module will now be released as PowerShellGet v3.0.0.
Changed
- Task
publish_nupkg_to_gallery
- Add support for publishing a NuGet package to a gallery using the .NET SDK in addition to using nuget.exe. Fixes #433
- Split up unit tests and integration tests in separate pipeline jobs since
integration tests could change state on a developers machine, and in the
current PowerShell session. Integration tests no longer run when running
./build.ps1 -Tasks test
. To run integration tests pass the parameter
PesterPath
, e.g../build.ps1 -Tasks test -PesterPath 'tests/Integration'
. - Added sample private function and public function samples to Plaster template
SimpleModule so that it is possible to run tasktest
without it failing. - Sample Private function tests updated to Pester 5.
- Sample Public function tests updated to Pester 5.
- Sampler's build.ps1 and the template build.ps1 was aligned.
- PowerShell Team will release the PSResourceGet compatibility module
(previously known as CompatPowerShellGet) as PowerShellGet v2.9.0 (or
higher). The resolve dependency script, when PowerShellGet is used, will
useMaximumVersion
set to2.8.999
to make sure the expected
PowerShellGet version is installed, today that it is v2.2.5.
The 2.9.0-preview has since then been unlisted, the compatibility
module will now be released as PowerShellGet v3.0.0.
Fixed
- Fix unit tests that was wrongly written and failed on Pester 5.5.
- There was different behavior on PowerShell and Windows PowerShell when
creating the module manifest. So when themodify
section that was meant
to reuse the already present but commentedPrerelease
key it also ran
themodify
statement that adds aPrerelease
key that is needed for
a module manifest that is created under Windows PowerShell. This resulted
in twoPrerelease
keys when creating a module under PowerShell 7.x.
Now it will add a commentedPerelease
key and then nextmodify
statement
will remove the comment, making it work on all version of PowerShell.
Fixes #436. - The QA test template was updated so that it is possible to run the tests
without the need to add a git remote (remoteorigin
).
v0.117.0-preview0002
[v0.117.0-preview0002]
Added
- Integration tests to build and import a module created using the Plaster
template SimpleModule. - Support ModuleFast when
restoring dependencies by adding the parameterUseModuleFast
to the
build.ps1
, e.g../build.ps1 -Tasks noop -ResolveDependency -UseModuleFast
or by enabling it in the configuration file Resolve-Dependency.psd1.
Using ModuleFast will resolve dependencies much faster, but requires
PowerShell 7.2.
Changed
- Task
publish_nupkg_to_gallery
- Add support for publishing a NuGet package to a gallery using the .NET SDK in addition to using nuget.exe. Fixes #433
- Split up unit tests and integration tests in separate pipeline jobs since
integration tests could change state on a developers machine, and in the
current PowerShell session. Integration tests no longer run when running
./build.ps1 -Tasks test
. To run integration tests pass the parameter
PesterPath
, e.g../build.ps1 -Tasks test -PesterPath 'tests/Integration'
. - Added sample private function and public function samples to Plaster template
SimpleModule so that it is possible to run tasktest
without it failing. - Sample Private function tests updated to Pester 5.
- Sample Public function tests updated to Pester 5.
- Sampler's build.ps1 and the template build.ps1 was aligned.
Fixed
- Fix unit tests that was wrongly written and failed on Pester 5.5.
- There was different behavior on PowerShell and Windows PowerShell when
creating the module manifest. So when themodify
section that was meant
to reuse the already present but commentedPrerelease
key it also ran
themodify
statement that adds aPrerelease
key that is needed for
a module manifest that is created under Windows PowerShell. This resulted
in twoPrerelease
keys when creating a module under PowerShell 7.x.
Now it will add a commentedPerelease
key and then nextmodify
statement
will remove the comment, making it work on all version of PowerShell.
Fixes #436. - The QA test template was updated so that it is possible to run the tests
without the need to add a git remote (remoteorigin
).
v0.117.0-preview0001
[v0.117.0-preview0001]
Changed
- Task
publish_nupkg_to_gallery
- Add support for publishing a NuGet package to a gallery using the .NET SDK in addition to using nuget.exe. Fixes #433
Fixed
- Fix unit tests that was wrongly written and failed on Pester 5.5.