-
Notifications
You must be signed in to change notification settings - Fork 4
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
LZ string: network request to pieroxy/lz-string/tar.gz/b2e0b270a9f3cf330b778b777385fcba384a1a02 failed #20
Comments
Hi Niels, thanks for the kind words, and I'm glad to hear the lib helps you! Your guess is right about lz-string – I added the dependency according to pieroxy/lz-string#147, hoping that a new version would be released soon. Since I was wrong about that, and since it causes trouble for you, I think it's best to just use v1.4.4 from NPM.
I'm not sure if I get your point with this – I would simply do a patch release with the dependency definition changed to
You may be right about not needing lz-string, though I don't know if Let me know what you think about a patch release :) |
Hi @bjoluc
Fair enough, it would indeed add complexity.
Sorry, the only reason I said that was I hadn't looked at all commits that got merged in lz-string since the release of 1.4.4 and commit My concern was that the compression format might have changed in some subtle way that would break if you'd downgraded the lib. I.e. upgrade I walked through the commits in lz-string, most seem to be about documentation and superficial changes. Found two commits that had some code in them: I think these are non-consequential as long as this lib can work with it. After scanning those commits I'd think it's fine to patch-release to 1.4.4. It would definitely solve my issue 👏 |
Oh, right, makes sense. I assumed that there were no breaking changes on main, which (luckily) seems to be right, according to your research – thanks! |
🎉 This issue has been resolved in version 2.1.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Thanks so much for this quick release! 🎉 👏 Can confirm it fixed the issue. |
Thank you for this library!
I plugged it in today and got it running by simply copying the README example. Compared to redux-persist it's very easy to setup.
Sadly I ran into an issue with our CI/CD which restricts NPM packages to be published on a registry. Meaning; external paths are blocked.
The
lz-string
dependency from this lib gets pulled-in through using:I don't know why this library needed this specific version, I checked the git history but couldn't find a cause. One reason might be that the lz-string lib hasn't been published for a couple of years (this is just a guess):
pieroxy/lz-string#125
Having the github in package.json instead of normal semver has two consequences for my project:
I have found a workaround by using force-resolution; https://www.npmjs.com/package/npm-force-resolutions
That workaround is a bit of a last-resort tbh. I've turned compression off which effectively makes lz-string an optional dependency I think. It's unlikely I'll ever hit the cookie limit for our use-case.
I'm not sure how this can be resolved now that dependents of this library use this unreleased version of lz-string. The only idea I had was keeping the lz-string dep as-is but change it to an optional dependency so people who don't need it can opt to exclude it (https://docs.npmjs.com/cli/v8/configuring-npm/package-json#optionaldependencies).
I figured I'd open this issue if others run into the same issue.
The text was updated successfully, but these errors were encountered: