-
Notifications
You must be signed in to change notification settings - Fork 569
Description
We have several breaking changes that we could make to fix things (for instance #110), and need to decide what to do about them, so asking the community for feedback. At around 10 million weekly downloads we need to make the right decision for the future!
We are getting close to version 2 being ready for prime-time release, which has one major change1 in access for it, but not in the behaviour of the endpoints (or at least not in a way that should break anything getting encoded).
There are three basic choice, please react to this post - and comment if you want to say something:
- 👍 Make the breaking changes, add
compressXyz_legacy
for compatibility. - 👀 Make the breaking changes, and don't add any compatibility code.
- 👎 Don't break any endpoints, add
compressXyz_fixed
for correctness.
Note
We have a far better test suite, and it is being designed so that implementations in other languages can test against it too, so we will hopefully get a compatibility table if people write command-line wrappers for them!
Footnotes
-
The old code had
require("lz-string/lib/ls-string.min.js")
as an entry point, the new code isrequire("ls-string")
(or equivalent based on your language / access of choice) - this will force people to actually look and see why they can't simply update to the latest version transparently. ↩