remult 0.24.2-exp.1 → 0.25.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.
@@ -140,7 +140,7 @@ class MongoEntityDataProvider {
140
140
  for (const f of this.entity.fields) {
141
141
  if (!f.dbReadOnly && !f.isServerExpression) {
142
142
  if (keys.includes(f.key)) {
143
- newR[f.key] = f.valueConverter.toDb(data[f.key]);
143
+ newR[f.key] = toDb(f, data[f.key]);
144
144
  }
145
145
  }
146
146
  }
@@ -1,4 +1,5 @@
1
1
  export {};
2
+ //y1 - discuss limit and include queries
2
3
  //y1 - tried to upgrade vitest, nuxt tests are failing with loading uuid - sounds familiar?
3
4
  //y2 - from the crm-demo(https://crm-demo.up.railway.app/deals), after editing a deal: - _updateEntityBasedOnApi
4
5
  //y2 - Backend methods are transactions, it's not intuitive and maybe should be optional / opt in
@@ -123,3 +123,6 @@ export function createValidatorWithArgs(validate, defaultMessage) {
123
123
  },
124
124
  });
125
125
  }
126
+ //y1 - talk about the 3rd parameter as message
127
+ //y1 - talk about the changed signature breaking existing validations and preventing the usage of unique outside the normal flow
128
+ //y1 - talk about the defaultMessage value now being a function that get's too many arguments, that makes it's reuse that much harder
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remult",
3
- "version": "0.24.2-exp.1",
3
+ "version": "0.25.0",
4
4
  "description": "A CRUD framework for full-stack TypeScript",
5
5
  "homepage": "https://remult.dev",
6
6
  "repository": {
package/remult-mongo.js CHANGED
@@ -256,7 +256,7 @@ var MongoEntityDataProvider = /** @class */ (function () {
256
256
  f_1 = _e.value;
257
257
  if (!f_1.dbReadOnly && !f_1.isServerExpression) {
258
258
  if (keys.includes(f_1.key)) {
259
- newR[f_1.key] = f_1.valueConverter.toDb(data[f_1.key]);
259
+ newR[f_1.key] = toDb(f_1, data[f_1.key]);
260
260
  }
261
261
  }
262
262
  }
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //y1 - discuss limit and include queries
3
4
  //y1 - tried to upgrade vitest, nuxt tests are failing with loading uuid - sounds familiar?
4
5
  //y2 - from the crm-demo(https://crm-demo.up.railway.app/deals), after editing a deal: - _updateEntityBasedOnApi
5
6
  //y2 - Backend methods are transactions, it's not intuitive and maybe should be optional / opt in
package/src/validators.js CHANGED
@@ -195,3 +195,6 @@ function createValidatorWithArgs(validate, defaultMessage) {
195
195
  });
196
196
  }
197
197
  exports.createValidatorWithArgs = createValidatorWithArgs;
198
+ //y1 - talk about the 3rd parameter as message
199
+ //y1 - talk about the changed signature breaking existing validations and preventing the usage of unique outside the normal flow
200
+ //y1 - talk about the defaultMessage value now being a function that get's too many arguments, that makes it's reuse that much harder