Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.10.0 #1287

Merged
merged 118 commits into from
Apr 15, 2024
Merged

v2.10.0 #1287

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
118 commits
Select commit Hold shift + click to select a range
ab8af87
#1184: initial work for caching support, plus scoped variable
Badgerati Nov 21, 2023
edbb93f
#1184: add cache housekeeper, fix custom storage support
Badgerati Nov 23, 2023
b6b3285
#1184: add function summaries, and caching docs
Badgerati Nov 28, 2023
e2b112a
#1184: tweaks for caching docs
Badgerati Dec 10, 2023
93a2ed8
#1184: docs styling fix
Badgerati Dec 10, 2023
9c71d26
Merge pull request #1197 from Badgerati/Issue-1184
Badgerati Dec 13, 2023
60b42c6
minor update to docs to fix links
Badgerati Dec 16, 2023
92e5b6f
#1207: initial work for supporting scoping variables
Badgerati Dec 21, 2023
638a714
#1207: fix tests
Badgerati Dec 22, 2023
ac985db
Update Sessions.md
Szeraax Jan 9, 2024
6bf4886
Update Tasks.md
Szeraax Jan 16, 2024
fa85841
Update Tasks.md
Szeraax Jan 16, 2024
63be5d7
Update Tasks.md
Szeraax Jan 16, 2024
cbe52f7
#1228: fix ordering of static content routes
Badgerati Jan 30, 2024
9a57c27
#1228: adds a -RedirectToDefault switch to static routes
Badgerati Feb 2, 2024
692dc79
#1207: make scriptblock merging function public, and return early for…
Badgerati Feb 6, 2024
633ab57
#1207: add function summaries, and simplify invoking of scriptblocks/…
Badgerati Feb 10, 2024
cea2044
#1207: add scoped vars docs, making -SetReplace optional
Badgerati Feb 10, 2024
9d5fd7c
#1207: add null= for invoking a scriptblock, to ensure nothing is ret…
Badgerati Feb 11, 2024
b2daf57
Merge pull request #1238 from Badgerati/Issue-1207
Badgerati Feb 11, 2024
45a953d
Add missing HTTP 425 response
Badgerati Feb 11, 2024
947ac85
Merge pull request #1239 from Badgerati/add-425
Badgerati Feb 11, 2024
bc9137d
#1241: initial work for enabling Tab Sessions
Badgerati Feb 19, 2024
c770db3
#1241: Tab session docs, and session perf tweak
Badgerati Feb 19, 2024
54bb76b
#1241: test fix
Badgerati Feb 19, 2024
c8119bf
Merge pull request #1242 from Badgerati/Issue-1241
Badgerati Feb 20, 2024
df86e0f
Merge pull request #1246 from Badgerati/Issue-1228
Badgerati Feb 25, 2024
41a1993
#1245: initial work for SSE support
Badgerati Mar 4, 2024
c05d911
#1245: Add SSE ClientId signing, and verifying if passed. Also adds a…
Badgerati Mar 17, 2024
c2f6977
#1245: add SSE group and broadcast level control support
Badgerati Mar 19, 2024
dd66979
#1245: move default secret to function instead of forcing, and fix tests
Badgerati Mar 22, 2024
283727a
#1245: add some test util funcs, add SSE docs
Badgerati Mar 23, 2024
2338dec
#1245: minor comments tweak
Badgerati Mar 23, 2024
8cb6feb
Merge pull request #1256 from Badgerati/Issue-1245
Badgerati Mar 23, 2024
f7a5542
#1251: initial work for enabling dualmode on endpoints
Badgerati Mar 24, 2024
1cfdadc
Fix #1257
mdaneri Mar 25, 2024
36d7e0e
Implement #1259
mdaneri Mar 25, 2024
7ea2c3f
Migration to Pester 5.5 #1260
mdaneri Mar 25, 2024
16d042a
Update GitHub workflow #1263
mdaneri Mar 25, 2024
9f53cb2
Implement Enhancing Flexibility with Customizable Default Folder Path…
mdaneri Mar 25, 2024
bc3bd8e
#1251: add DualMode docs
Badgerati Mar 25, 2024
f499ce7
File Browsing feature for Pode Static Route #1237
mdaneri Mar 25, 2024
c3ff940
Remove Write-PodeFileResponse test from Pester 4.x. The test is avail…
mdaneri Mar 25, 2024
e3f1476
Pwsh 7.4.x Workaround for rest https test
mdaneri Mar 26, 2024
55390f2
Fix Linux, Mac and Desktop test
mdaneri Mar 26, 2024
a14faf1
cleanup
mdaneri Mar 26, 2024
f68042c
Merge pull request #1262 from mdaneri/#1260
Badgerati Mar 26, 2024
b7377c5
#1251: merge with develop for pester 5.5
Badgerati Mar 27, 2024
dd9d544
Merge pull request #1267 from Badgerati/Issue-1251
Badgerati Mar 27, 2024
d93dfa2
Merge remote-tracking branch 'upstream/develop' into #1243
mdaneri Mar 27, 2024
dc1bad8
Merge remote-tracking branch 'upstream/develop' into #1263
mdaneri Mar 27, 2024
61beeb2
Merge remote-tracking branch 'upstream/develop' into #1237
mdaneri Mar 27, 2024
9ab6286
Hide the get-item exception 'referred to an item that was outside th…
mdaneri Mar 27, 2024
02861cf
Update pode.build.ps1
mdaneri Mar 28, 2024
2d80b1a
Merge remote-tracking branch 'upstream/develop' into #1259
mdaneri Mar 28, 2024
23d0d52
PSScriptAnalyzerSettings
mdaneri Mar 28, 2024
9120aaa
Update ci.yml
mdaneri Mar 28, 2024
b5cd6ea
Merge pull request #1264 from mdaneri/#1263
Badgerati Mar 29, 2024
b97dcf5
Merge remote-tracking branch 'upstream/develop' into #1259
mdaneri Mar 29, 2024
bb1a129
Applied Matthew suggestion
mdaneri Mar 29, 2024
16402ba
Update PSScriptAnalyzerSettings.psd1
mdaneri Mar 29, 2024
1bddadf
Update Routes.ps1
mdaneri Mar 29, 2024
973af94
Merge pull request #1269 from mdaneri/#1244-PSScriptAnalyzerSettings
Badgerati Mar 29, 2024
8bf2739
Update pode.build.ps1
mdaneri Mar 29, 2024
dabeacf
Merge pull request #1258 from mdaneri/Fix-#1257
Badgerati Mar 29, 2024
6bc8908
Applied Matthew suggestions
mdaneri Mar 30, 2024
9c05b13
Update StaticContent.md
mdaneri Mar 30, 2024
bbd7a23
Update pode.build.ps1
mdaneri Mar 30, 2024
6d5ecb2
Added multiple tests
mdaneri Mar 31, 2024
0d76667
fixes
mdaneri Mar 31, 2024
5cdb7c8
final
mdaneri Mar 31, 2024
5b0140d
Merge pull request #1261 from mdaneri/#1259
Badgerati Mar 31, 2024
ffb6980
Rename $Context.Server.DefaultFolders.Views
mdaneri Mar 31, 2024
e462867
Merge pull request #1265 from mdaneri/#1243
Badgerati Mar 31, 2024
120efdd
Merge pull request #1273 from mdaneri/Update-Github-workflow
Badgerati Apr 1, 2024
e27dd17
first review
mdaneri Apr 2, 2024
d0a44d3
Merge remote-tracking branch 'upstream/develop' into #1237
mdaneri Apr 2, 2024
b747d56
Update Configuration.md
mdaneri Apr 2, 2024
428e481
second wave
mdaneri Apr 2, 2024
aa80a05
third iteraction
mdaneri Apr 2, 2024
5a8d073
first drop
mdaneri Apr 2, 2024
69de5ca
update
mdaneri Apr 3, 2024
0eccb86
#1179: fix for missing merged auth docs, and add a quicker default se…
Badgerati Apr 3, 2024
829a389
multiple optimizations
mdaneri Apr 3, 2024
9807b41
Merge pull request #1277 from Badgerati/Issue-1179
Badgerati Apr 3, 2024
82a869c
change to getextension and add linux case where the file is not reade…
mdaneri Apr 3, 2024
f75476e
Remove duplicated .Net build
mdaneri Apr 3, 2024
d404e20
#1278: fix scoping issue when using variables to create route groups
Badgerati Apr 3, 2024
90d3602
Merge pull request #1279 from Badgerati/Issue-1278
Badgerati Apr 3, 2024
80f5bb5
review 5
mdaneri Apr 3, 2024
34bf2cc
fix Response.test
mdaneri Apr 3, 2024
d54d1ab
fix an issue when Set-PodeResponseStatus -Code $statusCode is called…
mdaneri Apr 3, 2024
71149e1
Remove Set-PodeResponseStatus when status is 200
mdaneri Apr 4, 2024
ec8eda1
fix set-PodeResponseStatus when ReturnItem is not present
mdaneri Apr 4, 2024
c418442
Merge pull request #1266 from mdaneri/#1237
Badgerati Apr 4, 2024
9e2ddaf
first review
mdaneri Apr 5, 2024
5e55473
#1280: removal of erroneous break command
Badgerati Apr 5, 2024
f8ea7ce
Merge pull request #1281 from Badgerati/Issue-1280
Badgerati Apr 5, 2024
48db230
second
mdaneri Apr 5, 2024
a72b753
third
mdaneri Apr 5, 2024
eef1d2d
third
mdaneri Apr 6, 2024
a673555
Merge remote-tracking branch 'upstream/develop' into Versioning-and-eol
mdaneri Apr 6, 2024
448edc7
forth review
mdaneri Apr 7, 2024
58dd0ad
final drop
mdaneri Apr 7, 2024
ee8786e
Merge pull request #1276 from mdaneri/Versioning-and-eol
Badgerati Apr 7, 2024
de18844
#467: addition of debugging docs
Badgerati Apr 7, 2024
202dcad
#467: merge develop, fix conflict
Badgerati Apr 7, 2024
4eed41c
#467: add missing param desc
Badgerati Apr 7, 2024
4071c6c
Merge pull request #1282 from Badgerati/Issue-467
Badgerati Apr 7, 2024
0d9fa62
#1283: Add more unit tests for checking function syntax
Badgerati Apr 8, 2024
9c06643
Merge pull request #1284 from Badgerati/Issue-1283
Badgerati Apr 8, 2024
5217233
Merge branch 'develop' into patch-1
Badgerati Apr 11, 2024
cdaf722
Merge pull request #1232 from Szeraax/patch-1
Badgerati Apr 11, 2024
41220e0
Merge pull request #1234 from Szeraax/patch-2
Badgerati Apr 11, 2024
5498974
OpenAPI 3.0.3 and 3.1 full support (#1136)
mdaneri Apr 14, 2024
62d7bf8
Quick fixes and tidy-up ready for 2.10.0 (#1286)
Badgerati Apr 14, 2024
998e37a
add 2.10.0 release notes and date
Badgerati Apr 15, 2024
e0ac3e2
Merge pull request #1288 from Badgerati/notes
Badgerati Apr 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/PSScriptAnalyzer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
#
# https://github.com/microsoft/action-psscriptanalyzer
# For more information on PSScriptAnalyzer in general, see
# https://github.com/PowerShell/PSScriptAnalyzer

name: PSScriptAnalyzer

on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]
schedule:
- cron: '20 16 * * 6'

permissions:
contents: read

jobs:
build:
permissions:
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
name: PSScriptAnalyzer
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Run PSScriptAnalyzer
uses: microsoft/psscriptanalyzer-action@6b2948b1944407914a58661c49941824d149734f
with:
# Check https://github.com/microsoft/action-psscriptanalyzer for more info about the options.
# The below set up runs PSScriptAnalyzer to your entire repository and runs some basic security rules.
path: .\
recurse: true
# Include your own basic security rules. Removing this option will run all the rules
includeRule: '"PSAvoidUsingCmdletAliases" ,"PSAvoidUsingPlainTextForPassword","PSAvoidUsingWriteHost","PSAvoidUsingInvokeExpression","PSUseShouldProcessForStateChangingFunctions","PSAvoidUsingUsernameAndPasswordParams","PSUseProcessBlockForPipelineCommand","PSAvoidUsingConvertToSecureStringWithPlainText","PSUseSingularNouns","PSReviewUnusedParameter"'
output: results.sarif

# Upload the SARIF file generated in the previous step
- name: Upload SARIF results file
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: results.sarif
16 changes: 12 additions & 4 deletions .github/workflows/ci-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,27 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4

- name: Check PowerShell version
shell: pwsh
run: |
$PSVersionTable.PSVersion

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x

- name: Install Invoke-Build
shell: pwsh
run: |
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Install-Module -Name InvokeBuild -RequiredVersion '5.5.1' -Force
Install-Module -Name InvokeBuild -RequiredVersion '5.10.5' -Force

- name: Run Pester Tests
shell: pwsh
env:
PODE_COVERALLS_TOKEN: ${{ secrets.PODE_COVERALLS_TOKEN }}
PODE_RUN_CODE_COVERAGE: false
run: |
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-Build Test
43 changes: 43 additions & 0 deletions .github/workflows/ci-powershell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Pode CI - Powershell Desktop

on:
push:
branches:
- '*'
- '!gh-pages'
pull_request:
branches:
- '*'

jobs:
build:

runs-on: windows-latest

strategy:
fail-fast: false

steps:
- uses: actions/checkout@v4

- name: Check PowerShell version
shell: powershell
run: |
$PSVersionTable.PSVersion

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x

- name: Install Invoke-Build
shell: powershell
run: |
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Install-Module -Name InvokeBuild -RequiredVersion '5.10.5' -Force

- name: Run Pester Tests
shell: powershell
run: |
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-Build Test
53 changes: 53 additions & 0 deletions .github/workflows/ci-pwsh7_2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Pode CI - pwsh 7.2

on:
push:
branches:
- '*'
- '!gh-pages'
pull_request:
branches:
- '*'

jobs:
build:

runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]

steps:
- uses: actions/checkout@v4

- name: Setup Powershell
uses: bjompen/[email protected]
with:
FixedVersion: '7.2.18'

- name: Check PowerShell version
shell: pwsh
run: |
$PSVersionTable.PSVersion

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x

- name: Install Invoke-Build
shell: pwsh
run: |
Install-Module -Name InvokeBuild -RequiredVersion '5.10.5' -Force

- name: Run Pester Tests
shell: pwsh
run: |
Invoke-Build Test

- name: Test docker builds
shell: pwsh
run: |
Invoke-Build DockerPack -Version '0.0.0'
53 changes: 53 additions & 0 deletions .github/workflows/ci-pwsh7_3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Pode CI - pwsh 7.3

on:
push:
branches:
- '*'
- '!gh-pages'
pull_request:
branches:
- '*'

jobs:
build:

runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]

steps:
- uses: actions/checkout@v4

- name: Setup Powershell
uses: bjompen/[email protected]
with:
FixedVersion: '7.3.11'

- name: Check PowerShell version
shell: pwsh
run: |
$PSVersionTable.PSVersion

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x

- name: Install Invoke-Build
shell: pwsh
run: |
Install-Module -Name InvokeBuild -RequiredVersion '5.10.5' -Force

- name: Run Pester Tests
shell: pwsh
run: |
Invoke-Build Test

- name: Test docker builds
shell: pwsh
run: |
Invoke-Build DockerPack -Version '0.0.0'
53 changes: 53 additions & 0 deletions .github/workflows/ci-pwsh_lts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Pode CI - pwsh lts

on:
push:
branches:
- '*'
- '!gh-pages'
pull_request:
branches:
- '*'

jobs:
build:

runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]

steps:
- uses: actions/checkout@v4

- name: Setup Powershell
uses: bjompen/[email protected]
with:
ReleaseVersion: 'lts'

- name: Check PowerShell version
shell: pwsh
run: |
$PSVersionTable.PSVersion

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x

- name: Install Invoke-Build
shell: pwsh
run: |
Install-Module -Name InvokeBuild -RequiredVersion '5.10.5' -Force

- name: Run Pester Tests
shell: pwsh
run: |
Invoke-Build Test

- name: Test docker builds
shell: pwsh
run: |
Invoke-Build DockerPack -Version '0.0.0'
24 changes: 16 additions & 8 deletions .github/workflows/ci.yml → .github/workflows/ci-pwsh_preview.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Pode CI
name: Pode CI - pwsh preview

on:
push:
Expand All @@ -20,23 +20,31 @@ jobs:
os: [ubuntu-latest, windows-latest, macOS-latest]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup Powershell
uses: bjompen/[email protected]
with:
ReleaseVersion: 'Preview'

- name: Check PowerShell version
shell: pwsh
run: |
$PSVersionTable.PSVersion

- name: Setup .NET
uses: actions/setup-dotnet@v1.9.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: 7.0.x
dotnet-version: 8.0.x

- name: Install Invoke-Build
shell: pwsh
run: |
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Install-Module -Name InvokeBuild -RequiredVersion '5.5.1' -Force
Install-Module -Name InvokeBuild -RequiredVersion '5.10.5' -Force

- name: Run Pester Tests
shell: pwsh
run: |
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
run: |
Invoke-Build Test

- name: Test docker builds
Expand Down
12 changes: 9 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ examples/state.json
examples/issue-*
examples/issues/
pkg/
deliverable/
.vs/


# Code Runner
tempCodeRunnerFile.ps1

Expand Down Expand Up @@ -189,7 +189,6 @@ ClientBin/
*.publishsettings
node_modules/


# RIA/Silverlight projects
Generated_Code/

Expand Down Expand Up @@ -258,4 +257,11 @@ $RECYCLE.BIN/
*.msp

# Windows shortcuts
*.lnk
*.lnk
.vscode/launch.json
Pode.sln
examples/FileBrowser/wwwFiles/
examples/PetStore/data/PetData.json

packers/choco/pode.nuspec
packers/choco/tools/ChocolateyInstall.ps1
14 changes: 13 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,17 @@
"powershell.codeFormatting.whitespaceBeforeOpenParen": true,
"powershell.codeFormatting.whitespaceBetweenParameters": false,
"powershell.codeFormatting.whitespaceInsideBrace": true,
"files.trimTrailingWhitespace": true
"powershell.scriptAnalysis.settingsPath": "PSScriptAnalyzerSettings.psd1",
"files.trimTrailingWhitespace": true,
"files.associations": {
"*.pode": "html"
},
"[html]": {
"editor.formatOnSave": false
},
"javascript.format.insertSpaceAfterCommaDelimiter": true,
"javascript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": false,
"javascript.format.insertSpaceAfterKeywordsInControlFlowStatements": true,
"javascript.format.insertSpaceBeforeAndAfterBinaryOperators": true,
"javascript.format.insertSpaceBeforeFunctionParenthesis": false
}
Loading
Loading