Skip to content

Commit 8cd7ad4

Browse files
committed
bump version 2.31.0
1 parent c0eeb1c commit 8cd7ad4

9 files changed

Lines changed: 725 additions & 141 deletions

File tree

.github/workflows/build-test-publish.yml

Lines changed: 65 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ on:
77
branches: [ master ]
88
workflow_dispatch:
99

10+
env:
11+
CLIENT_VERSION: v2.26.0
12+
LIBRARY_VERSION: v2.31.0
13+
14+
# Add workflow-level permissions
15+
permissions:
16+
contents: write
17+
packages: read
18+
1019
jobs:
1120
build-test-publish:
1221
runs-on: ubuntu-22.04
@@ -17,9 +26,9 @@ jobs:
1726
postgresql version: '17'
1827
postgresql user: 'postgres'
1928
postgresql password: 'postgres'
20-
- uses: actions/checkout@v2
29+
- uses: actions/checkout@v4 # Updated from v2
2130
- name: Setup .NET9
22-
uses: actions/setup-dotnet@v1
31+
uses: actions/setup-dotnet@v4 # Updated from v1
2332
with:
2433
dotnet-version: 9.0.x
2534
- name: Install dependencies
@@ -34,6 +43,9 @@ jobs:
3443
create-release:
3544
needs: build-test-publish
3645
runs-on: ubuntu-22.04
46+
# Explicit permissions for this job
47+
permissions:
48+
contents: write
3749
outputs:
3850
upload_url: ${{ steps.create_release.outputs.upload_url }}
3951
steps:
@@ -43,17 +55,20 @@ jobs:
4355
env:
4456
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4557
with:
46-
tag_name: v2.30.0-client-v2.25.0
47-
release_name: "AOT Client v2.25.0 NpgsqlRest v2.30.0"
58+
tag_name: ${{ env.LIBRARY_VERSION }}-client-${{ env.CLIENT_VERSION }}
59+
release_name: "AOT Client ${{ env.CLIENT_VERSION }} NpgsqlRest ${{ env.LIBRARY_VERSION }}"
4860
draft: true
49-
prerelease: true
61+
prerelease: false
5062

5163
upload-assets:
5264
needs: create-release
5365
runs-on: ubuntu-22.04
66+
# Explicit permissions for this job
67+
permissions:
68+
contents: write
5469
steps:
5570
- name: Checkout code
56-
uses: actions/checkout@v2
71+
uses: actions/checkout@v4 # Updated from v2
5772

5873
- name: Upload appsettings.json to release
5974
uses: actions/upload-release-asset@v1
@@ -68,10 +83,13 @@ jobs:
6883
build-windows:
6984
needs: create-release
7085
runs-on: windows-2022
86+
# Explicit permissions for this job
87+
permissions:
88+
contents: write
7189
steps:
72-
- uses: actions/checkout@v2
90+
- uses: actions/checkout@v4 # Updated from v2
7391
- name: Setup .NET9
74-
uses: actions/setup-dotnet@v1
92+
uses: actions/setup-dotnet@v4 # Updated from v1
7593
with:
7694
dotnet-version: 9.0.x
7795
- name: Build Windows AOT
@@ -89,10 +107,13 @@ jobs:
89107
build-linux:
90108
needs: create-release
91109
runs-on: ubuntu-22.04
110+
# Explicit permissions for this job
111+
permissions:
112+
contents: write
92113
steps:
93-
- uses: actions/checkout@v2
114+
- uses: actions/checkout@v4 # Updated from v2
94115
- name: Setup .NET9
95-
uses: actions/setup-dotnet@v1
116+
uses: actions/setup-dotnet@v4 # Updated from v1
96117
with:
97118
dotnet-version: 9.0.x
98119
- name: Build Linux AOT
@@ -110,10 +131,13 @@ jobs:
110131
build-macos:
111132
needs: create-release
112133
runs-on: macos-latest
134+
# Explicit permissions for this job
135+
permissions:
136+
contents: write
113137
steps:
114-
- uses: actions/checkout@v2
138+
- uses: actions/checkout@v4 # Updated from v2
115139
- name: Setup .NET9
116-
uses: actions/setup-dotnet@v1
140+
uses: actions/setup-dotnet@v4 # Updated from v1
117141
with:
118142
dotnet-version: 9.0.x
119143
- name: Build macOS ARM64 AOT
@@ -124,6 +148,33 @@ jobs:
124148
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
125149
with:
126150
upload_url: ${{ needs.create-release.outputs.upload_url }}
127-
asset_path: ./NpgsqlRestClient/bin/Release/net9.0/osx-x64/publish/NpgsqlRestClient
151+
asset_path: ./NpgsqlRestClient/bin/Release/net9.0/osx-arm64/publish/NpgsqlRestClient # Fixed path
128152
asset_name: npgsqlrest-osx-arm64
129-
asset_content_type: application/octet-stream
153+
asset_content_type: application/octet-stream
154+
155+
build-docker:
156+
needs: build-linux
157+
runs-on: ubuntu-22.04
158+
permissions:
159+
contents: read
160+
packages: write
161+
steps:
162+
- name: Checkout code
163+
uses: actions/checkout@v4
164+
- name: Set up Docker Buildx
165+
uses: docker/setup-buildx-action@v3
166+
- name: Login to Docker Hub
167+
uses: docker/login-action@v3
168+
with:
169+
username: ${{ secrets.DOCKER_HUB_USERNAME }}
170+
password: ${{ secrets.DOCKER_HUB_TOKEN }}
171+
- name: Build and push Docker image
172+
uses: docker/build-push-action@v5
173+
with:
174+
context: ./docker
175+
push: true
176+
platforms: linux/amd64
177+
provenance: false
178+
tags: |
179+
vbilopav/npgsqlrest:${{ env.CLIENT_VERSION }}
180+
vbilopav/npgsqlrest:latest

NpgsqlRestClient/appsettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
2.25.0.0
2+
2.26.0.0
33
*/
44
{
55
//

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ NpgsqlRest is the superior alternative to existing automatic PostgreSQL REST API
7070
- **Custom Scopes**. Define Server-Sent Event Scope (specific user, groups of users or roles, etc.) per endpoint or per event in your database declarations.
7171

7272
### Enterprise Features
73+
- **Native Executables**. Native executable builds, including ARM versions, have zero dependencies and extremely fast startup times.
7374
- **Containerization**. Docker-ready hub images.
7475
- **NPM Package**. Additional distribution channel as NPM package.
7576
- **Environment Configuration**. Flexible environment variable and configuration management.

changelog.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,21 @@ Note: The changelog for the older version can be found here: [Changelog Archive]
44

55
---
66

7+
## Version [2.31.0](https://github.com/NpgsqlRest/NpgsqlRest/tree/2.31.0) (2025-08-18)
8+
9+
[Full Changelog](https://github.com/NpgsqlRest/NpgsqlRest/compare/2.30.0...2.31.0)
10+
11+
- Simplified Claims mappings. See `ParameterNameClaimsMapping` and `ContextKeyClaimsMapping`. Exact claim names used.
12+
- Support for Connection Open Retry logic with identical behavior to EF Core. See `ConnectionSettings:RetryOptions` for more details.
13+
- Support for conenction string format parser using enviorment varaibles. See `ConnectionSettings:ParseConnectionStringWithEnvVars` for more details.
14+
- Support for Apple Silicon ARM64 builds.
15+
- Added Log MinimalLevels configuration for NpgsqlRest. See `Log:MinimalLevels:NpgsqlRest`.
16+
- Changed all NpgsqlRest informational logging to debug level.
17+
- Added trace logging for routine provider queries. This is very useful for debugging. Verbose level needs to be set.
18+
- Removed all links from comments, and recrated new readme pages.
19+
- Moved project from vb-consulting to NpgsqlRest.
20+
- Fixed typos in couple of options: `Languagues` -> `Languages`.
21+
722
## Version [2.30.0](https://github.com/NpgsqlRest/NpgsqlRest/tree/2.30.0) (2025-08-09)
823

924
[Full Changelog](https://github.com/NpgsqlRest/NpgsqlRest/compare/2.29.0...2.30.0)

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM ubuntu:25.04 AS builder
22
WORKDIR /app
33
RUN apt-get update && \
44
apt-get install -y --no-install-recommends wget ca-certificates && \
5-
wget https://github.com/NpgsqlRest/NpgsqlRest/releases/download/v2.30.0-client-v2.25.0/npgsqlrest-linux64 -O npgsqlrest && \
5+
wget https://github.com/NpgsqlRest/NpgsqlRest/releases/download/v2.31.0-client-v2.26.0/npgsqlrest-linux64 -O npgsqlrest && \
66
chmod +x npgsqlrest
77

88
FROM ubuntu:25.04

0 commit comments

Comments
 (0)