npgsqlrest 1.2.8 → 1.4.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 +54 -0
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.8.5-client-v1.
|
|
9
|
+
const downloadFrom = "https://github.com/vb-consulting/NpgsqlRest/releases/download/v2.8.5-client-v1.4.0/";
|
|
10
10
|
|
|
11
11
|
function download(url, to, done) {
|
|
12
12
|
https.get(url, (response) => {
|
package/readme.md
CHANGED
|
@@ -102,6 +102,60 @@ See the detailed change log:
|
|
|
102
102
|
- [NpgsqlRest Changelog](https://vb-consulting.github.io/npgsqlrest/changelog/)
|
|
103
103
|
- [NpgsqlRest Client Changelog](https://vb-consulting.github.io/npgsqlrest/client/#changelog)
|
|
104
104
|
|
|
105
|
+
## 1.4.0
|
|
106
|
+
|
|
107
|
+
See the [full diff here](https://github.com/vb-consulting/NpgsqlRest/compare/client-1.3.0...client-1.4.0)
|
|
108
|
+
|
|
109
|
+
- Added new configuration section: `ConnectionSettings` and moved `UseEnvironmentConnection`, `SetApplicationNameInConnection`, and `UseJsonApplicationName` from `NpgsqlRest` to `ConnectionSettings`.
|
|
110
|
+
- Added connections settings for customize connection parameters environment variable names (`HostEnvVar`, `PortEnvVar`, `DatabaseEnvVar`, `UserEnvVar` and `PasswordEnvVar`). Some Docker environments have different environment variable names.
|
|
111
|
+
- Added connections settings `"UseEnvironmentConnectionWhenMissing": false` to be able to override connection string with environment variable names and vice versa.
|
|
112
|
+
- 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.
|
|
113
|
+
- Configuration value `ExposeAsEndpoint` is now set to NULL (disabled) as the default configuration. This may be enabled in the development environment.
|
|
114
|
+
- 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).
|
|
115
|
+
|
|
116
|
+
```console
|
|
117
|
+
Versions:
|
|
118
|
+
Client Build 1.4.0.0
|
|
119
|
+
Npgsql 8.0.3.0
|
|
120
|
+
NpgsqlRest 2.8.5.0
|
|
121
|
+
NpgsqlRest.HttpFiles 1.0.2.0
|
|
122
|
+
NpgsqlRest.TsClient 1.9.0.0
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
## 1.3.0
|
|
126
|
+
|
|
127
|
+
```console
|
|
128
|
+
Versions:
|
|
129
|
+
Client Build 1.3.0.0
|
|
130
|
+
Npgsql 8.0.3.0
|
|
131
|
+
NpgsqlRest 2.8.5.0
|
|
132
|
+
NpgsqlRest.HttpFiles 1.0.2.0
|
|
133
|
+
NpgsqlRest.TsClient 1.9.0.0
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
### Upgrade System.Text.Json to 8.0.4
|
|
137
|
+
|
|
138
|
+
### New option: NpgsqlRest.UseEnvironmentConnection
|
|
139
|
+
|
|
140
|
+
`NpgsqlRest.UseEnvironmentConnection`:
|
|
141
|
+
|
|
142
|
+
If the connection string is not found, empty, or missing host, port or database, the connection string is created from the environment variables.
|
|
143
|
+
|
|
144
|
+
See https://www.postgresql.org/docs/current/libpq-envars.html for the list of the environment variables.
|
|
145
|
+
|
|
146
|
+
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).
|
|
147
|
+
|
|
148
|
+
Set this option to true to use environment variables for host, port and database as well.
|
|
149
|
+
|
|
150
|
+
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.
|
|
151
|
+
|
|
152
|
+
### New option: NpgsqlRest.TsClient.DefaultJsonType
|
|
153
|
+
|
|
154
|
+
`NpgsqlRest.TsClient.DefaultJsonType`:
|
|
155
|
+
|
|
156
|
+
Sets the default TypeScript type for JSON types when generating the TypeScript client.
|
|
157
|
+
|
|
158
|
+
|
|
105
159
|
### 1.2.8
|
|
106
160
|
|
|
107
161
|
```console
|