@valkey/valkey-glide 1.3.5-rc0 → 1.3.5-rc11

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.
@@ -1,14 +1,18 @@
1
- "use strict";
2
1
  /* tslint:disable */
3
2
  /* eslint-disable */
4
3
  /* prettier-ignore */
4
+
5
5
  /* auto-generated by NAPI-RS */
6
- const { existsSync, readFileSync } = require('fs');
6
+
7
+ const { existsSync, readFileSync } = require('fs')
7
8
  const { join } = require("path");
9
+
8
10
  const { platform, arch } = process;
11
+
9
12
  let nativeBinding = null;
10
13
  let localFileExisted = false;
11
14
  let loadError = null;
15
+
12
16
  function isMusl() {
13
17
  // For Node 10
14
18
  if (!process.report || typeof process.report.getReport !== "function") {
@@ -18,44 +22,43 @@ function isMusl() {
18
22
  .toString()
19
23
  .trim();
20
24
  return readFileSync(lddPath, "utf8").includes("musl");
21
- }
22
- catch (e) {
25
+ } catch (e) {
23
26
  return true;
24
27
  }
25
- }
26
- else {
28
+ } else {
27
29
  const { glibcVersionRuntime } = process.report.getReport().header;
28
30
  return !glibcVersionRuntime;
29
31
  }
30
32
  }
33
+
31
34
  switch (platform) {
32
35
  case "android":
33
36
  switch (arch) {
34
37
  case "arm64":
35
- localFileExisted = existsSync(join(__dirname, "valkey-glide.android-arm64.node"));
38
+ localFileExisted = existsSync(
39
+ join(__dirname, "valkey-glide.android-arm64.node"),
40
+ );
36
41
  try {
37
42
  if (localFileExisted) {
38
43
  nativeBinding = require("./valkey-glide.android-arm64.node");
39
- }
40
- else {
44
+ } else {
41
45
  nativeBinding = require("@valkey/valkey-glide-android-arm64");
42
46
  }
43
- }
44
- catch (e) {
47
+ } catch (e) {
45
48
  loadError = e;
46
49
  }
47
50
  break;
48
51
  case "arm":
49
- localFileExisted = existsSync(join(__dirname, "valkey-glide.android-arm-eabi.node"));
52
+ localFileExisted = existsSync(
53
+ join(__dirname, "valkey-glide.android-arm-eabi.node"),
54
+ );
50
55
  try {
51
56
  if (localFileExisted) {
52
57
  nativeBinding = require("./valkey-glide.android-arm-eabi.node");
53
- }
54
- else {
58
+ } else {
55
59
  nativeBinding = require("@valkey/valkey-glide-android-arm-eabi");
56
60
  }
57
- }
58
- catch (e) {
61
+ } catch (e) {
59
62
  loadError = e;
60
63
  }
61
64
  break;
@@ -66,44 +69,44 @@ switch (platform) {
66
69
  case "win32":
67
70
  switch (arch) {
68
71
  case "x64":
69
- localFileExisted = existsSync(join(__dirname, "valkey-glide.win32-x64-msvc.node"));
72
+ localFileExisted = existsSync(
73
+ join(__dirname, "valkey-glide.win32-x64-msvc.node"),
74
+ );
70
75
  try {
71
76
  if (localFileExisted) {
72
77
  nativeBinding = require("./valkey-glide.win32-x64-msvc.node");
73
- }
74
- else {
78
+ } else {
75
79
  nativeBinding = require("@valkey/valkey-glide-win32-x64-msvc");
76
80
  }
77
- }
78
- catch (e) {
81
+ } catch (e) {
79
82
  loadError = e;
80
83
  }
81
84
  break;
82
85
  case "ia32":
83
- localFileExisted = existsSync(join(__dirname, "valkey-glide.win32-ia32-msvc.node"));
86
+ localFileExisted = existsSync(
87
+ join(__dirname, "valkey-glide.win32-ia32-msvc.node"),
88
+ );
84
89
  try {
85
90
  if (localFileExisted) {
86
91
  nativeBinding = require("./valkey-glide.win32-ia32-msvc.node");
87
- }
88
- else {
92
+ } else {
89
93
  nativeBinding = require("@valkey/valkey-glide-win32-ia32-msvc");
90
94
  }
91
- }
92
- catch (e) {
95
+ } catch (e) {
93
96
  loadError = e;
94
97
  }
95
98
  break;
96
99
  case "arm64":
97
- localFileExisted = existsSync(join(__dirname, "valkey-glide.win32-arm64-msvc.node"));
100
+ localFileExisted = existsSync(
101
+ join(__dirname, "valkey-glide.win32-arm64-msvc.node"),
102
+ );
98
103
  try {
99
104
  if (localFileExisted) {
100
105
  nativeBinding = require("./valkey-glide.win32-arm64-msvc.node");
101
- }
102
- else {
106
+ } else {
103
107
  nativeBinding = require("@valkey/valkey-glide-win32-arm64-msvc");
104
108
  }
105
- }
106
- catch (e) {
109
+ } catch (e) {
107
110
  loadError = e;
108
111
  }
109
112
  break;
@@ -112,43 +115,43 @@ switch (platform) {
112
115
  }
113
116
  break;
114
117
  case "darwin":
115
- localFileExisted = existsSync(join(__dirname, "valkey-glide.darwin-universal.node"));
118
+ localFileExisted = existsSync(
119
+ join(__dirname, "valkey-glide.darwin-universal.node"),
120
+ );
116
121
  try {
117
122
  if (localFileExisted) {
118
123
  nativeBinding = require("./valkey-glide.darwin-universal.node");
119
- }
120
- else {
124
+ } else {
121
125
  nativeBinding = require("@valkey/valkey-glide-darwin-universal");
122
126
  }
123
127
  break;
124
- }
125
- catch { }
128
+ } catch {}
126
129
  switch (arch) {
127
130
  case "x64":
128
- localFileExisted = existsSync(join(__dirname, "valkey-glide.darwin-x64.node"));
131
+ localFileExisted = existsSync(
132
+ join(__dirname, "valkey-glide.darwin-x64.node"),
133
+ );
129
134
  try {
130
135
  if (localFileExisted) {
131
136
  nativeBinding = require("./valkey-glide.darwin-x64.node");
132
- }
133
- else {
137
+ } else {
134
138
  nativeBinding = require("@valkey/valkey-glide-darwin-x64");
135
139
  }
136
- }
137
- catch (e) {
140
+ } catch (e) {
138
141
  loadError = e;
139
142
  }
140
143
  break;
141
144
  case "arm64":
142
- localFileExisted = existsSync(join(__dirname, "valkey-glide.darwin-arm64.node"));
145
+ localFileExisted = existsSync(
146
+ join(__dirname, "valkey-glide.darwin-arm64.node"),
147
+ );
143
148
  try {
144
149
  if (localFileExisted) {
145
150
  nativeBinding = require("./valkey-glide.darwin-arm64.node");
146
- }
147
- else {
151
+ } else {
148
152
  nativeBinding = require("@valkey/valkey-glide-darwin-arm64");
149
153
  }
150
- }
151
- catch (e) {
154
+ } catch (e) {
152
155
  loadError = e;
153
156
  }
154
157
  break;
@@ -160,16 +163,16 @@ switch (platform) {
160
163
  if (arch !== "x64") {
161
164
  throw new Error(`Unsupported architecture on FreeBSD: ${arch}`);
162
165
  }
163
- localFileExisted = existsSync(join(__dirname, "valkey-glide.freebsd-x64.node"));
166
+ localFileExisted = existsSync(
167
+ join(__dirname, "valkey-glide.freebsd-x64.node"),
168
+ );
164
169
  try {
165
170
  if (localFileExisted) {
166
171
  nativeBinding = require("./valkey-glide.freebsd-x64.node");
167
- }
168
- else {
172
+ } else {
169
173
  nativeBinding = require("@valkey/valkey-glide-freebsd-x64");
170
174
  }
171
- }
172
- catch (e) {
175
+ } catch (e) {
173
176
  loadError = e;
174
177
  }
175
178
  break;
@@ -177,135 +180,137 @@ switch (platform) {
177
180
  switch (arch) {
178
181
  case "x64":
179
182
  if (isMusl()) {
180
- localFileExisted = existsSync(join(__dirname, "valkey-glide.linux-x64-musl.node"));
183
+ localFileExisted = existsSync(
184
+ join(__dirname, "valkey-glide.linux-x64-musl.node"),
185
+ );
181
186
  try {
182
187
  if (localFileExisted) {
183
188
  nativeBinding = require("./valkey-glide.linux-x64-musl.node");
184
- }
185
- else {
189
+ } else {
186
190
  nativeBinding = require("@valkey/valkey-glide-linux-x64-musl");
187
191
  }
188
- }
189
- catch (e) {
192
+ } catch (e) {
190
193
  loadError = e;
191
194
  }
192
- }
193
- else {
194
- localFileExisted = existsSync(join(__dirname, "valkey-glide.linux-x64-gnu.node"));
195
+ } else {
196
+ localFileExisted = existsSync(
197
+ join(__dirname, "valkey-glide.linux-x64-gnu.node"),
198
+ );
195
199
  try {
196
200
  if (localFileExisted) {
197
201
  nativeBinding = require("./valkey-glide.linux-x64-gnu.node");
198
- }
199
- else {
202
+ } else {
200
203
  nativeBinding = require("@valkey/valkey-glide-linux-x64-gnu");
201
204
  }
202
- }
203
- catch (e) {
205
+ } catch (e) {
204
206
  loadError = e;
205
207
  }
206
208
  }
207
209
  break;
208
210
  case "arm64":
209
211
  if (isMusl()) {
210
- localFileExisted = existsSync(join(__dirname, "valkey-glide.linux-arm64-musl.node"));
212
+ localFileExisted = existsSync(
213
+ join(__dirname, "valkey-glide.linux-arm64-musl.node"),
214
+ );
211
215
  try {
212
216
  if (localFileExisted) {
213
217
  nativeBinding = require("./valkey-glide.linux-arm64-musl.node");
214
- }
215
- else {
218
+ } else {
216
219
  nativeBinding = require("@valkey/valkey-glide-linux-arm64-musl");
217
220
  }
218
- }
219
- catch (e) {
221
+ } catch (e) {
220
222
  loadError = e;
221
223
  }
222
- }
223
- else {
224
- localFileExisted = existsSync(join(__dirname, "valkey-glide.linux-arm64-gnu.node"));
224
+ } else {
225
+ localFileExisted = existsSync(
226
+ join(__dirname, "valkey-glide.linux-arm64-gnu.node"),
227
+ );
225
228
  try {
226
229
  if (localFileExisted) {
227
230
  nativeBinding = require("./valkey-glide.linux-arm64-gnu.node");
228
- }
229
- else {
231
+ } else {
230
232
  nativeBinding = require("@valkey/valkey-glide-linux-arm64-gnu");
231
233
  }
232
- }
233
- catch (e) {
234
+ } catch (e) {
234
235
  loadError = e;
235
236
  }
236
237
  }
237
238
  break;
238
239
  case "arm":
239
240
  if (isMusl()) {
240
- localFileExisted = existsSync(join(__dirname, "valkey-glide.linux-arm-musleabihf.node"));
241
+ localFileExisted = existsSync(
242
+ join(
243
+ __dirname,
244
+ "valkey-glide.linux-arm-musleabihf.node",
245
+ ),
246
+ );
241
247
  try {
242
248
  if (localFileExisted) {
243
249
  nativeBinding = require("./valkey-glide.linux-arm-musleabihf.node");
244
- }
245
- else {
250
+ } else {
246
251
  nativeBinding = require("@valkey/valkey-glide-linux-arm-musleabihf");
247
252
  }
248
- }
249
- catch (e) {
253
+ } catch (e) {
250
254
  loadError = e;
251
255
  }
252
- }
253
- else {
254
- localFileExisted = existsSync(join(__dirname, "valkey-glide.linux-arm-gnueabihf.node"));
256
+ } else {
257
+ localFileExisted = existsSync(
258
+ join(
259
+ __dirname,
260
+ "valkey-glide.linux-arm-gnueabihf.node",
261
+ ),
262
+ );
255
263
  try {
256
264
  if (localFileExisted) {
257
265
  nativeBinding = require("./valkey-glide.linux-arm-gnueabihf.node");
258
- }
259
- else {
266
+ } else {
260
267
  nativeBinding = require("@valkey/valkey-glide-linux-arm-gnueabihf");
261
268
  }
262
- }
263
- catch (e) {
269
+ } catch (e) {
264
270
  loadError = e;
265
271
  }
266
272
  }
267
273
  break;
268
274
  case "riscv64":
269
275
  if (isMusl()) {
270
- localFileExisted = existsSync(join(__dirname, "valkey-glide.linux-riscv64-musl.node"));
276
+ localFileExisted = existsSync(
277
+ join(__dirname, "valkey-glide.linux-riscv64-musl.node"),
278
+ );
271
279
  try {
272
280
  if (localFileExisted) {
273
281
  nativeBinding = require("./valkey-glide.linux-riscv64-musl.node");
274
- }
275
- else {
282
+ } else {
276
283
  nativeBinding = require("@valkey/valkey-glide-linux-riscv64-musl");
277
284
  }
278
- }
279
- catch (e) {
285
+ } catch (e) {
280
286
  loadError = e;
281
287
  }
282
- }
283
- else {
284
- localFileExisted = existsSync(join(__dirname, "valkey-glide.linux-riscv64-gnu.node"));
288
+ } else {
289
+ localFileExisted = existsSync(
290
+ join(__dirname, "valkey-glide.linux-riscv64-gnu.node"),
291
+ );
285
292
  try {
286
293
  if (localFileExisted) {
287
294
  nativeBinding = require("./valkey-glide.linux-riscv64-gnu.node");
288
- }
289
- else {
295
+ } else {
290
296
  nativeBinding = require("@valkey/valkey-glide-linux-riscv64-gnu");
291
297
  }
292
- }
293
- catch (e) {
298
+ } catch (e) {
294
299
  loadError = e;
295
300
  }
296
301
  }
297
302
  break;
298
303
  case "s390x":
299
- localFileExisted = existsSync(join(__dirname, "valkey-glide.linux-s390x-gnu.node"));
304
+ localFileExisted = existsSync(
305
+ join(__dirname, "valkey-glide.linux-s390x-gnu.node"),
306
+ );
300
307
  try {
301
308
  if (localFileExisted) {
302
309
  nativeBinding = require("./valkey-glide.linux-s390x-gnu.node");
303
- }
304
- else {
310
+ } else {
305
311
  nativeBinding = require("@valkey/valkey-glide-linux-s390x-gnu");
306
312
  }
307
- }
308
- catch (e) {
313
+ } catch (e) {
309
314
  loadError = e;
310
315
  }
311
316
  break;
@@ -316,13 +321,31 @@ switch (platform) {
316
321
  default:
317
322
  throw new Error(`Unsupported OS: ${platform}, architecture: ${arch}`);
318
323
  }
324
+
319
325
  if (!nativeBinding) {
320
326
  if (loadError) {
321
327
  throw loadError;
322
328
  }
323
329
  throw new Error(`Failed to load native binding`);
324
330
  }
325
- const { Level, MAX_REQUEST_ARGS_LEN, DEFAULT_REQUEST_TIMEOUT_IN_MILLISECONDS, DEFAULT_CONNECTION_TIMEOUT_IN_MILLISECONDS, DEFAULT_INFLIGHT_REQUESTS_LIMIT, AsyncClient, StartSocketConnection, log, InitInternalLogger, valueFromSplitPointer, createLeakedStringVec, Script, ClusterScanCursor, getStatistics, } = nativeBinding;
331
+
332
+ const {
333
+ Level,
334
+ MAX_REQUEST_ARGS_LEN,
335
+ DEFAULT_REQUEST_TIMEOUT_IN_MILLISECONDS,
336
+ DEFAULT_CONNECTION_TIMEOUT_IN_MILLISECONDS,
337
+ DEFAULT_INFLIGHT_REQUESTS_LIMIT,
338
+ AsyncClient,
339
+ StartSocketConnection,
340
+ log,
341
+ InitInternalLogger,
342
+ valueFromSplitPointer,
343
+ createLeakedStringVec,
344
+ Script,
345
+ ClusterScanCursor,
346
+ getStatistics,
347
+ } = nativeBinding;
348
+
326
349
  module.exports.Level = Level;
327
350
  module.exports.MAX_REQUEST_ARGS_LEN = MAX_REQUEST_ARGS_LEN;
328
351
  module.exports.DEFAULT_REQUEST_TIMEOUT_IN_MILLISECONDS =
@@ -340,4 +363,3 @@ module.exports.createLeakedStringVec = createLeakedStringVec;
340
363
  module.exports.Script = Script;
341
364
  module.exports.ClusterScanCursor = ClusterScanCursor;
342
365
  module.exports.getStatistics = getStatistics;
343
- //# sourceMappingURL=native.js.map
@@ -626,4 +626,3 @@ async function _handleCustomCommand(client, args, decoderOption = {}) {
626
626
  ? client.customCommand(args, decoderOption)
627
627
  : client.customCommand(args, decoderOption);
628
628
  }
629
- //# sourceMappingURL=GlideFt.js.map
@@ -3,4 +3,3 @@
3
3
  * Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- //# sourceMappingURL=GlideFtOptions.js.map
@@ -1570,4 +1570,3 @@ class JsonBatch {
1570
1570
  }
1571
1571
  }
1572
1572
  exports.JsonBatch = JsonBatch;
1573
- //# sourceMappingURL=GlideJson.js.map
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "main": "build-ts/index.js",
5
5
  "module": "build-ts/index.js",
6
6
  "types": "build-ts/index.d.ts",
7
- "version": "1.3.5-rc0",
7
+ "version": "1.3.5-rc11",
8
8
  "exports": {
9
9
  ".": {
10
10
  "import": {
@@ -32,7 +32,7 @@
32
32
  "license": "Apache-2.0",
33
33
  "dependencies": {
34
34
  "long": "5",
35
- "protobufjs-minimal": "6.11.5"
35
+ "protobufjs": "7"
36
36
  },
37
37
  "keywords": [
38
38
  "valkey",
@@ -81,22 +81,22 @@
81
81
  "staged": "lint-staged",
82
82
  "prereq": "npm install",
83
83
  "artifacts": "napi artifacts",
84
- "prepublishOnly": "napi prepublish -t ../npm"
84
+ "prepublishOnly": "cd ../.. && napi prepublish --config npm/glide/package.json -t npm --skip-gh-release"
85
85
  },
86
86
  "devDependencies": {
87
87
  "@jest/globals": "29",
88
88
  "@types/jest": "29",
89
89
  "@types/minimist": "1",
90
90
  "@types/semver": "7",
91
- "@types/uuid": "10.0.0",
92
- "find-free-port": "2.0.0",
91
+ "@types/uuid": "10",
92
+ "find-free-port": "2",
93
93
  "lint-staged": "16",
94
94
  "jest": "29",
95
95
  "jest-html-reporter": "4",
96
- "protobufjs-cli": "1.2",
96
+ "protobufjs-cli": "1",
97
97
  "replace": "1",
98
98
  "semver": "7",
99
- "ts-jest": "29.3",
99
+ "ts-jest": "29",
100
100
  "ts-node": "10",
101
101
  "typedoc": "0.28",
102
102
  "typedoc-plugin-markdown": "4",
@@ -113,25 +113,10 @@
113
113
  },
114
114
  "publishConfig": {
115
115
  "registry": "https://registry.npmjs.org/",
116
- "ignore": [
117
- "src/**",
118
- "tests/",
119
- "rust-client/**",
120
- "!build-ts/**",
121
- ".prettierignore",
122
- "jest.config.js",
123
- "hybrid-node-tests/**",
124
- "docs/",
125
- "DEVELOPER.md",
126
- ".ort.yml",
127
- "tsconfig.json",
128
- "THIRD_PARTY_LICENSES_NODE"
129
- ],
130
116
  "access": "public"
131
117
  },
132
118
  "engines": {
133
- "node": ">=16",
134
- "npm": ">=11"
119
+ "node": ">=16"
135
120
  },
136
121
  "napi": {
137
122
  "name": "valkey-glide",
@@ -148,11 +133,11 @@
148
133
  }
149
134
  },
150
135
  "optionalDependencies": {
151
- "@valkey/valkey-glide-darwin-x64": "1.3.5-rc0",
152
- "@valkey/valkey-glide-darwin-arm64": "1.3.5-rc0",
153
- "@valkey/valkey-glide-linux-x64-gnu": "1.3.5-rc0",
154
- "@valkey/valkey-glide-linux-arm64-gnu": "1.3.5-rc0",
155
- "@valkey/valkey-glide-linux-x64-musl": "1.3.5-rc0",
156
- "@valkey/valkey-glide-linux-arm64-musl": "1.3.5-rc0"
136
+ "@valkey/valkey-glide-darwin-x64": "1.3.5-rc11",
137
+ "@valkey/valkey-glide-darwin-arm64": "1.3.5-rc11",
138
+ "@valkey/valkey-glide-linux-x64-gnu": "1.3.5-rc11",
139
+ "@valkey/valkey-glide-linux-arm64-gnu": "1.3.5-rc11",
140
+ "@valkey/valkey-glide-linux-x64-musl": "1.3.5-rc11",
141
+ "@valkey/valkey-glide-linux-arm64-musl": "1.3.5-rc11"
157
142
  }
158
143
  }