Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding support for Vue Formulate 2.5.x #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -513,11 +513,11 @@ var script$1 = {
new Set(Object.keys(values).concat(Object.keys(this.proxy)))
);
keys.forEach((field) => {
if (!utils_js.shallowEqualObjects(values[field], this.proxy[field])) {
if (!utils_js.equals(values[field], this.proxy[field])) {
this.setFieldValue(field, values[field]);
if (
this.registry.has(field) &&
!utils_js.shallowEqualObjects(
!utils_js.equals(
values[field],
this.registry.get(field).proxy
)
Expand Down
2 changes: 1 addition & 1 deletion lib/vue-formulate-extended.esm.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions lib/vue-formulate-extended.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/vue-formulate-extended.umd.js

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
"test:unit:watch": "vue-cli-service test:unit --coverage --watch"
},
"peerDependencies": {
"@braid/vue-formulate": "2.4.3",
"imask": "^6.0.5",
"vue": "^2.6.11"
"@braid/vue-formulate": "2.5.2",
"imask": "^6.0.7",
"vue": "^2.6.12"
},
"devDependencies": {
"@braid/vue-formulate": "2.4.3",
"@braid/vue-formulate": "2.5.2",
"@rollup/plugin-buble": "^0.21.3",
"@rollup/plugin-commonjs": "^13.0.0",
"@rollup/plugin-node-resolve": "^8.1.0",
Expand All @@ -33,18 +33,18 @@
"@vue/cli-service": "^4.4.6",
"@vue/test-utils": "^1.0.3",
"flush-promises": "^1.0.2",
"imask": "^6.0.5",
"imask": "^6.0.7",
"node-sass": "^4.14.1",
"rollup": "^2.18.1",
"rollup-plugin-auto-external": "^2.0.0",
"rollup-plugin-internal": "^1.0.4",
"rollup-plugin-terser": "^6.1.0",
"rollup-plugin-vue": "^5.1.9",
"sass-loader": "^8.0.2",
"vue": "^2.6.11",
"vue-template-compiler": "^2.6.11"
"vue": "^2.6.12",
"vue-template-compiler": "^2.6.12"
},
"dependencies": {
"@vue/composition-api": "0.6.7"
"@vue/composition-api": "1.0.0-rc.8"
}
}
6 changes: 3 additions & 3 deletions src/components/FormulateForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</template>

<script>
import { shallowEqualObjects } from "@braid/vue-formulate/src/libs/utils.js";
import { equals } from "@braid/vue-formulate/src/libs/utils.js";
import Formulate from "@braid/vue-formulate";

import { Hooks } from "../libs/hooks.js";
Expand Down Expand Up @@ -54,11 +54,11 @@ export default {
new Set(Object.keys(values).concat(Object.keys(this.proxy)))
);
keys.forEach((field) => {
if (!shallowEqualObjects(values[field], this.proxy[field])) {
if (!equals(values[field], this.proxy[field])) {
this.setFieldValue(field, values[field]);
if (
this.registry.has(field) &&
!shallowEqualObjects(
!equals(
values[field],
this.registry.get(field).proxy
)
Expand Down