-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Remove @empathyco/x-platform-adapter
dependency from library c…
#575
fix: Remove @empathyco/x-platform-adapter
dependency from library c…
#575
Conversation
SearchResponse | ||
} from './response'; | ||
|
||
export interface XComponentsAdapter { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a TODO to relax types
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and create a task in backlog and add link to this TODO
} | ||
}; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add TODO in line 50 to add future logger
@@ -24,15 +24,15 @@ import { assertXPluginOptionsAreValid } from './x-plugin.utils'; | |||
*/ | |||
export class XPlugin implements PluginObject<XPluginOptions> { | |||
/** | |||
* {@link @empathyco/x-adapter-platform#PlatformAdapter | PlatformAdapter} Is the middleware | |||
* {@link @empathyco/x-typesm#XComponentsAdapter | XComponentsAdapter} Is the middleware |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update the doc @example
in line 419
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated clarifying usage, but it is an intended example.
Adapter
type. This has no sense and it was complicated.XComponentsAdapter
type to@empathyco/x-types
. Together with the rest of the request/responses info.x-types
can be considered as a package where all the shared types needed mainly by x-components, and other packages are.getTaggingInfoFromUrl
to@empathyco/x-platform-adapter
. This utility was previously in@empathyco/x-utils
. Due to the refactor of the types it created a cyclic dependency.PlatformAdapter
extendable.