You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
Fix imports (#2929)
* fix: exports align exports with v4 as much as possible * document breaking changes * export type return SetOptions export
This commit is contained in:
committed by
GitHub
parent
5295926cc0
commit
048df302e4
@@ -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 };
|
||||
@@ -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';
|
||||
|
@@ -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,
|
||||
|
@@ -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'
|
||||
|
@@ -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';
|
||||
|
Reference in New Issue
Block a user