@xylex-group/better-auth-athena 1.0.4 → 1.0.6
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/CONTRIBUTING.md +17 -0
- package/README.md +1 -1
- package/dist/index.cjs +466 -295
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +467 -298
- package/dist/index.js.map +1 -1
- package/package.json +4 -5
package/CONTRIBUTING.md
CHANGED
|
@@ -16,6 +16,23 @@ Thanks for taking the time to contribute to **better-auth-athena**!
|
|
|
16
16
|
npm run build
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
+
## Real database e2e tests
|
|
20
|
+
|
|
21
|
+
Integration tests run every adapter method (create, update, updateMany, delete, deleteMany, findOne, findMany, count) against a live Athena gateway and database. They are **skipped** unless `ATHENA_URL` and `ATHENA_API_KEY` are set.
|
|
22
|
+
|
|
23
|
+
To run them:
|
|
24
|
+
|
|
25
|
+
1. Create the test table (run the SQL in `tests/fixtures/athena_adapter_e2e.sql`) on the database your Athena gateway uses. The tests use client `athena-logging` and table `athena_adapter_e2e`.
|
|
26
|
+
2. Set environment variables:
|
|
27
|
+
```bash
|
|
28
|
+
export ATHENA_URL="https://mirror2.athena-db.com"
|
|
29
|
+
export ATHENA_API_KEY="x"
|
|
30
|
+
```
|
|
31
|
+
3. Run the real e2e suite:
|
|
32
|
+
```bash
|
|
33
|
+
pnpm test -- athenaAdapter.real.e2e
|
|
34
|
+
```
|
|
35
|
+
|
|
19
36
|
## Pull Requests
|
|
20
37
|
|
|
21
38
|
- Keep changes focused and scoped to a single issue.
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# better-auth-athena
|
|
2
2
|
|
|
3
|
-
current version: `1.0.
|
|
3
|
+
current version: `1.0.6`
|
|
4
4
|
A Better-Auth database adapter for the `@xylex-group/athena` gateway. It lets Better-Auth read and write data through Athena while keeping column names in `snake_case` as required by the gateway.
|
|
5
5
|
|
|
6
6
|
## Installation
|