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

Use Error object for promise rejection #181

Merged
merged 3 commits into from
Jan 27, 2023
Merged

Use Error object for promise rejection #181

merged 3 commits into from
Jan 27, 2023

Conversation

dnicolson
Copy link
Contributor

♻️ Current situation

A string is used as a rejection.

💡 Proposed solution

Use an Error object to be consistent.

@donavanbecker donavanbecker changed the base branch from latest to beta-1.8.0 January 27, 2023 18:35
@donavanbecker donavanbecker merged commit 00c8bb6 into OpenWonderLabs:beta-1.8.0 Jan 27, 2023
@donavanbecker
Copy link
Collaborator

Thanks @dnicolson!

@donavanbecker donavanbecker mentioned this pull request Jan 29, 2023
donavanbecker added a commit that referenced this pull request Jan 29, 2023
## [Version 1.8.0](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.8.0) (2023-01-28)

## What's Changed

- Add Support for BlindTilt (Read Only)
- Use Error object for promise rejection, Thanks [@dnicolson](https://github.com/dnicolson/).  [#181](#181)
- Housekeeping and update dependencies

**Full Changelog**: v1.7.3...v1.8.0
donavanbecker added a commit that referenced this pull request Apr 8, 2023
## [Version 1.8.1](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.8.1) (2023-04-08)

## What's Changed
- Use const keyword for immutable variables, Thanks [@dnicolson](https://github.com/dnicolson/). [#184](#184)
- Use Error object for promise rejection, Thanks [@dnicolson](https://github.com/dnicolson/). [#181](#181)
- Housekeeping and update dependencies

**Full Changelog**: v1.8.0...v1.8.1
@donavanbecker donavanbecker mentioned this pull request Apr 8, 2023
donavanbecker added a commit that referenced this pull request Apr 8, 2023
## [Version 1.8.1](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.8.1) (2023-04-08)

## What's Changed
- Use const keyword for immutable variables, Thanks [@dnicolson](https://github.com/dnicolson/). [#184](#184) 
- Use Error object for promise rejection, Thanks [@dnicolson](https://github.com/dnicolson/). [#181](#181)
- Housekeeping and update dependencies

**Full Changelog**: v1.8.0...v1.8.1
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.

2 participants