Update all dependencies and fix node-switchbot compatibility#1270
Merged
donavanbecker merged 9 commits intobeta-4.3.2from Aug 27, 2025
Merged
Update all dependencies and fix node-switchbot compatibility#1270donavanbecker merged 9 commits intobeta-4.3.2from
donavanbecker merged 9 commits intobeta-4.3.2from
Conversation
…t development (#1262) This PR creates comprehensive GitHub Copilot instructions to help developers work effectively with the homebridge-switchbot codebase. The instructions provide detailed guidance on building, testing, and developing this TypeScript Homebridge platform plugin for SwitchBot smart home devices. ## Key Features Added **Complete Development Workflow Documentation:** - Bootstrap and build process with exact commands and timing expectations - Dependency installation with required `--legacy-peer-deps` flag due to TypeDoc conflicts - TypeScript compilation and plugin UI building (~7 seconds) - Test execution with Vitest (~2 seconds) - Documentation generation with TypeDoc (~7 seconds) **Validation Scenarios:** - Manual plugin validation to ensure proper Homebridge registration - Plugin loading verification with Node.js - TypeScript compilation validation - Documentation generation without warnings - Complete workflow timing (~16 seconds total) **Codebase Navigation Guide:** - Detailed project structure with 38 TypeScript files across device and IR device modules - Key development areas for common tasks (adding devices, configuration changes) - File relationships and dependencies - Base classes and extension patterns for device implementations **Known Issues and Workarounds:** - Documented dependency conflicts requiring `--legacy-peer-deps` - ESLint configuration issues with import/extensions rule - Build artifact management with updated .gitignore **Timing and Performance Guidelines:** - All commands tested with realistic timing expectations - "NEVER CANCEL" warnings for builds with appropriate timeout recommendations - Complete validation workflow benchmarked at under 20 seconds ## Validation All commands and scenarios in the instructions have been thoroughly tested and validated to ensure they work correctly in a fresh development environment. The instructions follow the imperative tone requirement and provide exhaustive coverage of the development workflow. The file is located at `.github/copilot-instructions.md` and provides over 7,000 characters of comprehensive guidance for GitHub Copilot to work effectively with this codebase. Fixes #1261. <!-- START COPILOT CODING AGENT TIPS --> --- 💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more [Copilot coding agent tips](https://gh.io/copilot-coding-agent-tips) in the docs. --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: donavanbecker <9875439+donavanbecker@users.noreply.github.com>
Co-authored-by: donavanbecker <9875439+donavanbecker@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update Dependencies
Update all dependencies and fix node-switchbot compatibility
Aug 27, 2025
Collaborator
|
@copilot Node-SwitchBot has a new update. |
Co-authored-by: donavanbecker <9875439+donavanbecker@users.noreply.github.com>
Contributor
Author
Co-authored-by: donavanbecker <9875439+donavanbecker@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR updates all outdated dependencies to their latest versions and resolves compatibility issues with the updated
node-switchbotlibrary.Dependencies Updated
Production Dependencies:
homebridge-lib: 7.1.6 → 7.1.7node-switchbot: 3.6.0-beta.9 → 3.6.0 (moved from beta to latest stable release)Development Dependencies:
@antfu/eslint-config: 5.0.0 → 5.2.1@types/node: 24.1.0 → 24.3.0eslint: 9.32.0 → 9.34.0homebridge-config-ui-x: 5.3.0 → 5.4.1typedoc: 0.28.7 → 0.28.11typescript: 5.8.3 → 5.9.2Breaking Changes Fixed
The
node-switchbotupdate from beta to stable removed Hub3 support, which required the following compatibility fixes:src/device/device.tshub2ServiceData)hub3ServiceDatatypeValidation
All builds, tests, and documentation generation pass successfully:
This maintains backward compatibility while ensuring the plugin works with the latest stable versions of all dependencies.
Fixes #1269.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.