Skip to content

Commit

Permalink
Node: Fix @internal tag (valkey-io#3118)
Browse files Browse the repository at this point in the history
* Node: Fix @internal tag

Signed-off-by: Prateek Kumar <[email protected]>
  • Loading branch information
prateek-kumar-improving authored Feb 10, 2025
1 parent 98357a0 commit 548c2c0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 3 deletions.
5 changes: 5 additions & 0 deletions node/DEVELOPER.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,17 @@ Before starting this step, make sure you've installed all software requirments.
Once building completed, you'll find the compiled JavaScript code in the`./build-ts` folder.
4. Run tests:
1. Ensure that you have installed server and valkey-cli on your host. You can download Valkey at the following link: [Valkey Download page](https://valkey.io/download/).
2. Execute the following command from the node folder:
```bash
npm run build # make sure we have a debug build compiled first
npm test-local # For testing on local. For skipping exported symbols validation test on local.
npm test
```
5. Integrating the built GLIDE package into your project:
Add the package to your project using the folder path with the command `npm install <path to GLIDE>/node`.
Expand Down
3 changes: 3 additions & 0 deletions node/npm/glide/tests/ExportedSymbols.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ const skippedListForExports: string[] = [
"AdvancedBaseClientConfiguration",
"ClusterScanOptions",
"GlideMultiJson",
"BaseClient",
"convertFieldsAndValuesToHashDataType",
"parseInfoResponse",
];

const glideRsKeyWords: string[] = [
Expand Down
1 change: 1 addition & 0 deletions node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"clean": "rm -rf build-ts rust-client/target docs glide-logs rust-client/glide-rs.*.node rust-client/index.* src/ProtobufMessage.*",
"fix-protobuf-file": "replace 'this\\.encode\\(message, writer\\)\\.ldelim' 'this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim' src/ProtobufMessage.js",
"test": "npm run build-test-utils && jest --verbose --testPathIgnorePatterns='ServerModules'",
"test-local": "npm run build-test-utils && jest --verbose --testPathIgnorePatterns='Validation of Exported Symbols' --testPathIgnorePatterns='ServerModules'",
"test-dbg": "npm run build-test-utils && jest --runInBand",
"test-minimum": "npm run build-test-utils && jest --verbose --runInBand --testNamePattern='^(.(?!(GlideJson|GlideFt|pubsub|kill)))*$'",
"test-modules": "npm run build-test-utils && jest --verbose --runInBand --testNamePattern='(GlideJson|GlideFt)'",
Expand Down
1 change: 0 additions & 1 deletion node/src/BaseClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,6 @@ export interface PubSubMsg {
export type WritePromiseOptions = RouteOption & DecoderOption;

/**
* @internal
* Base client interface for GLIDE
*/
export class BaseClient {
Expand Down
3 changes: 1 addition & 2 deletions node/src/Commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function toBuffersArray(args: GlideString[]) {
}

/**
* @internal @test
* @test
*/
export function parseInfoResponse(response: string): Record<string, string> {
const lines = response.split("\n");
Expand Down Expand Up @@ -434,7 +434,6 @@ export function createHGet(
}

/**
* @internal
* This function converts an input from {@link HashDataType} or `Record` types to `HashDataType`.
*
* @param fieldsAndValues - field names and their values.
Expand Down

0 comments on commit 548c2c0

Please sign in to comment.