-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node: fix imports #2767
Node: fix imports #2767
Conversation
Signed-off-by: Andrew Carbonetto <[email protected]>
@@ -175,16 +176,13 @@ function initialize() { | |||
InfBoundary, | |||
KeyWeight, | |||
Boundary, | |||
UpdateOptions, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UpdateOptions
doesn't exist in Commands.ts (renamed to UpdateByScore
I believe)
ProtocolVersion, | ||
RangeByIndex, | ||
RangeByScore, | ||
RangeByLex, | ||
ReadFrom, | ||
ServerCredentials, | ||
SortClusterOptions, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replaced with BaseScanOptions
SortOptions, | ||
SortedSetRange, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SortedSetRange
is not exported
valkey-glide/node/src/Commands.ts
Line 1731 in d75a21e
interface SortedSetRange<T> { |
@@ -215,7 +213,6 @@ function initialize() { | |||
createLeakedDouble, | |||
createLeakedMap, | |||
createLeakedString, | |||
parseInfoResponse, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
internal function
valkey-glide/node/src/Commands.ts
Line 59 in d75a21e
export function parseInfoResponse(response: string): Record<string, string> { |
@@ -233,6 +230,7 @@ function initialize() { | |||
module.exports = { | |||
AggregationType, | |||
BaseScanOptions, | |||
ScanOptions, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
used by scan
valkey-glide/node/src/GlideClient.ts
Line 1109 in d75a21e
public async scan( |
@@ -253,6 +251,7 @@ function initialize() { | |||
DecoderOption, | |||
GeoAddOptions, | |||
GlideFt, | |||
Field, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Used by FT Create
export type Field = TextField | TagField | NumericField | VectorField; |
Ran the test again. Below symbols are missing for export: Field and ScanOptions are added. |
Users should use derived classes only (standalone/cluster) |
Good question. Because a user will never need them. BaseClient and BaseTransaction are 'abstract' classes that will never be used by a user and should not be exposed. Users can create unions of types if they need wider typing. In a separate PR, we can make these classes private and not expose them. |
The above will be cleaned up under #2721 |
A list of exports that are not in the source code:
|
Issue link
This Pull Request is linked to issue (URL): #2335
Checklist
Before submitting the PR make sure the following are checked: