Skip to content

v5.2.30

Choose a tag to compare

@github-actions github-actions released this 09 Jan 21:11
9d4ce2d
@W-20359317 feat: Add gRPC support  (#97)

* feat: Add gRPC support to API documentation

- Introduced methods to identify and handle gRPC operations within the API documentation.
- Updated the display logic to differentiate between gRPC and standard methods, including appropriate titles and color styling.
- Enhanced the APIUrl and ApiMethodDocumentation classes with new methods for gRPC stream types and display names.
- Modified styles for better presentation of gRPC-related information.
- Removed the temporary 'grpc-test' entry from the demo API list.

* fix: Update title class handling in API method documentation

- Modified the title class assignment in the API method documentation to dynamically set the class based on whether the method is a gRPC operation or not. This enhances the visual distinction between gRPC and standard methods in the documentation.

* feat: Add gRPC test cases and update .gitignore

- Introduced a new test file for gRPC API rendering, including various test cases to validate the correct handling of gRPC operations in the API documentation.
- Added a new JSON file for gRPC testing to the demo directory and updated .gitignore to include this new file while excluding others.

* feat: Implement endpoint and operation lookup methods in AmfLoader

- Added `lookupEndpointByName` and `lookupOperationInEndpoint` methods to the AmfLoader for improved handling of gRPC operations.
- Updated gRPC tests to utilize the new methods, enhancing code clarity and reducing redundancy in the test suite.

* chore: Update package-lock.json with new dependencies and version upgrades

- Added @advanced-rest-client/icons version 4.0.2 with its dependencies.
- Upgraded @api-components/amf-helper-mixin from version 4.5.31 to 4.5.34.
- Upgraded @api-components/api-navigation from version 4.3.3 to 4.3.20.
- Updated dependencies for @anypoint-web-components/anypoint-button and others for better compatibility.

* chore: Update dependencies and GitHub Actions workflow

- Bump lockfile version from 2 to 3 in package-lock.json.
- Upgrade @api-components/api-body-document from version 4.4.6 to 4.4.15.
- Upgrade @commitlint/cli from version 13.2.0 to 13.2.1.
- Update various @open-wc and @web dependencies for improved compatibility.
- Refactor GitHub Actions workflow to use updated actions and improve caching strategy.
- Change Node.js version to 18 in the workflow for better support.

* chore: Update @api-components/api-responses-document and related dependencies

- Bump @api-components/api-responses-document from version 4.2.5 to 4.2.6 in package.json and package-lock.json.
- Upgrade @api-components/amf-helper-mixin from version 4.5.1 to 4.5.34.
- Upgrade @api-components/api-annotation-document from version 4.1.0 to 4.2.1.
- Upgrade @api-components/api-body-document from version 4.2.1 to 4.4.15.
- Remove unused import of din-pro from demo/index.js.

* refactor: Simplify gRPC tests to focus on regular model

- Removed tests for the compact model as it is not generated by CI for gRPC.
- Updated the test suite to only include the regular model, enhancing clarity and maintainability.

* 5.2.30

* test: Normalize line endings in XML payload assertion for cross-platform compatibility

- Updated the test for XML value computation to normalize line endings, ensuring consistent behavior across different operating systems.
- Introduced a variable for the expected XML output to enhance readability and maintainability of the test case.