auth 1.6.19 → 1.6.21

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/dist/api.mjs CHANGED
@@ -32,6 +32,7 @@ const generateDrizzleSchema = async ({ options, file, adapter }) => {
32
32
  });
33
33
  for (const tableKey in tables) {
34
34
  const table = tables[tableKey];
35
+ if (table.disableMigrations) continue;
35
36
  const modelName = getModelName(tableKey);
36
37
  const fields = table.fields;
37
38
  function getType(name, field) {
@@ -152,6 +153,7 @@ const generateDrizzleSchema = async ({ options, file, adapter }) => {
152
153
  let relationsString = "";
153
154
  for (const tableKey in tables) {
154
155
  const table = tables[tableKey];
156
+ if (table.disableMigrations) continue;
155
157
  const modelName = getModelName(tableKey);
156
158
  const oneRelations = [];
157
159
  const manyRelations = [];
@@ -385,6 +387,7 @@ const generatePrismaSchema = async ({ adapter, options, file }) => {
385
387
  }
386
388
  const schema = produceSchema(schemaPrisma, (builder) => {
387
389
  for (const table in tables) {
390
+ if (tables[table]?.disableMigrations) continue;
388
391
  const originalTableName = table;
389
392
  const customModelName = tables[table]?.modelName || table;
390
393
  const modelName = capitalizeFirstLetter(getModelName(customModelName));
package/dist/index.mjs CHANGED
@@ -602,6 +602,7 @@ const generateDrizzleSchema = async ({ options, file, adapter }) => {
602
602
  });
603
603
  for (const tableKey in tables) {
604
604
  const table = tables[tableKey];
605
+ if (table.disableMigrations) continue;
605
606
  const modelName = getModelName(tableKey);
606
607
  const fields = table.fields;
607
608
  function getType(name, field) {
@@ -722,6 +723,7 @@ const generateDrizzleSchema = async ({ options, file, adapter }) => {
722
723
  let relationsString = "";
723
724
  for (const tableKey in tables) {
724
725
  const table = tables[tableKey];
726
+ if (table.disableMigrations) continue;
725
727
  const modelName = getModelName(tableKey);
726
728
  const oneRelations = [];
727
729
  const manyRelations = [];
@@ -894,7 +896,7 @@ async function tryCatch(promise) {
894
896
  }
895
897
  }
896
898
  const generateSecretHash = () => {
897
- return Crypto.randomBytes(16).toString("hex");
899
+ return Crypto.randomBytes(32).toString("hex");
898
900
  };
899
901
  const spawnCommand = (cmd, cwd = process.cwd()) => new Promise((resolve, reject) => {
900
902
  const child = spawn(cmd, {
@@ -1040,6 +1042,7 @@ const generatePrismaSchema = async ({ adapter, options, file }) => {
1040
1042
  }
1041
1043
  const schema = produceSchema(schemaPrisma, (builder) => {
1042
1044
  for (const table in tables) {
1045
+ if (tables[table]?.disableMigrations) continue;
1043
1046
  const originalTableName = table;
1044
1047
  const customModelName = tables[table]?.modelName || table;
1045
1048
  const modelName = capitalizeFirstLetter(getModelName(customModelName));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auth",
3
- "version": "1.6.19",
3
+ "version": "1.6.21",
4
4
  "description": "The CLI for Better Auth",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -60,9 +60,9 @@
60
60
  "semver": "^7.7.4",
61
61
  "yocto-spinner": "^0.2.3",
62
62
  "zod": "^4.3.6",
63
- "@better-auth/core": "1.6.19",
64
- "@better-auth/telemetry": "1.6.19",
65
- "better-auth": "1.6.19"
63
+ "@better-auth/core": "1.6.21",
64
+ "@better-auth/telemetry": "1.6.21",
65
+ "better-auth": "1.6.21"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@types/better-sqlite3": "^7.6.13",
@@ -75,7 +75,7 @@
75
75
  "tsx": "^4.21.0",
76
76
  "type-fest": "^5.4.4",
77
77
  "typescript": "^5.9.3",
78
- "@better-auth/passkey": "1.6.19"
78
+ "@better-auth/passkey": "1.6.21"
79
79
  },
80
80
  "scripts": {
81
81
  "build": "tsdown",