Skip to content

Commit ed3c0b3

Browse files
committed
bum version 2.17.0.0-2.22.0.0
1 parent 894a92b commit ed3c0b3

File tree

7 files changed

+79
-14
lines changed

7 files changed

+79
-14
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ jobs:
4343
env:
4444
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4545
with:
46-
tag_name: v2.21.0-client-v2.16.0
47-
release_name: "AOT Client v2.16.0 NpgsqlRest v2.21.0"
46+
tag_name: v2.22.0-client-v2.17.0
47+
release_name: "AOT Client v2.17.0 NpgsqlRest v2.22.0"
4848
draft: true
4949
prerelease: true
5050

NpgsqlRestClient/appsettings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
2.16.0.0
2+
2.17.0.0
33
*/
44
{
55
//

client.md

+66-1
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,76 @@ Example: override Auth:CookieName config npgsqlrest --auth:cookiename=Test
9393

9494
## 2.17.0
9595

96+
### Fixed CRUD Plugin
9697

98+
Includes new fixed version of CRUD plugin and fixed configuration and connection issues.
99+
100+
### New Static Files System
101+
102+
The entire section is redone. Now, default configuration looks like this:
103+
104+
```jsonc
105+
{
106+
//
107+
// Static files settings
108+
//
109+
"StaticFiles": {
110+
"Enabled": false,
111+
"RootPath": "wwwroot",
112+
"ParseContentOptions": {
113+
//
114+
// Enable or disable the parsing of the static files.
115+
// When enabled, the static files will be parsed and the tags will be replaced with the values from the claims collection.
116+
//
117+
"Enabled": false,
118+
//
119+
// List of static file patterns that will parse the content and replace the tags with the values from the claims collection.
120+
// File paths are relative to the RootPath property and pattern matching is case-insensitive.
121+
// Pattern can include wildcards or question marks. For example: *.html, *.htm, *.txt, *.json, *.xml, *.css, *.js
122+
//
123+
"FilePaths": [ "*.html" ],
124+
//
125+
// Tag name to be replaced with authenticated user id for example {userId}
126+
//
127+
"UserIdTag": "userId",
128+
//
129+
// Tag name to be replaced with authenticated user name
130+
//
131+
"UserNameTag": "userName",
132+
//
133+
// Tag name to be replaced with authenticated user roles
134+
//
135+
"UserRolesTag": "userRoles",
136+
//
137+
// Tag names to be replaced with the values from the claims collection
138+
//
139+
"CustomTagToClaimMappings": {}
140+
}
141+
}
142+
}
143+
```
144+
145+
Biggest changes:
146+
147+
- Keys `AnonymousPaths` and `LoginRedirectPath` are removed. They might return some day, but not today.
148+
- New `ParseContentOptions` section. Implements high speed template parser to parse configured files with claim values from auth tokens. Use `{userId}` to replace with actual user id `"1213"` (JSON string value), user name `"john"` or array `["admin", "user"]` for user roles (JSON string array format).
149+
150+
### Versions
151+
152+
```
153+
.NET 9.0.3
154+
Client Build 2.17.0.0
155+
Serilog.AspNetCore 9.0.0.0
156+
Npgsql 9.0.3.0
157+
NpgsqlRest 2.22.0.0
158+
NpgsqlRest.HttpFiles 1.3.0.0
159+
NpgsqlRest.TsClient 1.18.0.0
160+
NpgsqlRest.CrudSource 1.3.0.0
161+
```
97162

98163
## 2.16.0
99164

100-
### New option `ConnectionSettings.LogConnectionNoticeEventsMode`
165+
### New option `ConnectionSettings.MatchNpgsqlConnectionParameterNamesWithEnvVarNames`
101166

102167
```json
103168
{

docker/Dockerfile

+1-1
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/vb-consulting/NpgsqlRest/releases/download/v2.21.0-client-v2.16.0/npgsqlrest-linux64 -O npgsqlrest && \
5+
wget https://github.com/vb-consulting/NpgsqlRest/releases/download/v2.22.0-client-v2.17.0/npgsqlrest-linux64 -O npgsqlrest && \
66
chmod +x npgsqlrest
77

88
FROM ubuntu:25.04

docker/readme.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ Outputs:
2929

3030
```
3131
Versions:
32-
.NET 9.0.2
33-
Client Build 2.11.0.0
32+
.NET 9.0.3
33+
Client Build 2.17.0.0
3434
Serilog.AspNetCore 9.0.0.0
35-
Npgsql 9.0.2.0
36-
NpgsqlRest 2.18.0.0
37-
NpgsqlRest.HttpFiles 1.2.0.0
38-
NpgsqlRest.TsClient 1.17.0.0
39-
NpgsqlRest.CrudSource 1.2.0.0
35+
Npgsql 9.0.3.0
36+
NpgsqlRest 2.22.0.0
37+
NpgsqlRest.HttpFiles 1.3.0.0
38+
NpgsqlRest.TsClient 1.18.0.0
39+
NpgsqlRest.CrudSource 1.3.0.0
4040
4141
CurrentDirectory /app
4242

npm/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "npgsqlrest",
3-
"version": "2.16.0",
3+
"version": "2.17.0",
44
"description": "Automatic REST API for PostgreSQL Databases Client Build",
55
"scripts": {
66
"postinstall": "node postinstall.js",

npm/postinstall.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const os = require("os");
66
const https = require("https");
77

88
const downloadDir = "../.bin/";
9-
const downloadFrom = "https://github.com/vb-consulting/NpgsqlRest/releases/download/v2.21.0-client-v2.16.0/";
9+
const downloadFrom = "https://github.com/vb-consulting/NpgsqlRest/releases/download/v2.22.0-client-v2.17.0/";
1010

1111
function download(url, to, done) {
1212
https.get(url, (response) => {

0 commit comments

Comments
 (0)