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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notification queue and a lot of other improvements #130

Merged
merged 16 commits into from Mar 15, 2021
Merged

Notification queue and a lot of other improvements #130

merged 16 commits into from Mar 15, 2021

Conversation

svrooij
Copy link
Owner

@svrooij svrooij commented Mar 15, 2021

Notification queue and a lot of other improvements

Description

This PR will release a new version of sonos-ts. The most notable it the notification queue we made 2 implementations see this issue, and want your opinion about which one is best.

Also Invisible is now parsed correctly and you can subscribe for event subscriptions errors.

Your checklist for this pull request

馃毃 Please review the guidelines for contributing to this repository.

  • Make sure you are requesting to pull a topic/feature/bugfix branch (right side). Don't request your master!
  • Make sure you are making a pull request against the beta branch (left side). Also you should start your branch off svrooij/node-sonos-ts/beta.
  • Check the commit's or even all commits' message styles matches our requested structure.
  • Check your code additions will fail neither code linting checks nor unit test.
  • Check you add tests for added code.

馃挃 Thank you!

svrooij and others added 16 commits January 18, 2021 14:21
Fixed #89

Co-authored-by: Thiemo Hoffmann <20605452+theimo1221@users.noreply.github.com>
* feat: Notification queues fixed #89 by @theimo1221
* Removal of events and compliance to tests
* Two PlayNotification Calls with 2nd having immediate resolve
* Two PlayNotification Calls with First Reolving Promise after 2nd
* Implement general Timeout functionality within PlayNotification and extend tests
* Revert changes to "returns false when not playing"
* Move new tests to seperate describe Block
* Add individual Timeout for specific queue items plus Test
* Clear specific timeout after it being played
* chore: Lint errors
* chore: Second TTS method
* chore: Fixing debug style
* chore: Fixing tests

Not merged:

* ~~Always trigger "STOPPED" event~~

Co-authored-by: Thiemo <thiemo.hoffmann@outlook.de>
* export SonosEventListener

Co-authored-by: H. Klages <17273119+hklages@users.noreply.github.com>
added Invisible to interface and parse method (#124)

Co-authored-by: H. Klages <17273119+hklages@users.noreply.github.com>
Improved local documentation loading
@coveralls
Copy link

Pull Request Test Coverage Report for Build 653848679

  • 278 of 315 (88.25%) changed or added relevant lines in 8 files are covered.
  • 3 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.5%) to 78.442%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/index.ts 0 2 0.0%
src/services/base-service.ts 14 16 87.5%
src/sonos-event-listener.ts 20 23 86.96%
src/sonos-device.ts 222 252 88.1%
Files with Coverage Reduction New Missed Lines %
src/index.ts 1 0%
src/services/base-service.ts 2 90.83%
Totals Coverage Status
Change from base Build 493683389: 0.5%
Covered Lines: 1454
Relevant Lines: 1856

馃挍 - Coveralls

@svrooij svrooij merged commit 0819891 into master Mar 15, 2021
@github-actions
Copy link

馃帀 This PR is included in version 2.4.0 馃帀

The release is available on:

Your semantic-release bot 馃摝馃殌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants