You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
introduce ValueNode.serialized.
introduce eb.valSerialized.
introduce sql.valSerialized.
fix json-traversal test suite.
fix null handling @ compiler.
rename to `valJson`.
add instructions in errors.
typings test inserts.
call the new type `Json` instead, to not introduce a breaking change.
add missing json column @ Getting Started.
add `appendSerializedValue`.
* A symbol that is used to brand serialized objects/arrays.
86
+
* @internal
87
+
*/
88
+
declareconstSerializedBrand: unique symbol
89
+
90
+
/**
91
+
* A type that is used to brand serialized objects/arrays.
92
+
*/
93
+
exporttypeSerialized<Oextendsobject|null>=O&{
94
+
readonly[SerializedBrand]: '⚠️ When you insert into or update columns of type `Json` (or similar), you should wrap your JSON value with `eb.valJson` or `sql.valJson`, instead of `JSON.stringify`. ⚠️'
95
+
}
96
+
70
97
/**
71
98
* A shortcut for defining JSON columns, which are by default inserted/updated
0 commit comments