Closed mannyv123 closed 8 months ago
Hi @mannyv123 thanks for taking care of this.
For context: The extractExamples.js
+ readme.test.ts
ensure that the example code in the readme is correct & working.
For the redis adapter examples the setup was too complex to actually run the examples so we just make sure there are not type-issues in there.
As you removed the redis example, we no longer need to validate that one -> can remove it from the test as you did.
Thanks for this @mannyv123!
I would prefer that we also remove the Redis 3 adapter as part of the breaking change. I don't think it's necessary for anyone to create a library for that because it's so little code people can just copy it themselves.
I think we can keep the lru-cache adapter though. That one is quite simple, unlikely to change, and makes this package useful out of the box.
So if you also remove the Redis 3 adapter code then I'm good to go with a major version bump as a part of this PR.
Thanks!
Thanks everyone for the feedback! I've made the following changes:
redis-mock
, @types/redis-mock
, redis4
packagesI also added BREAKING CHANGE
to the commit message, hopefully formatted it correctly🤞
Thanks again!
Hey hey! I'll probably be helping @mannyv123 with this 😄
So the plan for the work going forward:
adapters.ts
README
extractExamples.js
or do we want to remove this? I think we can remove that. Thanks @tearingItUp786!
Voting to keep extractExamples.js
but as the creator of it I'm certainly biased :)
I've created that one because I tend to forget keeping (readme) examples up to date and wanted to have a safeguard. Let me know when you want my help with it.
I think it's a cool idea, but with removing all the adapters and moving the docs for them into their respective packages combined with the level of complexity there, I don't think it makes sense to keep it around.
The adapters were actually the examples that have not been tested :) But I'm completely fine with removing it 👍
Hi all!
I've made the changes as discussed:
extractExamples.js
and related testsREADME
@kentcdodds you mentioned during the last office hours that it would be good to update the usage example in the README
with the lru adapter code and that we might be able to reduce the amount of code as well. I updated the example with the lru adapter but wasn't too sure how to make it simpler. Would you be able to provide some feedback/guidance on how to update this? Thank you!
Thank you for the feedback!
I've updated the usage example now. Please let me know if this is in line with what you were thinking or if any changes are needed.
Thanks again!
Hi all,
I resolved the merge conflicts that were in the package.json file.
Also, I made an update to the tsconfig.json
file as when tsc
was run, it was no longer creating the dist/src
folder structure. It seems this was caused when I removed the readme.test.ts
file. Please let me know if my change here was incorrect and I can update.
Thanks!
:tada: This PR is included in version 5.0.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Hi, everyone! 👋
I just updated the package to 5.1.1
and then seems like we need a bump on the peer dependency of cachified-redis-adapter.
Hi, everyone! 👋
I just updated the package to
5.1.1
and then seems like we need a bump on the peer dependency of cachified-redis-adapter.
@caiocmpaes opened up a PR for my bud :) https://github.com/mannyv123/cachified-redis-adapter/pull/7
@caiocmpaes @tearingItUp786 PR is now merged! :) Thank you!
Description
This change removes the redis 4 adapter from
@epic-web/cachified
and links to a separate npm library I set up: cachified-redis-adapterWhy
This helps avoid issues when updating the adapter and causing breaking change releases for the entire
@epic-web/cachified
package.Details
cachified-redis-adapter
basically takes the code that was in@epic-web/cachified
for the redis adapter and moves it into a separate library@epic-web/cachified
to remove the redis adapter code and update thereadme.md
file to link tocachified-redis-adapter
Note: I wasn't too sure how to update the
extractExamples.js
file. I can see that since thereadme.md
file is update it has removed the redis adapter example from generating. Any suggestions here would be appreciated!@tearingItUp786