Skip to content

Releases: shaarli/netscape-bookmark-parser

v4.0.0

13 Aug 09:57
aa024e5
Compare
Choose a tag to compare

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

v3.2.0

11 Feb 09:27
5b2eb8d
Compare
Choose a tag to compare

Added

  • Parsing 'ICON' attribute.

Fixed

  • Improve PHPCS linter configuration

v3.1.0

25 Jan 09:09
76ff8d7
Compare
Choose a tag to compare

Changed

  • Scale down 'items' variable scope to method level. Class is now stateless.
  • Refactor 'parseString' method
  • Replaced idle 'sanitized' variable in 'sanitizeString' method

v3.0.2

17 Jan 10:41
d01129a
Compare
Choose a tag to compare

Fixed

  • Remove unknown parameter in parseBoolean function calls

v3.0.1

03 Nov 12:28
d2321f3
Compare
Choose a tag to compare

Added

  • README: installation section (composer)

Fixed

  • README: fix default example with v3.0.0 values

v3.0.0

03 Nov 12:08
43f924f
Compare
Choose a tag to compare

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

Added

  • Parsing now supports tags with multiple words separated by whitespaces.
  • Official PHP compatibility with PHP 7.3, 7.4 and 8.0.
  • Follow and enforce PSR-12 coding style

Changed

  • Bookmark's tags now returns an array of tags instead of tags string separated by whitespaces.

Removed

  • Drop support for PHP 5.6 and 7.0.

v2.2.0

06 Jun 16:47
v2.2.0
432a010
Compare
Choose a tag to compare

Added

  • Support Shaarli extended format: allow tag in bookmark description

Changed

  • Log to current working directory by default instead of library path
  • Do not replace tab character to preserve bookmarks formatting

Fixed

  • Error while trying to import a file without bookmarks
  • Undefined time variable

v2.1.0

06 Oct 14:46
v2.1.0
Compare
Choose a tag to compare

Added

  • Add PHP 7.1 and 7.2 to the Travis test environments
  • Add support for microsecond timestamps

Changed

  • Update test dependencies
  • Update regexes to PCRE2 for PHP 7.3

Removed

  • Drop support for PHP 5.3.x, 5.4.x and 5.5.x

v2.0.5

30 Jan 17:39
ea6911a
Compare
Choose a tag to compare

Fixed

  • Fix scuttle description on multiple lines
  • Improve sanitizing regexp, preventing trimming actual content

v2.0.4

30 Jul 21:14
v2.0.4
Compare
Choose a tag to compare

Changed

  • Pin Travis builds to Ubuntu precise containers to ensure PHP 5.3 compatibility