chore(medusa, interfaces): Uniformise class checks (#5869)

**What**
One problem with local development can be the dependencies management. To mitigate that, transform checks from an instance of to value check as well as harmonize utils function to be part of the class as a static method instead of separate utilities. By using this approach we are not dependent of the origin of the class and therefore it should ease the user experience.

**NOTE**
As a next step to discuss, we should probably move the interfaces from the interfaces/medusa package to the utils package. Then we can deprecate the interfaces package and remove it at a later time
This commit is contained in:
Adrien de Peretti authored and GitHub committed 2023-12-19 13:26:57 +00:00
1 parent 496dcf10c4
commit 45996d58a2
27 files changed
+187 -178

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
---
"@medusajs/medusa": patch
"medusa-fulfillment-webshipper": patch
"medusa-interfaces": patch
"@medusajs/utils": patch
---
chore(medusa, interfaces, utils, webshiper): Uniformise class checks