-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(platform): separate message and intent communication APIs
BREAKING CHANGE: Use `MessageClient` for topic-based messaging, and `IntentClient` for intent-based messaging Note: The messaging protocol between host and client HAS NOT CHANGED. You can therefore independently upgrade host and clients to the new version. #### Breaking changes in MessageClient Moved or renamed the following methods: - `MessageClient#onMessage$` -> `MessageClient.observe$` - `MessageClient#issueIntent` -> `IntentClient.publish` - `MessageClient#requestByIntent$` -> `IntentClient.request$` - `MessageClient#onIntent$` -> `IntentClient.observe$` - `MessageClient#isConnected` -> `MicrofrontendPlatform.isConnectedToHost` Renamed options object of the following methods - `MessageClient#request`: `MessageOptions` -> `RequestOptions` - `IntentClient.publish`: `MessageOptions` -> `IntentOptions` - `IntentClient.request`: `MessageOptions` -> `IntentOptions` #### Breaking change for decorating MessageClient and IntentClient bean For Angular developers, see [Preparing the MessageClient and IntentClient for use with Angular](https://scion-microfrontend-platform-developer-guide.now.sh/#chapter:angular-integration-guide:preparing-messaging-for-use-with-angular) how to decorate the `MessageClient` and `IntentClient` for making Observables to emit inside the Angular zone. #### Breaking change for disabling messaging in tests Messaging can now be deactivated via options object when starting the platform. Previously you had to register a `NullMessageClient` bean. ```MicrofrontendPlatform.connectToHost({messaging: {enabled: false}}```
- Loading branch information
1 parent
98bf890
commit 7610eb0
Showing
52 changed files
with
1,271 additions
and
972 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.