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

RC v2.1.0 #113

Merged
merged 28 commits into from
Apr 25, 2020
Merged

RC v2.1.0 #113

merged 28 commits into from
Apr 25, 2020

Conversation

greenkeeper bot and others added 28 commits January 27, 2020 20:09
PS: I hope Bryce sleeps a little better knowing a repository out there in the world is slightly closer to 100% coverage. 🌛
## Changes
- Use Dependency Injection on Commands for CommandClasses
- Add some real tests for Commands
  - Fully covered! 🎉
- Core now injects an a client and commands into every command
  - Allows for reuse of commands in help function and other functions of the future :)
- Commands now take an optional 3rd parameter that includes:
  - client
  - commands
- Config
  - commandsPathGlob now lives in the config
  - commandTemplateFile has a new home
  - If we decide to later allow for ENV override on these it will be trivial.
  - These could probably be removed if they're only used in one place, but I also enjoy the dependency injection for testing purposes. Even the tests are using the real file paths This test is more like an integration test I think. This is fine.
- Help command is now more readable and easier to test with dependency injection.
  - Full coverage ;)
I decided to remove the following from the config:
- commandsPathGlob - commandTemplateFile

They are only being used in a single place anyways. I also made sure they'll be easy to extract later if we ever need to inject them.
Also add some padding to match the original.

Now that I can see what it looks like in the snap shot I can easily check :)
Seems to just be my stuff.
I need to get my lint extension running on WSL :0!
A larger effort needs to be around this to makes all of these optional since not all commands will utilize all of these in the execute interface.
Use 13.7.2 so it matches up with the `@types/node` version

Stay on the fresh edge of versioning 🎉
These have been sitting around
@ctsstc ctsstc merged commit 92a6d58 into master Apr 25, 2020
@ctsstc ctsstc deleted the rc-v2.1.0 branch April 25, 2020 10:15
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.

1 participant