v2.0.2
medusajs/medusav2.0.2Nov 6, 2024by olivermrbl
AI Summary
This version addresses critical bugs found in the initial v2.0.0 release, specifically resolving tax calculation errors caused by plural/singular mismatches in dashboard overrides and missing product type IDs. It also includes various dashboard improvements and tooling updates.
Key Highlights
- Fixed mismatch between dashboard and tax engine for tax rate rule overrides.
- Fixed missing product type IDs on cart and order line items affecting tax calculations.
- Dashboard improvements including i18n validation testing and float price support.
New Features
- Setup test and script for validating i18n
- Form-based bug report template
Full Release Notes
<!--  # v2.0.2 This version fixes a range of bugs reported in the 2.0.0 release. CMS_BREAK --> This version fixes a range of bugs reported in the 2.0.0 release. ## Highlights ### Fixed mismatch with tax rate rule override We identified a mismatch between how tax rate rule overrides were referenced in the dashboard and in the tax engine. When created through the dashboard, the overrides were created with an attribute key in plural form, but our tax engine expects them to be in the singular form. For example, if you defined a tax rate rule override for a Product Collection, the dashboard would pass `product_collections` upon creating the override while the tax engine would look for `product_collection`. Additionally, we fixed an issue with missing product type IDs on cart and order line items, which would mean tax calculations were not performed for product types. These bugs were fixed in https://github.com/medusajs/medusa/pull/9796 and https://github.com/medusajs/medusa/pull/9951 **Required actions** - Re-create your tax rate rule overrides - Run migrations ``` npx medusa db:migrate ``` ## Features * chore(dashboard): Setup test and script for validating i18n by @kasperkristensen in https://github.com/medusajs/medusa/pull/9799 * refactor: move to a form based bug report template by @thetutlage in https://github.com/medusajs/medusa/pull/9930 ## Bugs * fix(dashboard): Allow float values for product prices by @kasperkristensen in https://github.com/medusajs/medusa/pull/9859 * fix(core-flows, dashboard): adjust stock levels when doing partial fulfilments by @fPolic in https://github.com/medusajs/medusa/pull/9736 * fix(dashboard): tax override reference by @fPolic in https://github.com/medusajs/medusa/pull/9796 * fix: consider --host flag and HOST env variable by @thetutlage in https://github.com/medusajs/medusa/pull/9912 * fix: disable admin when running integration tests by @thetutlage in https://github.com/medusajs/medusa/pull/9915 * fix(dashboard): truncate price cell titles by @fPolic in https://github.com/medusajs/medusa/pull/9715 * fix(utils): Mikro orm repository update many to many should detach all items by default by @adrien2p in https://github.com/medusajs/medusa/pull/9917 * fix(workflows-sdk): Paralellize steps rollback issue with config by @adrien2p in https://github.com/medusajs/medusa/pull/9921 * fix(dashboard): Allow using enter key to create newline in Textarea by @kasperkristensen in https://github.com/medusajs/medusa/pull/9913 * fix(types): Prev limit wrong values by @adrien2p in https://github.com/medusajs/medusa/pull/9935 * fix(utils/dml): set-relationship graphql generator from DML wrong managed belongsTo by @adrien2p in https://github.com/medusajs/medusa/pull/9932 * fix(telemetry): Pointing and resolving packages wrongly by @adrien2p in https://github.com/medusajs/medusa/pull/9939 * fix: Support relative path in SDK by @sradevski in https://github.com/medusajs/medusa/pull/9942 * fix(medusa): POST carts/[id]/complete missing early return by @SGFGOV in https://github.com/medusajs/medusa/pull/9914 * fix: Default to a relative path for the admin backend URL by @sradevski in https://github.com/medusajs/medusa/pull/9947 * fix: log cause property from the error by @thetutlage in https://github.com/medusajs/medusa/pull/9944 * fix(core-flows,medusa): Include region_id in shipping option retrieval by @olivermrbl in https://github.com/medusajs/medusa/pull/9929 * fix: do not set default host to localhost by @thetutlage in https://github.com/medusajs/medusa/pull/9957 * fix(types): add `display_id` to `OrderDTO` by @fPolic in https://github.com/medusajs/medusa/pull/9953 ## Documentation * docs: added documentation on environment variables by @shahednasser in https://github.com/medusajs/medusa/pull/9798 * docs : Update page.mdx referring by @Ratnadeep2k in https://github.com/medusajs/medusa/pull/9820 * docs: add a note in 404 page about v1 docs by @shahednasser in https://github.com/medusajs/medusa/pull/9815 * fix(docs): small error by @0xflotus in https://github.com/medusajs/medusa/pull/9868 * docs: small improvement to first customization guide by @shahednasser in https://github.com/medusajs/medusa/pull/9843 ## Chores * chore(js-sdk,types): add tsdocs for admin JS SDK methods [4/n] by @shahednasser in https://github.com/medusajs/medusa/pull/9745 * chore: Sync PR and Discussions to Linear by @olivermrbl in https://github.com/medusajs/medusa/pull/9938 * chore: Use PR author name by @olivermrbl in https://github.com/medusajs/medusa/pull/9940 * chore(locking): disable default provider warning by @carlos-r-l-rodrigues in https://github.com/medusajs/medusa/pull/9956 ## New Contributors * @Ratnadeep2k made their first contribution in https://github.com/medusajs/medusa/pull/9820 * @eltociear made their first contribution in https://github.com/medusajs/medusa/pull/9818 **Full Changelog**: https://github.com/medusajs/medusa/compare/v2.0.1...v2.0.2