rads-db 3.0.78 → 3.0.79

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/index.cjs CHANGED
@@ -888,7 +888,7 @@ function getRadsDbMethods(key, computedContext, driverInstance) {
888
888
  result2.id = uuid.v4();
889
889
  for (const [fieldName, field] of Object.entries(type.fields)) {
890
890
  if (field.defaultValue)
891
- result2[fieldName] = field.defaultValue;
891
+ result2[fieldName] = ___default.cloneDeep(field.defaultValue);
892
892
  if (field.defaultValueClass)
893
893
  result2[fieldName] = construct(field.defaultValueClass);
894
894
  }
package/dist/index.mjs CHANGED
@@ -881,7 +881,7 @@ function getRadsDbMethods(key, computedContext, driverInstance) {
881
881
  result2.id = v4();
882
882
  for (const [fieldName, field] of Object.entries(type.fields)) {
883
883
  if (field.defaultValue)
884
- result2[fieldName] = field.defaultValue;
884
+ result2[fieldName] = _.cloneDeep(field.defaultValue);
885
885
  if (field.defaultValueClass)
886
886
  result2[fieldName] = construct(field.defaultValueClass);
887
887
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rads-db",
3
- "version": "3.0.78",
3
+ "version": "3.0.79",
4
4
  "packageManager": "pnpm@8.6.1",
5
5
  "description": "Say goodbye to boilerplate code and hello to efficient and elegant syntax.",
6
6
  "author": "",