|
1 | 1 | # Upgrade Guide |
2 | 2 |
|
| 3 | +- [Upgrading From 4.0 To 5.0](#upgrading-from-40-to-50) |
3 | 4 | - [Upgrading From 2.0 To 3.0](#upgrading-from-20-to-30) |
4 | 5 | - [Upgrading From 1.0 To 2.0](#upgrading-from-10-to-20) |
5 | 6 |
|
| 7 | +## Upgrading From 4.0 To 5.0 |
| 8 | + |
| 9 | +You can upgrade from v4 to v5 by performing these renames in your model that uses flags. |
| 10 | + |
| 11 | +These instance methods should be renamed: |
| 12 | + |
| 13 | +- `isRejected` renamed to `isNotAccepted` |
| 14 | +- `isDeactivated` renamed to `isNotActivated` |
| 15 | +- `isDisapproved` renamed to `isNotApproved` |
| 16 | +- `isUninvited` renamed to `isNotInvited` |
| 17 | +- `isUnkept` renamed to `isNotKept` |
| 18 | +- `isUnpublished` renamed to `isNotPublished` |
| 19 | +- `isUnverified` renamed to `isNotVerified` |
| 20 | +- `isUnarchived` renamed to `isNotArchived` |
| 21 | +- `isOpened` renamed to `isNotClosed` |
| 22 | +- `isUndrafted` renamed to `isNotDrafted` |
| 23 | +- `isUnended` renamed to `isNotEnded` |
| 24 | +- `isUnexpired` renamed to `isNotExpired` |
| 25 | +- `reject` renamed to `undoAccept` |
| 26 | +- `deactivate` renamed to `undoActivate` |
| 27 | +- `disapprove` renamed to `undoApprove` |
| 28 | +- `uninvite` renamed to `undoInvite` |
| 29 | +- `unkeep` renamed to `undoKeep` |
| 30 | +- `unpublish` renamed to `undoPublish` |
| 31 | +- `unverify` renamed to `undoVerify` |
| 32 | +- `unarchive` renamed to `undoArchive` |
| 33 | +- `open` renamed to `undoClose` |
| 34 | +- `undraft` renamed to `undoDraft` |
| 35 | +- `unend` renamed to `undoEnd` |
| 36 | +- `unexpire` renamed to `undoExpire` |
| 37 | + |
| 38 | +These global scopes methods should be renamed: |
| 39 | + |
| 40 | +- `reject` method renamed to `undoAccept` |
| 41 | +- `withRejected` method renamed to `withNotAccepted` |
| 42 | +- `withoutRejected` method renamed to `withoutNotAccepted` |
| 43 | +- `onlyRejected` method renamed to `onlyNotAccepted` |
| 44 | +- `deactivate` method renamed to `undoActivate` |
| 45 | +- `withDeactivated` method renamed to `withNotActivated` |
| 46 | +- `withoutDeactivated` method renamed to `withoutNotActivated` |
| 47 | +- `onlyDeactivated` method renamed to `onlyNotActivated` |
| 48 | +- `disapprove` method renamed to `undoApprove` |
| 49 | +- `withDisapproved` method renamed to `withNotApproved` |
| 50 | +- `withoutDisapproved` method renamed to `withoutNotApproved` |
| 51 | +- `onlyDisapproved` method renamed to `onlyNotApproved` |
| 52 | +- `uninvite` method renamed to `undoInvite` |
| 53 | +- `withUninvited` method renamed to `withNotInvited` |
| 54 | +- `withoutUninvited` method renamed to `withoutNotInvited` |
| 55 | +- `onlyUninvited` method renamed to `onlyNotInvited` |
| 56 | +- `unkeep` method renamed to `undoKeep` |
| 57 | +- `withUnkept` method renamed to `withNotKept` |
| 58 | +- `withoutUnkept` method renamed to `withoutNotKept` |
| 59 | +- `onlyUnkept` method renamed to `onlyNotKept` |
| 60 | +- `unpublish` method renamed to `undoPublish` |
| 61 | +- `withUnpublished` method renamed to `withNotPublished` |
| 62 | +- `withoutUnpublished` method renamed to `withoutNotPublished` |
| 63 | +- `onlyUnpublished` method renamed to `onlyNotPublished` |
| 64 | +- `unverify` method renamed to `undoVerify` |
| 65 | +- `withUnverified` method renamed to `withNotVerified` |
| 66 | +- `withoutUnverified` method renamed to `withoutNotVerified` |
| 67 | +- `onlyUnverified` method renamed to `onlyNotVerified` |
| 68 | +- `unarchive` method renamed to `undoArchive` |
| 69 | +- `open` method renamed to `undoClose` |
| 70 | +- `undraft` method renamed to `undoDraft` |
| 71 | +- `unend` method renamed to `undoEnd` |
| 72 | +- `unexpire` method renamed to `undoExpire` |
| 73 | + |
| 74 | +These events names should be renamed: |
| 75 | + |
| 76 | +- `rejected` model event renamed to `acceptedUndone` |
| 77 | +- `deactivated` model event renamed to `activatedUndone` |
| 78 | +- `disapproved` model event renamed to `approvedUndone` |
| 79 | +- `uninvited` model event renamed to `invitedUndone` |
| 80 | +- `unkept` model event renamed to `keptUndone` |
| 81 | +- `unpublished` model event renamed to `publishedUndone` |
| 82 | +- `unverified` model event renamed to `verifiedUndone` |
| 83 | +- `unarchived` model event renamed to `archivedUndone` |
| 84 | +- `opened` model event renamed to `closedUndone` |
| 85 | +- `undrafted` model event renamed to `draftedUndone` |
| 86 | +- `unended` model event renamed to `endedUndone` |
| 87 | +- `unexpired` model event renamed to `expiredUndone` |
| 88 | + |
6 | 89 | ## Upgrading From 2.0 To 3.0 |
7 | 90 |
|
8 | 91 | You can upgrade from v2 to v3 by performing these renames in your model that has flags: `Accepted`, `Active` & `Approved`. |
|
0 commit comments