Repository navigation
2.0.0 - Re-Engineered Protocol Registry V2 which brings in new features like de-registry and clean API contract.
LatestWhat's Changed
- Protocol registry V2 by @Shubham-Kumar-2000 in #60
Full Changelog: 1.6.0...2.0.0
This version introduces several changes and new features to the protocol-registry project. Here is a summary of the modifications:
New Features and Changes:
-
Workflow Changes:
.github/workflows/node.js.yml: Added a new step to remove thetempdirectory before runningnpm iandnpm run build.
-
Pre-commit Hook:
.husky/pre-commit: Changed the pre-commit hook command fromnpm run formattonpm run check.
-
README Updates:
- Added badges for known vulnerabilities, Node.js workflow status, and Node version.
- Updated documentation for the
ProtocolRegistry.registermethod to reflect new parameters and their descriptions. - Added new sections for
checkIfExists,getDefaultApp, anddeRegistermethods with examples.
-
Code Changes:
- src/index.js:
- Refactored the main module to include new methods (
getDefaultApp,deRegister) and updatedregisterandcheckIfExists. - Improved validation and pre-processing of commands.
- Refactored the main module to include new methods (
- src/linux/index.js, src/macos/index.js, src/windows/index.js:
- Updated platform-specific implementations to handle new options and de-registration.
- src/utils: Added utility functions for file operations and command processing.
- src/validation/common.js: Added validation schemas for registration and de-registration.
- src/index.js:
-
Configuration and Dependencies:
- package.json: Updated package version to
2.0.0. Addedjestfor testing, and included new dependencies like@jest/globals.
- package.json: Updated package version to
-
Tests:
- Added Jest configuration and snapshot tests for different platforms.
- New test files for integration and configuration tests.
Key Improvements:
-
Enhanced Protocol Registration:
- The
registermethod now accepts anappNameparameter and ensures proper validation. - Commands are pre-processed to handle different platforms effectively.
- The
-
Protocol De-registration:
- Introduced
deRegistermethod to clean up protocol registrations.
- Introduced
-
Improved Documentation:
- README has been updated to provide clear instructions and examples for using the new features.
-
Testing:
- Added comprehensive tests to ensure the functionality works as expected across different platforms.
Overall, this pull request significantly enhances the protocol-registry project by adding new features, improving existing functionality, and increasing test coverage.