@appwarden/middleware 1.4.0 → 1.4.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 +3 -7
  2. package/package.json +12 -8
package/README.md CHANGED
@@ -14,15 +14,11 @@
14
14
  - **Instant Quarantine**: Immediately redirects all visitors to a maintenance page when activated
15
15
  - **Discord Integration**: Trigger lockdowns via Discord commands (`/quarantine lock your.app.io`)
16
16
  - **Nonce-based Content Security Policy**: On Cloudflare, deploy a nonce-based Content Security Policy to supercharge your website security
17
-
18
- ### Performance Optimizations
19
-
20
- - **Background Synchronization**: Uses `waitUntil()` to update cache state without blocking responses
21
- - **Minimal Runtime Overhead**: Lightweight implementation with negligible performance impact
17
+ - **Minimal Runtime Overhead**: Negligible performance impact by using `event.waitUntil` for status checks
22
18
 
23
19
  ## Installation
24
20
 
25
- Compatible with websites powered by [Cloudflare](https://developers.cloudflare.com/pages/) or [Vercel](https://vercel.com).
21
+ Compatible with websites powered by [Cloudflare](https://developers.cloudflare.com/workers/static-assets/) or [Vercel](https://vercel.com).
26
22
 
27
23
  For detailed usage instructions, please refer to our [documentation](https://appwarden.io/docs).
28
24
 
@@ -111,7 +107,7 @@ pnpm test
111
107
 
112
108
  ## Security
113
109
 
114
- This package is published with npm provenance enabled, which provides a verifiable link between the published package and its source code. For more information, see [npm provenance documentation](https://docs.npmjs.com/generating-provenance-statements).
110
+ This package is published with npm trusted publishers, to prevent npm token exfiltration, and provenance enabled, which provides a verifiable link between the published package and its source code. For more information, see [npm provenance documentation](https://docs.npmjs.com/generating-provenance-statements).
115
111
 
116
112
  ## License
117
113
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appwarden/middleware",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "Instantly shut off access your app deployed on Cloudflare or Vercel",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -42,12 +42,12 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "@cloudflare/next-on-pages": "1.13.12",
45
- "@upstash/redis": "^1.34.0",
46
- "@vercel/edge-config": "^1.4.0",
47
- "zod": "^3.25.30"
45
+ "@upstash/redis": "^1.36.1",
46
+ "@vercel/edge-config": "^1.4.3",
47
+ "zod": "^3.25.76"
48
48
  },
49
49
  "peerDependencies": {
50
- "next": ">=13"
50
+ "next": ">=14"
51
51
  },
52
52
  "peerDependenciesMeta": {
53
53
  "next": {
@@ -56,10 +56,14 @@
56
56
  },
57
57
  "pnpm": {
58
58
  "overrides": {
59
- "undici@>=4.5.0 <5.28.5": ">=5.28.5",
60
- "esbuild@<=0.24.2": ">=0.25.0",
61
59
  "cookie@<0.7.0": ">=0.7.0",
62
- "undici@<5.29.0": ">=5.29.0"
60
+ "esbuild@<=0.24.2": ">=0.25.0",
61
+ "tar@<=7.5.2": ">=7.5.3",
62
+ "tar@<=7.5.3": ">=7.5.4",
63
+ "undici@<5.29.0": ">=5.29.0",
64
+ "undici@<6.23.0": ">=6.23.0",
65
+ "undici@>=4.5.0 <5.28.5": ">=5.28.5",
66
+ "path-to-regexp@>=4.0.0 <6.3.0": ">=6.3.0"
63
67
  }
64
68
  }
65
69
  }