Closed brandonros closed 3 years ago
from https://semver.org/
MAJOR version when you make incompatible API changes
MINOR version when you add functionality in a backwards compatible manner
PATCH version when you make backwards compatible bug fixes.
I don't follow; what's the breaking change in your opinion?
https://github.com/microlinkhq/async-ratelimiter/compare/v1.2.8...v1.3.0
You used to be able to call .get
with decrease: false
Now it just does the decrement no matter what
That's right and sorry for the misunderstanding, definitely it should have been launched as a major version.
I added a note over the releases to clarify that:
https://github.com/microlinkhq/async-ratelimiter/releases/tag/v1.3.0
Alternatively, you can always get the value without decrementing just by query against the Redis instance.
might i recommend releasing a 2.0.0 just to save anybody else this heartache/pain
totally broke this code...?