@axium/server 0.36.4 → 0.36.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/dist/database.js CHANGED
@@ -695,7 +695,7 @@ function columnFromSchema(column, allowPK) {
695
695
  if (column.onDelete)
696
696
  col = col.onDelete(column.onDelete);
697
697
  if ('default' in column)
698
- col = col.defaultTo(column.default);
698
+ col = col.defaultTo(sql.raw(String(column.default)));
699
699
  if (column.check)
700
700
  col = col.check(sql.raw(column.check));
701
701
  return col;
@@ -738,7 +738,7 @@ export async function applyDelta(delta, forceAbort = false) {
738
738
  }
739
739
  for (const [colName, column] of Object.entries(tableDelta.alter_columns)) {
740
740
  if (column.default)
741
- await query.alterColumn(colName, col => col.setDefault(column.default)).execute();
741
+ await query.alterColumn(colName, col => col.setDefault(sql.raw(String(column.default)))).execute();
742
742
  if (column.type)
743
743
  await query.alterColumn(colName, col => col.setDataType(sql.raw(column.type))).execute();
744
744
  for (const op of column.ops ?? []) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axium/server",
3
- "version": "0.36.4",
3
+ "version": "0.36.6",
4
4
  "author": "James Prevett <axium@jamespre.dev>",
5
5
  "funding": {
6
6
  "type": "individual",
@@ -48,7 +48,7 @@
48
48
  },
49
49
  "peerDependencies": {
50
50
  "@axium/client": ">=0.13.0",
51
- "@axium/core": ">=0.19.6",
51
+ "@axium/core": ">=0.20.0",
52
52
  "kysely": "^0.28.0",
53
53
  "utilium": "^2.6.0",
54
54
  "zod": "^4.0.5"
@@ -3,7 +3,7 @@
3
3
  import { fetchAPI } from '@axium/client/requests';
4
4
  import '@axium/client/styles/list';
5
5
  import type { VerificationInternal } from '@axium/core';
6
- import { colorHash } from '@axium/core/color';
6
+ import { colorHashRGB } from '@axium/core/color';
7
7
 
8
8
  const { data } = $props();
9
9
  let users = $state(data.users);
@@ -18,7 +18,7 @@
18
18
 
19
19
  <h2>Users</h2>
20
20
 
21
- {#snippet attr(i: string, text: string, color: string = colorHash(text))}
21
+ {#snippet attr(i: string, text: string, color: string = colorHashRGB(text))}
22
22
  <span class="attribute" style:background-color={color}><Icon {i} />{text}</span>
23
23
  {/snippet}
24
24