-
Notifications
You must be signed in to change notification settings - Fork 8
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
Update to history 3.0.0 #23
Comments
I can take a look at it ;) |
Well The list of breaking changes is really small: https://github.com/mjackson/history/blob/master/CHANGES.md I took a look and many of those doesn't affect anything.
But it seems like this is wanted behaviour. |
Yeah that's normal - its so you can debug issues.
Hmmm, that makes me wonder if there should be tests for the initial 'POP' action. I think is actually wanted behavior client-side (without doing server rendering), as it gives you the initial location. Perhaps it could be an optional flag. |
That's true. If you have only client side app and you want to move to some route you will actually need to emit that action.
It doesn't have to be a flag. It can be dealt with |
True |
I'll write a test for initial value and we will see if it fails with history 3 |
#24 :) I'm still thinking about removing ability to push items into |
Added some comments :) |
seems still not working with typescript, and I checked the ./src/interfaces.ts, the type createLocation(location: Location | Pathname): Location is not compatible with history 3.0 |
Looks like the types defined in interfaces.ts are not compatible with the type definition file ( typings install npm~history --global). |
Hello there! Yup, I confirm @wpcfan's statement about interfaces.ts. I was struggling with using cyclic-router in a TS project. After digging it looks like there is typings incompatibility. Trying to use cyclic-router v2.1.2 and history v3.0.0 fails because Indeed, History#listen signature ( Is there something I could do to help? Thanks! |
Hello! Yeah, I'm pretty aware of the issues, unfortunately this is the first TS project I've ever done (Many more since). I have not been given the opportunity to fix them. I think it's possible, and likely better to generalize the types used in this library so that PRs and advice are super welcome |
I'm quite new to TS but that would be a great exercise. Plus, I'm stuck and can't achieve to set up a working router with Cycle.js Diversity & TS because of this − or I'm missing something. I'll give it a look and see what I can do, try to propose something 😄 Thanks 👍 |
I'll be using this library and my other poorly typed concoction |
History 3.0.0 has some breaking changes, need to more closely investigate what they are and how they affect things.
With v3.0.0 it now also provided a dist/ build via npmcdn, we should also now create dist/ build of @cycle/history.
The text was updated successfully, but these errors were encountered: