Releases: shaarli/netscape-bookmark-parser
Releases · shaarli/netscape-bookmark-parser
v4.0.0
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
andNetscapeBookmarkDecoder
classes.- CHANGELOG.md and contributor CODE_OF_CONDUCT.md.
- github ISSUE_TEMPLATE.md for bug reports and feature requests.
supportsDecoding
method andself::FORMAT
class constant (for future Interface conformity and Symfony services integration).BookmarksDataFormatter
class to use before export to have bookmarks ordered by tag.BookmarksDataConverter
andLegacyBookmarksDataConverter
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.
- Decoder should not set 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
Added
- Parsing 'ICON' attribute.
Fixed
- Improve PHPCS linter configuration
v3.1.0
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
Fixed
- Remove unknown parameter in
parseBoolean
function calls
v3.0.1
Added
- README: installation section (composer)
Fixed
- README: fix default example with v3.0.0 values
v3.0.0
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
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
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
Fixed
- Fix scuttle description on multiple lines
- Improve sanitizing regexp, preventing trimming actual content
v2.0.4
Changed
- Pin Travis builds to Ubuntu
precise
containers to ensure PHP 5.3 compatibility