|
| 1 | +## [1.2.1](https://github.com/vuex-orm/plugin-soft-delete/compare/v1.2.0...v1.2.1) (2020-03-30) |
| 2 | + |
| 3 | + |
| 4 | +### Improvements |
| 5 | + |
| 6 | +- Add relationship support. Please [refer to the docs](https://vuex-orm.github.io/plugin-soft-delete/guide/usage.html#relationships) for more details. ([#8](https://github.com/vuex-orm/plugin-soft-delete/pull/8)) |
| 7 | + |
| 8 | + |
| 9 | +# [1.2.0](https://github.com/vuex-orm/plugin-soft-delete/compare/v1.1.0...v1.2.0) (2020-03-23) |
| 10 | + |
| 11 | + |
| 12 | +### Features |
| 13 | + |
| 14 | +#### A brand new episode of the Vuex ORM Soft Delete plugin. |
| 15 | + |
| 16 | +While the architecture and codebase has undergone a major transplant, the existing scope is left intact to serve existing users. |
| 17 | + |
| 18 | +- Global and model level option configurations. |
| 19 | + - `softDeleteConfig` can be defined on models to override global options/defaults. |
| 20 | +- Composite Primary Key support. |
| 21 | +- Single and batch delete models. |
| 22 | +- Restore deleted models. |
| 23 | +- Model state indicator through `instance.$trashed()`. |
| 24 | + - A unified method edition of `instance.$isDeleted` since it's an interchangeable property. |
| 25 | +- User-defined mutator for the `key` attribute. |
| 26 | + - Intersect the date value passed as argument or simply return any value to be stored. |
| 27 | + - Global and per-model configuration. |
| 28 | +- Typescript support. |
| 29 | +- Comprehensive coverage tests. |
| 30 | + |
| 31 | +### Improvements |
| 32 | + |
| 33 | +- `key` attribute uses `Date.now()` instead of `new Date`. |
| 34 | + - Enables better conditional treatment over string representation and prevents an empty object persisting to the store. |
| 35 | +- Deleting instance updates reference. |
| 36 | + - Removes the habit of fetching the same record after it's trashed. |
| 37 | +- Allows forceful hydration after deleting and restoring. |
| 38 | +- Eloquent-esque naming conventions for query builder. |
| 39 | + - `withTrashed` and `onlyTrashed` are consistent with other ORM's. |
| 40 | +- Fixes model serializing that'd ceased functioning since it changed in **@vuex-orm/core**. |
| 41 | +- Compatible with recent releases of **@vuex-orm/core**. |
| 42 | +- Better alignment with **@vuex-orm/core** codebase and API. |
| 43 | +- Utilises some existing typings from **@vuex-orm/core** for consistency and support. |
| 44 | + |
| 45 | +### Deprecations |
| 46 | + |
| 47 | +- Query chain method `onlyTrashed` supersedes `trashed`. |
| 48 | +- Model instance method `$softDelete` supersedes `softDelete`. |
| 49 | + |
| 50 | +_All deprecations come with warnings outside production mode._ |
| 51 | + |
| 52 | + |
| 53 | +# 1.1.0 (2019-04-15) |
| 54 | + |
| 55 | + |
| 56 | +The whole new version of soft delete plugin. |
| 57 | + |
| 58 | + |
0 commit comments