npgsqlrest 2.5.0 → 2.7.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.5.0",
3
+ "version": "2.7.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.14.0-client-v2.5.0/";
9
+ const downloadFrom = "https://github.com/vb-consulting/NpgsqlRest/releases/download/v2.16.0-client-v2.7.0/";
10
10
 
11
11
  function download(url, to, done) {
12
12
  https.get(url, (response) => {
package/readme.md CHANGED
@@ -114,379 +114,3 @@ $ npx npgsqlrest appsettings.json project-config.json
114
114
  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
-
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
-
210
- ## 2.3.0
211
-
212
- ```console
213
- Versions:
214
- .NET 9.0.0
215
- Client Build 2.3.0.0
216
- Serilog.AspNetCore 8.0.3.0
217
- Npgsql 8.0.5.0
218
- NpgsqlRest 2.13.0.0
219
- NpgsqlRest.HttpFiles 1.1.0.0
220
- NpgsqlRest.TsClient 1.14.0.0
221
- ```
222
-
223
- - Fixed SSL unnecessary redirection warnings when SSL is not used.
224
-
225
- ## 2.2.0
226
-
227
- ```console
228
- Versions:
229
- .NET 8.0.10
230
- Client Build 2.2.0.0
231
- Serilog.AspNetCore 8.0.3.0
232
- Npgsql 8.0.5.0
233
- NpgsqlRest 2.12.0.0
234
- NpgsqlRest.HttpFiles 1.0.2.0
235
- NpgsqlRest.TsClient 1.13.0.0
236
- ```
237
-
238
- Client changes:
239
-
240
- - New Configuration Section:
241
-
242
- ```jsonc
243
- /*
244
- 2.2.0.0
245
- */
246
- {
247
- //
248
- // https://vb-consulting.github.io/npgsqlrest/
249
- //
250
- "NpgsqlRest": {
251
- //
252
- // ...
253
- //
254
-
255
- //
256
- // Options for handling PostgreSQL routines (functions and procedures)
257
- //
258
- "RoutineOptions": {
259
- //
260
- // Name separator for parameter names when using custom type parameters.
261
- // Parameter names will be in the format: {ParameterName}{CustomTypeParameterSeparator}{CustomTypeFieldName}. When NULL, default underscore is used.
262
- //
263
- "CustomTypeParameterSeparator": null,
264
- //
265
- // List of PostgreSQL routine language names to include. If NULL, all languages are included. Names are case-insensitive.
266
- //
267
- "IncludeLanguagues": null,
268
- //
269
- // List of PostgreSQL routine language names to exclude. If NULL, "C" and "INTERNAL" are excluded by default. Names are case-insensitive.
270
- //
271
- "ExcludeLanguagues": null
272
- },
273
- }
274
- }
275
- ```
276
-
277
- - `TsClient` configuration section is renamed to `ClientCodeGen`.
278
-
279
- Reason is the new configuration key in this section `"SkipTypes": false` that allows for generation of the pure JavaSCript modules by ommiting type declarations. And now this section can generate either TypeScript or JavaScript which is client code.
280
-
281
-
282
- ## 2.1.0
283
-
284
- ```console
285
- Versions:
286
- .NET 8.0.8
287
- Client Build 2.1.0.0
288
- Serilog.AspNetCore 8.0.2.0
289
- Npgsql 8.0.3.0
290
- NpgsqlRest 2.11.0.0
291
- NpgsqlRest.HttpFiles 1.0.2.0
292
- NpgsqlRest.TsClient 1.10.0.0
293
- ```
294
-
295
- ## 2.0.0
296
-
297
- ```console
298
- Versions:
299
- .NET 8.0.7
300
- Client Build 2.0.0.0
301
- Serilog.AspNetCore 8.0.2.0
302
- Npgsql 8.0.3.0
303
- NpgsqlRest 2.10.0.0
304
- NpgsqlRest.HttpFiles 1.0.2.0
305
- NpgsqlRest.TsClient 1.9.1.0
306
- ```
307
-
308
- ## 1.5.0
309
-
310
- ```console
311
- Versions:
312
- Client Build 1.5.0.0
313
- Npgsql 8.0.3.0
314
- NpgsqlRest 2.9.0.0
315
- NpgsqlRest.HttpFiles 1.0.2.0
316
- NpgsqlRest.TsClient 1.9.1.0
317
- ```
318
-
319
- ## 1.4.0
320
-
321
- See the [full diff here](https://github.com/vb-consulting/NpgsqlRest/compare/client-1.3.0...client-1.4.0)
322
-
323
- - Added new configuration section: `ConnectionSettings` and moved `UseEnvironmentConnection`, `SetApplicationNameInConnection`, and `UseJsonApplicationName` from `NpgsqlRest` to `ConnectionSettings`.
324
- - Added connections settings for customize connection parameters environment variable names (`HostEnvVar`, `PortEnvVar`, `DatabaseEnvVar`, `UserEnvVar` and `PasswordEnvVar`). Some Docker environments have different environment variable names.
325
- - Added connections settings `"UseEnvironmentConnectionWhenMissing": false` to be able to override connection string with environment variable names and vice versa.
326
- - Added support for overriding configuration settings from the command line. Command line configuration has to have this format: `--key=value`. See updated help for more info.
327
- - Configuration value `ExposeAsEndpoint` is now set to NULL (disabled) as the default configuration. This may be enabled in the development environment.
328
- - Fix: Default configuration files `appsettings.json` and optional `appsettings.Development.json` are now loaded from the same directory as all others (current directory as opposed to the exe location dir).
329
-
330
- ```console
331
- Versions:
332
- Client Build 1.4.0.0
333
- Npgsql 8.0.3.0
334
- NpgsqlRest 2.8.5.0
335
- NpgsqlRest.HttpFiles 1.0.2.0
336
- NpgsqlRest.TsClient 1.9.0.0
337
- ```
338
-
339
- ## 1.3.0
340
-
341
- ```console
342
- Versions:
343
- Client Build 1.3.0.0
344
- Npgsql 8.0.3.0
345
- NpgsqlRest 2.8.5.0
346
- NpgsqlRest.HttpFiles 1.0.2.0
347
- NpgsqlRest.TsClient 1.9.0.0
348
- ```
349
-
350
- ### Upgrade System.Text.Json to 8.0.4
351
-
352
- ### New option: NpgsqlRest.UseEnvironmentConnection
353
-
354
- `NpgsqlRest.UseEnvironmentConnection`:
355
-
356
- If the connection string is not found, empty, or missing host, port or database, the connection string is created from the environment variables.
357
-
358
- See https://www.postgresql.org/docs/current/libpq-envars.html for the list of the environment variables.
359
-
360
- Note: Npgsql will use the environment variables by default but only for the small set of the connection string parameters like username and password (see https://www.npgsql.org/doc/connection-string-parameters.html#environment-variables).
361
-
362
- Set this option to true to use environment variables for host, port and database as well.
363
-
364
- When this option is enabled and these environment variables are set, connection string doesn't have to be defined at all and it will be created from the environment variables.
365
-
366
- ### New option: NpgsqlRest.TsClient.DefaultJsonType
367
-
368
- `NpgsqlRest.TsClient.DefaultJsonType`:
369
-
370
- Sets the default TypeScript type for JSON types when generating the TypeScript client.
371
-
372
-
373
- ### 1.2.8
374
-
375
- ```console
376
- Versions:
377
- Client Build 1.2.8.0
378
- Npgsql 8.0.3.0
379
- NpgsqlRest 2.8.5.0
380
- NpgsqlRest.HttpFiles 1.0.2.0
381
- NpgsqlRest.TsClient 1.8.1.0
382
- ```
383
-
384
- ### 1.2.7
385
-
386
- ```console
387
- Versions:
388
- Client Build 1.2.7.0
389
- NpgsqlRest 2.8.4.0
390
- NpgsqlRest.HttpFiles 1.0.2.0
391
- NpgsqlRest.TsClient 1.8.1.0
392
- ```
393
-
394
- ### 1.2.6
395
-
396
- ```console
397
- Versions:
398
- Client Build 1.2.5.0
399
- NpgsqlRest 2.8.3.0
400
- NpgsqlRest.HttpFiles 1.0.2.0
401
- NpgsqlRest.TsClient 1.8.1.0
402
- ```
403
-
404
- ### 1.2.5
405
-
406
- ```console
407
- Versions:
408
- Client Build 1.2.4.0
409
- NpgsqlRest 2.8.2.0
410
- NpgsqlRest.HttpFiles 1.0.2.0
411
- NpgsqlRest.TsClient 1.8.0.0
412
- ```
413
-
414
- ### 1.2.4
415
-
416
- ```console
417
- Versions:
418
- Client Build 1.2.3.0
419
- NpgsqlRest 2.8.1.0
420
- NpgsqlRest.HttpFiles 1.0.2.0
421
- NpgsqlRest.TsClient 1.7.0.0
422
- ```
423
-
424
- ### 1.2.3
425
-
426
- ```console
427
- Versions:
428
- Client Build 1.2.2.0
429
- NpgsqlRest 2.8.1.0
430
- NpgsqlRest.HttpFiles 1.0.2.0
431
- NpgsqlRest.TsClient 1.7.0.0
432
- ```
433
-
434
- ### 1.2.2
435
-
436
- ```console
437
- Versions:
438
- Client Build 1.2.1.0
439
- NpgsqlRest 2.8.1.0
440
- NpgsqlRest.HttpFiles 1.0.2.0
441
- NpgsqlRest.TsClient 1.7.0.0
442
- ```
443
-
444
- ### 1.2.1
445
-
446
- Fix readme
447
-
448
- ### 1.2.0
449
-
450
- ```console
451
- Versions:
452
- Client Build 1.2.0.0
453
- NpgsqlRest 2.8.0.0
454
- NpgsqlRest.HttpFiles 1.0.2.0
455
- NpgsqlRest.TsClient 1.7.0.0
456
- ```
457
-
458
- ### 1.1.8
459
-
460
- Changed the download target from `./node_modules/npgsqlrest/.bin/` to shared bin: `./node_modules/.bin/`.
461
-
462
- The reason is that when using the `./node_modules/npgsqlrest/.bin/` directory, I have to use the node spawn process wrapper which slows down the startup time. When the executable is in the `./node_modules/.bin/` it can be invoked directly which is an extremely fast, almost instant startup (a couple of milliseconds).
463
-
464
- But now, I have to use the uninstall script too, to ensure the proper cleanup on the install.
465
-
466
- ### 1.1.7
467
-
468
- Update readme.
469
-
470
- ### 1.1.6
471
- ### 1.1.5
472
- ### 1.1.4
473
- ### 1.1.3
474
- ### 1.1.2
475
-
476
- Fixing the issue with the local .bin directory.
477
-
478
- ### 1.1.1
479
-
480
- - Move the download bin directory from share `/node_modules/.bin/` to package local `/node_modules/npgsqlrest/.bin/`
481
- - Added copy default configuration command that, well, copies the default configuration `npx npgsqlrest-config-copy [optional dir]`
482
-
483
- ### 1.1.0
484
-
485
- New build versions:
486
-
487
- ```console
488
- Client Build 1.1.0.0
489
- NpgsqlRest 2.7.1.0
490
- NpgsqlRest.HttpFiles 1.0.2.0
491
- NpgsqlRest.TsClient 1.6.0.0
492
- ```