This repository has been archived by the owner on Dec 4, 2023. It is now read-only.
Releases: Asjas/prisma-redis-middleware
Releases · Asjas/prisma-redis-middleware
v4.0.0
- fix model type as optional 28fb3ed
- drop node 14 and add node 18 5b266c3
- add findFirstOrThrow and findUniqueOrThrow query types 2974df3
- replace Redis type with RedisOptions 7beb808
- make model type optional 31402e5
- update excludeMethods test suite 7fad1fe
- update Vitest to 0.17.1 5f307c1
- Update dependency nodemon to v2.0.19 6055629
- Merge pull request #182 from Asjas/renovate/vitest-0.x 36274d2
- Update dependency vitest to v0.17.0 c22d572
- Update dependency ts-node to v10.8.2 42e57b8
- Update dependency async-cache-dedupe to v1.4.0 49cb667
- Update prisma monorepo to v4 2c8e66d
- Update dependency ioredis to v5.1.0 8b78062
- Merge pull request #176 from Asjas/renovate/lint-staged-13.x b5914a3
- Merge pull request #177 from Asjas/renovate/vitest-0.x e22036b
- Update dependency vitest to v0.16.0 7147155
- Update dependency lint-staged to v13.0.3 438d249
- Merge pull request #175 from Asjas/renovate/nodemon-2.x c786280
- Update dependency nodemon to v2.0.18 312958e
- Merge pull request #174 from Asjas/renovate/npm-got-vulnerability 83fb0eb
- Update dependency got to 11.8.5 [SECURITY] c489e1e
- Merge pull request #173 from Asjas/renovate/pino-8.x 21b8b57
- Update dependency pino to v8.1.0 c865338
- Merge pull request #172 from Asjas/renovate/vitest-0.x 8fd3f47
- Update dependency vitest to v0.15.2 6611bcf
- Update dependency typescript to v4.7.4 6727505
- Update dependency lint-staged to v13.0.2 b806c34
- Update prisma monorepo to v3.15.2 af5122c
- Merge pull request #168 from Asjas/renovate/vitest-0.x f147530
- Update dependency vitest to v0.15.1 d39c1dd
- Update dependency async-cache-dedupe to v1.3.0 553228f
- Merge pull request #166 from Asjas/renovate/vitest-0.x 76007b7
- Update dependency vitest to v0.15.0 98c9705
- Merge pull request #164 from Asjas/renovate/vitest-0.x c496564
- Update dependency vitest to v0.14.2 bba3d53
- Update prisma monorepo to v3.15.1 82beffb
- Merge pull request #162 from Asjas/renovate/lint-staged-13.x 0c8db72
- Update dependency lint-staged to v13.0.1 668947f
- Merge pull request #161 from Asjas/renovate/prisma-monorepo 7f8cdbf
- Update prisma monorepo to v3.15.0 fb31722
- Merge pull request #160 from Asjas/renovate/vitest-0.x 6b4cea5
- Update dependency vitest to v0.14.1 d5d5ed9
- Merge pull request #159 from Asjas/renovate/vitest-0.x 47855d4
- Update dependency vitest to v0.14.0 9003e79
- Update dependency typescript to v4.7.3 cc6fd28
- Update dependency ts-node to v10.8.1 06b351e
- Update dependency pino to v8 6b26f4c
- Merge pull request #154 from Asjas/renovate/vitest-0.x 39e5824
- Merge pull request #155 from Asjas/renovate/lint-staged-13.x 7bb3000
- Update dependency lint-staged to v13 5c85685
- Update dependency vitest to v0.13.1 0b43676
- Merge pull request #153 from Asjas/renovate/ioredis-5.x 6addee1
- Update dependency ioredis to v5.0.6 3785029
- Update dependency lint-staged to v12.5.0 350e49c
- Update dependency lint-staged to v12.4.3 3c68fd9
- Merge pull request #150 from Asjas/renovate/vitest-0.x 1c39a7d
- Update dependency vitest to v0.13.0 f821260
- Update dependency ioredis-mock to v8.2.2 8b1a9d3
- Merge pull request #147 from Asjas/renovate/typescript-4.x ee0f91e
- Update dependency typescript to v4.7.2 8b36612
- Merge pull request #146 from Asjas/renovate/lint-staged-12.x d295183
- Update dependency lint-staged to v12.4.2 d001bcc
- Merge pull request #144 from Asjas/renovate/vitest-0.x 4a64040
- Update dependency ts-node to v10.8.0 4be24c2
- Update dependency vitest to v0.12.9 0296bdd
- Merge pull request #143 from Asjas/renovate/vitest-0.x fc5fd12
- Update dependency vitest to v0.12.8 0d752fd
- Merge pull request #142 from Asjas/renovate/vitest-0.x e35c850
- Update dependency vitest to v0.12.7 3e8d6e7
- Merge pull request #141 from Asjas/renovate/ioredis-5.x aa7ed42
- Update dependency ioredis to v5.0.5 d2674b3
- Merge pull request #140 from Asjas/renovate/c8-7.x f8c5301
- Update dependency c8 to v7.11.3 b959557
- Merge pull request #139 from Asjas/renovate/vitest-0.x a3ad55d
- Update dependency vitest to v0.12.6 d2d2e29
- Merge pull request #138 from Asjas/renovate/vitest-0.x 4772701
- Update dependency vitest to v0.12.5 8a700d0
- Merge pull request #136 from Asjas/renovate/vitest-0.x 02e7436
- Update dependency vitest to v0.12.4 de05859
- Merge pull request #135 from Asjas/renovate/prisma-monorepo d5a9cbf
- Merge pull request #134 from Asjas/renovate/vitest-0.x e78bfa1
- Update prisma monorepo to v3.14.0 093ddee
- Update dependency vitest to v0.12.3 2a962ed
- Merge pull request #133 from Asjas/renovate/vitest-0.x 69b769d
- Update dependency prisma-redis-middleware to v3.3.0 2affbf6
- Update dependency vitest to v0.12.2 1c82149
- Merge pull request #131 from Asjas/renovate/vitest-0.x b5c2fd3
- Merge pull request #130 from Asjas/renovate/husky-8.x d1c40b0
- Update dependency vitest to v0.12.1 fe7a3ac
- Update dependency husky to v8.0.1 62a03ed
What's Changed
- Update dependency husky to v8.0.1 by @renovate in #130
- Update dependency vitest to v0.12.1 by @renovate in #131
- Update dependency prisma-redis-middleware to v3.3.0 by @renovate in #132
- Update dependency vitest to v0.12.2 by @renovate in #133
- Update dependency vitest to v0.12.3 by @renovate in #134
- Update prisma monorepo to v3.14.0 by @renovate in #135
- Update dependency vitest to v0.12.4 by @renovate in #136
- Update dependency vitest to v0.12.5 by @renovate in #138
- Update dependency vitest to v0.12.6 by @renovate in #139
- Update dependency c8 to v7.11.3 by @renovate in #140
- Update dependency ioredis to v5.0.5 by @renovate in #141
- Update dependency vitest to v0.12.7 by @renovate in #142
- Update dependency vitest to v0.12.8 by @renovate in #143
- Update dependency ts-node to v10.8.0 by @renovate in #145
- Update dependency vitest to v0.12.9 by @renovate in #144
- Update dependency lint-staged to v12.4.2 by @renovate in #146
- Update dependency typescript to v4.7.2 by @renovate in #147
- Update dependency ioredis-mock to v8.2.2 by @renovate in #149
- Update dependency vitest to v0.13.0 by @renovate in #150
- Update dependency lint-staged to v12.4.3 by @renovate in #151
- Update dependency lint-staged to v12.5.0 by @renovate in #152
- Update dependency ioredis to v5.0.6 by @renovate in #153
- Update dependency lint-staged to v13 by @renovate in #155
- Update dependency vitest to v0.13.1 by @renovate in #154
- Update dependency pino to v8 by @renovate in #156
- Update dependency ts-node to v10.8.1 by @renovate in #157
- Update dependency typescript to v4.7.3 by @renovate in #158
- Update dependency vitest to v0.14.0 by @renovate in #159
- Update dependency vitest to v0.14.1 by @renovate in #160
- Update prisma monorepo to v3.15.0 by @renovate in #161
- Update dependency lint-staged to v13.0.1 by @renovate in #162
- Update prisma monorepo to v3.15.1 by @renovate in #163
- Update dependency vitest to v0.14.2 by @renovate in #164
- Update dependency vitest to v0.15.0 by @renovate in #166
- Update dependency async-cache-dedupe to v1.3.0 by @renovate in #167
- Update dependency vitest to v0.15.1 by @renovate in #168
- Update prisma monorepo to v3.15.2 by @renovate in #169
- Update dependency lint-staged to v13.0.2 by @renovate in #170
- Update dependency typescript to v4.7.4 by @renovate in #171
- Update dependency vitest to v0.15.2 by @renovate in #172
- Update dependency pino to v8.1.0 by @renovate in #173
- Update dependency got to 11.8.5 [SECURITY] by @renovate in #174
- Update dependency ...
v3.3.0
- Update dependency husky to v8 efde88d
- Update dependency ioredis-mock to v8.2.0 c0bbba5
- Merge pull request #126 from Asjas/renovate/vitest-0.x b0bc21b
- Update dependency vitest to v0.12.0 b49caba
- Merge pull request #125 from Asjas/renovate/vitest-0.x f7ca67c
- Update dependency vitest to v0.10.5 fe29ada
- Merge pull request #124 from Asjas/renovate/vitest-0.x 5819d0a
- Update dependency vitest to v0.10.4 38dd846
- Update dependency ioredis-mock to v8.1.1 18487a0
- Merge pull request #122 from Asjas/renovate/ioredis-mock-8.x badd64f
- Update dependency ioredis-mock to v8 ac1eb29
- Merge pull request #121 from Asjas/renovate/ioredis-mock-7.x 3e65026
- Update dependency ioredis-mock to v7.4.0 d2c100e
- Merge pull request #120 from Asjas/renovate/vitest-0.x 49fb9cb
- Update dependency vitest to v0.10.2 bd6b488
- Merge pull request #119 from Asjas/renovate/vitest-0.x fdc95ef
- Update dependency vitest to v0.10.1 5b5663e
- Merge pull request #118 from Asjas/renovate/nodemon-2.x 2ccbd47
- Update dependency nodemon to v2.0.16 5d97741
- Merge pull request #117 from Asjas/renovate/typescript-4.x 7299b9a
- Update dependency typescript to v4.6.4 e951593
- Merge pull request #115 from Asjas/renovate/lint-staged-12.x 4f6ed13
- Merge pull request #116 from Asjas/renovate/prisma-monorepo b218eed
- Update prisma monorepo to v3.13.0 8af2374
- Update dependency lint-staged to v12.4.1 ea6e750
- Merge pull request #114 from Asjas/renovate/pino-7.x 02e6473
- Update dependency pino to v7.11.0 49b377f
- Merge pull request #113 from Asjas/renovate/vitest-0.x f3e776f
- Update dependency vitest to v0.10.0 eca996d
- Merge pull request #112 from Asjas/renovate/github-codeql-action-2.x 8e0b6b8
- Update github/codeql-action action to v2 8357d20
- Merge pull request #111 from Asjas/renovate/tslib-2.x 6989cd8
- Update dependency tslib to v2.4.0 dbd41bb
- Merge pull request #110 from Asjas/renovate/vitest-0.x ceaee97
- Update dependency vitest to v0.9.4 3a9edd5
- Merge pull request #108 from Asjas/renovate/c8-7.x 9bf6c01
- Merge pull request #109 from Asjas/renovate/lint-staged-12.x e1e3d07
- Update dependency lint-staged to v12.4.0 5b535eb
- Update dependency c8 to v7.11.2 6f886e3
- Merge pull request #107 from Asjas/renovate/prisma-redis-middleware-3.x cdc598a
- Update dependency prisma-redis-middleware to v3.2.0 ecc23db
What's Changed
- Update dependency prisma-redis-middleware to v3.2.0 by @renovate in #107
- Update dependency lint-staged to v12.4.0 by @renovate in #109
- Update dependency c8 to v7.11.2 by @renovate in #108
- Update dependency vitest to v0.9.4 by @renovate in #110
- Update dependency tslib to v2.4.0 by @renovate in #111
- Update github/codeql-action action to v2 by @renovate in #112
- Update dependency vitest to v0.10.0 by @renovate in #113
- Update dependency pino to v7.11.0 by @renovate in #114
- Update prisma monorepo to v3.13.0 by @renovate in #116
- Update dependency lint-staged to v12.4.1 by @renovate in #115
- Update dependency typescript to v4.6.4 by @renovate in #117
- Update dependency nodemon to v2.0.16 by @renovate in #118
- Update dependency vitest to v0.10.1 by @renovate in #119
- Update dependency vitest to v0.10.2 by @renovate in #120
- Update dependency ioredis-mock to v7.4.0 by @renovate in #121
- Update dependency ioredis-mock to v8 by @renovate in #122
- Update dependency ioredis-mock to v8.1.1 by @renovate in #123
- Update dependency vitest to v0.10.4 by @renovate in #124
- Update dependency vitest to v0.10.5 by @renovate in #125
- Update dependency vitest to v0.12.0 by @renovate in #126
- Update dependency ioredis-mock to v8.2.0 by @renovate in #127
- Update dependency husky to v8 by @renovate in #128
Full Changelog: v3.2.0...v3.3.0
v3.2.0
- Update Middleware type to use Any a083705
- Merge pull request #104 from Asjas/renovate/lint-staged-12.x a7080bc
- Update dependency lint-staged to v12.3.8 0e66fd9
- use describe.each to set up data for each test a386351
- update coverage npm script to include c8 61a7c2e
- Merge pull request #103 from Asjas/renovate/vitest-0.x 23938f6
- update prisma model 393c6b3
- create .eslintrc file for example d84f5b6
- Update dependency vitest to v0.9.3 0693cea
- Merge pull request #102 from Asjas/renovate/ioredis-5.x d3025c5
- Update dependency ioredis to v5.0.4 3830055
- Merge pull request #101 from Asjas/renovate/pino-7.x a27cf12
- Update dependency pino to v7.10.0 e6311b3
- Merge pull request #100 from Asjas/renovate/vitest-0.x ea9c83b
- Update dependency vitest to v0.9.2 79d876d
- Merge pull request #99 from YassinEldeeb/patch-1 cd3b0ae
- fix(readme): update outdated example 3965554
- Merge pull request #98 from Asjas/renovate/prisma-redis-middleware-3.x bd96278
- Update dependency prisma-redis-middleware to v3.1.0 710407b
What's Changed
- Update dependency prisma-redis-middleware to v3.1.0 by @renovate in #98
- fix(readme): update outdated example by @YassinEldeeb in #99
- Update dependency vitest to v0.9.2 by @renovate in #100
- Update dependency pino to v7.10.0 by @renovate in #101
- Update dependency ioredis to v5.0.4 by @renovate in #102
- Update dependency vitest to v0.9.3 by @renovate in #103
- Update dependency lint-staged to v12.3.8 by @renovate in #104
New Contributors
- @YassinEldeeb made their first contribution in #99
Full Changelog: v3.1.0...v3.2.0
v3.1.0
- add-test/don't invalidate the cache if the cache method was excluded f0fdc40
- update example 3c97212
- Bugfix: When a method was excluded from the cache it would evict all data for that model 74feeab
- add back defaultMutationMethods array 0d76d2e
- Merge pull request #97 from Asjas/renovate/vitest-0.x 6bedba4
- Update dependency vitest to v0.9.0 828c6ef
- Update SECURITY.md 22c9212
- update example 292ce86
- update prisma-redis-middleware release 381ce42
What's Changed
Full Changelog: v3.0.0...v3.1.0
v3.0.0
Breaking changes
The API for this middleware was kind of verbose, I'm replacing the options with shorter versions instead 🙂
- Replace the per model option
excludeCacheMethods
withexcludeMethods
. - Replace global option
defaultExcludeCacheMethods
withexcludeMethods
. - Replace global option
defaultExcludeCacheModels
withexcludeModels
. - Replace global option
defaultCacheTime
withcacheTime
.
Commits
- update example 55de0ac
- disable no-console rule 21f57f6
- Update API to use shorter options 8b4ba21
- add prisma/dev.db-journal to .gitignore 3219469
- Merge pull request #95 from Asjas/renovate/codecov-codecov-action-3.x 17a64b4
- Update codecov/codecov-action action to v3 49bcfaf
- Merge pull request #94 from Asjas/renovate/prisma-monorepo dafab81
- Update prisma monorepo to v3.12.0 95194fc
- Merge pull request #93 from Asjas/renovate/vitest-0.x 97257b7
- Update dependency vitest to v0.8.4 0067a96
- Merge pull request #91 from Asjas/renovate/eslint-config-asjas-2.x 6aaf312
- Merge pull request #92 from Asjas/renovate/vitest-0.x 8b2f4a4
- Update dependency vitest to v0.8.3 6e534ad
- Update dependency eslint-config-asjas to v2.0.3 d1e2032
- Merge pull request #90 from Asjas/renovate/vitest-0.x a803004
- Update dependency vitest to v0.8.2 a453ab3
- Merge pull request #89 from Asjas/renovate/ioredis-5.x 559117b
- Update dependency ioredis to v5.0.3 d067aec
- Merge pull request #88 from Asjas/renovate/vitest-0.x 37f2b70
- Update dependency vitest to v0.8.1 0dea330
- Merge pull request #87 from Asjas/renovate/ioredis-5.x 6691d62
- Update dependency ioredis to v5.0.2 4c21cd6
- Merge pull request #86 from Asjas/renovate/vitest-0.x 209bccd
- Update dependency vitest to v0.8.0 bc4aff9
- Update SECURITY.md 57ef0f0
- Merge pull request #85 from Asjas/renovate/prisma-redis-middleware-2.x 52fb996
- Update dependency prisma-redis-middleware to v2.1.1 3932378
- fix CJS example by removing Redis c42e9d9
What's Changed
- Update dependency prisma-redis-middleware to v2.1.1 by @renovate in #85
- Update dependency vitest to v0.8.0 by @renovate in #86
- Update dependency ioredis to v5.0.2 by @renovate in #87
- Update dependency vitest to v0.8.1 by @renovate in #88
- Update dependency ioredis to v5.0.3 by @renovate in #89
- Update dependency vitest to v0.8.2 by @renovate in #90
- Update dependency vitest to v0.8.3 by @renovate in #92
- Update dependency eslint-config-asjas to v2.0.3 by @renovate in #91
- Update dependency vitest to v0.8.4 by @renovate in #93
- Update prisma monorepo to v3.12.0 by @renovate in #94
- Update codecov/codecov-action action to v3 by @renovate in #95
Full Changelog: v2.1.1...v3.0.0
v2.1.1
v2.1.0
- Merge pull request #83 from Asjas/fix-test-workflow 9086ba7
- Merge branch 'main' into fix-test-workflow f65f487
- Merge pull request #84 from Asjas/renovate/prisma-redis-middleware-2.x 517722f
- Refactor tests 🎉 8a2a377
- Update dependency prisma-redis-middleware to v2.0.0 7eb4e21
- Fix bug where excludeCacheMethods wasn't checked correctly 8c504a0
- fix typos ac26cf3
- remove Node 12 from readme and GitHub main workflow c5cd4f7
- Merge branch 'main' into fix-test-workflow c627284
- add libary code size status badge c75ebc3
- add back test and coverage scripts to main workflow e318806
What's Changed
- Update dependency prisma-redis-middleware to v2.0.0 by @renovate in #84
- add back test and coverage scripts to main workflow by @Asjas in #83
Full Changelog: v2.0.0...v2.1.0
v2.0.0
- fix test script to only run once db56443
- update module filepath 70388d1
- Merge pull request #69 from Asjas/v2.0 4783fd9
- set package size limit to 16 KB 99b6dbc
- add missing size-limit npm package to fix github ci 528d4ec
- remove coverage report from main Github workflow f3004bd
- regenerate package-lock.json file with v2 lock-file version 472967a
- add windows back to Github main action 381e3bc
- create npm lock-file to cache in GitHub action 22a351f
- remove package-lock=false from .npmrc file 1b841a6
- remove test from github main action 62c6f18
- add C8 npm package for vitest coverage report f11a766
- run validation script before tests bc54e44
- install npm v7 in github workflow d5d8eb8
- remove build step from main workflow as it runs after installation f6eac6c
- remove windows from main github workflow a04ccd5
- add legacy-peer-deps to .npmrc file 18db3c0
- fix GitHub CI installation step 2577d08
- Do not cache a prisma model if "models" was specified eee7736
- Only try to access the cache if a cacheFunction exists e0939e8
- Update invalidation test to confirm only 1 model is removed from cache 382cfa0
- Update test title wording d74a1d1
- Remove console logs from storage 424f032
- Write test for defaultExcludeCacheModels cb876a1
- Write test for excludeCacheMethods 885054e
- Write test to confirm custom cacheKey is used for a model 7f16787
- Fix excludeCacheMethods that wasn't working 2845107
- Write test to confirm excludeCacheMethods works 0c5dc67
- Write test to confirm invalidation happens after data mutation 648de2a
- Write test to confirm defaultExcludeCacheMethods works 98f4a56
- Write test to confirm that multiple models are cached 8d8500c
- Remove old node-tap tests 65fa266
- Fix caching a single prisma model test 282d438
- Replace tap.afterEach with Vitest afterEach e96e2c0
- Fix imports and types for tests b45623b
- Replace node-tap with vitest for testing d9c8129
- fix CreatePrismaRedisCache types for models 4ed7dcc
- remove defaultMutationMethods array ecef585
- remove memory default option for storage 1f34307
What's Changed
- Update dependency prisma-redis-middleware to v1.4.0 by @renovate in #64
- v2.0 release branch by @Asjas in #69
Full Changelog: v1.4.0...v2.0.0
v2.0.0-5
- Add back ioredis-mock library to use in tests d1e4cc7
- Do not cache a defined model if it is also excluded afdb2b5
- Fix async-cache-dedupe function argument type f260fb2
- Fix RedisMemoryOptions to use new ioredis types 074b25e
- use RedisOptions type from ioredis v5 70a8808
- rename excludeCacheModels to defaultExcludeCacheModels d84c78d
- remove mnemonist and @types/ioredis npm packages 0637607
- update eslint npm package bf04aed
- update eslint package and re-run linter 11b34a3
v2.0.0-4
- run eslint 78dd6c9
- update readme to show Hippocratic-3.0 license c37edfd
- update example a2ec5c8
- update readme e361b99
Full Changelog: v2.0.0-3...v2.0.0-4