Closed jlengrand closed 7 years ago
Please ignore travis for the moment.
Quote from the related issue:
Regarding the nodent issue. Could we not change the PR so that it needs a version of nodent-runtime rather than a specific version? That should fix it for everbody, shouldn't it?
You're now setting it to "latest". I'm not sure how node handles this, but isn't the "latest" in this case always required? Does this solve the issue, or is it better to set it as you suggested, just higher than 2x?
The presence of runtime should be fine.
Please note that I am far from being a node expert :).
My impression:
=2.0.0 is more conservative (as in it probably would be nice to update it once in a while), but I would expect it will take the closest from the requirement if you don't have it yet. If the user already has it globally installed, I'd expect it takes the existing.
More info here.
All in all, it depends how bleeding edge you want to be with geosearch and how safe nodent-runtime is in newer versions. I can update the PR with any solution you might prefer :)
Okay, let's try the 3.x.x
range. I must depend on you in this one. As I'm not experiencing errors with this dependency.
I choose nodent-runtime
over a babel-polyfill
because it keeps the bundle smaller. nodent-runtime
translates the await / async
code to ES5. I think we need to switch to a babel-polyfill later, if we keep getting issues with this one.
Can you rebase on develop? I've just pushed one very small update (spacing issue), causing travis to fail.
I've changed the base branch. I think rebasing is no longer needed 😄
<3
FWIW I doubt this will have any effect on me - I am installing leaflet-geosearch as a dependency so I won't get its devDependencies in my project (as they are only used to build it).
@alexrussell I think you're right. I'm moving the dependency from devDependencies
to dependencies
instead. That should fix your problem.
@smeijer it's worth having a quick read of my latest comment on #111 though first. Pushing nodent-runtime
on your users may not be ideal.
True, lets continue the discussion in #111, to prevent cross-talk.
Thanks for your work on this one. As we have implemented a working solution in #111 and #112, i'm closing this one.
This is an attempt to avoid issues for people using older versions of npm.
Related to #111
Another alternative woudl be to ask for nodent-runtime version to be >= 2.0.0