Skip to content

Commit

Permalink
Merge branch 'release/1.1.7'
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Oberlehner committed Apr 24, 2018
2 parents 780f96e + e8a8557 commit 032bf63
Show file tree
Hide file tree
Showing 10 changed files with 1,794 additions and 1,630 deletions.
17 changes: 0 additions & 17 deletions .babelrc

This file was deleted.

6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,12 @@ export default new Vuex.Store({
});
```

## Articles

- [Form Fields, Two-Way Data Binding and Vuex](https://markus.oberlehner.net/blog/form-fields-two-way-data-binding-and-vuex/)
- [How to Handle Multi-row Forms with Vue, Vuex and vuex-map-fields](https://markus.oberlehner.net/blog/how-to-handle-multi-row-forms-with-vue-vuex-and-vuex-map-fields/)
- [How to Structure a Complex Vuex Store](https://markus.oberlehner.net/blog/how-to-structure-a-complex-vuex-store/)

## About

### Author
Expand Down
17 changes: 17 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module.exports = {
presets: [
[
`@babel/preset-env`,
{
modules: false,
},
],
],
env: {
test: {
presets: [
`@babel/preset-env`,
],
},
},
};
3,363 changes: 1,763 additions & 1,600 deletions package-lock.json

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
@@ -1,6 +1,6 @@
{
"name": "vuex-map-fields",
"version": "1.1.6",
"version": "1.1.7",
"description": "Enable two-way data binding for form fields saved in a Vuex store",
"keywords": [
"vue",
Expand Down Expand Up @@ -29,18 +29,18 @@
},
"devDependencies": {
"@avalanche/eslint-config": "^2.0.0",
"@babel/core": "^7.0.0-beta.40",
"@babel/preset-env": "^7.0.0-beta.40",
"@babel/core": "^7.0.0-beta.46",
"@babel/preset-env": "^7.0.0-beta.46",
"@vue/test-utils": "^1.0.0-beta.12",
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "^22.4.1",
"babel-jest": "^22.4.3",
"coveralls": "^3.0.0",
"eslint": "^4.18.2",
"eslint": "^4.19.1",
"eslint-plugin-compat": "^2.2.0",
"eslint-plugin-import": "^2.9.0",
"eslint-plugin-import": "^2.11.0",
"eslint-plugin-markdown": "^1.0.0-beta.6",
"jest": "^22.4.2",
"rollup": "^0.56.5",
"jest": "^22.4.3",
"rollup": "^0.58.2",
"rollup-plugin-babel": "^4.0.0-beta.0",
"uglify-es": "^3.3.9",
"vue": "^2.5.16",
Expand Down
1 change: 0 additions & 1 deletion test/module-namespaced.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ describe(`Component initialized with namespaced Vuex module.`, () => {

test(`It should update field values when the store is updated.`, () => {
store.state.fooModule.foo = `foo`;
wrapper.update();

expect(wrapper.element.value).toBe(`foo`);
});
Expand Down
1 change: 0 additions & 1 deletion test/module.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ describe(`Component initialized with Vuex module.`, () => {

test(`It should update field values when the store is updated.`, () => {
store.state.fooModule.foo = `foo`;
wrapper.update();

expect(wrapper.element.value).toBe(`foo`);
});
Expand Down
1 change: 0 additions & 1 deletion test/multi-row.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ describe(`Component initialized with multi row setup.`, () => {
test(`It should update field values when the store is updated.`, () => {
store.state.users[0].name = `New Name`;
store.state.users[1].email = `new@email.com`;
wrapper.update();

expect(wrapper.find(`input`).element.value).toBe(`New Name`);
expect(wrapper.find(`div:nth-child(2) input:nth-child(2)`).element.value).toBe(`new@email.com`);
Expand Down
1 change: 0 additions & 1 deletion test/nested-store.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ describe(`Component initialized with customized getter and mutation functions.`,

test(`It should update field values when the store is updated.`, () => {
store.state.form.foo.foo = `foo`;
wrapper.update();

expect(wrapper.element.value).toBe(`foo`);
});
Expand Down
1 change: 0 additions & 1 deletion test/packaged.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ localVue.use(Vuex);
store.state.foo = `foo`;
store.state.bar.bar = `bar`;
store.state.baz[0].foo.baz = `baz`;
wrapper.update();

expect(wrapper.find(`#foo`).element.value).toBe(`foo`);
expect(wrapper.find(`#bar`).element.value).toBe(`bar`);
Expand Down

0 comments on commit 032bf63

Please sign in to comment.