Skip to content

Commit

Permalink
Update Changelog & Improve examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jowilf committed Aug 30, 2022
1 parent 9bbc57a commit f7a1dfc
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 6 deletions.
20 changes: 18 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,35 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres
to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.1.4] - 2022-08-30

---

### Added

- Add `upload_storage` to the default information saved into the database. Before, `upload_storage` can be extracted
from `path` attribute. Now you can access directly with `file['upload_storage']` by
@jowilf https://github.com/jowilf/sqlalchemy-file/pull/11
- Accept additional metadata from `File` object by @jowilf https://github.com/jowilf/sqlalchemy-file/pull/11
- Add section [Upload File](https://jowilf.github.io/sqlalchemy-file/tutorial/using-files-in-models/#upload-file) to the
documentation

## [0.1.3] - 2022-08-23

---

### Added

- Add `thumbnail_size` property to ImageField by @jowilf https://github.com/jowilf/sqlalchemy-file/pull/9

## [0.1.2] - 2022-08-11

---

### Added

- Add CHANGELOG.md
12 changes: 12 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.1.4] - 2022-08-30

---

### Added

- Add `upload_storage` to the default information saved into the database. Before, `upload_storage` can be extracted
from `path` attribute. Now you can access directly with `file['upload_storage']` in [#11](https://github.com/jowilf/sqlalchemy-file/pull/11)
- Accept additional metadata from `File` object in [#11](https://github.com/jowilf/sqlalchemy-file/pull/11)
- Add section [Upload File](https://jowilf.github.io/sqlalchemy-file/tutorial/using-files-in-models/#upload-file) to the
documentation

## [0.1.3] - 2022-08-23

---
Expand Down
Empty file added examples/fastapi/__init__.py
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 0 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ repo_name: jowilf/sqlalchemy-file
repo_url: https://github.com/jowilf/sqlalchemy-file
theme:
name: material
icon:
logo: material/file-cloud
palette:
- media: "(prefers-color-scheme: light)"
scheme: default
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "sqlalchemy-file"
version = "0.1.3"
version = "0.1.4"
description = "SQLAlchemy-file is a SQLAlchemy extension for attaching files to SQLAlchemy model and uploading them to various storage."
authors = ["Jocelin Hounon <[email protected]>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion sqlalchemy_file/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.1.3"
__version__ = "0.1.4"

from .file import File as File
from .types import FileField as FileField
Expand Down

0 comments on commit f7a1dfc

Please sign in to comment.