+
Skip to content

Conversation

wavded
Copy link
Collaborator

@wavded wavded commented Jun 13, 2025

Includes:

  • BREAKING: Drop support for ioredis
  • BREAKING: Support redis v5 and later
  • Switch to Biome from Prettier/ESLint
  • Update readme.md installation instructions

Ref: https://github.com/redis/node-redis
Ref: https://redis.io/docs/latest/develop/clients/nodejs/migration/

Includes:

- Remove `.prettierrc` and `eslint.config.js`
- Add `biome.json` with formatting and linting rules
- Update `package.json` to add `@biomejs/biome` and format arrays
- Refactor imports to use `type` keyword where needed
- Simplify conditional checks with optional chaining
- Use arrow function for `error` event handler in `server.ts`
- Update `readme.md` installation instructions
@wavded wavded self-assigned this Jun 13, 2025
@Copilot Copilot AI review requested due to automatic review settings June 13, 2025 22:41
@wavded wavded added the chore label Jun 13, 2025
Copilot

This comment was marked as outdated.

@wavded wavded changed the title Replace Prettier/ESLint with Biome for formatting/linting Fix broken windows Jun 13, 2025
@wavded wavded requested a review from Copilot June 14, 2025 04:48
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR removes ioredis support, switches formatting and linting from Prettier/ESLint to Biome, and updates documentation and CI to match these changes.

  • Drop ioredis compatibility code in index.ts and remove related tests.
  • Introduce biome.json, remove Prettier/ESLint configs, and update npm scripts.
  • Simplify README installation instructions and adjust CI workflow for Node 24.

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
testdata/server.ts Use type import for ChildProcess and convert error handler to an arrow function.
readme.md Remove mentions of ioredis and update installation instructions to only require redis.
package.json Update scripts to use Biome, remove ioredis and redis from devDependencies, adjust metadata.
index_test.ts Remove ioredis test, switch from client.disconnect() to client.destroy().
index.ts Eliminate NormalizedRedisClient, rely on native redis types, rename helpers, add new scan logic.
eslint.config.js Remove legacy ESLint configuration.
biome.json Add Biome configuration for formatting and linting.
.prettierrc Remove Prettier configuration.
.github/workflows/build.yml Add Node 24 to CI matrix and drop the fmt-check step.
Comments suppressed due to low confidence (2)

package.json:40

  • The redis package was removed from devDependencies and is now only a peerDependency; tests import from redis and will fail without it. Consider re-adding redis to devDependencies for testing.
"express-session": "^1.18.1",

index_test.ts:2

  • [nitpick] New code supports both standalone and clustered RedisClientType, but there are no tests covering the cluster path. Consider adding a test against a Redis cluster instance to ensure scanIterator and getAllKeys work as intended.
import { createClient } from "redis"

@wavded wavded merged commit e249571 into master Jun 14, 2025
4 checks passed
@wavded wavded deleted the task/bw branch August 7, 2025 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载