Skip to content

Latest commit

 

History

History
158 lines (126 loc) · 8.12 KB

CHANGELOG.md

File metadata and controls

158 lines (126 loc) · 8.12 KB

1.0.8

  • Remove deprecated GetModelRelationship event related parts.
    • Thus, it requires Flarum 0.1.0-beta.13
  • Apply StyleCI and Prettier fixes.

1.0.7

  • Integration with kvothe/reply-to-see extension.
  • Add more vendor prefixes into less files.

1.0.6

  • Update version constraints for Flarum 0.1.0-beta.13.

1.0.5

  • 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)

1.0.4

  • 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.

1.0.3

  • Drop s9e/text-formatter ^2.3.7 requirement for flarum/core < beta 12
  • Update dist files.

1.0.2

  • 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.

1.0.1

  • Fix tooltips won't disappear on Chrome.

1.0.0

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 update flarum/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.
  • 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.
  • 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:

0.1.0-beta.7

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 called post_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.
  • 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 as Post\Revised event fires or wait for your php flarum diff:archive command.
  • 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
  • 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.

0.1.0-beta.6

  • Add allow users to switch between renderers feature.
  • Add synchronised scrolling option for side by side renderer's tabular view mode.

0.1.0-beta.5

You'll lose all of your previous revisions.

  • Reduce storage volume
  • 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.
  • Fix pluralization for forum.revisionInfo key (thanks to @rob006)
  • Update README.md

0.1.0-beta.4

  • 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

0.1.0-beta.3

  • Update directory structure.

0.1.0-beta.2

  • 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's click event.
  • Add fof/nightmode support.
  • Update dependencies.

0.1.0-beta.1

Initial release (as WIP).