Skip to content

v1.5.0

Latest

Choose a tag to compare

@ahosgood ahosgood released this 14 May 19:04
6b95c89

Added

  • Added option in Flask Talisman to add Adobe Typekit CSP rules with allow_typekit_content_security_policy=True
  • Added extra_headers parameter in Talisman to update or add any global response headers
  • New pagination functions for populating pagination components
  • New Flask decorators for specifying Cache-Control headers in response

Changed

  • Updated Google CSP domains
  • Switched to checking response codes from requests in SimpleJsonApiClient
  • Renamed ResourceForbidden, ResourceNotFound and ResourceUnauthorized to ResourceForbiddenError, ResourceNotFoundError and ResourceUnauthorizedError in tna_utilities.api
  • SimpleJsonApiClient raises ApiError exceptions rather than generic Exception
  • Renamed the bytes parameter of pretty_file_size() to filesize_bytes

Removed

  • Removed security_headers parameter in Talisman

Fixed

  • Fixed logic inversion for default_headers in SimpleJsonApiClient
  • Incorrect ValueError exceptions changed to TypeError