Comments (5)
Hello @oppodeldoc,
Thank you for the report. I did not migrate yet my code to 3.x.x I will do that ASAP (this afternoon or tomorrow as I have a few meetings to attend :( ).
I have checked the feathers documentation and the process should not be too difficult. It seems that the problem you have encountered is the only one. I will also need to check the tests as I am mocking the params object, and it is obviously different now.
I am not really in favour to have a conditional for the params and then carry on legacy code. I would prefer to use npm versions e.g. version 0.x.x is compatible with feathers 2.x.x and version 1.x.x with version 3. Or maybe bump the plugin version to 3.x.x right away?
Do you see any reason why we should do a conditional?
I will be very happy to review your PR. Thank you for the help!
Sam
from feathers-hooks-rediscache.
I have migrated. The change you propose is fine. You can do a PR with it and could you modify the tests? That is quite easy, there are two test to modify, the both have nested route
in the description. I guess we could add a test in the "before" test as well... I can do it. If you are not sure let me know I will do them.
Sam
from feathers-hooks-rediscache.
Thanks @idealley! You're right about versioning and not worrying about backwards-compatibility, I just wasn't sure if you wanted to maintain it, but that's great. I'll submit a PR today!
from feathers-hooks-rediscache.
Ok! @idealley I submitted my PR, it includes the updated tests, I didn't add a before
test, though.
One thing I forgot was to add a note in the README about breaking changes. I'm assuming you'll bump this as a major release in versioning, might be nice to put a note in the README as well. Let me know when the latest is on NPM, and thanks again for being so responsive and helpful!
from feathers-hooks-rediscache.
Thank you for your help. I have merged everything.
Sam
from feathers-hooks-rediscache.
Related Issues (20)
- Clearing group cache - "Can't set headers after they are sent" HOT 4
- clear/group/id is broken in v1.1.2 HOT 2
- Version 10 of node.js has been released
- Support for additional params for multi tenant use case (how to add?) HOT 2
- Ability to specify cutsom keys (or paths) HOT 3
- feathers configuration not considered
- An in-range update of webpack is breaking the build 🚨 HOT 59
- An in-range update of webpack-cli is breaking the build 🚨 HOT 14
- Add option to invalid cache in hooks HOT 2
- An in-range update of babel7 is breaking the build 🚨 HOT 110
- Route Subfolders break cache clearing HOT 1
- Unknown command with /cache/clear with client.flushall()
- Passing client options HOT 2
- Handling lost connections to Redis server HOT 1
- custom cache key HOT 2
- Paginate returns the same results HOT 1
- Server crash - Cannot read property 'expiresOn' of undefined
- Limit keys per endpoint, add purge hook HOT 2
- Pagination hook
- route cache/clear not found
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from feathers-hooks-rediscache.