Skip to content

Commit 93f758c

Browse files
committed
Update upgrade guide
1 parent 6f8fb9d commit 93f758c

File tree

1 file changed

+83
-0
lines changed

1 file changed

+83
-0
lines changed

UPGRADING.md

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,91 @@
11
# Upgrade Guide
22

3+
- [Upgrading From 4.0 To 5.0](#upgrading-from-40-to-50)
34
- [Upgrading From 2.0 To 3.0](#upgrading-from-20-to-30)
45
- [Upgrading From 1.0 To 2.0](#upgrading-from-10-to-20)
56

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+
689
## Upgrading From 2.0 To 3.0
790

891
You can upgrade from v2 to v3 by performing these renames in your model that has flags: `Accepted`, `Active` & `Approved`.

0 commit comments

Comments
 (0)