Skip to content
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

Next major version: V5 #1504

Closed
wants to merge 54 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
29b28a3
feat: Refactor code with modern settings
luin Feb 6, 2022
2e14c51
chore: remove Travis in favor of GitHub CI
luin Feb 12, 2022
62a197f
feat: drop support of third-party Promise libraries
luin Feb 12, 2022
c8ec91a
fix: improve typing for auto pipelining
luin Feb 12, 2022
bd920b3
feat: add declarations for methods
luin Feb 19, 2022
8dd3591
fix: Reset loaded script hashes to force a reload of scripts after re…
marcbachmann Jan 31, 2022
39b3c51
fix: Fix the NOSCRIPT behavior when using pipelines
marcbachmann Jan 31, 2022
63dc0f4
feat: Pipeline-based script loading
marcbachmann Jan 31, 2022
a78bd88
chore: Only send scripts once to a specific socket
marcbachmann Feb 3, 2022
379327b
fix: improve typing for pipeline
luin Feb 20, 2022
9d1977d
feat: drop support of Node.js 10
luin Feb 20, 2022
73f1bb9
chore: upgrade dev dependencies
luin Feb 20, 2022
5cd4f57
fix: rename interfaces by dropping prefix I
luin Feb 20, 2022
8a58084
chore: Remove typeof Map checks as we've dropped older node versions
marcbachmann Feb 20, 2022
806844a
chore: Reduce amount of command args iterations
marcbachmann Feb 20, 2022
95eaf61
fix: parameter declaration of Redis#duplicate
luin Feb 21, 2022
e0f24e6
feat: expose official declarations
luin Feb 26, 2022
2a4275f
chore: refactor tests
luin Feb 26, 2022
1cf58e7
feat: improve typings for transformers
luin Feb 26, 2022
d8b9efc
feat: improve typings for pipeline
luin Feb 26, 2022
f7d03e1
fix: make fields private when possible
luin Feb 26, 2022
b42c072
chore: add API docs
luin Feb 27, 2022
c972f00
chore: update LICENSE date
luin Feb 27, 2022
19d23ae
chore: update links to docs
luin Feb 27, 2022
5aa3f98
feat: improve typings for cluster
luin Feb 27, 2022
e1cd0cf
feat: add tests for cluster
luin Feb 27, 2022
5b7a87d
feat: skip ready check on NOPERM error
luin Feb 28, 2022
1e79ead
fix: add the missing typing for Redis#call()
luin Mar 2, 2022
88729da
feat: add @since to method comments
luin Mar 2, 2022
f345b27
fix: add @ioredis/interface-generator to dev deps
luin Mar 2, 2022
e6a49c4
fix: better support for CJS importing
luin Mar 5, 2022
5101581
fix: support passing keyPrefix via redisOptions
luin Mar 6, 2022
8569518
docs: update API document
luin Mar 6, 2022
6bfe79f
chore: rename package files
luin Mar 6, 2022
69a0e1b
feat: support commands added in Redis v7
luin Mar 6, 2022
6cab03a
feat: support Redis Functions introduced in Redis 7.0
luin Mar 6, 2022
60a6d00
fix: remove dropBufferSupport option
luin Mar 6, 2022
381de46
doc
luin Mar 6, 2022
3d5519b
feat: always parse username passed via URI
luin Mar 12, 2022
ad36374
docs: add example for Express
luin Mar 12, 2022
9e1ddf5
chore(pipeline): Do not opt out of text concat performance optimizati…
marcbachmann Mar 6, 2022
6240eed
style: Use `error.message` instead of `error.toString()`
marcbachmann Mar 6, 2022
cf218c2
chore: Remove unnecessary queue.length checks
marcbachmann Mar 7, 2022
bee46fa
refactor: Use a more explicit control flow in Redis#sendCommand
marcbachmann Mar 7, 2022
5569a1c
docs: update docs for latest changes
luin Mar 12, 2022
99a51f7
docs: do not override existing command echo
luin Mar 12, 2022
ee463f1
test: make test:cluster more reliable
luin Mar 12, 2022
65082d6
feat: support defining custom commands via constructor options
luin Mar 12, 2022
b45a3e8
refactor: use WeakMap to avoid attaching properties
luin Mar 12, 2022
c8794d3
fix: remove unused Command#isCustomCommand
luin Mar 12, 2022
6cacf32
refactor: clean types warnings
gkorland Aug 11, 2020
d4a8116
test: add code coverage
luin Mar 13, 2022
1fdb918
docs: add examples for Redis operations
luin Mar 13, 2022
d24676c
fix: disable slotsRefreshInterval by default
luin Mar 14, 2022
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
70 changes: 70 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"ignorePatterns": ["bin/generateRedisCommander/template.ts"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"env": { "node": true },
"rules": {
"prefer-rest-params": 0,
"no-var": 0,
"no-prototype-builtins": 0,
"prefer-spread": 0,
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-this-alias": 0,
"@typescript-eslint/ban-ts-ignore": 0,
"@typescript-eslint/ban-ts-comment": 0,
"@typescript-eslint/adjacent-overload-signatures": 0,
"@typescript-eslint/ban-types": 0,
"@typescript-eslint/member-ordering": [
1,
{
"default": {
"memberTypes": [
"public-static-field",
"protected-static-field",
"private-static-field",

"public-static-method",
"protected-static-method",
"private-static-method",

"public-instance-field",
"protected-instance-field",
"private-instance-field",

"public-constructor",
"private-constructor",
"protected-constructor",

"public-instance-method",
"protected-instance-method",
"private-instance-method"
]
}
}
],
"@typescript-eslint/explicit-member-accessibility": [1, { "accessibility": "no-public" }],
"@typescript-eslint/no-empty-interface": 0,
"@typescript-eslint/no-empty-function": 0,
"@typescript-eslint/no-unused-vars": [
"warn",
{
"args": "none"
}
]
},
"overrides": [
{
"files": ["test/**/*", "test-cluster/**/*"],
"env": {
"mocha": true
},
"rules": { "prefer-const": 0 }
}
]
}
42 changes: 0 additions & 42 deletions .eslintrc.yml

This file was deleted.

62 changes: 42 additions & 20 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,40 +7,62 @@ on:
push:
branches:
- master
- release
- greenkeeper**
pull_request:
branches:
- master
- release
- v5
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
test:
runs-on: ubuntu-latest

# See https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#using-environment-variables-in-a-matrix
strategy:
fail-fast: false
matrix:
include:
# Need a new enough git version to install the npm husky module.
- NODE_VERSION: 6-stretch
- NODE_VERSION: 8-buster
- NODE_VERSION: 10-buster
- NODE_VERSION: 12-bullseye
- NODE_VERSION: 14-bullseye
- NODE_VERSION: 16-bullseye
node: [12.x, 14.x, 16.x]
redis: [2, 6]
steps:
- name: Git checkout
uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}

- name: Start Redis
uses: supercharge/[email protected]
with:
redis-version: ${{ matrix.redis }}

# Steps represent a sequence of tasks that will be executed as part of the job
- run: npm install
- run: npm run lint
- run: npm run build
- run: npm run test:tsd
- run: npm run test:cov || npm run test:cov || npm run test:cov
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: redis-${{matrix.redis}}-node-${{matrix.node}}
parallel: true

test-cluster:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Build and test cluster
run: bash test-cluster/docker/main.sh

# Runs a single command using the runners shell
- name: Build and test in docker
run: bash test/docker/main.sh ${{ matrix.NODE_VERSION }}
code-coverage:
needs: test
runs-on: ubuntu-latest
steps:
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
node_modules
*.cpuprofile
/test.js
/test.*
/.idea
built

.nyc_output
coverage

.vscode
benchmarks/fixtures/*.txt

*.rdb
2 changes: 0 additions & 2 deletions .npmrc

This file was deleted.

53 changes: 0 additions & 53 deletions .travis.yml

This file was deleted.

Loading