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

fix(deps): update dependency ioredis to v5 #1384

Merged
merged 6 commits into from
Jan 15, 2025
Merged

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 4, 2022

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
ioredis ^4.27.9 -> ^5.0.0 age adoption passing confidence
@​types/ioredis 4.28.10 -> 5.0.0 age adoption passing confidence

Release Notes

luin/ioredis (ioredis)

v5.4.2

Compare Source

Bug Fixes

v5.4.1

Compare Source

Bug Fixes

v5.4.0

Compare Source

Bug Fixes
  • when refreshSlotsCache is callback concurrently, call the callback only when the refresh process is done (#​1881) (804ee07)
Features

5.3.2 (2023-04-15)

Bug Fixes

5.3.1 (2023-02-12)

Bug Fixes

v5.3.2

Compare Source

Bug Fixes

v5.3.1

Compare Source

Bug Fixes

v5.3.0

Compare Source

Bug Fixes
Features

5.2.6 (2023-01-25)

Bug Fixes
  • remove extraneous TCP/IPC properties from RedisOptions TS type (#​1707) (9af7b1c)

5.2.5 (2023-01-14)

Bug Fixes
  • Named export to support ESM imports in Typescript (#​1695) (cdded57)

    With this change, users would be able to import Redis with import { Redis} from 'ioredis'. This makes it possible to import Redis in an ESM project. The original way (import Redis from 'ioredis') will still be supported but will be deprecated in the next major version.

5.2.4 (2022-11-02)

Bug Fixes

5.2.3 (2022-08-23)

Bug Fixes

5.2.2 (2022-07-23)

Bug Fixes
  • srandmember with count argument should return array of strings (#​1620) (5f813f3)

5.2.1 (2022-07-16)

Bug Fixes
  • always allow selecting a new node for cluster mode subscriptions when the current one fails (#​1589) (1c8cb85)

v5.2.6

Compare Source

Bug Fixes
  • remove extraneous TCP/IPC properties from RedisOptions TS type (#​1707) (9af7b1c)

v5.2.5

Compare Source

Bug Fixes
  • Named export to support ESM imports in Typescript (#​1695) (cdded57)

    With this change, users would be able to import Redis with import { Redis} from 'ioredis'. This makes it possible to import Redis in an ESM project. The original way (import Redis from 'ioredis') will still be supported but will be deprecated in the next major version.

v5.2.4

Compare Source

Bug Fixes

v5.2.3

Compare Source

Bug Fixes

v5.2.2

Compare Source

Bug Fixes
  • srandmember with count argument should return array of strings (#​1620) (5f813f3)

v5.2.1

Compare Source

Bug Fixes
  • always allow selecting a new node for cluster mode subscriptions when the current one fails (#​1589) (1c8cb85)

v5.2.0

Compare Source

Features

v5.1.0

Compare Source

Features
  • add command typings for Redis 7.0.2. Also fix a typing issue for hgetallBuffer. (#​1611) (fa77c07)

5.0.6 (2022-05-31)

Bug Fixes

5.0.5 (2022-05-17)

Bug Fixes

5.0.4 (2022-04-09)

Bug Fixes

5.0.3 (2022-03-31)

Bug Fixes

5.0.2 (2022-03-30)

Bug Fixes

5.0.1 (2022-03-26)

Bug Fixes

v5.0.6

Compare Source

Bug Fixes

v5.0.5

Compare Source

Bug Fixes

v5.0.4

Compare Source

Bug Fixes

v5.0.3

Compare Source

Bug Fixes

v5.0.2

Compare Source

Bug Fixes

v5.0.1

Compare Source

Bug Fixes

v5.0.0

Compare Source

In the update of v5, we've made ioredis even more stable and developer-friendly while minimizing the number of breaking changes, so you can spend more time enjoying your life 😄.

Please refer to the guideline to upgrade your projects: 🚀 Upgrading from v4 to v5.

Bug Fixes
  • add @​ioredis/interface-generator to dev deps (aa3b3e9)
  • add missing declaration for callBuffer (08c9072)
  • add the missing typing for Redis#call() (747dd30)
  • better support for CJS importing (687d3eb)
  • disable slotsRefreshInterval by default (370fa62)
  • Fix the NOSCRIPT behavior when using pipelines (bc1b168)
  • improve typing for auto pipelining (4e8c567)
  • improve typing for pipeline (d18f3fe)
  • keyPrefix should work with Buffer (6942cec), closes #​1486
  • make fields private when possible (d5c2f20)
  • parameter declaration of Redis#duplicate (a29d9c4)
  • pipeline fails when cluster is not ready (af60bb0), closes #​1460
  • remove dropBufferSupport option (04e68ac)
  • remove unused Command#isCustomCommand (46ade6b)
  • rename interfaces by dropping prefix I (d1d9dba)
  • Reset loaded script hashes to force a reload of scripts after reconnect of redis (60c2af9)
  • support passing keyPrefix via redisOptions (6b0dc1e)
Features
  • add @​since to method comments (13eff8e)
  • add declarations for methods (1e10c95)
  • add tests for cluster (1eba58b)
  • always parse username passed via URI (c6f41f6)
  • drop support of Node.js 10 (f9a5071)
  • drop support of third-party Promise libraries (2001ec6)
  • expose official declarations (7a436b1)
  • improve typings for cluster (06782e6)
  • improve typings for pipeline (334242b)
  • improve typings for smismember (487c3a0)
  • improve typings for transformers (94c1e24)
  • improve typings for xread (96cc335)
  • Pipeline-based script loading (8df6ee2)
  • prepare v5 stable release (#​1538) (fe32ce7)
  • Refactor code with modern settings (a8ffa80)
  • skip ready check on NOPERM error (b530a0b), closes #​1293
  • support commands added in Redis v7 (53ca412)
  • support defining custom commands via constructor options (f293b97)
  • support Redis Functions introduced in Redis 7.0 (32eb381)
BREAKING CHANGES
  • slotsRefreshInterval is disabled by default,
    previously, the default value was 5000.
  • allowUsernameInURI is removed and ioredis will always
    use the username passed via URI.
    Previously, the username part in new Redis("redis://username:authpassword@127.0.0.1:6380/4")
    was ignored unless allowUsernameInURI is specified: new Redis("redis://username:authpassword@127.0.0.1:6380/4?allowUsernameInURI=true").
    Now, if you don't want to send username to Redis, just leave the username part empty:
    new Redis("redis://:authpassword@127.0.0.1:6380/4")
  • Redis#serverInfo is removed. This field is never documented so
    you very likely have never used it.
  • Support for third-party Promise libraries is dropped. Related methods (exports.Promise = require('bluebird')) are kept but they don't take any effects. The native Promise will always be used.
  • We now require Node.js v12 or newer.
  • Redis can't be called as a function anymore as it's now a class.
    Please change Redis() to new Redis(). Note that Redis() was already deprecated
    in the previous version.

v4.28.5

Compare Source

Bug Fixes
  • Reset loaded script hashes to force a reload of scripts after reconnect of redis (#​1497) (f357a31)

v4.28.4

Compare Source

Bug Fixes

v4.28.3

Compare Source

Bug Fixes

v4.28.2

Compare Source

Bug Fixes

v4.28.1

Compare Source

Bug Fixes

v4.28.0

Compare Source

Features

4.27.11 (2021-10-11)

Bug Fixes

4.27.10 (2021-10-04)

Bug Fixes

4.27.9 (2021-08-30)

Bug Fixes

4.27.8 (2021-08-18)

Bug Fixes

4.27.7 (2021-08-01)

Bug Fixes

4.27.6 (2021-06-13)

Bug Fixes

4.27.5 (2021-06-05)

Bug Fixes
  • SENTINEL: actively failover detection under an option (#​1363) (f02e383)

4.27.4 (2021-06-04)

Performance Improvements

4.27.3 (2021-05-22)

Bug Fixes

4.27.2 (2021-05-04)

Bug Fixes
  • cluster: avoid ClusterAllFailedError in certain cases (aa9c5b1), closes #​1330

4.27.1 (2021-04-24)

Bug Fixes
  • clears commandTimeout timer as each respective command gets fulfilled (#​1336) (d65f8b2)

v4.27.11

Compare Source

Bug Fixes

v4.27.10

Compare Source

Bug Fixes

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the dependencies label May 4, 2022
@changeset-bot
Copy link

changeset-bot bot commented May 4, 2022

🦋 Changeset detected

Latest commit: d800eb7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@envelop/apollo-federation Patch
@envelop/response-cache-redis Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented May 4, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
envelop ✅ Ready (Inspect) Visit Preview May 11, 2022 at 1:36PM (UTC)

@theguild-bot
Copy link
Collaborator

theguild-bot commented May 4, 2022

The latest changes of this PR are not available as alpha, since there are no linked changesets for this PR.

@YassinEldeeb
Copy link
Collaborator

this would be a breaking change as the end users are gonna get type errors for their old usage of the plugin as the public interface of interacting with ioredis has changed. @n1ru4l do you see this reasonable or not?

@renovate renovate bot force-pushed the renovate/ioredis-5.x branch from b1a82bb to 86eae84 Compare February 10, 2023 07:19
@github-actions
Copy link
Contributor

github-actions bot commented Feb 10, 2023

💻 Website Preview

The latest changes are available as preview in: https://be8cfe09.envelop.pages.dev

@renovate renovate bot force-pushed the renovate/ioredis-5.x branch from c9a9708 to 5330631 Compare February 26, 2023 19:04
@renovate renovate bot force-pushed the renovate/ioredis-5.x branch 3 times, most recently from 9017e8e to aba0370 Compare May 23, 2023 12:23
@ardatan ardatan force-pushed the main branch 3 times, most recently from a23dec1 to 3ac13be Compare May 23, 2023 12:46
@renovate renovate bot force-pushed the renovate/ioredis-5.x branch 3 times, most recently from 155ebf1 to badb21f Compare May 23, 2023 13:35
@renovate renovate bot force-pushed the renovate/ioredis-5.x branch from b8a99c7 to bba78d6 Compare June 22, 2023 15:32
@renovate renovate bot force-pushed the renovate/ioredis-5.x branch from 84b0f2e to fba5809 Compare September 27, 2023 21:54
@renovate
Copy link
Contributor Author

renovate bot commented Sep 27, 2023

⚠ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: packages/plugins/response-cache-redis/yarn.lock
error Couldn't find any versions for "@envelop/response-cache" that matches "^5.3.1"

@renovate renovate bot force-pushed the renovate/ioredis-5.x branch from fba5809 to 1098459 Compare September 27, 2023 22:15
@renovate renovate bot force-pushed the renovate/ioredis-5.x branch from a59ff8b to 0f2b690 Compare January 15, 2025 11:04
Copy link
Contributor Author

renovate bot commented Jan 15, 2025

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@ardatan ardatan force-pushed the renovate/ioredis-5.x branch from 147f684 to 544361d Compare January 15, 2025 11:26
Copy link
Contributor

github-actions bot commented Jan 15, 2025

🚀 Snapshot Release (alpha)

The latest changes of this PR are available as alpha on npm (based on the declared changesets):

Package Version Info
@envelop/apollo-federation 5.0.1-alpha-20250115115408-d800eb7392fbada8593b6c36cec59eee497e4e58 npm ↗︎ unpkg ↗︎
@envelop/response-cache-redis 4.1.3-alpha-20250115115408-d800eb7392fbada8593b6c36cec59eee497e4e58 npm ↗︎ unpkg ↗︎

@theguild-bot
Copy link
Collaborator

theguild-bot commented Jan 15, 2025

✅ Benchmark Results

     ✓ no_errors
     ✓ expected_result

     checks.............................................: 100.00% ✓ 878854      ✗ 0     
     ✓ { mode:envelop-cache-and-no-internal-tracing }...: 100.00% ✓ 214880      ✗ 0     
     ✓ { mode:envelop-cache-jit }.......................: 100.00% ✓ 340294      ✗ 0     
     ✓ { mode:envelop-just-cache }......................: 100.00% ✓ 210452      ✗ 0     
     ✓ { mode:graphql-js }..............................: 100.00% ✓ 113228      ✗ 0     
     data_received......................................: 3.4 GB  28 MB/s
     data_sent..........................................: 191 MB  1.6 MB/s
     envelop_init.......................................: avg=0s      min=0s       med=0s      max=0s       p(90)=0s      p(95)=0s     
     ✓ { mode:envelop-cache-jit }.......................: avg=0s      min=0s       med=0s      max=0s       p(90)=0s      p(95)=0s     
     ✓ { mode:envelop-just-cache }......................: avg=0s      min=0s       med=0s      max=0s       p(90)=0s      p(95)=0s     
     ✓ { mode:graphql-js }..............................: avg=0s      min=0s       med=0s      max=0s       p(90)=0s      p(95)=0s     
     envelop_total......................................: avg=0s      min=0s       med=0s      max=0s       p(90)=0s      p(95)=0s     
     ✓ { mode:envelop-cache-jit }.......................: avg=0s      min=0s       med=0s      max=0s       p(90)=0s      p(95)=0s     
     ✓ { mode:envelop-just-cache }......................: avg=0s      min=0s       med=0s      max=0s       p(90)=0s      p(95)=0s     
     ✓ { mode:graphql-js }..............................: avg=0s      min=0s       med=0s      max=0s       p(90)=0s      p(95)=0s     
     event_loop_lag.....................................: avg=0s      min=0s       med=0s      max=0s       p(90)=0s      p(95)=0s     
     ✓ { mode:envelop-cache-and-no-internal-tracing }...: avg=0s      min=0s       med=0s      max=0s       p(90)=0s      p(95)=0s     
     ✓ { mode:envelop-cache-jit }.......................: avg=0s      min=0s       med=0s      max=0s       p(90)=0s      p(95)=0s     
     ✓ { mode:envelop-just-cache }......................: avg=0s      min=0s       med=0s      max=0s       p(90)=0s      p(95)=0s     
     ✓ { mode:graphql-js }..............................: avg=0s      min=0s       med=0s      max=0s       p(90)=0s      p(95)=0s     
     graphql_context....................................: avg=0s      min=0s       med=0s      max=0s       p(90)=0s      p(95)=0s     
     ✓ { mode:envelop-cache-jit }.......................: avg=0s      min=0s       med=0s      max=0s       p(90)=0s      p(95)=0s     
     ✓ { mode:envelop-just-cache }......................: avg=0s      min=0s       med=0s      max=0s       p(90)=0s      p(95)=0s     
     ✓ { mode:graphql-js }..............................: avg=0s      min=0s       med=0s      max=0s       p(90)=0s      p(95)=0s     
     graphql_execute....................................: avg=0s      min=0s       med=0s      max=0s       p(90)=0s      p(95)=0s     
     ✓ { mode:envelop-cache-jit }.......................: avg=0s      min=0s       med=0s      max=0s       p(90)=0s      p(95)=0s     
     ✓ { mode:envelop-just-cache }......................: avg=0s      min=0s       med=0s      max=0s       p(90)=0s      p(95)=0s     
     ✓ { mode:graphql-js }..............................: avg=0s      min=0s       med=0s      max=0s       p(90)=0s      p(95)=0s     
     graphql_parse......................................: avg=0s      min=0s       med=0s      max=0s       p(90)=0s      p(95)=0s     
     ✓ { mode:envelop-cache-jit }.......................: avg=0s      min=0s       med=0s      max=0s       p(90)=0s      p(95)=0s     
     ✓ { mode:envelop-just-cache }......................: avg=0s      min=0s       med=0s      max=0s       p(90)=0s      p(95)=0s     
     ✓ { mode:graphql-js }..............................: avg=0s      min=0s       med=0s      max=0s       p(90)=0s      p(95)=0s     
     graphql_validate...................................: avg=0s      min=0s       med=0s      max=0s       p(90)=0s      p(95)=0s     
     ✓ { mode:envelop-cache-jit }.......................: avg=0s      min=0s       med=0s      max=0s       p(90)=0s      p(95)=0s     
     ✓ { mode:envelop-just-cache }......................: avg=0s      min=0s       med=0s      max=0s       p(90)=0s      p(95)=0s     
     ✓ { mode:graphql-js }..............................: avg=0s      min=0s       med=0s      max=0s       p(90)=0s      p(95)=0s     
     http_req_blocked...................................: avg=2.96µs  min=1.27µs   med=2.6µs   max=5.45ms   p(90)=3.51µs  p(95)=3.84µs 
     http_req_connecting................................: avg=14ns    min=0s       med=0s      max=746.15µs p(90)=0s      p(95)=0s     
     http_req_duration..................................: avg=2.43ms  min=166.53µs med=2.13ms  max=83.44ms  p(90)=4.48ms  p(95)=4.94ms 
       { expected_response:true }.......................: avg=2.43ms  min=166.53µs med=2.13ms  max=83.44ms  p(90)=4.48ms  p(95)=4.94ms 
     ✓ { mode:envelop-cache-and-no-internal-tracing }...: avg=2.51ms  min=397.23µs med=2.23ms  max=16.26ms  p(90)=4.4ms   p(95)=4.78ms 
     ✓ { mode:envelop-cache-jit }.......................: avg=1.45ms  min=166.53µs med=1.2ms   max=11.69ms  p(90)=2.42ms  p(95)=2.57ms 
     ✓ { mode:envelop-just-cache }......................: avg=2.56ms  min=387.03µs med=2.27ms  max=36.57ms  p(90)=4.43ms  p(95)=4.83ms 
     ✓ { mode:graphql-js }..............................: avg=5.02ms  min=787.23µs med=4.34ms  max=83.44ms  p(90)=8.43ms  p(95)=9.09ms 
     http_req_failed....................................: 0.00%   ✓ 0           ✗ 439427
     http_req_receiving.................................: avg=33.42µs min=12.69µs  med=28.93µs max=6.94ms   p(90)=44.55µs p(95)=49.15µs
     http_req_sending...................................: avg=12.09µs min=4.12µs   med=9.84µs  max=6.26ms   p(90)=14.13µs p(95)=18.22µs
     http_req_tls_handshaking...........................: avg=0s      min=0s       med=0s      max=0s       p(90)=0s      p(95)=0s     
     http_req_waiting...................................: avg=2.39ms  min=133.81µs med=2.08ms  max=83.36ms  p(90)=4.43ms  p(95)=4.88ms 
     http_reqs..........................................: 439427  3661.782398/s
     iteration_duration.................................: avg=2.72ms  min=354.06µs med=2.39ms  max=83.8ms   p(90)=4.76ms  p(95)=5.23ms 
     iterations.........................................: 439427  3661.782398/s
     vus................................................: 10      min=10        max=10  
     vus_max............................................: 20      min=20        max=20  

@ardatan ardatan merged commit ed8c444 into main Jan 15, 2025
12 checks passed
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.

3 participants