Skip to content

Releases: GwynethLlewelyn/post-local-storage

v1.2.1 Fixing #7 and other annoying bugs

26 Apr 09:12
Compare
Choose a tag to compare
  • Hooking up with more triggers to deal with issue #7 (PMs got expiry-time set to zero)
  • Using the submit's button name to check for correct button to clear localStorage, since checking for its value requires dealing with potential translations
  • Added more (default) configurations for the various code debugging and CI tools that are automatically launched these days

1.2.0-pre Not Very Simple Anymore

20 Apr 23:33
Compare
Choose a tag to compare
Pre-release

Pre-release v.1.2.0

  • @kylesands correctly pointed out that the code introduced in 1.1.0 doesn't work properly: when clicking Submit without having a valid session, all local storage will be deleted as well (because Submit has that side-effect). So we need to address this case before clicking submit, and this can only be accomplished by hooking up to the correct event and properly exporting the session expiry date, because phpBB forcefully hides the session cookie from the JavaScript sandbox.
  • Therefore, this is not a "very simple" extension any more. Just "simple".
  • Other minor bug fixes (kudos again to @gvp9000).
  • Note for the pre-release version: it still includes far too many debug messages.

v1.1.0

17 Apr 20:54
Compare
Choose a tag to compare

Lots of novel implementations, time to bump it up!

  • Bug: when user clicks on Preview, local storage gets cleared by mistake. Reported & fixed by @kylesands (see https://www.phpbb.com/customise/db/extension/postlocalstorage/support/topic/246115?p=877342#p877342)
  • Added some checks to deal with stale local storage. This is an extreme case when people just happen to completely forget that they still have a message waiting for them for that particular URL. While this is an edge case, it has been pointed out by the validators. Note that old objects (without timestamps) will still be dealt with.
  • Save subject field as well as the textarea content (as suggested by @TrekRed).
  • Fixed DOM transversal in order to catch text written on a Quick Reply as well (it uses a different class).
  • Added a very simple test suite (not on the plugin, just on the GitHub package) with a mock phpBB3 HTML/CSS layout, just to test the actual functionality of the local storage facility. Just point a browser to the local file ./tests/test.html and open the Development Tools on your browser. Debug messages are also sent to the console, if you enable it to see them (regular messages are very sparsely used, while debug messages are chatty).
  • Refactored the code to use the 'new' operators ?. and ??, making the overall code much easier to follow & understand (and possibly more bug-proof as well).
  • Attempted to add JSDoc documentation on the JavaScript code (still a WIP).

v1.0.5

15 Apr 09:57
Compare
Choose a tag to compare
  • Renamed custom_functions.js to postlocalstorage_functions.js as per validation suggestion
  • Fix bad JSON indentation on version_check.json which prevented version checking from working at all

v1.0.4 Fixing Firefox Bug

14 Apr 20:45
Compare
Choose a tag to compare
  • Fix the weirdest bug found on Firefox. Kudos to @gvp9000 for the fix!

For more information see https://www.phpbb.com/customise/db/extension/postlocalstorage/support/topic/246616?p=877324#p877324

Full Changelog: v1.0.3...v1.0.4
Also see CHANGELOG.md.

v1.0.3 Polishing & Versioning

12 Mar 11:53
Compare
Choose a tag to compare
  • Cleaning up the inconsistencies with version numbering and automatic version detection etc.
  • Add functioning version check
  • Move graphics files (for logo, etc.) to /graphics (de-clutter root)
  • Moved style/template changes to all since they are not specific to prosilver (merely JS injection)
  • Add this file :-)

v1.0.2 - still an experimental, pre-alpha release

04 Mar 03:10
Compare
Choose a tag to compare

Version as submitted to phpBB.com for inclusion in their extension database.

Most fixes had to do with the license change and placing files in the proper places...

v1.0.1 Early Alpha release

04 Mar 01:30
Compare
Choose a tag to compare
Pre-release

An attempt to launch a packaged version of this extension.

Remember: unzip postlocalstorage.zip it under /ext, then activate the extension from the ACP.

Full Changelog: https://github.com/GwynethLlewelyn/post-local-storage/commits/v1.0.1