@authhero/kysely-adapter 0.17.1 → 0.19.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.
@@ -9682,6 +9682,17 @@ const Hu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9682
9682
  __proto__: null,
9683
9683
  down: Gu,
9684
9684
  up: Qu
9685
+ }, Symbol.toStringTag, { value: "Module" }));
9686
+ async function Yu(t) {
9687
+ await t.schema.alterTable("logins").addColumn("authParams_act_as", "varchar(255)").execute();
9688
+ }
9689
+ async function Xu(t) {
9690
+ await t.schema.alterTable("logins").dropColumn("authParam_act_as").execute();
9691
+ }
9692
+ const eh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9693
+ __proto__: null,
9694
+ down: Xu,
9695
+ up: Yu
9685
9696
  }, Symbol.toStringTag, { value: "Module" })), Qr = {
9686
9697
  m1_init: Od,
9687
9698
  m2_magicLink: Id,
@@ -9745,9 +9756,10 @@ const Hu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9745
9756
  n60_users_metadata: Fu,
9746
9757
  n61_userLocales: Ku,
9747
9758
  n62_prompt: qu,
9748
- n63_connection_cleanup: Hu
9759
+ n63_connection_cleanup: Hu,
9760
+ n64_act_as: eh
9749
9761
  };
9750
- async function Xu(t, e = !1) {
9762
+ async function nh(t, e = !1) {
9751
9763
  e && console.log("migrating...");
9752
9764
  const n = new qr(Qr), r = new $r({
9753
9765
  db: t,
@@ -9760,7 +9772,7 @@ async function Xu(t, e = !1) {
9760
9772
  }), a)
9761
9773
  throw console.error("failed to migrate"), console.error(a), a;
9762
9774
  }
9763
- async function eh(t) {
9775
+ async function rh(t) {
9764
9776
  console.log("migrating...");
9765
9777
  const e = new qr(Qr), n = new $r({
9766
9778
  db: t,
@@ -9771,7 +9783,7 @@ async function eh(t) {
9771
9783
  }), r)
9772
9784
  throw console.error("failed to migrate"), console.error(r), r;
9773
9785
  }
9774
- function th(t) {
9786
+ function ah(t) {
9775
9787
  return {
9776
9788
  applications: Ti(t),
9777
9789
  branding: Qo(t),
@@ -9793,7 +9805,7 @@ function th(t) {
9793
9805
  };
9794
9806
  }
9795
9807
  export {
9796
- th as default,
9797
- eh as migrateDown,
9798
- Xu as migrateToLatest
9808
+ ah as default,
9809
+ rh as migrateDown,
9810
+ nh as migrateToLatest
9799
9811
  };
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "type": "git",
12
12
  "url": "https://github.com/markusahlstrand/authhero"
13
13
  },
14
- "version": "0.17.1",
14
+ "version": "0.19.0",
15
15
  "files": [
16
16
  "dist"
17
17
  ],
@@ -26,22 +26,29 @@
26
26
  }
27
27
  },
28
28
  "devDependencies": {
29
+ "@hono/zod-openapi": "^0.18.0",
29
30
  "@rollup/plugin-commonjs": "^28.0.1",
30
31
  "@rollup/plugin-node-resolve": "^15.3.0",
31
- "@types/node": "^22.8.6",
32
+ "@types/node": "^22.9.1",
33
+ "hono": "^4.6.11",
34
+ "kysely-bun-sqlite": "^0.3.2",
35
+ "kysely-planetscale": "^1.5.0",
32
36
  "dts-bundle-generator": "^9.5.1",
33
37
  "typescript": "^5.6.3",
34
- "vite": "^5.4.10",
35
- "vitest": "^2.1.4"
38
+ "vite": "^5.4.11",
39
+ "vitest": "^2.1.5",
40
+ "@authhero/adapter-interfaces": "^0.22.1"
36
41
  },
37
42
  "dependencies": {
43
+ "kysely": "^0.27.4",
44
+ "nanoid": "^5.0.8"
45
+ },
46
+ "peerDependencies": {
38
47
  "@hono/zod-openapi": "^0.16.4",
39
48
  "hono": "^4.6.8",
40
- "kysely": "^0.27.4",
41
49
  "kysely-bun-sqlite": "^0.3.2",
42
50
  "kysely-planetscale": "^1.5.0",
43
- "nanoid": "^5.0.8",
44
- "@authhero/adapter-interfaces": "^0.21.0"
51
+ "@authhero/adapter-interfaces": "^0.22.1"
45
52
  },
46
53
  "scripts": {
47
54
  "build": "tsc && vite build && dts-bundle-generator --config ./dts-bundle-generator.config.ts",