@arcjet/astro 1.0.0 → 1.1.0-rc

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/README.md CHANGED
@@ -29,10 +29,12 @@ This is the [Arcjet][arcjet] SDK integration for [Astro][astro].
29
29
 
30
30
  Visit the [quick start guide][quick-start] to get started.
31
31
 
32
- ## Example app
32
+ ## Example
33
33
 
34
- Try an Arcjet protected app live at [https://example.arcjet.com][example-url]
35
- ([source code][example-source]).
34
+ Try an Arcjet protected Next.js app live at
35
+ [`example.arcjet.com`][example-next-url]
36
+ ([source code][example-next-source]).
37
+ See [`arcjet/example-astro`][example-astro-source] for an Astro example.
36
38
 
37
39
  ## What is this?
38
40
 
@@ -108,7 +110,8 @@ see the [Arcjet Astro SDK reference][arcjet-reference-astro] on our website.
108
110
  [arcjet-reference-astro]: https://docs.arcjet.com/reference/astro
109
111
  [arcjet]: https://arcjet.com
110
112
  [astro]: https://astro.build/
111
- [example-url]: https://example.arcjet.com
113
+ [example-astro-source]: https://github.com/arcjet/example-astro
114
+ [example-next-source]: https://github.com/arcjet/example-nextjs
115
+ [example-next-url]: https://example.arcjet.com
112
116
  [quick-start]: https://docs.arcjet.com/get-started/astro
113
- [example-source]: https://github.com/arcjet/arcjet-js-example
114
117
  [apache-license]: http://www.apache.org/licenses/LICENSE-2.0
package/index.d.ts CHANGED
@@ -43,7 +43,7 @@ export type ArcjetOptions<Characteristics extends readonly string[]> = {
43
43
  */
44
44
  rules: IntegrationRule<Characteristics>[];
45
45
  /**
46
- * Characteristics to track a user by (default: `["src.ip"]`).
46
+ * Characteristics to track a user by (default: `["ip.src"]`).
47
47
  *
48
48
  * Can also be passed to rules.
49
49
  */
package/internal.js CHANGED
@@ -3,7 +3,7 @@ export * from 'arcjet';
3
3
  import { readBodyWeb } from '@arcjet/body';
4
4
  import findIp, { parseProxy } from '@arcjet/ip';
5
5
  import { ArcjetHeaders } from '@arcjet/headers';
6
- import { baseUrl, isDevelopment, logLevel, platform } from '@arcjet/env';
6
+ import { logLevel, isDevelopment, baseUrl, platform } from '@arcjet/env';
7
7
  import { Logger } from '@arcjet/logger';
8
8
  import { createClient } from '@arcjet/protocol/client.js';
9
9
  import { createTransport } from '@arcjet/transport';
@@ -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.0.0";
43
+ const sdkVersion = "1.1.0-rc";
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.0.0",
3
+ "version": "1.1.0-rc",
4
4
  "description": "Arcjet helps developers protect their Astro sites in just a few lines of code. Bot detection. Rate limiting. Email validation. Attack protection. Data redaction. A developer-first approach to security.",
5
5
  "keywords": [
6
6
  "analyze",
@@ -46,29 +46,28 @@
46
46
  "scripts": {
47
47
  "build": "rollup --config rollup.config.js",
48
48
  "lint": "eslint .",
49
- "prepublishOnly": "npm run build",
50
49
  "test-api": "node --test -- test/*.test.js",
51
50
  "test-coverage": "node --experimental-test-coverage --test -- test/*.test.js",
52
51
  "test": "npm run build && npm run lint && npm run test-coverage"
53
52
  },
54
53
  "dependencies": {
55
- "@arcjet/body": "1.0.0",
56
- "@arcjet/env": "1.0.0",
57
- "@arcjet/headers": "1.0.0",
58
- "@arcjet/ip": "1.0.0",
59
- "@arcjet/logger": "1.0.0",
60
- "@arcjet/protocol": "1.0.0",
61
- "@arcjet/transport": "1.0.0",
62
- "arcjet": "1.0.0"
54
+ "@arcjet/body": "1.1.0-rc",
55
+ "@arcjet/env": "1.1.0-rc",
56
+ "@arcjet/headers": "1.1.0-rc",
57
+ "@arcjet/ip": "1.1.0-rc",
58
+ "@arcjet/logger": "1.1.0-rc",
59
+ "@arcjet/protocol": "1.1.0-rc",
60
+ "@arcjet/transport": "1.1.0-rc",
61
+ "arcjet": "1.1.0-rc"
63
62
  },
64
63
  "peerDependencies": {
65
64
  "astro": "^5.9.3"
66
65
  },
67
66
  "devDependencies": {
68
- "@arcjet/eslint-config": "1.0.0",
69
- "@arcjet/rollup-config": "1.0.0",
70
- "@rollup/wasm-node": "4.55.1",
71
- "astro": "5.16.9",
67
+ "@arcjet/eslint-config": "1.1.0-rc",
68
+ "@arcjet/rollup-config": "1.1.0-rc",
69
+ "@rollup/wasm-node": "4.57.0",
70
+ "astro": "5.16.15",
72
71
  "eslint": "9.39.2",
73
72
  "typescript": "5.9.3"
74
73
  },