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.
- package/esm/remult-mongo.js +1 -1
- package/esm/src/remult3/remult3.js +1 -0
- package/esm/src/validators.js +3 -0
- package/package.json +1 -1
- package/remult-mongo.js +1 -1
- package/src/remult3/remult3.js +1 -0
- package/src/validators.js +3 -0
package/esm/remult-mongo.js
CHANGED
|
@@ -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] =
|
|
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
|
package/esm/src/validators.js
CHANGED
|
@@ -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
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] =
|
|
259
|
+
newR[f_1.key] = toDb(f_1, data[f_1.key]);
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
262
|
}
|
package/src/remult3/remult3.js
CHANGED
|
@@ -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
|