Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose request analysis props #474

Closed
davidmytton opened this issue Mar 29, 2024 · 1 comment · Fixed by #510 or #460
Closed

Expose request analysis props #474

davidmytton opened this issue Mar 29, 2024 · 1 comment · Fixed by #510 or #460
Assignees
Labels
enhancement New feature or request

Comments

@davidmytton
Copy link
Contributor

Once https://github.com/arcjet/arcjet/pull/1639 is finalized as part of https://github.com/arcjet/arcjet/issues/1600 we need to expose the new analysis fields to the SDK in the decision.

@davidmytton davidmytton added the enhancement New feature or request label Mar 31, 2024
@trunk-io trunk-io bot closed this as completed in #510 Apr 8, 2024
trunk-io bot pushed a commit that referenced this issue Apr 8, 2024
This adds IP information to a decision as the `ip` field. Included are some helpful utilities that refine the type.

Closes #474
trunk-io bot pushed a commit that referenced this issue Apr 8, 2024
🤖 I have created a release *beep* *boop*
---


<details><summary>@arcjet/decorate: 1.0.0-alpha.11</summary>

## [1.0.0-alpha.11](https://github.com/arcjet/arcjet-js/compare/v1.0.0-alpha.10...@arcjet/decorate-v1.0.0-alpha.11) (2024-04-08)


### 📦 Dependencies

* **dev:** Bump @rollup/wasm-node from 4.13.0 to 4.13.2 ([#472](#472)) ([0268e51](0268e51))
* **dev:** Bump @rollup/wasm-node from 4.13.2 to 4.14.0 ([#493](#493)) ([ac14f3f](ac14f3f))
* **dev:** Bump @rollup/wasm-node from 4.14.0 to 4.14.1 ([#519](#519)) ([f859c0e](f859c0e))
* **dev:** Bump typescript from 5.4.2 to 5.4.3 ([#412](#412)) ([a69b76b](a69b76b))
* **dev:** Bump typescript from 5.4.3 to 5.4.4 ([#509](#509)) ([8976fb1](8976fb1))


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @arcjet/logger bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * @arcjet/protocol bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
  * devDependencies
    * @arcjet/eslint-config bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * @arcjet/rollup-config bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * @arcjet/tsconfig bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
</details>

<details><summary>@arcjet/duration: 1.0.0-alpha.11</summary>

## [1.0.0-alpha.11](https://github.com/arcjet/arcjet-js/compare/v1.0.0-alpha.10...@arcjet/duration-v1.0.0-alpha.11) (2024-04-08)


### 📦 Dependencies

* **dev:** Bump @rollup/wasm-node from 4.13.0 to 4.13.2 ([#472](#472)) ([0268e51](0268e51))
* **dev:** Bump @rollup/wasm-node from 4.13.2 to 4.14.0 ([#493](#493)) ([ac14f3f](ac14f3f))
* **dev:** Bump @rollup/wasm-node from 4.14.0 to 4.14.1 ([#519](#519)) ([f859c0e](f859c0e))
* **dev:** Bump typescript from 5.4.2 to 5.4.3 ([#412](#412)) ([a69b76b](a69b76b))
* **dev:** Bump typescript from 5.4.3 to 5.4.4 ([#509](#509)) ([8976fb1](8976fb1))


### Dependencies

* The following workspace dependencies were updated
  * devDependencies
    * @arcjet/eslint-config bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * @arcjet/rollup-config bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * @arcjet/tsconfig bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
</details>

<details><summary>@arcjet/next: 1.0.0-alpha.11</summary>

## [1.0.0-alpha.11](https://github.com/arcjet/arcjet-js/compare/v1.0.0-alpha.10...@arcjet/next-v1.0.0-alpha.11) (2024-04-08)


### 📦 Dependencies

* **dev:** Bump @rollup/wasm-node from 4.13.0 to 4.13.2 ([#472](#472)) ([0268e51](0268e51))
* **dev:** Bump @rollup/wasm-node from 4.13.2 to 4.14.0 ([#493](#493)) ([ac14f3f](ac14f3f))
* **dev:** Bump @rollup/wasm-node from 4.14.0 to 4.14.1 ([#519](#519)) ([f859c0e](f859c0e))
* **dev:** Bump typescript from 5.4.2 to 5.4.3 ([#412](#412)) ([a69b76b](a69b76b))
* **dev:** Bump typescript from 5.4.3 to 5.4.4 ([#509](#509)) ([8976fb1](8976fb1))


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @arcjet/ip bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * arcjet bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
  * devDependencies
    * @arcjet/eslint-config bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * @arcjet/rollup-config bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * @arcjet/tsconfig bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
</details>

<details><summary>@arcjet/node: 1.0.0-alpha.11</summary>

## [1.0.0-alpha.11](https://github.com/arcjet/arcjet-js/compare/v1.0.0-alpha.10...@arcjet/node-v1.0.0-alpha.11) (2024-04-08)


### 📦 Dependencies

* **dev:** Bump @rollup/wasm-node from 4.13.0 to 4.13.2 ([#472](#472)) ([0268e51](0268e51))
* **dev:** Bump @rollup/wasm-node from 4.13.2 to 4.14.0 ([#493](#493)) ([ac14f3f](ac14f3f))
* **dev:** Bump @rollup/wasm-node from 4.14.0 to 4.14.1 ([#519](#519)) ([f859c0e](f859c0e))
* **dev:** Bump typescript from 5.4.2 to 5.4.3 ([#412](#412)) ([a69b76b](a69b76b))
* **dev:** Bump typescript from 5.4.3 to 5.4.4 ([#509](#509)) ([8976fb1](8976fb1))


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @arcjet/ip bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * arcjet bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
  * devDependencies
    * @arcjet/eslint-config bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * @arcjet/rollup-config bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * @arcjet/tsconfig bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
</details>

<details><summary>@arcjet/analyze: 1.0.0-alpha.11</summary>

## [1.0.0-alpha.11](https://github.com/arcjet/arcjet-js/compare/v1.0.0-alpha.10...@arcjet/analyze-v1.0.0-alpha.11) (2024-04-08)


### 📦 Dependencies

* **dev:** Bump @bytecodealliance/jco from 1.0.3 to 1.1.1 ([#473](#473)) ([4584fe4](4584fe4))
* **dev:** Bump @rollup/wasm-node from 4.13.0 to 4.13.2 ([#472](#472)) ([0268e51](0268e51))
* **dev:** Bump @rollup/wasm-node from 4.13.2 to 4.14.0 ([#493](#493)) ([ac14f3f](ac14f3f))
* **dev:** Bump @rollup/wasm-node from 4.14.0 to 4.14.1 ([#519](#519)) ([f859c0e](f859c0e))
* **dev:** Bump typescript from 5.4.2 to 5.4.3 ([#412](#412)) ([a69b76b](a69b76b))
* **dev:** Bump typescript from 5.4.3 to 5.4.4 ([#509](#509)) ([8976fb1](8976fb1))


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @arcjet/logger bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
  * devDependencies
    * @arcjet/eslint-config bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * @arcjet/rollup-config bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * @arcjet/tsconfig bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
</details>

<details><summary>@arcjet/eslint-config: 1.0.0-alpha.11</summary>

## [1.0.0-alpha.11](https://github.com/arcjet/arcjet-js/compare/v1.0.0-alpha.10...@arcjet/eslint-config-v1.0.0-alpha.11) (2024-04-08)


### 📦 Dependencies

* Bump eslint-config-next from 14.1.3 to 14.1.4 ([#403](#403)) ([119245b](119245b))
* Bump eslint-config-turbo from 1.12.5 to 1.13.2 ([#488](#488)) ([b6ab105](b6ab105))
* Bump eslint-plugin-react from 7.34.0 to 7.34.1 ([#388](#388)) ([5ff4950](5ff4950))
</details>

<details><summary>@arcjet/ip: 1.0.0-alpha.11</summary>

## [1.0.0-alpha.11](https://github.com/arcjet/arcjet-js/compare/v1.0.0-alpha.10...@arcjet/ip-v1.0.0-alpha.11) (2024-04-08)


### 📦 Dependencies

* **dev:** Bump @rollup/wasm-node from 4.13.0 to 4.13.2 ([#472](#472)) ([0268e51](0268e51))
* **dev:** Bump @rollup/wasm-node from 4.13.2 to 4.14.0 ([#493](#493)) ([ac14f3f](ac14f3f))
* **dev:** Bump @rollup/wasm-node from 4.14.0 to 4.14.1 ([#519](#519)) ([f859c0e](f859c0e))
* **dev:** Bump typescript from 5.4.2 to 5.4.3 ([#412](#412)) ([a69b76b](a69b76b))
* **dev:** Bump typescript from 5.4.3 to 5.4.4 ([#509](#509)) ([8976fb1](8976fb1))


### Dependencies

* The following workspace dependencies were updated
  * devDependencies
    * @arcjet/eslint-config bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * @arcjet/rollup-config bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * @arcjet/tsconfig bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
</details>

<details><summary>@arcjet/logger: 1.0.0-alpha.11</summary>

## [1.0.0-alpha.11](https://github.com/arcjet/arcjet-js/compare/v1.0.0-alpha.10...@arcjet/logger-v1.0.0-alpha.11) (2024-04-08)


### 📦 Dependencies

* **dev:** Bump @rollup/wasm-node from 4.13.0 to 4.13.2 ([#472](#472)) ([0268e51](0268e51))
* **dev:** Bump @rollup/wasm-node from 4.13.2 to 4.14.0 ([#493](#493)) ([ac14f3f](ac14f3f))
* **dev:** Bump @rollup/wasm-node from 4.14.0 to 4.14.1 ([#519](#519)) ([f859c0e](f859c0e))
* **dev:** Bump typescript from 5.4.2 to 5.4.3 ([#412](#412)) ([a69b76b](a69b76b))
* **dev:** Bump typescript from 5.4.3 to 5.4.4 ([#509](#509)) ([8976fb1](8976fb1))


### Dependencies

* The following workspace dependencies were updated
  * devDependencies
    * @arcjet/eslint-config bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * @arcjet/rollup-config bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * @arcjet/tsconfig bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
</details>

<details><summary>@arcjet/protocol: 1.0.0-alpha.11</summary>

## [1.0.0-alpha.11](https://github.com/arcjet/arcjet-js/compare/v1.0.0-alpha.10...@arcjet/protocol-v1.0.0-alpha.11) (2024-04-08)


### 🚀 New Features

* Add ArcjetIpDetails to an ArcjetDecision ([#510](#510)) ([0642c51](0642c51)), closes [#474](#474)


### 📦 Dependencies

* Bump @bufbuild/protobuf from 1.7.2 to 1.8.0 ([#377](#377)) ([5253740](5253740))
* **dev:** Bump @rollup/wasm-node from 4.13.0 to 4.13.2 ([#472](#472)) ([0268e51](0268e51))
* **dev:** Bump @rollup/wasm-node from 4.13.2 to 4.14.0 ([#493](#493)) ([ac14f3f](ac14f3f))
* **dev:** Bump @rollup/wasm-node from 4.14.0 to 4.14.1 ([#519](#519)) ([f859c0e](f859c0e))
* **dev:** Bump typescript from 5.4.2 to 5.4.3 ([#412](#412)) ([a69b76b](a69b76b))
* **dev:** Bump typescript from 5.4.3 to 5.4.4 ([#509](#509)) ([8976fb1](8976fb1))


### Dependencies

* The following workspace dependencies were updated
  * devDependencies
    * @arcjet/eslint-config bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * @arcjet/rollup-config bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * @arcjet/tsconfig bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
</details>

<details><summary>@arcjet/rollup-config: 1.0.0-alpha.11</summary>

## [1.0.0-alpha.11](https://github.com/arcjet/arcjet-js/compare/v1.0.0-alpha.10...@arcjet/rollup-config-v1.0.0-alpha.11) (2024-04-08)


### 📦 Dependencies

* **dev:** Bump @rollup/wasm-node from 4.13.0 to 4.13.2 ([#472](#472)) ([0268e51](0268e51))
* **dev:** Bump @rollup/wasm-node from 4.13.2 to 4.14.0 ([#493](#493)) ([ac14f3f](ac14f3f))
* **dev:** Bump @rollup/wasm-node from 4.14.0 to 4.14.1 ([#519](#519)) ([f859c0e](f859c0e))
* **dev:** Bump typescript from 5.4.2 to 5.4.3 ([#412](#412)) ([a69b76b](a69b76b))
* **dev:** Bump typescript from 5.4.3 to 5.4.4 ([#509](#509)) ([8976fb1](8976fb1))


### Dependencies

* The following workspace dependencies were updated
  * devDependencies
    * @arcjet/eslint-config bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * @arcjet/tsconfig bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
</details>

<details><summary>@arcjet/tsconfig: 1.0.0-alpha.11</summary>

## [1.0.0-alpha.11](https://github.com/arcjet/arcjet-js/compare/v1.0.0-alpha.10...@arcjet/tsconfig-v1.0.0-alpha.11) (2024-04-08)


### 🧹 Miscellaneous Chores

* **@arcjet/tsconfig:** Synchronize arcjet-js versions
</details>

<details><summary>arcjet: 1.0.0-alpha.11</summary>

## [1.0.0-alpha.11](v1.0.0-alpha.10...arcjet-v1.0.0-alpha.11) (2024-04-08)


### 📦 Dependencies

* **dev:** Bump @rollup/wasm-node from 4.13.0 to 4.13.2 ([#472](#472)) ([0268e51](0268e51))
* **dev:** Bump @rollup/wasm-node from 4.13.2 to 4.14.0 ([#493](#493)) ([ac14f3f](ac14f3f))
* **dev:** Bump @rollup/wasm-node from 4.14.0 to 4.14.1 ([#519](#519)) ([f859c0e](f859c0e))
* **dev:** Bump typescript from 5.4.2 to 5.4.3 ([#412](#412)) ([a69b76b](a69b76b))
* **dev:** Bump typescript from 5.4.3 to 5.4.4 ([#509](#509)) ([8976fb1](8976fb1))


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @arcjet/analyze bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * @arcjet/duration bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * @arcjet/logger bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * @arcjet/protocol bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
  * devDependencies
    * @arcjet/eslint-config bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * @arcjet/rollup-config bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * @arcjet/tsconfig bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
</details>

<details><summary>1.0.0-alpha.11</summary>

## [1.0.0-alpha.11](v1.0.0-alpha.10...v1.0.0-alpha.11) (2024-04-08)


### 🚀 New Features

* Add ArcjetIpDetails to an ArcjetDecision ([#510](#510)) ([0642c51](0642c51)), closes [#474](#474)


### 📦 Dependencies

* Bump @bufbuild/protobuf from 1.7.2 to 1.8.0 ([#377](#377)) ([5253740](5253740))
* Bump eslint-config-next from 14.1.3 to 14.1.4 ([#403](#403)) ([119245b](119245b))
* Bump eslint-config-turbo from 1.12.5 to 1.13.2 ([#488](#488)) ([b6ab105](b6ab105))
* Bump eslint-plugin-react from 7.34.0 to 7.34.1 ([#388](#388)) ([5ff4950](5ff4950))
* Bump undici from 5.28.3 to 5.28.4 ([#505](#505)) ([0ffa608](0ffa608))
* **dev:** Bump @bytecodealliance/jco from 1.0.3 to 1.1.1 ([#473](#473)) ([4584fe4](4584fe4))
* **dev:** Bump @rollup/wasm-node from 4.13.0 to 4.13.2 ([#472](#472)) ([0268e51](0268e51))
* **dev:** Bump @rollup/wasm-node from 4.13.2 to 4.14.0 ([#493](#493)) ([ac14f3f](ac14f3f))
* **dev:** Bump @rollup/wasm-node from 4.14.0 to 4.14.1 ([#519](#519)) ([f859c0e](f859c0e))
* **dev:** Bump typescript from 5.4.2 to 5.4.3 ([#412](#412)) ([a69b76b](a69b76b))
* **dev:** Bump typescript from 5.4.3 to 5.4.4 ([#509](#509)) ([8976fb1](8976fb1))
* **example:** Bump express from 4.18.3 to 4.19.2 in /examples/nodejs-express-rl ([#459](#459)) ([ee1af9d](ee1af9d))
* **example:** Bump express from 4.18.3 to 4.19.2 in /examples/nodejs-express-validate-email ([#461](#461)) ([d45953e](d45953e))
* **example:** Bump the dependencies group in /examples/nextjs-13-pages-wrap with 2 updates ([#504](#504)) ([ebe7548](ebe7548))
* **example:** Bump the dependencies group in /examples/nextjs-13-pages-wrap with 6 updates ([#462](#462)) ([7e7affe](7e7affe))
* **example:** Bump the dependencies group in /examples/nextjs-14-app-dir-rl with 2 updates ([#498](#498)) ([c30357f](c30357f))
* **example:** Bump the dependencies group in /examples/nextjs-14-app-dir-rl with 7 updates ([#463](#463)) ([6181c38](6181c38))
* **example:** Bump the dependencies group in /examples/nextjs-14-app-dir-validate-email with 2 updates ([#496](#496)) ([67031c3](67031c3))
* **example:** Bump the dependencies group in /examples/nextjs-14-app-dir-validate-email with 7 updates ([#466](#466)) ([3a45ae4](3a45ae4))
* **example:** Bump the dependencies group in /examples/nextjs-14-authjs-5 with 4 updates ([#495](#495)) ([b9b3c3b](b9b3c3b))
* **example:** Bump the dependencies group in /examples/nextjs-14-clerk-rl with 8 updates ([#506](#506)) ([3635c13](3635c13))
* **example:** Bump the dependencies group in /examples/nextjs-14-clerk-shield with 8 updates ([#507](#507)) ([f2c5c94](f2c5c94))
* **example:** Bump the dependencies group in /examples/nextjs-14-decorate with 2 updates ([#500](#500)) ([8bb40cc](8bb40cc))
* **example:** Bump the dependencies group in /examples/nextjs-14-decorate with 7 updates ([#465](#465)) ([b13a8e6](b13a8e6))
* **example:** Bump the dependencies group in /examples/nextjs-14-nextauth-4 with 2 updates ([#502](#502)) ([f4b24b5](f4b24b5))
* **example:** Bump the dependencies group in /examples/nextjs-14-nextauth-4 with 7 updates ([#468](#468)) ([6ab6cdb](6ab6cdb))
* **example:** Bump the dependencies group in /examples/nextjs-14-openai with 4 updates ([#501](#501)) ([cde203b](cde203b))
* **example:** Bump the dependencies group in /examples/nextjs-14-openai with 9 updates ([#467](#467)) ([f3d785e](f3d785e))
* **example:** Bump the dependencies group in /examples/nextjs-14-pages-wrap with 7 updates ([#503](#503)) ([cfb84e1](cfb84e1))
* **example:** Bump the dependencies group in /examples/nextjs-example with 1 update ([#402](#402)) ([79911af](79911af))
* **example:** Bump the dependencies group in /examples/nodejs-express-rl with 1 update ([#438](#438)) ([da12423](da12423))


### 📝 Documentation

* **examples:** Added Auth.js 5 example app ([#432](#432)) ([b7a1901](b7a1901))
* **examples:** Added NextAuth 4 example app ([#423](#423)) ([b218ebd](b218ebd))


### 🧹 Miscellaneous Chores

* **ci:** Add the NextAuth 4 example to CI ([#471](#471)) ([a3ad83a](a3ad83a))
* Refresh root README + LICENSE ([#494](#494)) ([6f6da30](6f6da30))
</details>

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
@davidmytton
Copy link
Contributor Author

Docs are now live: Next.js and Node.js.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants