What's Changed
* Accept vercel kv env variables by CahidArda in https://github.com/upstash/redis-js/pull/1315
* In auto pipeline, throw errors seperately by CahidArda in https://github.com/upstash/redis-js/pull/1305
* Replace throw on missing env with warning by CahidArda in https://github.com/upstash/redis-js/pull/1311
Changes
Vercel Env Variables
upstash/redis sdk now also works when the env variables of Vercel KV are set:
KV_REST_API_URL
KV_REST_API_TOKEN
Granular Auto Pipeline Errors
When the pipeline of the auto pipeline failed, it threw an error for all commands in the auto pipeline. This is not ideal for the use case of auto pipeline. Now, they are raised seperately.
This required changing the `exec` method of `Pipeline`. It's not possible to return the errors instead of raising them. [See the docstring for more details](https://github.com/upstash/redis-js/blob/29c902138fc837986770d599a3acbf1567bfc391/pkg/pipeline.ts#L189).
Remove throw on missing URL/Token
We updated the SDK to throw error if the URL or the token is not set in [v1.31.1](https://github.com/upstash/redis-js/releases/tag/v1.31.1), in PR #1065. This causes the Vercel builds in Turbo repo to fail unless the turbo.json is updated.
Now, we only print warning logs if the credentials are missing, instead of throwing.
**Full Changelog**: https://github.com/upstash/redis-js/compare/v1.34.2...v1.34.3
1.34.3-canary-2
Canary for https://github.com/upstash/redis-js/pull/1311
**Full Changelog**: https://github.com/upstash/redis-js/compare/1.34.3-canary...1.34.3-canary-2
1.34.3-canary
Canary for 1311
**Full Changelog**: https://github.com/upstash/redis-js/compare/v1.34.2...1.34.3-canary