Conversation
|
@AndriiAndreiev what's the intent behind this package? How will it be used in the future? |
|
@erunion In short: this package is needed to avoid code duplication. It will contain code that we can reuse across all our internal packages (api, core, http-snippet-client-api). For example: right now, logger.ts is located in the api package. But for the debugging mode (Issue #789), it would also make sense to have logging in api-core - like if we want to log HAR files. Instead of creating another logger or duplicating the code, we can just reuse it by moving it into a shared package. That way, the same code can be used across all three packages. This approach will also be helpful for future changes where the logic is shared among all three packages. |
|
@AndriiAndreiev why not move these shared utilities into |
🧰 Changes
apiinto this shared package to enable reuse across multiple packages.This setup is especially needed to support logging in debugging mode across the monorepo, including adding logging capabilities to the
api-corepackage. (PR #1029). The shared package will also serve as a place to add new features/utilities intended for use in multiple packages throughout the monorepo.