Skip to content

Commit

Permalink
Merge pull request #47 from Tirke/changeset-release/main
Browse files Browse the repository at this point in the history
chore: version packages
  • Loading branch information
Tirke authored Oct 21, 2022
2 parents 40f233d + 9a91ee2 commit 97048e3
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 41 deletions.
40 changes: 0 additions & 40 deletions .changeset/spicy-nails-work.md

This file was deleted.

41 changes: 41 additions & 0 deletions packages/node-cache-manager-ioredis/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,46 @@
# @tirke/node-cache-manager-ioredis

## 3.0.0

### Major Changes

- [`40f233d`](https://github.com/Tirke/node-cache-manager-ioredis/commit/40f233d7756ca813a6e0d607054601e15b6840ff) Thanks [@Tirke](https://github.com/Tirke)! - node-cache-manager-ioredis is now compatible with new cache-manager@5 major version

The new major version of `cache-manager` introduced breaking changes around the API to create a cache manager instance.
I also had to rewrite most code because `cache-manager` is now based on promises everywhere so I could ditch the callbacks.
Examples in the README have been updated to reflect the changes.

For a before / after example:

```typescript
// Before

import { IoRedisStore } from '@tirke/node-cache-manager-ioredis'
import { caching } from 'cache-manager'

const redisCache = caching({
store: IoRedisStore,
host: 'localhost', // default value
port: 6379, // default value
password: 'XXXXX',
ttl: 600,
})
```

```typescript
// After

import { ioRedisStore, RedisCache } from '@tirke/node-cache-manager-ioredis'
import { caching } from 'cache-manager'

const redisCache: RedisCache = caching(ioRedisStore, {
host: 'localhost', // default value
port: 6379, // default value
password: 'XXXXX',
ttl: 600,
})
```

## 2.1.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/node-cache-manager-ioredis/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tirke/node-cache-manager-ioredis",
"version": "2.1.0",
"version": "3.0.0",
"type": "commonjs",
"repository": "https://github.com/Tirke/node-cache-manager-ioredis",
"funding": "https://github.com/sponsors/tirke",
Expand Down

0 comments on commit 97048e3

Please sign in to comment.