@mastra/pinecone 0.11.6 → 0.11.7-alpha.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @mastra/pinecone
2
2
 
3
+ ## 0.11.7-alpha.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#7394](https://github.com/mastra-ai/mastra/pull/7394) [`f0dfcac`](https://github.com/mastra-ai/mastra/commit/f0dfcac4458bdf789b975e2d63e984f5d1e7c4d3) Thanks [@NikAiyer](https://github.com/NikAiyer)! - updated core peerdep
8
+
9
+ - Updated dependencies [[`7149d8d`](https://github.com/mastra-ai/mastra/commit/7149d8d4bdc1edf0008e0ca9b7925eb0b8b60dbe)]:
10
+ - @mastra/core@0.15.3-alpha.7
11
+
12
+ ## 0.11.7-alpha.0
13
+
14
+ ### Patch Changes
15
+
16
+ - [#7343](https://github.com/mastra-ai/mastra/pull/7343) [`de3cbc6`](https://github.com/mastra-ai/mastra/commit/de3cbc61079211431bd30487982ea3653517278e) Thanks [@LekoArts](https://github.com/LekoArts)! - Update the `package.json` file to include additional fields like `repository`, `homepage` or `files`.
17
+
18
+ - Updated dependencies [[`85ef90b`](https://github.com/mastra-ai/mastra/commit/85ef90bb2cd4ae4df855c7ac175f7d392c55c1bf), [`de3cbc6`](https://github.com/mastra-ai/mastra/commit/de3cbc61079211431bd30487982ea3653517278e)]:
19
+ - @mastra/core@0.15.3-alpha.5
20
+
3
21
  ## 0.11.6
4
22
 
5
23
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/pinecone",
3
- "version": "0.11.6",
3
+ "version": "0.11.7-alpha.1",
4
4
  "description": "Pinecone vector store provider for Mastra",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "./package.json": "./package.json"
20
20
  },
21
- "license": "MIT",
21
+ "license": "Apache-2.0",
22
22
  "dependencies": {
23
23
  "@pinecone-database/pinecone": "^3.0.3"
24
24
  },
@@ -30,12 +30,25 @@
30
30
  "tsup": "^8.5.0",
31
31
  "typescript": "^5.8.3",
32
32
  "vitest": "^3.2.4",
33
- "@internal/types-builder": "0.0.9",
34
33
  "@internal/lint": "0.0.34",
35
- "@mastra/core": "0.15.2"
34
+ "@mastra/core": "0.15.3-alpha.7",
35
+ "@internal/types-builder": "0.0.9"
36
36
  },
37
37
  "peerDependencies": {
38
- "@mastra/core": ">=0.10.7-0 <0.16.0-0"
38
+ "@mastra/core": ">=0.15.3-0 <0.16.0-0"
39
+ },
40
+ "files": [
41
+ "dist",
42
+ "CHANGELOG.md"
43
+ ],
44
+ "homepage": "https://mastra.ai",
45
+ "repository": {
46
+ "type": "git",
47
+ "url": "git+https://github.com/mastra-ai/mastra.git",
48
+ "directory": "stores/pinecone"
49
+ },
50
+ "bugs": {
51
+ "url": "https://github.com/mastra-ai/mastra/issues"
39
52
  },
40
53
  "scripts": {
41
54
  "build": "tsup --silent --config tsup.config.ts",
@@ -1,4 +0,0 @@
1
-
2
- > @mastra/pinecone@0.11.5 build /home/runner/work/mastra/mastra/stores/pinecone
3
- > tsup --silent --config tsup.config.ts
4
-
package/eslint.config.js DELETED
@@ -1,6 +0,0 @@
1
- import { createConfig } from '@internal/lint/eslint';
2
-
3
- const config = await createConfig();
4
-
5
- /** @type {import("eslint").Linter.Config[]} */
6
- export default [...config];
package/src/index.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from './vector/index';
2
- export { PINECONE_PROMPT } from './vector/prompt';
@@ -1,458 +0,0 @@
1
- import { describe, it, expect, beforeEach } from 'vitest';
2
-
3
- import type { PineconeVectorFilter } from './filter';
4
- import { PineconeFilterTranslator } from './filter';
5
-
6
- describe('PineconeFilterTranslator', () => {
7
- let translator: PineconeFilterTranslator;
8
-
9
- beforeEach(() => {
10
- translator = new PineconeFilterTranslator();
11
- });
12
-
13
- // Basic Filter Operations
14
- describe('basic operations', () => {
15
- it('handles empty filters', () => {
16
- expect(translator.translate({})).toEqual({});
17
- expect(translator.translate(null)).toEqual(null);
18
- expect(translator.translate(undefined)).toEqual(undefined);
19
- });
20
-
21
- it('allows implicit equality', () => {
22
- const filter: PineconeVectorFilter = { field: 'value' };
23
- expect(translator.translate(filter)).toEqual({ field: 'value' });
24
- });
25
-
26
- it('allows multiple top-level fields', () => {
27
- const filter: PineconeVectorFilter = {
28
- field1: 'value1',
29
- field2: 'value2',
30
- };
31
- expect(translator.translate(filter)).toEqual({
32
- field1: 'value1',
33
- field2: 'value2',
34
- });
35
- });
36
-
37
- it('handles multiple operators on same field', () => {
38
- const filter: PineconeVectorFilter = {
39
- price: { $gt: 100, $lt: 200 },
40
- quantity: { $gte: 10, $lte: 20 },
41
- };
42
- expect(translator.translate(filter)).toEqual({
43
- price: { $gt: 100, $lt: 200 },
44
- quantity: { $gte: 10, $lte: 20 },
45
- });
46
- });
47
-
48
- it('normalizes date values', () => {
49
- const date = new Date('2024-01-01');
50
- const filter: PineconeVectorFilter = { timestamp: { $gt: date } };
51
- expect(translator.translate(filter)).toEqual({ timestamp: { $gt: date.toISOString() } });
52
- });
53
-
54
- it('handles $exists operator', () => {
55
- const filter: PineconeVectorFilter = { field: { $exists: true } };
56
- expect(translator.translate(filter)).toEqual({ field: { $exists: true } });
57
- });
58
- });
59
-
60
- // Array Operations
61
- describe('array operations', () => {
62
- it('handles arrays as $in operator', () => {
63
- const filter: PineconeVectorFilter = { tags: ['tag1', 'tag2'] };
64
- expect(translator.translate(filter)).toEqual({ tags: { $in: ['tag1', 'tag2'] } });
65
- });
66
-
67
- it('simulates $all using $and + $in', () => {
68
- const filter: PineconeVectorFilter = { tags: { $all: ['tag1', 'tag2'] } };
69
- expect(translator.translate(filter)).toEqual({
70
- $and: [{ tags: { $in: ['tag1'] } }, { tags: { $in: ['tag2'] } }],
71
- });
72
- });
73
-
74
- it('handles empty array values', () => {
75
- // $in with empty array is valid in Pinecone
76
- expect(translator.translate({ tags: { $in: [] } })).toEqual({ tags: { $in: [] } });
77
- });
78
-
79
- it('handles arrays as direct values', () => {
80
- // Direct array value should be converted to $in
81
- expect(translator.translate({ field: ['value1', 'value2'] })).toEqual({ field: { $in: ['value1', 'value2'] } });
82
-
83
- // Empty direct array
84
- expect(translator.translate({ field: [] })).toEqual({ field: { $in: [] } });
85
- });
86
-
87
- describe('$in operator variations', () => {
88
- it('handles $in with various values', () => {
89
- // Empty array
90
- expect(translator.translate({ field: { $in: [] } })).toEqual({ field: { $in: [] } });
91
-
92
- // Single value
93
- expect(translator.translate({ field: { $in: ['value'] } })).toEqual({ field: { $in: ['value'] } });
94
-
95
- // Multiple values
96
- expect(translator.translate({ field: { $in: [1, 'two', true] } })).toEqual({
97
- field: { $in: [1, 'two', true] },
98
- });
99
-
100
- // With dates
101
- const date = new Date('2024-01-01');
102
- expect(translator.translate({ field: { $in: [date.toISOString()] } })).toEqual({
103
- field: { $in: [date.toISOString()] },
104
- });
105
- });
106
- });
107
-
108
- describe('$all operator handling', () => {
109
- it('handles $all operator simulation', () => {
110
- // Single value - converts to $in
111
- expect(translator.translate({ field: { $all: ['value'] } })).toEqual({ $and: [{ field: { $in: ['value'] } }] });
112
-
113
- // Multiple values
114
- expect(translator.translate({ field: { $all: ['value1', 'value2'] } })).toEqual({
115
- $and: [{ field: { $in: ['value1'] } }, { field: { $in: ['value2'] } }],
116
- });
117
-
118
- // With dates
119
- const date1 = new Date('2024-01-01');
120
- const date2 = new Date('2024-01-02');
121
- expect(translator.translate({ field: { $all: [date1, date2] } })).toEqual({
122
- $and: [{ field: { $in: [date1.toISOString()] } }, { field: { $in: [date2.toISOString()] } }],
123
- });
124
- });
125
- });
126
- });
127
-
128
- // Logical Operators
129
- describe('logical operators', () => {
130
- it('handles logical operators', () => {
131
- const filter: PineconeVectorFilter = {
132
- $or: [{ status: 'active' }, { age: { $gt: 25 } }],
133
- };
134
- expect(translator.translate(filter)).toEqual({
135
- $or: [{ status: 'active' }, { age: { $gt: 25 } }],
136
- });
137
- });
138
-
139
- it('handles nested logical operators', () => {
140
- const filter: PineconeVectorFilter = {
141
- $and: [
142
- { status: 'active' },
143
- {
144
- $or: [{ category: { $in: ['A', 'B'] } }, { $and: [{ price: { $gt: 100 } }, { stock: { $lt: 50 } }] }],
145
- },
146
- ],
147
- };
148
- expect(translator.translate(filter)).toEqual({
149
- $and: [
150
- { status: 'active' },
151
- {
152
- $or: [{ category: { $in: ['A', 'B'] } }, { $and: [{ price: { $gt: 100 } }, { stock: { $lt: 50 } }] }],
153
- },
154
- ],
155
- });
156
- });
157
-
158
- it('handles nested arrays in logical operators', () => {
159
- expect(
160
- translator.translate({
161
- $and: [{ field1: { $in: ['a', 'b'] } }, { field2: { $all: ['c', 'd'] } }],
162
- }),
163
- ).toEqual({
164
- $and: [
165
- { field1: { $in: ['a', 'b'] } },
166
- {
167
- $and: [{ field2: { $in: ['c'] } }, { field2: { $in: ['d'] } }],
168
- },
169
- ],
170
- });
171
- });
172
-
173
- it('handles complex nested conditions', () => {
174
- const filter: PineconeVectorFilter = {
175
- $or: [
176
- { age: { $gt: 25 } },
177
- {
178
- status: 'active',
179
- 'user.preferences.theme': 'dark',
180
- },
181
- ],
182
- };
183
- expect(translator.translate(filter)).toEqual({
184
- $or: [
185
- { age: { $gt: 25 } },
186
- {
187
- status: 'active',
188
- 'user.preferences.theme': 'dark',
189
- },
190
- ],
191
- });
192
- });
193
- });
194
-
195
- // Nested Objects and Fields
196
- describe('nested objects and fields', () => {
197
- it('flattens nested objects to dot notation', () => {
198
- const filter = {
199
- user: {
200
- profile: {
201
- age: { $gt: 25 },
202
- },
203
- },
204
- };
205
- expect(translator.translate(filter)).toEqual({ 'user.profile.age': { $gt: 25 } });
206
- });
207
-
208
- it('preserves empty objects as exact match conditions', () => {
209
- const filter: PineconeVectorFilter = {
210
- metadata: {},
211
- 'user.profile': {},
212
- };
213
-
214
- expect(translator.translate(filter)).toEqual({
215
- metadata: {},
216
- 'user.profile': {},
217
- });
218
- });
219
-
220
- it('handles empty objects in logical operators', () => {
221
- const filter: PineconeVectorFilter = {
222
- $or: [{}, { status: 'active' }],
223
- };
224
-
225
- expect(translator.translate(filter)).toEqual({
226
- $or: [{}, { status: 'active' }],
227
- });
228
- });
229
-
230
- it('preserves empty objects in nested structures', () => {
231
- const filter = {
232
- user: {
233
- profile: {
234
- settings: {},
235
- },
236
- },
237
- };
238
-
239
- expect(translator.translate(filter)).toEqual({
240
- 'user.profile.settings': {},
241
- });
242
- });
243
-
244
- it('handles empty objects in comparison operators', () => {
245
- const filter: PineconeVectorFilter = {
246
- metadata: { $eq: {} },
247
- };
248
-
249
- expect(translator.translate(filter)).toEqual({
250
- metadata: { $eq: {} },
251
- });
252
- });
253
-
254
- it('handles empty objects in array operators', () => {
255
- const filter: PineconeVectorFilter = {
256
- tags: { $in: [{}] },
257
- };
258
-
259
- expect(translator.translate(filter)).toEqual({
260
- tags: { $in: [{}] },
261
- });
262
- });
263
-
264
- it('handles multiple empty nested fields', () => {
265
- const filter = {
266
- metadata: {},
267
- settings: {},
268
- config: { nested: {} },
269
- };
270
-
271
- expect(translator.translate(filter)).toEqual({
272
- metadata: {},
273
- settings: {},
274
- 'config.nested': {},
275
- });
276
- });
277
- });
278
-
279
- // Operator Validation
280
- describe('operator validation', () => {
281
- describe('logical operator validation', () => {
282
- it('allows $and and $or at root level', () => {
283
- const validFilters = [
284
- {
285
- $and: [{ field1: 'value1' }, { field2: 'value2' }],
286
- },
287
- {
288
- $or: [{ field1: 'value1' }, { field2: 'value2' }],
289
- },
290
- {
291
- $and: [{ field1: 'value1' }],
292
- $or: [{ field2: 'value2' }],
293
- },
294
- ];
295
-
296
- validFilters.forEach(filter => {
297
- expect(() => translator.translate(filter)).not.toThrow();
298
- });
299
- });
300
-
301
- it('allows nested $and and $or within other logical operators', () => {
302
- const validFilters = [
303
- {
304
- $and: [
305
- { field1: 'value1' },
306
- {
307
- $or: [{ field2: 'value2' }, { field3: 'value3' }],
308
- },
309
- ],
310
- },
311
- {
312
- $or: [
313
- { field1: 'value1' },
314
- {
315
- $and: [{ field2: 'value2' }, { field3: 'value3' }],
316
- },
317
- ],
318
- },
319
- ];
320
-
321
- validFilters.forEach(filter => {
322
- expect(() => translator.translate(filter)).not.toThrow();
323
- });
324
- });
325
-
326
- it('throws error for logical operators in field-level conditions', () => {
327
- const invalidFilters = [
328
- {
329
- field: {
330
- $and: [{ $eq: 'value1' }, { $eq: 'value2' }],
331
- },
332
- },
333
- {
334
- field: {
335
- $or: [{ $eq: 'value1' }, { $eq: 'value2' }],
336
- },
337
- },
338
- {
339
- nested: {
340
- field: {
341
- $and: [{ $eq: 'value1' }, { $eq: 'value2' }],
342
- },
343
- },
344
- },
345
- ];
346
-
347
- invalidFilters.forEach(filter => {
348
- expect(() => translator.translate(filter)).toThrow(/cannot be used at field level/);
349
- });
350
- });
351
-
352
- it('throws error for direct operators in logical operator arrays', () => {
353
- const invalidFilters = [
354
- {
355
- $and: [{ $eq: 'value' }, { $gt: 100 }],
356
- },
357
- {
358
- $or: [{ $in: ['value1', 'value2'] }],
359
- },
360
- {
361
- $and: [{ field1: 'value1' }, { $or: [{ $eq: 'value2' }] }],
362
- },
363
- ];
364
-
365
- invalidFilters.forEach(filter => {
366
- expect(() => translator.translate(filter)).toThrow(/must contain field conditions/);
367
- });
368
- });
369
-
370
- it('throws error for unsupported logical operators', () => {
371
- const invalidFilters: any = [
372
- {
373
- $not: { field: 'value' },
374
- },
375
- {
376
- $nor: [{ field: 'value' }],
377
- },
378
- {
379
- $and: [{ field1: 'value1' }, { $nor: [{ field2: 'value2' }] }],
380
- },
381
- {
382
- field: { $not: { $eq: 'value' } },
383
- },
384
- ];
385
-
386
- invalidFilters.forEach(filter => {
387
- expect(() => translator.translate(filter)).toThrow(/Unsupported operator/);
388
- });
389
- });
390
- });
391
-
392
- it('ensure all operator filters are supported', () => {
393
- const supportedFilters: PineconeVectorFilter[] = [
394
- { field: { $eq: 'value' } },
395
- { field: { $ne: 'value' } },
396
- { field: { $gt: 10 } },
397
- { field: { $gte: 10 } },
398
- { field: { $lt: 10 } },
399
- { field: { $lte: 10 } },
400
- { field: { $in: ['value'] } },
401
- { $and: [{ field: { $eq: 'value' } }] },
402
- { $or: [{ field: { $eq: 'value' } }] },
403
- { field: { $all: [{ $eq: 'value' }] } },
404
- { field: { $exists: true } },
405
- ];
406
- supportedFilters.forEach(filter => {
407
- expect(() => translator.translate(filter)).not.toThrow();
408
- });
409
- });
410
-
411
- it('throws error for unsupported operators', () => {
412
- const unsupportedFilters = [
413
- { field: { $regex: 'pattern' } },
414
- { field: { $contains: 'value' } },
415
- { field: { $elemMatch: { $gt: 5 } } },
416
- { field: { $nor: [{ $eq: 'value' }] } },
417
- { field: { $not: [{ $eq: 'value' }] } },
418
- { field: { $regex: 'pattern', $options: 'i' } },
419
- ];
420
-
421
- unsupportedFilters.forEach(filter => {
422
- expect(() => translator.translate(filter)).toThrow(/Unsupported operator/);
423
- });
424
- });
425
-
426
- it('throws error for empty $all array', () => {
427
- expect(() =>
428
- translator.translate({
429
- categories: { $all: [] },
430
- }),
431
- ).toThrow();
432
- });
433
-
434
- it('throws error for invalid operator values', () => {
435
- const filter: any = { tags: { $all: 'not-an-array' } };
436
- expect(() => translator.translate(filter)).toThrow();
437
- });
438
- it('throws error for regex operators', () => {
439
- const filter = { field: /pattern/i };
440
- expect(() => translator.translate(filter)).toThrow();
441
- });
442
- it('throws error for non-logical operators at top level', () => {
443
- const invalidFilters: any = [{ $gt: 100 }, { $in: ['value1', 'value2'] }, { $eq: true }];
444
-
445
- invalidFilters.forEach(filter => {
446
- expect(() => translator.translate(filter)).toThrow(/Invalid top-level operator/);
447
- });
448
- });
449
-
450
- it('allows logical operators at top level', () => {
451
- const validFilters = [{ $and: [{ field: 'value' }] }, { $or: [{ field: 'value' }] }];
452
-
453
- validFilters.forEach(filter => {
454
- expect(() => translator.translate(filter)).not.toThrow();
455
- });
456
- });
457
- });
458
- });
@@ -1,133 +0,0 @@
1
- import { BaseFilterTranslator } from '@mastra/core/vector/filter';
2
- import type {
3
- VectorFilter,
4
- OperatorSupport,
5
- OperatorValueMap,
6
- LogicalOperatorValueMap,
7
- BlacklistedRootOperators,
8
- QueryOperator,
9
- FilterValue,
10
- OperatorCondition,
11
- } from '@mastra/core/vector/filter';
12
-
13
- type InitialOperatorValueMap = Omit<OperatorValueMap, '$regex' | '$options' | '$elemMatch' | '$all'> & {
14
- $contains: string;
15
- $gt: number | Date;
16
- $gte: number | Date;
17
- $lt: number | Date;
18
- $lte: number | Date;
19
- };
20
-
21
- type PineconeOperatorValueMap = InitialOperatorValueMap & {
22
- $all: OperatorCondition<keyof InitialOperatorValueMap, InitialOperatorValueMap>[] | FilterValue[];
23
- };
24
- type PineconeLogicalOperatorValueMap = Omit<LogicalOperatorValueMap, '$not' | '$nor'>;
25
-
26
- type PineconeBlacklisted = BlacklistedRootOperators | '$not' | '$nor';
27
-
28
- export type PineconeVectorFilter = VectorFilter<
29
- keyof PineconeOperatorValueMap,
30
- PineconeOperatorValueMap,
31
- PineconeLogicalOperatorValueMap,
32
- PineconeBlacklisted
33
- >;
34
-
35
- export class PineconeFilterTranslator extends BaseFilterTranslator<PineconeVectorFilter> {
36
- protected override getSupportedOperators(): OperatorSupport {
37
- return {
38
- ...BaseFilterTranslator.DEFAULT_OPERATORS,
39
- logical: ['$and', '$or'],
40
- array: ['$in', '$all', '$nin'],
41
- element: ['$exists'],
42
- regex: [],
43
- custom: [],
44
- };
45
- }
46
-
47
- translate(filter?: PineconeVectorFilter): PineconeVectorFilter {
48
- if (this.isEmpty(filter)) return filter;
49
- this.validateFilter(filter);
50
- return this.translateNode(filter);
51
- }
52
-
53
- private translateNode(node: PineconeVectorFilter, currentPath: string = ''): any {
54
- if (this.isRegex(node)) {
55
- throw new Error('Regex is not supported in Pinecone');
56
- }
57
- if (this.isPrimitive(node)) return this.normalizeComparisonValue(node);
58
- if (Array.isArray(node)) return { $in: this.normalizeArrayValues(node) };
59
-
60
- const entries = Object.entries(node as Record<string, any>);
61
- const firstEntry = entries[0];
62
-
63
- // Handle single operator case
64
- if (entries.length === 1 && firstEntry && this.isOperator(firstEntry[0])) {
65
- const [operator, value] = firstEntry;
66
- const translated = this.translateOperator(operator, value, currentPath);
67
- return this.isLogicalOperator(operator) ? { [operator]: translated } : translated;
68
- }
69
-
70
- // Process each entry
71
- const result: Record<string, any> = {};
72
-
73
- for (const [key, value] of entries) {
74
- const newPath = currentPath ? `${currentPath}.${key}` : key;
75
-
76
- if (this.isOperator(key)) {
77
- result[key] = this.translateOperator(key, value, currentPath);
78
- continue;
79
- }
80
-
81
- if (typeof value === 'object' && value !== null && !Array.isArray(value)) {
82
- // Handle nested $all
83
- if (Object.keys(value).length === 1 && '$all' in value) {
84
- const translated = this.translateNode(value, key);
85
- if (translated.$and) {
86
- return translated;
87
- }
88
- }
89
-
90
- // Check if the nested object contains operators
91
- if (Object.keys(value).length === 0) {
92
- result[newPath] = this.translateNode(value);
93
- } else {
94
- const hasOperators = Object.keys(value).some(k => this.isOperator(k));
95
- if (hasOperators) {
96
- // For objects with operators, normalize each operator value
97
- const normalizedValue: Record<string, any> = {};
98
- for (const [op, opValue] of Object.entries(value)) {
99
- normalizedValue[op] = this.isOperator(op) ? this.translateOperator(op, opValue) : opValue;
100
- }
101
- result[newPath] = normalizedValue;
102
- } else {
103
- // For objects without operators, flatten them
104
- Object.assign(result, this.translateNode(value, newPath));
105
- }
106
- }
107
- } else {
108
- result[newPath] = this.translateNode(value);
109
- }
110
- }
111
-
112
- return result;
113
- }
114
-
115
- private translateOperator(operator: QueryOperator, value: any, currentPath: string = ''): any {
116
- // Handle $all specially
117
- if (operator === '$all') {
118
- if (!Array.isArray(value) || value.length === 0) {
119
- throw new Error('A non-empty array is required for the $all operator');
120
- }
121
-
122
- return this.simulateAllOperator(currentPath, value);
123
- }
124
-
125
- // Handle logical operators
126
- if (this.isLogicalOperator(operator)) {
127
- return Array.isArray(value) ? value.map(item => this.translateNode(item)) : this.translateNode(value);
128
- }
129
-
130
- // Handle comparison and element operators
131
- return this.normalizeComparisonValue(value);
132
- }
133
- }