npgsqlrest 2.0.0 → 2.2.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.0.0",
3
+ "version": "2.2.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.10.0-client-v2.0.0/";
9
+ const downloadFrom = "https://github.com/vb-consulting/NpgsqlRest/releases/download/v2.12.0-client-v2.2.0/";
10
10
 
11
11
  function download(url, to, done) {
12
12
  https.get(url, (response) => {
@@ -42,6 +42,9 @@ if (osType === "Windows_NT") {
42
42
  } else if (osType === "Linux") {
43
43
  downloadFileUrl = `${downloadFrom}npgsqlrest-linux64`;
44
44
  downloadTo = `${downloadDir}npgsqlrest`;
45
+ } else if (osType === "Darwin") {
46
+ downloadFileUrl = `${downloadFrom}npgsqlrest-osx64`;
47
+ downloadTo = `${downloadDir}npgsqlrest`;
45
48
  } else {
46
49
  console.error("Unsupported OS detected:", osType);
47
50
  process.exit(1);
package/readme.md CHANGED
@@ -115,6 +115,74 @@ 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.2.0
119
+
120
+ Versions:
121
+ .NET 8.0.10
122
+ Client Build 2.2.0.0
123
+ Serilog.AspNetCore 8.0.3.0
124
+ Npgsql 8.0.5.0
125
+ NpgsqlRest 2.12.0.0
126
+ NpgsqlRest.HttpFiles 1.0.2.0
127
+ NpgsqlRest.TsClient 1.13.0.0
128
+
129
+ Client changes:
130
+
131
+ - New Configuration Section:
132
+
133
+ ```jsonc
134
+ /*
135
+ 2.2.0.0
136
+ */
137
+ {
138
+ //
139
+ // https://vb-consulting.github.io/npgsqlrest/
140
+ //
141
+ "NpgsqlRest": {
142
+ //
143
+ // ...
144
+ //
145
+
146
+ //
147
+ // Options for handling PostgreSQL routines (functions and procedures)
148
+ //
149
+ "RoutineOptions": {
150
+ //
151
+ // Name separator for parameter names when using custom type parameters.
152
+ // Parameter names will be in the format: {ParameterName}{CustomTypeParameterSeparator}{CustomTypeFieldName}. When NULL, default underscore is used.
153
+ //
154
+ "CustomTypeParameterSeparator": null,
155
+ //
156
+ // List of PostgreSQL routine language names to include. If NULL, all languages are included. Names are case-insensitive.
157
+ //
158
+ "IncludeLanguagues": null,
159
+ //
160
+ // List of PostgreSQL routine language names to exclude. If NULL, "C" and "INTERNAL" are excluded by default. Names are case-insensitive.
161
+ //
162
+ "ExcludeLanguagues": null
163
+ },
164
+ }
165
+ }
166
+ ```
167
+
168
+ - `TsClient` configuration section is renamed to `ClientCodeGen`.
169
+
170
+ 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.
171
+
172
+
173
+ ## 2.1.0
174
+
175
+ ```console
176
+ Versions:
177
+ .NET 8.0.8
178
+ Client Build 2.1.0.0
179
+ Serilog.AspNetCore 8.0.2.0
180
+ Npgsql 8.0.3.0
181
+ NpgsqlRest 2.11.0.0
182
+ NpgsqlRest.HttpFiles 1.0.2.0
183
+ NpgsqlRest.TsClient 1.10.0.0
184
+ ```
185
+
118
186
  ## 2.0.0
119
187
 
120
188
  ```console