Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions docs/v4-to-v5.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ In older versions, if the socket disconnects during the pipeline execution, i.e.

In v5, any unwritten commands (in the same pipeline) will be discarded.

- `RedisFlushModes` -> `REDIS_FLUSH_MODES` [^enum-to-constants]

## Commands

### Redis
Expand Down Expand Up @@ -221,6 +223,13 @@ In v5, any unwritten commands (in the same pipeline) will be discarded.

- `FT.SUGDEL`: [^boolean-to-number]
- `FT.CURSOR READ`: `cursor` type changed from `number` to `string` (in and out) to avoid issues when the number is bigger than `Number.MAX_SAFE_INTEGER`. See [here](https://github.com/redis/node-redis/issues/2561).
- `AggregateGroupByReducers` -> `FT_AGGREGATE_GROUP_BY_REDUCERS` [^enum-to-constants]
- `AggregateSteps` -> `FT_AGGREGATE_STEPS` [^enum-to-constants]
- `RedisSearchLanguages` -> `REDISEARCH_LANGUAGE` [^enum-to-constants]
- `SchemaFieldTypes` -> `SCHEMA_FIELD_TYPE` [^enum-to-constants]
- `SchemaTextFieldPhonetics` -> `SCHEMA_TEXT_FIELD_PHONETIC` [^enum-to-constants]
- `SearchOptions` -> `FtSearchOptions`
- `VectorAlgorithms` -> `SCHEMA_VECTOR_FIELD_ALGORITHM` [^enum-to-constants]

### Time Series

Expand Down
8 changes: 4 additions & 4 deletions packages/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export { RedisModules, RedisFunctions, RedisScripts, RespVersions, TypeMapping/*
export { RESP_TYPES } from './lib/RESP/decoder';
export { VerbatimString } from './lib/RESP/verbatim-string';
export { defineScript } from './lib/lua-script';
// export * from './lib/errors';
export * from './lib/errors';

import RedisClient, { RedisClientOptions, RedisClientType } from './lib/client';
export { RedisClientOptions, RedisClientType };
Expand All @@ -20,8 +20,8 @@ import RedisSentinel from './lib/sentinel';
export { RedisSentinelOptions, RedisSentinelType } from './lib/sentinel/types';
export const createSentinel = RedisSentinel.create;

// export { GeoReplyWith } from './lib/commands/generic-transformers';
export { GEO_REPLY_WITH, GeoReplyWith } from './lib/commands/GEOSEARCH_WITH';

// export { SetOptions } from './lib/commands/SET';
export { SetOptions } from './lib/commands/SET';

// export { RedisFlushModes } from './lib/commands/FLUSHALL';
export { REDIS_FLUSH_MODES } from './lib/commands/FLUSHALL';
10 changes: 5 additions & 5 deletions packages/redis/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ import RedisJSON from '@redis/json';
import RediSearch from '@redis/search';
import RedisTimeSeries from '@redis/time-series';

// export * from '@redis/client';
// export * from '@redis/bloom';
// export * from '@redis/json';
// export * from '@redis/search';
// export * from '@redis/time-series';
export * from '@redis/client';
export * from '@redis/bloom';
export * from '@redis/json';
export * from '@redis/search';
export * from '@redis/time-series';

const modules = {
...RedisBloomModules,
Expand Down
26 changes: 20 additions & 6 deletions packages/search/lib/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
export { default } from './commands';
export { default } from './commands'

export { SCHEMA_FIELD_TYPE, SchemaFieldType } from './commands/CREATE';

// export { RediSearchSchema, RedisSearchLanguages, SchemaFieldTypes, SchemaTextFieldPhonetics, SearchReply, VectorAlgorithms } from './commands';
// export { AggregateGroupByReducers, AggregateSteps } from './commands/AGGREGATE';
// export { SearchOptions } from './commands/SEARCH';
export { SearchReply } from './commands/SEARCH'
export { RediSearchSchema } from './commands/CREATE'
export {
REDISEARCH_LANGUAGE,
RediSearchLanguage,
SCHEMA_FIELD_TYPE,
SchemaFieldType,
SCHEMA_TEXT_FIELD_PHONETIC,
SchemaTextFieldPhonetic,
SCHEMA_VECTOR_FIELD_ALGORITHM,
SchemaVectorFieldAlgorithm
} from './commands/CREATE'
export {
FT_AGGREGATE_GROUP_BY_REDUCERS,
FtAggregateGroupByReducer,
FT_AGGREGATE_STEPS,
FtAggregateStep
} from './commands/AGGREGATE'
export { FtSearchOptions } from './commands/SEARCH'
1 change: 1 addition & 0 deletions packages/time-series/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ export {
} from './commands';
export { TIME_SERIES_AGGREGATION_TYPE, TimeSeriesAggregationType } from './commands/CREATERULE';
export { TIME_SERIES_BUCKET_TIMESTAMP, TimeSeriesBucketTimestamp } from './commands/RANGE';
export { TIME_SERIES_REDUCERS, TimeSeriesReducer } from './commands/MRANGE_GROUPBY';
Loading