Skip to content

v4.0.0

Latest
Compare
Choose a tag to compare
@ArthurHoaro ArthurHoaro released this 13 Aug 09:57
aa024e5

Please read the changelog carefully, this is a major release, there are breaking changes.

Many thanks to @TangoMan75 for his huge refactoring and improvements! 🚀

Added

  • NetscapeBookmarkEncoder and NetscapeBookmarkDecoder classes.
  • CHANGELOG.md and contributor CODE_OF_CONDUCT.md.
  • github ISSUE_TEMPLATE.md for bug reports and feature requests.
  • supportsDecoding method and self::FORMAT class constant (for future Interface conformity and Symfony services integration).
  • BookmarksDataFormatter class to use before export to have bookmarks ordered by tag.
  • BookmarksDataConverter and LegacyBookmarksDataConverter class to convert old bookmarks to new data format.
  • PHPUnit configuration file: phpunit.xml.dist

Changed

  • Remove Katzgrau-KLogger dependency.
  • parseBoolean method should always return a boolean value.
  • Renamed properties to be compatible with "https://schema.org" structured data vocabulary:
[
    'title' => 'name',
    'icon'  => 'image',
    'uri'   => 'url',
    'tags'  => 'tags',
    'note'  => 'description',
    'time'  => 'dateCreated',
    'pub'   => 'public'
];
  • Constructor: Replace parameters from constructor with $context array and class constants.
  • Updated PHPUnit to the latest version (9.5).
  • Undefined values should remain null
    • Decoder should not set default $item['name'] = 'untitled'.
    • Decoder should not set $item['dateCreated'] = time() as default.
  • Removed default Tags ; This is not the decoder job to set default values.
  • Removed default public/private status ; This is not the decoder job to set default public status.
  • Moved source files and updated file structure.
  • Travis CI replaced with GitHub actions.
  • Updated PHPCS linter configuration.
  • Updated README.md
  • Improved Makefile.

Fixed

  • TRUE_PATTERN yes appears twice; ordered alphabetically.

Removed

  • travis.yml, .gitattributes