npgsqlrest 2.6.0 → 2.8.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 +1 -1
- package/postinstall.js +1 -1
- package/readme.md +0 -390
package/package.json
CHANGED
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.
|
|
9
|
+
const downloadFrom = "https://github.com/vb-consulting/NpgsqlRest/releases/download/v2.16.1-client-v2.8.0/";
|
|
10
10
|
|
|
11
11
|
function download(url, to, done) {
|
|
12
12
|
https.get(url, (response) => {
|
package/readme.md
CHANGED
|
@@ -114,393 +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.6.0
|
|
119
|
-
|
|
120
|
-
```console
|
|
121
|
-
Versions:
|
|
122
|
-
.NET 9.0.0
|
|
123
|
-
Client Build 2.6.0.0
|
|
124
|
-
Serilog.AspNetCore 9.0.0.0
|
|
125
|
-
Npgsql 9.0.2.0
|
|
126
|
-
NpgsqlRest 2.15.0.0
|
|
127
|
-
NpgsqlRest.HttpFiles 1.2.0.0
|
|
128
|
-
NpgsqlRest.TsClient 1.16.0.0
|
|
129
|
-
NpgsqlRest.CrudSource 1.2.0.0
|
|
130
|
-
```
|
|
131
|
-
|
|
132
|
-
## 2.5.0
|
|
133
|
-
|
|
134
|
-
```console
|
|
135
|
-
Versions:
|
|
136
|
-
.NET 9.0.0
|
|
137
|
-
Client Build 2.5.0.0
|
|
138
|
-
Serilog.AspNetCore 8.0.3.0
|
|
139
|
-
Npgsql 9.0.1.0
|
|
140
|
-
NpgsqlRest 2.14.0.0
|
|
141
|
-
NpgsqlRest.HttpFiles 1.1.0.0
|
|
142
|
-
NpgsqlRest.TsClient 1.15.0.0
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
Add version on startup.
|
|
146
|
-
|
|
147
|
-
Changes in configuration, section `ConnectionSettings`:
|
|
148
|
-
|
|
149
|
-
- `UseEnvironmentConnection` renamed to `UseEnvVars`.
|
|
150
|
-
- `UseEnvironmentConnectionWhenMissing` replaced with `EnvVarsOverride`
|
|
151
|
-
- `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.
|
|
152
|
-
|
|
153
|
-
## 2.4.0
|
|
154
|
-
|
|
155
|
-
```console
|
|
156
|
-
Versions:
|
|
157
|
-
.NET 9.0.0
|
|
158
|
-
Client Build 2.4.0.0
|
|
159
|
-
Serilog.AspNetCore 8.0.3.0
|
|
160
|
-
Npgsql 9.0.1.0
|
|
161
|
-
NpgsqlRest 2.13.1.0
|
|
162
|
-
NpgsqlRest.HttpFiles 1.1.0.0
|
|
163
|
-
NpgsqlRest.TsClient 1.15.0.0
|
|
164
|
-
```
|
|
165
|
-
|
|
166
|
-
- New version Npgsql 9.0.1
|
|
167
|
-
- New "ClientCodeGen" "UniqueModels" option:
|
|
168
|
-
|
|
169
|
-
```jsonc
|
|
170
|
-
{
|
|
171
|
-
//...
|
|
172
|
-
|
|
173
|
-
"NpgsqlRest": {
|
|
174
|
-
//
|
|
175
|
-
// Enable or disable the generation of TypeScript/Javascript client source code files for NpgsqlRest endpoints.
|
|
176
|
-
//
|
|
177
|
-
"ClientCodeGen": {
|
|
178
|
-
//...
|
|
179
|
-
|
|
180
|
-
//
|
|
181
|
-
// 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.
|
|
182
|
-
//
|
|
183
|
-
"UniqueModels": false
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
```
|
|
187
|
-
|
|
188
|
-
- New ResponseCompression options:
|
|
189
|
-
|
|
190
|
-
```jsonc
|
|
191
|
-
{
|
|
192
|
-
//...
|
|
193
|
-
|
|
194
|
-
//
|
|
195
|
-
// Response compression settings
|
|
196
|
-
//
|
|
197
|
-
"ResponseCompression": {
|
|
198
|
-
"Enabled": false,
|
|
199
|
-
"EnableForHttps": false,
|
|
200
|
-
"UseBrotli": true,
|
|
201
|
-
"UseGzipFallback": true,
|
|
202
|
-
"CompressionLevel": "Optimal", // Optimal, Fastest, NoCompression, SmallestSize
|
|
203
|
-
"IncludeMimeTypes": [
|
|
204
|
-
"text/plain",
|
|
205
|
-
"text/css",
|
|
206
|
-
"application/javascript",
|
|
207
|
-
"text/html",
|
|
208
|
-
"application/xml",
|
|
209
|
-
"text/xml",
|
|
210
|
-
"application/json",
|
|
211
|
-
"text/json",
|
|
212
|
-
"image/svg+xml",
|
|
213
|
-
"font/woff",
|
|
214
|
-
"font/woff2",
|
|
215
|
-
"application/font-woff",
|
|
216
|
-
"application/font-woff2"
|
|
217
|
-
],
|
|
218
|
-
"ExcludeMimeTypes": []
|
|
219
|
-
},
|
|
220
|
-
|
|
221
|
-
//...
|
|
222
|
-
```
|
|
223
|
-
|
|
224
|
-
## 2.3.0
|
|
225
|
-
|
|
226
|
-
```console
|
|
227
|
-
Versions:
|
|
228
|
-
.NET 9.0.0
|
|
229
|
-
Client Build 2.3.0.0
|
|
230
|
-
Serilog.AspNetCore 8.0.3.0
|
|
231
|
-
Npgsql 8.0.5.0
|
|
232
|
-
NpgsqlRest 2.13.0.0
|
|
233
|
-
NpgsqlRest.HttpFiles 1.1.0.0
|
|
234
|
-
NpgsqlRest.TsClient 1.14.0.0
|
|
235
|
-
```
|
|
236
|
-
|
|
237
|
-
- Fixed SSL unnecessary redirection warnings when SSL is not used.
|
|
238
|
-
|
|
239
|
-
## 2.2.0
|
|
240
|
-
|
|
241
|
-
```console
|
|
242
|
-
Versions:
|
|
243
|
-
.NET 8.0.10
|
|
244
|
-
Client Build 2.2.0.0
|
|
245
|
-
Serilog.AspNetCore 8.0.3.0
|
|
246
|
-
Npgsql 8.0.5.0
|
|
247
|
-
NpgsqlRest 2.12.0.0
|
|
248
|
-
NpgsqlRest.HttpFiles 1.0.2.0
|
|
249
|
-
NpgsqlRest.TsClient 1.13.0.0
|
|
250
|
-
```
|
|
251
|
-
|
|
252
|
-
Client changes:
|
|
253
|
-
|
|
254
|
-
- New Configuration Section:
|
|
255
|
-
|
|
256
|
-
```jsonc
|
|
257
|
-
/*
|
|
258
|
-
2.2.0.0
|
|
259
|
-
*/
|
|
260
|
-
{
|
|
261
|
-
//
|
|
262
|
-
// https://vb-consulting.github.io/npgsqlrest/
|
|
263
|
-
//
|
|
264
|
-
"NpgsqlRest": {
|
|
265
|
-
//
|
|
266
|
-
// ...
|
|
267
|
-
//
|
|
268
|
-
|
|
269
|
-
//
|
|
270
|
-
// Options for handling PostgreSQL routines (functions and procedures)
|
|
271
|
-
//
|
|
272
|
-
"RoutineOptions": {
|
|
273
|
-
//
|
|
274
|
-
// Name separator for parameter names when using custom type parameters.
|
|
275
|
-
// Parameter names will be in the format: {ParameterName}{CustomTypeParameterSeparator}{CustomTypeFieldName}. When NULL, default underscore is used.
|
|
276
|
-
//
|
|
277
|
-
"CustomTypeParameterSeparator": null,
|
|
278
|
-
//
|
|
279
|
-
// List of PostgreSQL routine language names to include. If NULL, all languages are included. Names are case-insensitive.
|
|
280
|
-
//
|
|
281
|
-
"IncludeLanguagues": null,
|
|
282
|
-
//
|
|
283
|
-
// List of PostgreSQL routine language names to exclude. If NULL, "C" and "INTERNAL" are excluded by default. Names are case-insensitive.
|
|
284
|
-
//
|
|
285
|
-
"ExcludeLanguagues": null
|
|
286
|
-
},
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
```
|
|
290
|
-
|
|
291
|
-
- `TsClient` configuration section is renamed to `ClientCodeGen`.
|
|
292
|
-
|
|
293
|
-
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.
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
## 2.1.0
|
|
297
|
-
|
|
298
|
-
```console
|
|
299
|
-
Versions:
|
|
300
|
-
.NET 8.0.8
|
|
301
|
-
Client Build 2.1.0.0
|
|
302
|
-
Serilog.AspNetCore 8.0.2.0
|
|
303
|
-
Npgsql 8.0.3.0
|
|
304
|
-
NpgsqlRest 2.11.0.0
|
|
305
|
-
NpgsqlRest.HttpFiles 1.0.2.0
|
|
306
|
-
NpgsqlRest.TsClient 1.10.0.0
|
|
307
|
-
```
|
|
308
|
-
|
|
309
|
-
## 2.0.0
|
|
310
|
-
|
|
311
|
-
```console
|
|
312
|
-
Versions:
|
|
313
|
-
.NET 8.0.7
|
|
314
|
-
Client Build 2.0.0.0
|
|
315
|
-
Serilog.AspNetCore 8.0.2.0
|
|
316
|
-
Npgsql 8.0.3.0
|
|
317
|
-
NpgsqlRest 2.10.0.0
|
|
318
|
-
NpgsqlRest.HttpFiles 1.0.2.0
|
|
319
|
-
NpgsqlRest.TsClient 1.9.1.0
|
|
320
|
-
```
|
|
321
|
-
|
|
322
|
-
## 1.5.0
|
|
323
|
-
|
|
324
|
-
```console
|
|
325
|
-
Versions:
|
|
326
|
-
Client Build 1.5.0.0
|
|
327
|
-
Npgsql 8.0.3.0
|
|
328
|
-
NpgsqlRest 2.9.0.0
|
|
329
|
-
NpgsqlRest.HttpFiles 1.0.2.0
|
|
330
|
-
NpgsqlRest.TsClient 1.9.1.0
|
|
331
|
-
```
|
|
332
|
-
|
|
333
|
-
## 1.4.0
|
|
334
|
-
|
|
335
|
-
See the [full diff here](https://github.com/vb-consulting/NpgsqlRest/compare/client-1.3.0...client-1.4.0)
|
|
336
|
-
|
|
337
|
-
- Added new configuration section: `ConnectionSettings` and moved `UseEnvironmentConnection`, `SetApplicationNameInConnection`, and `UseJsonApplicationName` from `NpgsqlRest` to `ConnectionSettings`.
|
|
338
|
-
- Added connections settings for customize connection parameters environment variable names (`HostEnvVar`, `PortEnvVar`, `DatabaseEnvVar`, `UserEnvVar` and `PasswordEnvVar`). Some Docker environments have different environment variable names.
|
|
339
|
-
- Added connections settings `"UseEnvironmentConnectionWhenMissing": false` to be able to override connection string with environment variable names and vice versa.
|
|
340
|
-
- 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.
|
|
341
|
-
- Configuration value `ExposeAsEndpoint` is now set to NULL (disabled) as the default configuration. This may be enabled in the development environment.
|
|
342
|
-
- 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).
|
|
343
|
-
|
|
344
|
-
```console
|
|
345
|
-
Versions:
|
|
346
|
-
Client Build 1.4.0.0
|
|
347
|
-
Npgsql 8.0.3.0
|
|
348
|
-
NpgsqlRest 2.8.5.0
|
|
349
|
-
NpgsqlRest.HttpFiles 1.0.2.0
|
|
350
|
-
NpgsqlRest.TsClient 1.9.0.0
|
|
351
|
-
```
|
|
352
|
-
|
|
353
|
-
## 1.3.0
|
|
354
|
-
|
|
355
|
-
```console
|
|
356
|
-
Versions:
|
|
357
|
-
Client Build 1.3.0.0
|
|
358
|
-
Npgsql 8.0.3.0
|
|
359
|
-
NpgsqlRest 2.8.5.0
|
|
360
|
-
NpgsqlRest.HttpFiles 1.0.2.0
|
|
361
|
-
NpgsqlRest.TsClient 1.9.0.0
|
|
362
|
-
```
|
|
363
|
-
|
|
364
|
-
### Upgrade System.Text.Json to 8.0.4
|
|
365
|
-
|
|
366
|
-
### New option: NpgsqlRest.UseEnvironmentConnection
|
|
367
|
-
|
|
368
|
-
`NpgsqlRest.UseEnvironmentConnection`:
|
|
369
|
-
|
|
370
|
-
If the connection string is not found, empty, or missing host, port or database, the connection string is created from the environment variables.
|
|
371
|
-
|
|
372
|
-
See https://www.postgresql.org/docs/current/libpq-envars.html for the list of the environment variables.
|
|
373
|
-
|
|
374
|
-
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).
|
|
375
|
-
|
|
376
|
-
Set this option to true to use environment variables for host, port and database as well.
|
|
377
|
-
|
|
378
|
-
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.
|
|
379
|
-
|
|
380
|
-
### New option: NpgsqlRest.TsClient.DefaultJsonType
|
|
381
|
-
|
|
382
|
-
`NpgsqlRest.TsClient.DefaultJsonType`:
|
|
383
|
-
|
|
384
|
-
Sets the default TypeScript type for JSON types when generating the TypeScript client.
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
### 1.2.8
|
|
388
|
-
|
|
389
|
-
```console
|
|
390
|
-
Versions:
|
|
391
|
-
Client Build 1.2.8.0
|
|
392
|
-
Npgsql 8.0.3.0
|
|
393
|
-
NpgsqlRest 2.8.5.0
|
|
394
|
-
NpgsqlRest.HttpFiles 1.0.2.0
|
|
395
|
-
NpgsqlRest.TsClient 1.8.1.0
|
|
396
|
-
```
|
|
397
|
-
|
|
398
|
-
### 1.2.7
|
|
399
|
-
|
|
400
|
-
```console
|
|
401
|
-
Versions:
|
|
402
|
-
Client Build 1.2.7.0
|
|
403
|
-
NpgsqlRest 2.8.4.0
|
|
404
|
-
NpgsqlRest.HttpFiles 1.0.2.0
|
|
405
|
-
NpgsqlRest.TsClient 1.8.1.0
|
|
406
|
-
```
|
|
407
|
-
|
|
408
|
-
### 1.2.6
|
|
409
|
-
|
|
410
|
-
```console
|
|
411
|
-
Versions:
|
|
412
|
-
Client Build 1.2.5.0
|
|
413
|
-
NpgsqlRest 2.8.3.0
|
|
414
|
-
NpgsqlRest.HttpFiles 1.0.2.0
|
|
415
|
-
NpgsqlRest.TsClient 1.8.1.0
|
|
416
|
-
```
|
|
417
|
-
|
|
418
|
-
### 1.2.5
|
|
419
|
-
|
|
420
|
-
```console
|
|
421
|
-
Versions:
|
|
422
|
-
Client Build 1.2.4.0
|
|
423
|
-
NpgsqlRest 2.8.2.0
|
|
424
|
-
NpgsqlRest.HttpFiles 1.0.2.0
|
|
425
|
-
NpgsqlRest.TsClient 1.8.0.0
|
|
426
|
-
```
|
|
427
|
-
|
|
428
|
-
### 1.2.4
|
|
429
|
-
|
|
430
|
-
```console
|
|
431
|
-
Versions:
|
|
432
|
-
Client Build 1.2.3.0
|
|
433
|
-
NpgsqlRest 2.8.1.0
|
|
434
|
-
NpgsqlRest.HttpFiles 1.0.2.0
|
|
435
|
-
NpgsqlRest.TsClient 1.7.0.0
|
|
436
|
-
```
|
|
437
|
-
|
|
438
|
-
### 1.2.3
|
|
439
|
-
|
|
440
|
-
```console
|
|
441
|
-
Versions:
|
|
442
|
-
Client Build 1.2.2.0
|
|
443
|
-
NpgsqlRest 2.8.1.0
|
|
444
|
-
NpgsqlRest.HttpFiles 1.0.2.0
|
|
445
|
-
NpgsqlRest.TsClient 1.7.0.0
|
|
446
|
-
```
|
|
447
|
-
|
|
448
|
-
### 1.2.2
|
|
449
|
-
|
|
450
|
-
```console
|
|
451
|
-
Versions:
|
|
452
|
-
Client Build 1.2.1.0
|
|
453
|
-
NpgsqlRest 2.8.1.0
|
|
454
|
-
NpgsqlRest.HttpFiles 1.0.2.0
|
|
455
|
-
NpgsqlRest.TsClient 1.7.0.0
|
|
456
|
-
```
|
|
457
|
-
|
|
458
|
-
### 1.2.1
|
|
459
|
-
|
|
460
|
-
Fix readme
|
|
461
|
-
|
|
462
|
-
### 1.2.0
|
|
463
|
-
|
|
464
|
-
```console
|
|
465
|
-
Versions:
|
|
466
|
-
Client Build 1.2.0.0
|
|
467
|
-
NpgsqlRest 2.8.0.0
|
|
468
|
-
NpgsqlRest.HttpFiles 1.0.2.0
|
|
469
|
-
NpgsqlRest.TsClient 1.7.0.0
|
|
470
|
-
```
|
|
471
|
-
|
|
472
|
-
### 1.1.8
|
|
473
|
-
|
|
474
|
-
Changed the download target from `./node_modules/npgsqlrest/.bin/` to shared bin: `./node_modules/.bin/`.
|
|
475
|
-
|
|
476
|
-
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).
|
|
477
|
-
|
|
478
|
-
But now, I have to use the uninstall script too, to ensure the proper cleanup on the install.
|
|
479
|
-
|
|
480
|
-
### 1.1.7
|
|
481
|
-
|
|
482
|
-
Update readme.
|
|
483
|
-
|
|
484
|
-
### 1.1.6
|
|
485
|
-
### 1.1.5
|
|
486
|
-
### 1.1.4
|
|
487
|
-
### 1.1.3
|
|
488
|
-
### 1.1.2
|
|
489
|
-
|
|
490
|
-
Fixing the issue with the local .bin directory.
|
|
491
|
-
|
|
492
|
-
### 1.1.1
|
|
493
|
-
|
|
494
|
-
- Move the download bin directory from share `/node_modules/.bin/` to package local `/node_modules/npgsqlrest/.bin/`
|
|
495
|
-
- Added copy default configuration command that, well, copies the default configuration `npx npgsqlrest-config-copy [optional dir]`
|
|
496
|
-
|
|
497
|
-
### 1.1.0
|
|
498
|
-
|
|
499
|
-
New build versions:
|
|
500
|
-
|
|
501
|
-
```console
|
|
502
|
-
Client Build 1.1.0.0
|
|
503
|
-
NpgsqlRest 2.7.1.0
|
|
504
|
-
NpgsqlRest.HttpFiles 1.0.2.0
|
|
505
|
-
NpgsqlRest.TsClient 1.6.0.0
|
|
506
|
-
```
|