Skip to content

Snippy v0.10.0

Compare
Choose a tag to compare
@heilaaks heilaaks released this 01 May 11:43
· 218 commits to master since this release
f1d7707

Breaking changes

  • Change REST API endpoints.
  • Change REST API base path default.
  • Change REST API JSON schema validation.
  • Change REST API id attribute and queries with UUID.
  • Change server base path command line option name.

New features

  • Add search shortcut for command line interface.
  • Add support for name, source and versions content fields.
  • Add gzip compression support for REST API responses.
  • Add option to import all default content when server is started.
  • Add environment variable support for server, storage and support options.

Bugfixes

  • Fix install requirement for PyYAML version.
  • Fix multiple server startup problems in Docker container.
  • Fix POST HTTP response when multiple POST requests were processed.
  • Fix creating new content with prefilled templates.
  • Fix exporting and importing content template.
  • Fix error when content matching to a text template is saved.
  • Fix duplicated content field values when updating content.
  • Fix default value setting to groups field if no value was given.
  • Fix error message from duplicated content when defaults imported again.

Security

  • Remove setuid/setgid bit from binaries in Docker image.
  • Remove unnecessary file permissions in Docker image.
  • Change IP address where server binds in Docker container.

Documentation

  • Add containerized server example usage in Dockerfile and DockerHub.

Upgrade

All content must be exported to YAML files from version 0.9.0 and then imported to version 0.10.0. When upgrading from older version, see the release notes specific upgrade instructions.

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

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