@upstash/redis 0.1.0-beta.1 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +6 -6
  2. package/package.json +2 -3
package/README.md CHANGED
@@ -3,8 +3,8 @@
3
3
  An HTTP/REST based Redis client built on top of [Upstash REST API](https://docs.upstash.com/features/restapi).
4
4
 
5
5
  [![Tests](https://github.com/upstash/upstash-redis/actions/workflows/test.yml/badge.svg)](https://github.com/upstash/upstash-redis/actions/workflows/test.yml)
6
- ![npm](https://img.shields.io/npm/dm/upstash-redis)
7
- ![npm bundle size](https://img.shields.io/bundlephobia/minzip/upstash-redis)
6
+ ![npm (scoped)](https://img.shields.io/npm/v/@upstash/redis)
7
+ ![npm bundle size](https://img.shields.io/bundlephobia/minzip/@upstash/redis)
8
8
 
9
9
  It is the only connectionless (HTTP based) Redis client and designed for:
10
10
 
@@ -23,13 +23,13 @@ See [the list of APIs](https://docs.upstash.com/features/restapi#rest---redis-ap
23
23
  ### Install
24
24
 
25
25
  ```bash
26
- npm install upstash-redis
26
+ npm install @upstash/redis
27
27
  ```
28
28
 
29
29
  ### Usage with Callback Style
30
30
 
31
31
  ```typescript
32
- import upstash from 'upstash-redis';
32
+ import upstash from '@upstash/redis';
33
33
 
34
34
  const redis = upstash('UPSTASH_REDIS_REST_URL', 'UPSTASH_REDIS_REST_TOKEN');
35
35
 
@@ -44,7 +44,7 @@ redis.get('key', function ({ data, error }) {
44
44
  ### Usage with async/await (Promise)
45
45
 
46
46
  ```typescript
47
- import upstash from 'upstash-redis';
47
+ import upstash from '@upstash/redis';
48
48
 
49
49
  const redis = upstash('UPSTASH_REDIS_REST_URL', 'UPSTASH_REDIS_REST_TOKEN');
50
50
 
@@ -62,7 +62,7 @@ const redis = upstash('UPSTASH_REDIS_REST_URL', 'UPSTASH_REDIS_REST_TOKEN');
62
62
  If you define `UPSTASH_REDIS_REST_URL` and` UPSTASH_REDIS_REST_TOKEN` environment variables, you can run the Redis commands directly.
63
63
 
64
64
  ```typescript
65
- import { get } from 'upstash-redis';
65
+ import { get } from '@upstash/redis';
66
66
 
67
67
  (async () => {
68
68
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@upstash/redis",
3
- "version": "0.1.0-beta.1",
3
+ "version": "0.1.1",
4
4
  "description": "An HTTP/REST based Redis client built on top of Upstash REST API.",
5
5
  "author": "Adem ilter <adem@upstash.com>",
6
6
  "license": "MIT",
@@ -20,8 +20,7 @@
20
20
  "size": "size-limit"
21
21
  },
22
22
  "dependencies": {
23
- "isomorphic-unfetch": "^3.1.0",
24
- "url-regex": "^5.0.0"
23
+ "isomorphic-unfetch": "^3.1.0"
25
24
  },
26
25
  "devDependencies": {
27
26
  "@size-limit/preset-small-lib": "^5.0.3",