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

2.0 #93

Merged
merged 27 commits into from
May 17, 2019
Merged

2.0 #93

merged 27 commits into from
May 17, 2019

Conversation

darrenjennings
Copy link
Owner

@darrenjennings darrenjennings commented Feb 9, 2019

version 2️⃣

Working PR for 2.0 of vue-autosuggest.
See Roadmap: #92

Publishing these changes to beta tag on npm as ready.

Fixes #52

Codesandbox Demo: https://codesandbox.io/s/7z7p8mx2y1

Changelog

  • use v-model and remove internal searchInput watcher

  • switch to input event handler for v-model support

  • address outstanding TODOs for 2.0 breaking changes

  • remove deprecated events onInputChange, onClick, onBlur, onFocus,
    onSelected

  • remove class, name defaults

  • remove initialValue as now it can be set via v-model

  • docs(demo) update demo to use v-model

  • refactor(computed) move sections and size to computed props. It didn't
    make much sense to have the computedSections being calculated manually
    so now it is a computed prop. This helps with perf since computed props
    have memoization. This also allows to also remove computedSize so we can
    remove side effects and difficult to understand computations. This also
    completely removes the watcher, which is something that has needed to
    happen since I introduced it.

  • fix(initialValue) since we removed initialValue, make v-model work.

  • refactor(getSize) rename getSize to computed prop totalResults

  • docs(readme) update readme to have all the new stuff v-model, etc

  • docs(storybook) update stories to match new feats

* use v-model and remove internal searchInput watcher
* switch to input event handler for v-model support
* address outstanding TODOs for 3.0 breaking changes
* remove deprecated events onInputChange, onClick, onBlur, onFocus,
onSelected
* remove class, name defaults
* remove initialValue as now it can be set via v-model
* docs(demo) update demo to use v-model
* tests(*) WIP updating snapshots verifying functionality
* setValue on input instead of setData on wrapper
* remove tests for deprecations
* add back husky precommit hook
* refactor(computed) move sections and size to computed props. It didn't
make much sense to have the computedSections being calculated manually
so now it is a computed prop. This helps with perf since computed props
have memoization. This also allows to also remove computedSize so we can
remove side effects and difficult to understand computations. This also
completely removes the watcher, which is something that has needed to
happen since I introduced it.
* fix(initialValue) since we removed initialValue, make v-model work.
* refactor(getSize) rename getSize to computed prop totalResults
* docs(readme) update readme to have all the new stuff v-model, etc
* docs(storybook) update stories to match new feats
@darrenjennings darrenjennings changed the title 🚀 2.0 2.0 Feb 9, 2019
@darrenjennings darrenjennings added the wip Work in progress label Feb 9, 2019
* use serializer preferred by vue-test-utils and update snapshots
* fix(size) factor in limit in totalResults size
* refactor(*) Remove dead code identified by test coverage
* test(listeners) add test for event listener on destroy
Repository owner deleted a comment from codecov-io Feb 10, 2019
Repository owner deleted a comment from codecov-io Feb 12, 2019
@codecov-io
Copy link

codecov-io commented Feb 13, 2019

Codecov Report

Merging #93 into master will increase coverage by 5.91%.
The diff coverage is 89.09%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #93      +/-   ##
==========================================
+ Coverage   80.33%   86.25%   +5.91%     
==========================================
  Files           1        1              
  Lines         178      160      -18     
  Branches       54       44      -10     
==========================================
- Hits          143      138       -5     
+ Misses         11        4       -7     
+ Partials       24       18       -6
Impacted Files Coverage Δ
src/Autosuggest.vue 86.25% <89.09%> (+5.91%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7e59039...230a81d. Read the comment docs.

@batFormat
Copy link

batFormat commented May 14, 2019

@darrenjennings Hello, can you please tell me if the work on the second version will continue?

@darrenjennings
Copy link
Owner Author

@batFormat indeed it will! I'm hoping to release 2.0 in the next month as I will be preparing to present on it at a meetup. Hit a road block locally that I haven't had time to devote to, but expect something before July. 🤞

* adjust storybook + app demo
* add back outline for focus in demos
* add tests
@darrenjennings darrenjennings removed the wip Work in progress label May 15, 2019
@darrenjennings darrenjennings merged commit 458f3e2 into master May 17, 2019
@darrenjennings darrenjennings deleted the 2.0 branch May 17, 2019 04:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Correct way perform query programmatically?
3 participants