npgsqlrest 2.3.0 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "npgsqlrest",
3
- "version": "2.3.0",
3
+ "version": "2.5.0",
4
4
  "description": "Automatic REST API for PostgreSQL Databases Client Build",
5
5
  "scripts": {
6
6
  "postinstall": "node postinstall.js",
package/postinstall.js CHANGED
@@ -6,7 +6,7 @@ const os = require("os");
6
6
  const https = require("https");
7
7
 
8
8
  const downloadDir = "../.bin/";
9
- const downloadFrom = "https://github.com/vb-consulting/NpgsqlRest/releases/download/v2.13.0-client-v2.3.0/";
9
+ const downloadFrom = "https://github.com/vb-consulting/NpgsqlRest/releases/download/v2.14.0-client-v2.5.0/";
10
10
 
11
11
  function download(url, to, done) {
12
12
  https.get(url, (response) => {
package/readme.md CHANGED
@@ -115,6 +115,98 @@ See the detailed change log:
115
115
  - [NpgsqlRest Changelog](https://vb-consulting.github.io/npgsqlrest/changelog/)
116
116
  - [NpgsqlRest Client Changelog](https://vb-consulting.github.io/npgsqlrest/client/#changelog)
117
117
 
118
+ ## 2.5.0
119
+
120
+ ```console
121
+ Versions:
122
+ .NET 9.0.0
123
+ Client Build 2.5.0.0
124
+ Serilog.AspNetCore 8.0.3.0
125
+ Npgsql 9.0.1.0
126
+ NpgsqlRest 2.14.0.0
127
+ NpgsqlRest.HttpFiles 1.1.0.0
128
+ NpgsqlRest.TsClient 1.15.0.0
129
+ ```
130
+
131
+ Add version on startup.
132
+
133
+ Changes in configuration, section `ConnectionSettings`:
134
+
135
+ - `UseEnvironmentConnection` renamed to `UseEnvVars`.
136
+ - `UseEnvironmentConnectionWhenMissing` replaced with `EnvVarsOverride`
137
+ - `EnvVarsOverride` - When this option is disabled (false), connection parameters will be set from the environment variables only if the connection string parameter is not set.
138
+
139
+ ## 2.4.0
140
+
141
+ ```console
142
+ Versions:
143
+ .NET 9.0.0
144
+ Client Build 2.4.0.0
145
+ Serilog.AspNetCore 8.0.3.0
146
+ Npgsql 9.0.1.0
147
+ NpgsqlRest 2.13.1.0
148
+ NpgsqlRest.HttpFiles 1.1.0.0
149
+ NpgsqlRest.TsClient 1.15.0.0
150
+ ```
151
+
152
+ - New version Npgsql 9.0.1
153
+ - New "ClientCodeGen" "UniqueModels" option:
154
+
155
+ ```jsonc
156
+ {
157
+ //...
158
+
159
+ "NpgsqlRest": {
160
+ //
161
+ // Enable or disable the generation of TypeScript/Javascript client source code files for NpgsqlRest endpoints.
162
+ //
163
+ "ClientCodeGen": {
164
+ //...
165
+
166
+ //
167
+ // Keep TypeScript models unique, meaning, models will same fields and types will be merged into one model with name of the last model. Significantly reduces number of generated models.
168
+ //
169
+ "UniqueModels": false
170
+ }
171
+ }
172
+ ```
173
+
174
+ - New ResponseCompression options:
175
+
176
+ ```jsonc
177
+ {
178
+ //...
179
+
180
+ //
181
+ // Response compression settings
182
+ //
183
+ "ResponseCompression": {
184
+ "Enabled": false,
185
+ "EnableForHttps": false,
186
+ "UseBrotli": true,
187
+ "UseGzipFallback": true,
188
+ "CompressionLevel": "Optimal", // Optimal, Fastest, NoCompression, SmallestSize
189
+ "IncludeMimeTypes": [
190
+ "text/plain",
191
+ "text/css",
192
+ "application/javascript",
193
+ "text/html",
194
+ "application/xml",
195
+ "text/xml",
196
+ "application/json",
197
+ "text/json",
198
+ "image/svg+xml",
199
+ "font/woff",
200
+ "font/woff2",
201
+ "application/font-woff",
202
+ "application/font-woff2"
203
+ ],
204
+ "ExcludeMimeTypes": []
205
+ },
206
+
207
+ //...
208
+ ```
209
+
118
210
  ## 2.3.0
119
211
 
120
212
  ```console