Skip to content

Snippy v0.9.0

Compare
Choose a tag to compare
@heilaaks heilaaks released this 02 Feb 16:09
· 401 commits to master since this release
5325c4b

Breaking changes

  • Change Markdown as default format.
  • Change content field group to groups.
  • Change content field versions from string to array.
  • Change UTC offset format from +0000 to +00:00.
  • Change server command line options.
  • Change filter option behaviour.
  • Change editor option and add no-editor option.
  • Add new content field description.

New features

  • Add REST API routes for: keywords, groups, tags, uuid and digest.
  • Add experimental support for PostgreSQL database.
  • Add support for Markdown formatted content.
  • Add support to output search results also in Markdown format.
  • Add one command to export and import all default content.
  • Add comment auto-alignment for snippets when printed to terminal.
  • Add description field in text content templates.
  • Add uuid field for CLI and REST API operations.
  • Add limi option for CLI operations.
  • Add search category scat option for CLI operations.

Bugfixes

  • Fix solution creation from empty template.
  • Fix content update when parsing user input fails.
  • Fix content import from invalid source file.
  • Fix search from all categories with all option.
  • Fix resource validation for POST method.
  • Fix resource validation for PUT and PATCH methods.
  • Fix REST API HTTP OPTIONS responses.
  • Fix reading timestamps without quotes from YAML.

Security

  • Remove Alpine (apk) and Python (pip) installers from Docker image.
  • Remove all log messages that may reveal secrets.

Upgrade

Existing content in version v0.8.0 must be exported to YAML files for each content category. Then new version v0.9.0 from the Snippy tool is installed and the content is imported.

Because group field name was changed to groups, YAML files exported from version v0.8.0 must be modified manually before they are imported to version v0.9.0. If this is not done, the groups field will be empty in version v0.9.0.

# Export all content with version v0.8.0 to YAML files.
snippy --version
snippy export --snippets -f ./snippets.yaml
snippy export --solutions -f ./solutions.yaml
snippy export --references -f ./references.yaml

# Modify the YAML files so that all `group` property names are renamed to `groups`.

# Install new version and import generated YAML files.
pip install snippy==0.9.0 --user
snippy --version
snippy import -f ./snippets.yaml
snippy import -f ./solutions.yaml
snippy import -f ./solutions.yaml
snippy search --sall . --all