Skip to content

2.0.0 - Re-Engineered Protocol Registry V2 which brings in new features like de-registry and clean API contract.

Latest

Choose a tag to compare

@Shubham-Kumar-2000 Shubham-Kumar-2000 released this 25 Mar 18:06
0bdcd59

What's Changed

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:

  1. Workflow Changes:

    • .github/workflows/node.js.yml: Added a new step to remove the temp directory before running npm i and npm run build.
  2. Pre-commit Hook:

    • .husky/pre-commit: Changed the pre-commit hook command from npm run format to npm run check.
  3. README Updates:

    • Added badges for known vulnerabilities, Node.js workflow status, and Node version.
    • Updated documentation for the ProtocolRegistry.register method to reflect new parameters and their descriptions.
    • Added new sections for checkIfExists, getDefaultApp, and deRegister methods with examples.
  4. Code Changes:

    • src/index.js:
      • Refactored the main module to include new methods (getDefaultApp, deRegister) and updated register and checkIfExists.
      • Improved validation and pre-processing of commands.
    • 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.
  5. Configuration and Dependencies:

    • package.json: Updated package version to 2.0.0. Added jest for testing, and included new dependencies like @jest/globals.
  6. Tests:

    • Added Jest configuration and snapshot tests for different platforms.
    • New test files for integration and configuration tests.

Key Improvements:

  • Enhanced Protocol Registration:

    • The register method now accepts an appName parameter and ensures proper validation.
    • Commands are pre-processed to handle different platforms effectively.
  • Protocol De-registration:

    • Introduced deRegister method to clean up protocol registrations.
  • 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.