@authhero/drizzle 0.46.0 → 0.47.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.
@@ -0,0 +1,4 @@
1
+ ALTER TABLE `clients` ADD `disable_sign_ups` integer DEFAULT 0 NOT NULL;--> statement-breakpoint
2
+ ALTER TABLE `clients` ADD `hide_sign_up_disabled_error` integer DEFAULT 0 NOT NULL;--> statement-breakpoint
3
+ UPDATE `clients` SET `disable_sign_ups` = 1, `client_metadata` = json_remove(`client_metadata`, '$.disable_sign_ups') WHERE json_extract(`client_metadata`, '$.disable_sign_ups') = 'true';--> statement-breakpoint
4
+ UPDATE `clients` SET `client_metadata` = json_remove(`client_metadata`, '$.disable_sign_ups') WHERE json_extract(`client_metadata`, '$.disable_sign_ups') IS NOT NULL;
@@ -15,6 +15,13 @@
15
15
  "when": 1778477498497,
16
16
  "tag": "0001_branding_dark_mode",
17
17
  "breakpoints": true
18
+ },
19
+ {
20
+ "idx": 2,
21
+ "version": "6",
22
+ "when": 1778800000000,
23
+ "tag": "0002_client_disable_sign_ups",
24
+ "breakpoints": true
18
25
  }
19
26
  ]
20
27
  }
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.46.0",
14
+ "version": "0.47.0",
15
15
  "files": [
16
16
  "dist",
17
17
  "src/schema",
@@ -34,7 +34,7 @@
34
34
  "dependencies": {
35
35
  "drizzle-orm": "^0.44.2",
36
36
  "nanoid": "^5.0.8",
37
- "@authhero/adapter-interfaces": "1.18.0"
37
+ "@authhero/adapter-interfaces": "1.19.0"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@hono/zod-openapi": "^0.19.2",
@@ -73,6 +73,10 @@ export const clients = sqliteTable(
73
73
  require_proof_of_possession: integer("require_proof_of_possession")
74
74
  .notNull()
75
75
  .default(0),
76
+ disable_sign_ups: integer("disable_sign_ups").notNull().default(0),
77
+ hide_sign_up_disabled_error: integer("hide_sign_up_disabled_error")
78
+ .notNull()
79
+ .default(0),
76
80
  signed_request_object: text("signed_request_object").notNull(),
77
81
  compliance_level: text("compliance_level", { length: 64 }),
78
82
  par_request_expiry: integer("par_request_expiry"),