Skip to content

Commit 658983a

Browse files
committed
bump version
1 parent 180dc8e commit 658983a

File tree

6 files changed

+58
-10
lines changed

6 files changed

+58
-10
lines changed

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

Lines changed: 2 additions & 2 deletions
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.17.0-client-v2.10.0
47-
release_name: "AOT Client v2.10.0 NpgsqlRest v2.17.0"
46+
tag_name: v2.18.0-client-v2.11.0
47+
release_name: "AOT Client v2.11.0 NpgsqlRest v2.18.0"
4848
draft: true
4949
prerelease: true
5050

changelog.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ Note: For a changelog for a client application [see the client application page
44

55
---
66

7-
## Version [2.18.0](https://github.com/vb-consulting/NpgsqlRest/tree/2.17.0 (2025-02-23)
7+
## Version [2.18.0](https://github.com/vb-consulting/NpgsqlRest/tree/2.18.0 (2025-02-23)
88

9-
[Full Changelog](https://github.com/vb-consulting/NpgsqlRest/compare/2.17.1...2.18.0)
9+
[Full Changelog](https://github.com/vb-consulting/NpgsqlRest/compare/2.18.0...2.17.0)
1010

1111
Improve `ValidateParameters` and `ValidateParametersAsync` callbacks:
1212

client.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,54 @@ Example: override Auth:CookieName config npgsqlrest --auth:cookiename=Test
9191

9292
## Changelog
9393

94+
## 2.11.0
95+
96+
- Upgrade System.Text.Json 9.0.2.
97+
- New Log Options:
98+
- `"ConsoleMinimumLevel": "Verbose"` - minimum log level for console logging.
99+
- `"FileMinimumLevel": "Verbose"` - minimum log level for file logging.
100+
- `"ToPostgres": false` - log to PostgreSQL database, using default connection.
101+
- `"PostgresCommand": "call log($1,$2,$3,$4,$5)"` - command to execute when logging to PostgreSQL database.
102+
- `"PostgresMinimumLevel": "Verbose"` - minimum log level for file PostgreSQL database.
103+
104+
These are numerical represntations of log levels:
105+
106+
```csharp
107+
public enum LogEventLevel
108+
{
109+
Verbose = 0,
110+
Debug = 1,
111+
Information = 2,
112+
Warning = 3,
113+
Error = 4,
114+
Fatal = 5
115+
}
116+
```
117+
118+
If we set minumal level to `Warning`, we will receive logs for `Warning`, `Error` and `Fatal` levels.
119+
120+
Default PostgreSQL log command is `call log($1,$2,$3,$4,$5)`, set as see needed. Parameters are always numerical, minumal 1 and maximum 5, where:
121+
- $1 - Log level in text format: `Verbose`, `Debug`, `Information`, `Warning`, `Error` or `Fatal`.
122+
- $2 - Log message (text).
123+
- $3 - Log timestamp UTC timezone.
124+
- $4 - Exceptin in tex format if any or `NULL` if no excpetion exists.
125+
- $5 - Source context.
126+
127+
- New option for `NpgsqlRest.AuthenticationOptions` - `IpAddressParameterName` - includes IP information for apramatares with name from this option (default is `null`, not used). Set this to actual parameter name which will always contain client IP value.
128+
129+
Versions:
130+
131+
```
132+
.NET 9.0.2
133+
Client Build 2.11.0.0
134+
Serilog.AspNetCore 9.0.0.0
135+
Npgsql 9.0.2.0
136+
NpgsqlRest 2.18.0.0
137+
NpgsqlRest.HttpFiles 1.2.0.0
138+
NpgsqlRest.TsClient 1.17.0.0
139+
NpgsqlRest.CrudSource 1.2.0.0
140+
```
141+
94142
## 2.10.0
95143

96144
- Upgrade System.Text.Json 9.0.1.

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

88
FROM ubuntu:25.04

docker/readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ Outputs:
2929

3030
```
3131
Versions:
32-
.NET 9.0.0
33-
Client Build 2.10.0.0
32+
.NET 9.0.2
33+
Client Build 2.11.0.0
3434
Serilog.AspNetCore 9.0.0.0
3535
Npgsql 9.0.2.0
36-
NpgsqlRest 2.17.0.0
36+
NpgsqlRest 2.18.0.0
3737
NpgsqlRest.HttpFiles 1.2.0.0
38-
NpgsqlRest.TsClient 1.16.0.0
38+
NpgsqlRest.TsClient 1.17.0.0
3939
NpgsqlRest.CrudSource 1.2.0.0
4040
4141
CurrentDirectory /app

npm/postinstall.js

Lines changed: 1 addition & 1 deletion
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.17.0-client-v2.10.0/";
9+
const downloadFrom = "https://github.com/vb-consulting/NpgsqlRest/releases/download/v2.18.0-client-v2.11.0/";
1010

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

0 commit comments

Comments
 (0)