edge-throttle 0.0.0-stage → 1.0.0

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.
package/package.json CHANGED
@@ -1,6 +1,91 @@
1
1
  {
2
2
  "name": "edge-throttle",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.0.0",
4
+ "description": "Zero-dependency, multi-runtime rate-limiting library for Node.js, Bun, Deno, Cloudflare Workers, and Vercel Edge Runtime.",
5
+ "keywords": [
6
+ "rate-limit",
7
+ "ratelimit",
8
+ "throttle",
9
+ "edge",
10
+ "cloudflare-workers",
11
+ "vercel-edge",
12
+ "sliding-window",
13
+ "token-bucket",
14
+ "upstash",
15
+ "redis",
16
+ "zero-dependency"
17
+ ],
18
+ "license": "MIT",
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "git+https://github.com/PetheanRaj/edge-throttle.git"
22
+ },
23
+ "homepage": "https://github.com/PetheanRaj/edge-throttle#readme",
24
+ "bugs": {
25
+ "url": "https://github.com/PetheanRaj/edge-throttle/issues"
26
+ },
27
+ "type": "module",
28
+ "sideEffects": false,
29
+ "main": "./dist/index.cjs",
30
+ "module": "./dist/index.js",
31
+ "types": "./dist/index.d.ts",
32
+ "exports": {
33
+ ".": {
34
+ "types": "./dist/index.d.ts",
35
+ "import": "./dist/index.js",
36
+ "require": "./dist/index.cjs"
37
+ },
38
+ "./adapters/memory": {
39
+ "types": "./dist/adapters/memory.d.ts",
40
+ "import": "./dist/adapters/memory.js",
41
+ "require": "./dist/adapters/memory.cjs"
42
+ },
43
+ "./adapters/upstash": {
44
+ "types": "./dist/adapters/upstash.d.ts",
45
+ "import": "./dist/adapters/upstash.js",
46
+ "require": "./dist/adapters/upstash.cjs"
47
+ },
48
+ "./adapters/cloudflare-kv": {
49
+ "types": "./dist/adapters/cloudflare-kv.d.ts",
50
+ "import": "./dist/adapters/cloudflare-kv.js",
51
+ "require": "./dist/adapters/cloudflare-kv.cjs"
52
+ },
53
+ "./adapters/redis": {
54
+ "types": "./dist/adapters/redis.d.ts",
55
+ "import": "./dist/adapters/redis.js",
56
+ "require": "./dist/adapters/redis.cjs"
57
+ }
58
+ },
59
+ "files": [
60
+ "dist",
61
+ "README.md",
62
+ "LICENSE"
63
+ ],
64
+ "scripts": {
65
+ "build": "tsup",
66
+ "typecheck": "tsc --noEmit",
67
+ "test": "vitest run",
68
+ "test:watch": "vitest",
69
+ "prepublishOnly": "npm run typecheck && npm test && npm run build"
70
+ },
71
+ "peerDependencies": {
72
+ "ioredis": ">=5.0.0",
73
+ "redis": ">=4.0.0"
74
+ },
75
+ "peerDependenciesMeta": {
76
+ "ioredis": {
77
+ "optional": true
78
+ },
79
+ "redis": {
80
+ "optional": true
81
+ }
82
+ },
83
+ "devDependencies": {
84
+ "tsup": "^8.3.5",
85
+ "typescript": "^5.7.2",
86
+ "vitest": "^2.1.8"
87
+ },
88
+ "engines": {
89
+ "node": ">=20.0.0"
90
+ }
91
+ }