- Remove deprecated
GetModelRelationship
event related parts.- Thus, it requires Flarum 0.1.0-beta.13
- Apply StyleCI and Prettier fixes.
- Integration with
kvothe/reply-to-see
extension. - Add more vendor prefixes into less files.
- Update version constraints for Flarum 0.1.0-beta.13.
- Fix a SECURITY related issue which arises when you disable text formatting for previews.
- Fix "Options" should be hidden for last revision if it's the only non-deleted revision. (issue #8)
- Fix tooltip color for deleted revisions. (issue #9)
- Fix can't render new lines if you disable text formatting for previews. (issue #10)
- Fix zeroth revision (original content) gets wrong actor when post edited by another user.
- Fix post owners can't delete or rollback to revisions made by another user.
- Fix misaligned grid and flex layouts for IE.
- Fix tooltips won't appear on disabled buttons.
- Fix some strings can't be translated to other languages properly. (issue #7)
- Fix mislabeled tooltips for fa-eye and fa-columns icons when you switch to any revision from zeroth revision and vice versa.
- Drop
s9e/text-formatter ^2.3.7
requirement forflarum/core < beta 12
- Update dist files.
- Fix duplicated variable definition in DiffList Component.
- Fix a char-level typo (thanks to @Csineneo).
- Use
static
variable scope to store old post's content. - Set conflictions.
- Update dependencies.
- Fix tooltips won't disappear on Chrome.
You'll lose all of your previous revisions. (Hopefully, for the last time.)
- Change modal's layout.
- New layout may not work for some browsers. Click here to see supported ones (including IE10+).
- Change rollback behaviour.
- Now they'll be treated as new edits and will not delete other revisions.
- Drop tabular view because it wasn't fit well into community platforms.
- Drop renderer selector from the extension's settings.
- Now everyone can use any renderer they wish.
- Drop
PostWasRollbacked
event because we're treating them as formal edits now. - Add original post into revision list.
- Add seperate permissions for rollbacking.
- Add feature for keeping user's renderer preference.
- Add some informations about comparisons to make things more clear.
- Add informative tooltips to make things even more clear.
- Add preview mode for all revisions.
- You need to update
s9e/text-formatter
to v2.3.7 for syntax highlighting in previews. (skip this step if you didn't updateflarum/core
to beta 12 yet)
composer update s9e/text-formatter:2.3.7
- It worked well with Flarum's extensions so far but I expect some issues from 3rd parties. Report them and I'll see what I can do. Keep in mind that you always can disable text formatting from extension's settings modal if something breaks your Diff modal but it'll look like a mess for sure.
- You need to update
- Add multiple archive rows feature.
- If you hit the
MEDIUMBLOB
's limit for an archive, it'll automatically create a new archive row for the post and store new revisions there. I don't think you'll ever face with this situation but i did my best to solve this potential issue.
- If you hit the
- Fix
the-turk-diff.forum.noDiffs
translation key was missing. - Fix all renderer-related issues.
- Fix wrong column types.
- Add new columns and foreign keys.
- Make Mobile & Dark Mode UI imporovements.
- Tidy backend codes and add comments so everyone can understand what I am doing.
- Update dependencies & README.md
There are new lines & few changes for translators.
Notes:
-
All versions of this extension conflicts with dem13n/nickname-changer package. Use fof/username-request instead.
-
If you're using the-turk/flarum-edit-notifications extension extension, you should update it to v0.1.4
composer update the-turk/flarum-edit-notifications:0.1.4
You'll lose all of your previous revisions again.
- Store revisions as a whole instead of diffs-only.
- Add archive old revisions option.
- I decided to use a linear equation (y=mx+b) where the x is post's revision count. If x ≥ A, first y revisions for the post can be stored as merged & compressed
BLOB
in a new table (which is calledpost_edit_histories_archive
). Float values of y will be rounded to the next lowest integer value. Specify the A, m and b from the settings modal. It's recommended if you want to save storage volume but not recommended if you don't want to.
- I decided to use a linear equation (y=mx+b) where the x is post's revision count. If x ≥ A, first y revisions for the post can be stored as merged & compressed
- Add cron job option for checking old revisions. (Thus,
fof/console
is a dependency from now on)- I set a weekly cron job which is working on sundays at 02:00 AM (nothing special) using
diff:archive
command**. If you want to archive old revisions, please consider enabling this option. Otherwise, it'll try to find & archive old revisions for the post as soon asPost\Revised
event fires or wait for yourphp flarum diff:archive
command.
- I set a weekly cron job which is working on sundays at 02:00 AM (nothing special) using
- Add store main post revisions-only option.
- Add
the-turk/flarum-quiet-edits
support.- Strongly recommended if you want to save even more storage volume.
- Add lazy-loading to the revisions dropdown.
- Add rollback feature.
- Users can rollback to certain revision if they have permission to delete revisions. There is a new event for developers called
PostWasRollbacked
- Users can rollback to certain revision if they have permission to delete revisions. There is a new event for developers called
- Add new renderer called Combined
- Add beta 12 compatibility.
- Fix some PHP-related warnings.
- Fix some CSS-related typos in renderers.
- Fix black borders for the dark mode.
- Update diff repository to 6.5.1
There are new lines & few changes for translators.
**: Here is the only Cron entry you need to add to your (Linux) server:
* * * * * php /<path/to/flarum>/flarum schedule:run >> /dev/null 2>&1
This Cron will call the Laravel command scheduler every minute. Then, Laravel evaluates your scheduled tasks and runs the tasks that are due.
- Add allow users to switch between renderers feature.
- Add synchronised scrolling option for side by side renderer's tabular view mode.
You'll lose all of your previous revisions.
- Reduce storage volume
- It's now almost 1.5x less than 0.1.0-beta.4 (click here for sample comparison)
- Add delete revisions feature.
- Christmas came early. Do not forget to set permissions.
- Add interchangeable detail level feature.
- You can immediately change the views of the diffs from one level to another without worrying about previous diffs which were calculated before.
- Update renderer views & layouts.
- I loved the rtfpessoa/diff2html library's layout and decided to implement it.
- Fix pluralization for
forum.revisionInfo
key (thanks to @rob006) - Update README.md
- Fix users always gets "PermissionDeniedException" when redrawing the post.
- Fix table headings are missing.
- Fix typos in translation keys (seperate -> separate).
- Update
php-diff
library to 6.4.4
- Update directory structure.
- Fix diff list is not showing up immediately after clicking the "Edited" button.
- Fix diff list is not showing up on
[deleted]
user's post. - Add store diffs in
app.cache
on "Edited" button'sclick
event. - Add
fof/nightmode
support. - Update dependencies.
Initial release (as WIP).