@fibery/views 10.2.0 → 10.3.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/lib/views.js +10 -16
- package/package.json +3 -3
package/lib/views.js
CHANGED
|
@@ -153,23 +153,17 @@ const migrateUnit = (schema, fromType, unit, units) => {
|
|
|
153
153
|
type,
|
|
154
154
|
expression
|
|
155
155
|
} = unit;
|
|
156
|
-
if (type === "date") {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
type: "date-time"
|
|
162
|
-
};
|
|
163
|
-
}
|
|
156
|
+
if (type === "date-time") {
|
|
157
|
+
return {
|
|
158
|
+
...unit,
|
|
159
|
+
type: "date"
|
|
160
|
+
};
|
|
164
161
|
}
|
|
165
|
-
if (type === "date-range") {
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
type: "date-time-range"
|
|
171
|
-
};
|
|
172
|
-
}
|
|
162
|
+
if (type === "date-time-range") {
|
|
163
|
+
return {
|
|
164
|
+
...unit,
|
|
165
|
+
type: "date-range"
|
|
166
|
+
};
|
|
173
167
|
}
|
|
174
168
|
if (type === "text") {
|
|
175
169
|
const [field] = expression;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fibery/views",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.3.0",
|
|
4
4
|
"description": "Operations on view objects",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "Fibery",
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"jest-junit": "13.0.0",
|
|
19
19
|
"lodash": "4.17.21",
|
|
20
20
|
"microbundle": "0.15.1",
|
|
21
|
-
"@fibery/babel-preset": "7.4.0",
|
|
22
21
|
"@fibery/eslint-config": "8.6.0",
|
|
22
|
+
"@fibery/schema": "10.2.1",
|
|
23
23
|
"@fibery/expression-utils": "9.0.4",
|
|
24
|
-
"@fibery/
|
|
24
|
+
"@fibery/babel-preset": "7.4.0"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"@fibery/expression-utils": "^9.0.4",
|