Skip to content

Commit 2942813

Browse files
committed
feat(#194): update versioning to 0.1.0-preview across multiple files
- Change default version from 0.0.1 to 0.1.0-preview in project files - Update expected version checks in tests to reflect new versioning
1 parent 729c118 commit 2942813

13 files changed

Lines changed: 70 additions & 88 deletions

CHANGELOG.md

Lines changed: 48 additions & 66 deletions
Large diffs are not rendered by default.

docs/versioning-and-updates.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ <h3>How Nova chooses the bump label</h3>
174174
instead of jumping to <code>1.0.0</code>. Nova prints one warning that you should set
175175
<code>1.0.0</code> manually once the API is stable. Preview mode stays unchanged.
176176
</p>
177-
<pre><code>0.0.1 + Patch -> 0.0.2
177+
<pre><code>0.1.0-preview + Patch -> 0.0.2
178178
0.1.0 + Minor -> 0.2.0
179179
0.1.0 + Major -> 0.2.0</code></pre>
180180
<p>When Git tags exist, Nova uses commits since the latest tag. When Git-based inference is unavailable

src/private/scaffold/GetNovaModuleQuestions.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ function Get-NovaModuleBaseQuestionSet {
4545
}
4646
Version = @{
4747
Caption = 'Semantic Version'
48-
Message = 'Starting Version of the module (Default: 0.0.1)'
48+
Message = 'Starting Version of the module (Default: 0.1.0-preview)'
4949
Prompt = 'Version'
50-
Default = '0.0.1'
50+
Default = '0.1.0-preview'
5151
}
5252
Author = @{
5353
Caption = 'Module Author'

src/resources/agentic-copilot/.github/instructions/code-quality-matrix.instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
applyTo: "src/**/*.ps1,tests/**/*.ps1"
2+
applyTo: "src/**/*.ps1,tests/**/*.ps1,scripts/**/*.ps1"
33
---
44

55
# Agentic code quality matrix

src/resources/agentic-copilot/.github/instructions/platyps-help.instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
applyTo: "docs/**/*.md"
2+
applyTo: "docs/{{ProjectName}}/**/*.md"
33
---
44

55
# PlatyPS command help rules

tests/BuildOptions.TestSupport.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function Write-TestProjectJson {
3636
$project = [ordered]@{
3737
ProjectName = ('' + $Options.ProjectName)
3838
Description = 'Test project'
39-
Version = '0.0.1'
39+
Version = '0.1.0-preview'
4040
Manifest = [ordered]@{
4141
Author = 'Test'
4242
PowerShellHostVersion = '7.4'

tests/CoverageCompletion.Tests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@ Describe 'Coverage completion for remaining low-coverage helpers' {
141141
Caption = 'Semantic Version'
142142
Message = 'Starting version'
143143
Prompt = 'Version'
144-
Default = '0.0.1'
144+
Default = '0.1.0-preview'
145145
Responses = @('')
146-
Expected = '0.0.1'
146+
Expected = '0.1.0-preview'
147147
ExpectedPromptCalls = 1
148148
Validation = $null
149149
ExpectedValidationMessage = $null

tests/CoverageGaps.ReleaseInternals.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ Describe 'Coverage gaps for release and git internals' {
161161
}
162162
@{
163163
Name = 'a stable feature bump still warns that 1.0.0 must be set manually'
164-
CurrentVersion = '0.0.1'
164+
CurrentVersion = '0.1.0-preview'
165165
Label = 'Minor'
166166
PreviewRelease = $false
167167
PlannedVersion = '0.1.0'

tests/NovaCommandModel.BumpAndCli.Tests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ Describe 'Nova command model - bump and CLI confirmation behavior' {
129129

130130
It 'Get-NovaVersionUpdateWorkflowContext warns feature bumps that stable 0.y.z is still the initial-development line' {
131131
Assert-TestNovaVersionUpdateWorkflowContextMajorZeroAdvisory -ModuleName $script:moduleName -TestCase @{
132-
CurrentVersion = '0.0.1'
132+
CurrentVersion = '0.1.0-preview'
133133
CommitMessages = @('feat: add command')
134134
Label = 'Minor'
135135
PlannedVersion = '0.1.0'
@@ -381,7 +381,7 @@ Describe 'Nova command model - bump and CLI confirmation behavior' {
381381

382382
It 'Update-NovaModuleVersion writes the initial-development warning for stable 0.y.z feature bumps' {
383383
Assert-TestUpdateNovaModuleVersionMajorZeroWarning -ModuleName $script:moduleName -TestCase @{
384-
PreviousVersion = '0.0.1'
384+
PreviousVersion = '0.1.0-preview'
385385
NewVersion = '0.1.0'
386386
Label = 'Minor'
387387
EffectiveLabel = 'Minor'

tests/NovaCommandModel.StandaloneCli.Tests.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ Describe 'Nova command model - standalone CLI behavior' {
104104
{
105105
"ProjectName": "CliVerboseBuildProject",
106106
"Description": "CLI verbose forwarding test project",
107-
"Version": "0.0.1",
107+
"Version": "0.1.0-preview",
108108
"CopyResourcesToModuleRoot": false,
109109
"Manifest": {
110110
"Author": "Test",
@@ -274,7 +274,7 @@ Describe '$projectName tests' {
274274
ProjectName = 'CliPreviewBumpProject'
275275
ProjectGuid = '44444444-4444-4444-4444-444444444444'
276276
FunctionName = 'Invoke-TestCliPreviewBump'
277-
CurrentVersion = '0.0.1-rc1'
277+
CurrentVersion = '0.1.0-preview-rc1'
278278
CommitMessage = 'feat!: add prerelease cli bump coverage'
279279
Arguments = @('bump', '--preview', '--what-if')
280280
ExpectedPatterns = @(
@@ -287,7 +287,7 @@ Describe '$projectName tests' {
287287
'Major version zero \(0\.y\.z\) is for initial development'
288288
)
289289
ExpectedWarningCount = 0
290-
ExpectedVersionAfterBump = '0.0.1-rc1'
290+
ExpectedVersionAfterBump = '0.1.0-preview-rc1'
291291
}
292292

293293
Assert-TestInstalledNovaCliBumpBehavior -DistModuleDir $script:distModuleDir -TestDriveRoot $TestDrive -TestCase @{
@@ -316,7 +316,7 @@ Describe '$projectName tests' {
316316
ProjectName = 'CliMajorZeroMinorBumpProject'
317317
ProjectGuid = '56555555-5555-5555-5555-555555555555'
318318
FunctionName = 'Invoke-TestCliMajorZeroMinorBump'
319-
CurrentVersion = '0.0.1'
319+
CurrentVersion = '0.1.0-preview'
320320
CommitMessage = 'feat: add stable minor major zero bump coverage'
321321
Arguments = @('bump')
322322
ExpectedPatterns = @(

0 commit comments

Comments
 (0)