v2.12.0 (Scarlet Magata)
「私は、真賀田四季です。貴女が不審に思うような、他の人格ではありません」
森博嗣.すべてがFになる THEPERFECTINSIDERS&Mシリーズ(講談社文庫)(p.12).講談社.Kindle版.
Breaking Changes (But no-bump major version)
- Java 21.x Support (and drop Java 17 Support)
- Error Response
- (3a06ed9) feat(http): error responses are in accordance with
RFC7807
- (3a06ed9) feat(http): error responses are in accordance with
- Add
v1
prefix to each endpoints- (51f9e4b) refactor(http): append
/v1
versioning prefix on each endpoint
- (51f9e4b) refactor(http): append
Notable Changes
- Scala 3.4.0
- (fb62001) chore: bump scala from
3.3.3
to3.4.0
- (fb62001) chore: bump scala from
New Features
- (287be32) feat(http/search): returns accumulated errors when search query params are invalid
Fixes
- (2dd0778) fix(http/content): excludes whitespace length from content length
- (81ae0ce) fix(contents): return
404
instead of raise error if content not found
Recfactors
- (7a6cb89) refactor: use
F[_]
instead ofM[_]
for Higher-Kinded Types - (4f5edc7) refactor(syntax): more abstraction, use
HKT
instead ofIO
- (199e160) refactor(db/transactor): more abstraction, use
Monad
for HKT instead ofIO
- (b7ed267) refactor(syntax): use
Monad
instead ofIO
for more abstraction - (588f86a) refactor(auth/jwt): use
Monad
instead ofIO
for more abstraction - (9670be5) refactor(syntax/throwable): use
Monad
instead ofIO
for more abstraction - (06982f8) refactor: re-structure
Fail
case classes - (8e6dbbe) refactor(http): rewrite error handling
- (abcaf5a) refactor(domains/repository): move into
repositories
directory - (565fba7) refactor: rename case class for read db row
- (5580144) refactor(docs/rest-api): devide file
- (bbc93e9) refactor: use
Context Functions
if possible - (eb46d65) refactor: use
using
or add comment - (dd20aee) refactor: use
log4cats
inBootStrap
instead ofslf4j
- (12e4f85) refactor(db): avoid using
unsafeRunSync()
in db migration - (3bdcbf2) refactor(http):
MethodNotAllowSupport
trait more abstract - (d43f008) fix(db/migrate): delete return types and run
unsafeRunSync
before select a data from db - (4650e3f) refactor(search): divide extract and validate search query function
- (858b091) refactor(http): delete unnecessary
implicit val
- (8ef223d) refactor(domain/repository): type classes
- (72ea9bc) refactor: escape reserved words instead of append suffix
- (a35c9e5) refactor(logger): move
log4catsLogger
instance fromBootStrap
toModules
Docker
- (9cd0a9f) chore(docker): update
db
image forlocal
andtest
- (5b78f73) chore(docker): add
--no-install-recommends
for install packages - (3637cc5) chore(docker): reduce image size with multi stage build
- (df9e4d5) chore(docker): enable
QUALTET_HTTP_ENDPOINT_SYSTEM_METADATA_ENABLED
on example docker compose file - (47b34d8) chore(docker): rename example docker compose file
- (e919585) chore(docker): bump runtime base image
- (d387505) docker: bump builder's image
Test
- (04609be) test: delete unnecessary import
- (70b4e59) test(http): assert JSON for error cases
- (badbbc7) test(http): add
TODO
comment - (571217d) test(http): assert
Content-Type
explicitly in all endpoint - (b9db55d) test(http): assert JSON response for all endpoints
CI
- (f019d3e) chore(ci): bump
actions/checkout
from3
to4
- (5b1c658) chore(ci): bump
actions/setup-java
from3
to4
- (3b6c562) chore(ci): update
actions
- (8f5ee22) chore(ci): bump
actions/cache
from@v3
to@v4
- (3a4fc84) ci: update cache settings
- (3cfb94c) ci: use
coursier/cache-action
instead ofactions/cache
- (6b43c03) ci: run compile before cache
- (7923bcc) ci: ignore take a coverage
- (e313dcd) ci: fix typo
- (af9429b) ci: enable take coverage and send report
- (1005acb) ci: bump scala from
3.3.1
to3.3.3
Dependencies
- (cfdcf38) chore(deps): update dependencies
- (ed3989a) docs(deps): update dependencies
- (294ef93) docs: bump dependencies
- (04eaf73) chore(deps): update dependencies
- (9aae68f) chore(deps): update dependencies
- (e4629f6) chore(plugins): update plugins
- (049b061) chore(deps): update dependencies
- (e7e7ea5) chore(deps): bump dependencies
- (3927898) chore: bump sbt from
1.9.7
to1.9.9
- (59af9ea) chore: bump scala from
3.3.1
to3.3.3
Docs
- (1883c9e) docs: update releases
- (3f73935) fix(docs/rest-api): fix wrong respons and etc
- (65d82c4) docs: update npm required engine version
- (c66c834) docs(openapi): add
deprecated
option tostatus
endpoint - (739ff1c) docs(openapi): add
request
andresponse
header description - (0620b8c) docs(openapi): update
externalDocs
url - (d55ea19) docs(openapi): fix typo
- (8ed98fa) docs(openapi): update
headers
section - (7d8a6ad) docs(openapi): add
External Resources
section - (dde8e71) docs: update
README.md
- (1931c47) docs: update
README.md
- (c503e32) docs: update LICENSE year
- (917a0fe) docs: fix example
docker-compose.yml
url - (e364154) docs: fix wrong library name
- (c8b7565) docs(deps): update dependencies
- (2a8ab29) docs(rest-api): add
NOTE
section - (71d40f6) docs(README): update coverage badge
- (145b831) docs(README): update coverage badge
- (1e579ef) docs: add missing
robotsAttributes
description - (3eb094a) docs(rest-api): memtion to which content excludes from the response
Misc
- (2f9fdbb) chore: add
TODO
andFIXME
comment - (176c332) chore: add comment
- (2853f48) chore: suppress
SeqApply
in recursive function - (386b390) chore: update
scalafmt
settings - (5d534cb) fix(tools): some fixes