@arcjet/astro 1.3.1 → 1.4.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.
Files changed (3) hide show
  1. package/README.md +1 -2
  2. package/internal.js +1 -1
  3. package/package.json +11 -11
package/README.md CHANGED
@@ -142,7 +142,7 @@ For the full reference, see the [Arcjet Astro SDK docs][arcjet-reference-astro].
142
142
 
143
143
  Detect and block prompt injection attacks — attempts to override your AI
144
144
  model's instructions — before they reach your model. Pass the user's message
145
- via `detectPromptInjectionMessage` on each `protect()` call. Tune sensitivity with the `threshold` parameter (0.0–1.0, default 0.5) — higher values are more conservative.
145
+ via `detectPromptInjectionMessage` on each `protect()` call.
146
146
 
147
147
  Configure in `astro.config.mjs`:
148
148
 
@@ -156,7 +156,6 @@ export default defineConfig({
156
156
  rules: [
157
157
  detectPromptInjection({
158
158
  mode: "LIVE", // Blocks requests. Use "DRY_RUN" to log only
159
- threshold: 0.5, // Score above which requests are blocked (default: 0.5)
160
159
  }),
161
160
  ],
162
161
  }),
package/internal.js CHANGED
@@ -40,7 +40,7 @@ function createRemoteClient(options) {
40
40
  // Transport is the HTTP client that the client uses to make requests.
41
41
  const transport = createTransport(url);
42
42
  const sdkStack = "ASTRO";
43
- const sdkVersion = "1.3.1";
43
+ const sdkVersion = "1.4.0";
44
44
  return createClient({
45
45
  transport,
46
46
  baseUrl: url,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcjet/astro",
3
- "version": "1.3.1",
3
+ "version": "1.4.0",
4
4
  "description": "Arcjet runtime security SDK for Astro — bot protection, rate limiting, prompt injection detection, PII blocking, and WAF",
5
5
  "keywords": [
6
6
  "ai",
@@ -58,21 +58,21 @@
58
58
  "test": "npm run build && npm run lint && npm run test-coverage"
59
59
  },
60
60
  "dependencies": {
61
- "@arcjet/body": "1.3.1",
62
- "@arcjet/env": "1.3.1",
63
- "@arcjet/headers": "1.3.1",
64
- "@arcjet/ip": "1.3.1",
65
- "@arcjet/logger": "1.3.1",
66
- "@arcjet/protocol": "1.3.1",
67
- "@arcjet/transport": "1.3.1",
68
- "arcjet": "1.3.1"
61
+ "@arcjet/body": "1.4.0",
62
+ "@arcjet/env": "1.4.0",
63
+ "@arcjet/headers": "1.4.0",
64
+ "@arcjet/ip": "1.4.0",
65
+ "@arcjet/logger": "1.4.0",
66
+ "@arcjet/protocol": "1.4.0",
67
+ "@arcjet/transport": "1.4.0",
68
+ "arcjet": "1.4.0"
69
69
  },
70
70
  "peerDependencies": {
71
71
  "astro": "^5.9.3 || ^6.0.0"
72
72
  },
73
73
  "devDependencies": {
74
- "@arcjet/eslint-config": "1.3.1",
75
- "@arcjet/rollup-config": "1.3.1",
74
+ "@arcjet/eslint-config": "1.4.0",
75
+ "@arcjet/rollup-config": "1.4.0",
76
76
  "@rollup/wasm-node": "4.59.0",
77
77
  "astro": "6.1.2",
78
78
  "eslint": "9.39.3",