Skip to content

Releases: yoshinorin/qualtet

v2.15.0 (Scarlet Penerapi)

04 Dec 15:54
2b85a59
Compare
Choose a tag to compare

「助っ人を呼びました」ロジが僕に囁いた。「ペネラピです」
森博嗣.君たちは絶滅危惧種なのか? Are You Endangered Species? WWシリーズ(講談社タイガ)(p.98).講談社.Kindle版.

Refactor

  • (51ed717) refactor: rename from action to cont
  • (2a472f0) refactor: delete unnecessary import
  • (901663d) refactor(auth/jwt): use given instead of implicit val
  • (86ac6cd) refactor(dpc/rest-api): reorganaize directory structures
  • (ab86388) refactor(model/content): rename from ReadContentDbRow to ContentReadModel
  • (1beedba) refactor(domains/models): add models directory to each domains directory
  • (71abf0c) refactor(domain/models): divide objects and case classes into other files
  • (cad204a) refactor(models): divide read and others
  • (344d5d7) refactor(models): divide write and others
  • (7786f21) refactor(models): delete unnecessary default values
  • (b120787) refactor(repository): homogenize the naming of given instances for doobie
  • (89cc734) refactor(service): rename leftover function namings with previous commit
  • (ee47419) refactor(repository): delete unnecessary given for doobie
  • (5c668ef) refactor(models): delete meaningless model
  • (b7aae35) refactor(domain/contentSerializing): use bulkUpsert instead of upsert
  • (4a1d9eb) refactor(models): move common value objects to ValueObjects
  • (4ec5cad) refactor(errors): divide domain error case classes and http error case classes
  • (c0bd17d) refactor: delete unused imports
  • (16a3feb) refactor(domain): rename file name from Error to Errors
  • (1b244f4) refactor(domain/errors): delete title field in calse classes
  • (3997cd2) refactor(domain/errors): rename sealed trait from Error to DomainError
  • (5b7b799) refactor(http/errors): reorganize package
  • (16bab87) refactor(errors): move ProblemDetailsError case class from http to domains
  • (d37a3fa) refactor(domains): rename Request and Response models
  • (41f6cf7) refactor(models/content): rename from ContentResponseModel to ContentDetailResponseModel
  • (6b29ae7) refactor(content): separating Response case class from Content class

Docker

  • (89e8c67) chore(docker): bump JDK from jammy to noble
  • (720d077) chore(docker): bump mariadb from 11.4.2 to 11.4.3

Misc

  • (97bfd98) chore: use -Xkind-projector instead of -Ykind-projector

CI

Test

  • (433405a) test(tags): enable with query params tests cases
  • (9ca127c) test(http/errors): add test cases

Dependencies

  • (ada7594) chore(plugins): bump sbt-coveralls from 1.3.9 to 1.3.13
  • (04d61df) chore: bump sbt from 1.10.0 to 1.10.1
  • (796fcaa) chore: bump scalafmt from 3.7.17 to 3.8.3
  • (75622ff) chore: bump scala from 3.4.2 to 3.5.0
  • (5419971) chore: delete unnecessary compiler option
  • (36945f5) chore(deps): update dependencies
  • (20594de) chore(deps): update dependencies
  • (2a41cc5) chore(deps): update dependencies
  • (8fc7a28) chore(docs/deps): bump dependencies
  • (7b370e9) chore: bump scala from 3.5.0 to 3.5.2 and bump sbt from 1.10.1 to 1.10.4
  • (45b837c) chore(deps): update dependencies
  • (d7c6b7e) chore(deps): bump http4s from 1.0.0-M42 to 1.0.0-M43
  • (b99b606) chore(deps): update dependencies
  • (5a6de84) chore(deps): update plugins
  • (1650f65) chore(deps): bump cats-effect from 3.5.5 to 3.5.7

Docs

  • (5ad060b) docs(rest-api): rename from contents/post.yml to contents/upsert.yml
  • (2fb02d3) fix(docs/rest-api): fix filename from getbyPath.yml to getByPath
  • (a370659) fix(docs/rest-api): append required to response fields if they must be returend
  • (e62cf88) docs: fix typo
  • (a0cdb67) chore(docs/rest-api): bump require node version
  • (b46c69a) chore(docs/deps): bump @redocly/cli from 1.25.5 to 1.25.15
  • (7ca6013) fix(doc/rest-api): fix response schema when upsert content

Full Changelogs

v2.14.0...v2.15.0

v2.14.0 (Scarlet Orgasta)

21 Jul 04:53
0308fbe
Compare
Choose a tag to compare

ウォーカロン には、リーダがいて、名前はオーガスタというそうです
森博嗣. 天空の矢はどこへ? Where is the Sky Arrow? Wシリーズ (講談社タイガ) (p.23). 講談社. Kindle 版.

Performances

  • (6bf38aa) perf(db): use HikariCP instead of JDBC DriverManager for manage connection
    • (f980bd8) feat(db): read connection pool settings from config

Refactors

  • (113ec55) refactor(http): delete MethodNotAllowedSupport trait* (be90602) chore: delete TODO comments. http4s disallowed set
    Allow headers
  • (2af3db7) refactor: clean up redundant code
  • (b441f9e) refactor: delete unnecessary val
  • (127c0c5) refactor(tasks): delete unnecessary code
  • (5db7014) refactor: move and rename ProblemDetails case class
  • (2449a39) refactor: use cats.data.ContT instead of Action
  • (ef657a4) refactor: delete unnecessary val
  • (ee63f9b) refactor: rename from Error to ProblemDetailsError
  • (2cf2b39) refactor: rename Fail to Error and move into the domains package
  • (c347ec1) refactor: more accurate naming
  • (7da30ee) refactor: move log4catsLogger given instance from class to companion object
  • (a688372) refactor: better scope
  • (2755cf6) refactor: do not refer Modules directory
  • (6445d56) refactor(config): delete unnecessary nested structure in db
  • (9fae87b) refactor(task): rename from CreateAuthor to CreateOrUpdateAuthor
  • (b1ae31a) refactor(test): move some val into beforeAll

Test

  • (b74af35) test(task): enable comment-outed assertion

CI/CD

  • (96a3c8d) ci: update actions/setup-node from v3 to v4

Dependencies

  • (2c240ad) chore(plugins): downgrade sbt-coveralls from 1.3.11 to 1.3.9
  • (7386022) chore(deps): update dependencies
  • (77ac627) chore(deps): bump mariadb-java-client from 3.3.3 to 3.4.0

Docs

Misc

  • (36c84e7) chore(log): suppress DEBUG level on STDOUT
  • (6bc389d) chore(docs/deps): update @redocly/cli from 1.14.0 to 1.18.0
  • (9658416) chore: delete old comment-outed code
  • (156da7a) chore(docker): remove version schema from compose file
  • (4c27c4d) chore: update .env.example
  • (62dd168) chore: delete println
  • (3ee06a7) chore(deps): update dependencies
  • (332c703) chore(log): allow put DEBUG log to file when dev env

Full Changelogs

v2.13.0...v2.14.0

v2.13.0 (Scarlet Nanayaku)

19 Jun 14:48
073a206
Compare
Choose a tag to compare

「私は、ユウイ・ナナヤク」
森博嗣.女王の百年密室 GOD SAVE THE QUEEN 百年シリーズ(講談社文庫)(p.37).講談社.Kindle版.

Refactors

  • (17ef3a7) refactor: move router and related instances from BootStrap to Modules
  • (5fd894f) refactor: change type parameter order
  • (2989b04) refactor: rename Transactor to Executer
  • (f2efc42) refactor: rename implicit from transactor to executer
  • (ab41433) refactor(db): inject doobie.transactor instead of config
  • (21cac79) refactor(db): comment out unnecessary `ExecutionContext

Test

  • (c24677c) test: delete unnecessary be verb

Docs

  • (03ce762) docs(rest-api): fix components path
  • (dfdb874) docs(rest-api): change order

CI/CD

  • (f4e051d) ci: enable workflow_dispatch

Docker

  • (60d67a9) chore(docker/db): bump mariadb from 10.11.6 to 10.11.7
  • (4cb0935) chore(docker): bump mariadb from 10.11.x to 11.4.x

Dependencies

  • (65f88f3) chore(docs/deps): bump dependencies
  • (7ae35a8) chore: bump sbt from 1.9.9 to 1.10.0
  • (24a79e0) chore(deps): comment out unused deps for testing
  • (c1979df) chore(deps): update dependencies
  • (544c2a7) chore(deps): bump @redocly/cli from 1.8.2 to 1.10.4
  • (0fd15c1) chore: update scala from 3.4.0 to 3.4.1
  • (c337c4c) chore(plugins): update plugins
  • (698b751) chore(plugins): delete wartremover
  • (f850be7) chore(deps): update dependencies
  • (c80d78b) chore(plugins): update plugins
  • (888a560) chore: bump scala from 3.4.1 to 3.4.2
  • (4db10a4) chore(docs/deps): update dependencies
  • (da271c3) chore(deps): update dependencies

Others

  • (6b5cefe) perf: use HikariCP instead of JDBC DriverManager for manage connection
    • (e22125a) Revert "perf: use HikariCP instead of JDBC DriverManager for manage connection"

Full Changelog

v2.12.0...v2.13.0

v2.12.0 (Scarlet Magata)

08 Mar 14:02
71e0a80
Compare
Choose a tag to compare

「私は、真賀田四季です。貴女が不審に思うような、他の人格ではありません」
森博嗣.すべてがFになる THEPERFECTINSIDERS&Mシリーズ(講談社文庫)(p.12).講談社.Kindle版.

Breaking Changes (But no-bump major version)

  • Java 21.x Support (and drop Java 17 Support)
    • (fcec78e) docs: add Java 21.x support
    • (2f2339f) chore(docker): use jdk21 image
    • (376afe5) ci: drop java 17
  • Error Response
    • (3a06ed9) feat(http): error responses are in accordance with RFC7807
  • Add v1 prefix to each endpoints
    • (51f9e4b) refactor(http): append /v1 versioning prefix on each endpoint

Notable Changes

  • Scala 3.4.0
    • (fb62001) chore: bump scala from 3.3.3 to 3.4.0

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 of M[_] for Higher-Kinded Types
  • (4f5edc7) refactor(syntax): more abstraction, use HKT instead of IO
  • (199e160) refactor(db/transactor): more abstraction, use Monad for HKT instead of IO
  • (b7ed267) refactor(syntax): use Monad instead of IO for more abstraction
  • (588f86a) refactor(auth/jwt): use Monad instead of IO for more abstraction
  • (9670be5) refactor(syntax/throwable): use Monad instead of IO 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 in BootStrap instead of slf4j
  • (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 from BootStrap to Modules

Docker

  • (9cd0a9f) chore(docker): update db image for local and test
  • (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 from 3 to 4
  • (5b1c658) chore(ci): bump actions/setup-java from 3 to 4
  • (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 of actions/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 to 3.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 to 1.9.9
  • (59af9ea) chore: bump scala from 3.3.1 to 3.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 to status endpoint
  • (739ff1c) docs(openapi): add request and response 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 and FIXME comment
  • (176c332) chore: add comment
  • (2853f48) chore: suppress SeqApply in recursive function
  • (386b390) chore: update scalafmt settings
  • (5d534cb) fix(tools): some fixes

Full Changelog

v2.11.0...v2.12.0

v2.11.0 (Scarlet Linda)

03 Nov 06:07
24af403
Compare
Choose a tag to compare

一人娘 で、リンダといった。
森博嗣. 幽霊を創出したのは誰か? Who Created the Ghost? WWシリーズ(講談社タイガ)(p.12).講談社.Kindle 版.

Docker

  • (ab76c9c) chore(docker): bump docker-sbt image
  • (30cd028) chore(docker): bump docker-sbt version
  • (b40a9ff) chore(docker): bump base image
  • (db733ba) chore(docker): delete unnecessary layer, package and files

CI/CD

  • (d6670fa) ci: add Java 21 to matrix

Dependencies

  • (28dc8a0) chore(deps): bump scala from 3.3.0 to 3.3.1
  • (c79f558) chore(deps): update dependencies
  • (e3392cd) chore(plugins): bump scalafmt
  • (ad81022) chore(plugins): bump plugins
  • (939af1b) chore(deps): specify log4cats
  • (dd98c6f) chore(deps): update dependencies
  • (cbd8785) chore(plugins): delete sbt-license-report plugin

Full Changelog

v2.10.0...v2.11.0

v2.10.0 (Scarlet Kanmapa)

01 Sep 15:46
b289e66
Compare
Choose a tag to compare

ナクチュの区長であり、ここのリーダでもあるカンマパの許可を既に得てある。
森博嗣.風は青海を渡るのか? The Wind Across Qinghai Lake? Wシリーズ(講談社タイガ)(p.18).講談社.Kindle版.

Breaking Changes (but not bump major version)

  • (11506b1) refactor(http/status): drop status endpoint

Notable Changes

  • (81ad641) chore(deps): bump http4s from 1.0.0-M39 to 1.0.0-M40 and bump cats-effect from 3.4.11 to 3.5.1

Docker

  • (de48746) chore(docker): bump docker-mariadb from v10.11.4 to v10.11.5

CI / CD

  • (500ef21) Revert "chore(plugin): bump sbt-coveralls from 1.3.9 to 1.3.11"

Dependencies

  • (d3437da) chore(sbt): bump sbt from v1.9.3 to v1.9.4
  • (7a2d368) chore(deps): update dependencies

Docs

  • (d979ac3) docs(releases): add appendix section

Misc

  • (3f4b854) docs(releases): fix typo

Full Changelog

v2.9.1...v2.10.0

v2.9.1

25 Aug 13:21
fe16166
Compare
Choose a tag to compare

Fixes

  • (ad9c49b) fix(docker): process exit when boot http server caused by can not get commit hash
  • (27a4415) fix(metadata): return "N/A" if can not get git commit hash

Full Changes

v2.9.0...v2.9.1

v2.9.0 (Scarlet Judy)

24 Aug 15:25
3224f4e
Compare
Choose a tag to compare

名前は、ジュディという。君に話しかけることはないと思う。控えめなのでね
森博嗣. 血か、死か、無か? Is It Blood, Death or Null? Wシリーズ (講談社タイガ) (p.153). 講談社. Kindle 版.

New Features

  • Add system/metadata endpoint and related commits
    • (a5cdbf1) feat(http/system): add metadata endpoint
    • (4dc0381) feat(http/system): configurable metadata endpoint enable or not
    • (306c813) refactor(http/metadata): if expression
    • (152a791) refactor(config): reorganize stracture
    • (743598d) pref(http/system): use lazy val for get metadata
    • (a4a9e9c) feat(http/system): return more field when GET request to metadata endpoint
    • (c254ec7) test(http/system): delete unnecessary var
  • Add system/health endpoint and related commits
    • (c3f7fd2) feat(http/system): implement system/health endpoint instead of status
    • (5420cfd) docs(rest): add system/health endpoint
    • (ffc192b) refactor(http/system): rename health function
  • (2b3988b) feat(docker): set a commit hash when build a docker image
  • (237856f) feat(buildInfo): add repository
  • (97ba7ca) feat(logging): logging application info when boot a server

Refactor

  • (c9fb76d) refactor: use ResourceApp.Forever instead of IOApp
  • (54807d2) refactor: delete unnecessary import, val and args
  • (24aaf01) refactor(http): use map[F] instead of for-comprehension
  • (075919b) refactor(docker): use v2 compose command in sbt task

CI / CD

  • (98a17f0) fix(ci): ci doesn't run if change Dockerfile

Test

  • (764cfcd) test(http/system): nested should

Dependencies

  • (9c0e66d) chore(deps): update dependencies
  • (7a51202) chore(plugin): bump sbt-coveralls from 1.3.9 to 1.3.11
  • (398eb50) chore: bump scalafmt from 3.7.9 to 3.7.12

Docs

  • (13e1fb8) docs: add Releases page
  • (74917e1) docs(releases): add front-matter

Misc

  • (a5573d5) chore(plugins): add sbt-buildinfo and sbt-git
  • (12ee11d) chore(deps/docs): update dependencies
  • (294d1fc) chore(http): add withShutdownTimeout option
  • (a933e22) chore: update compiler options
  • (c5e5c46) chore(http): fix typo

Full Changelog

v2.8.0...v2.9.0

v2.8.0 (Scarlet Iman)

03 Aug 17:00
1001968
Compare
Choose a tag to compare

イマンという名で呼ばれていたそうだが、その……、人間を殺した最初の人工知能と呼ばれていたらしい
森博嗣. 血か、死か、無か? Is It Blood, Death or Null? Wシリーズ (講談社タイガ) (p.37). 講談社. Kindle 版.

New Features

  • (c5e6a3a) feat(http): add X-Request-Id header to response and refactor httpApp build sequence
  • (b247ebb) feat(auth): case insensitive Bearer support
  • (51774df) feat(docker): define QUALTET_VERSION ENV
  • (25e8823) feat(tags): return count fields that related number of articles

Fixes

  • (7f2a1e9) fix(http/cors): avoid allow all origin if config contains invalid URL
  • (2618170) fix(http/queryParams): limit default value from 1 to 10

Refactors

  • (a71105a) refactor(contents): delete requestId field
  • (27817d0) test(CORS): add test case for CorsProvider
  • (e1ad0ca) refactor(http): remove orNotFound method from Router class and apply CORS to router bulky
  • (58a0c1f) chroe: clean up import
  • (b3497f5) refactor(http/cors): use AllowOriginAll explicitly if cors config is empty
  • (c55d8d6) refactor(http/router): clean up import
  • (e27d102) refactor(http/queryParams): move from Router class to syntax trait and add test cases
  • (cce8366) refactor(http): move HttpRoutes.of methods from Router class to each Routes classes
  • (419a3dc) refactor(http): move HttpApp builder from BootStrap to HttpAppBuilder
  • (7645d0b) refactor(auth): delete redundant pattern match
  • (a54cf99) refactor(auth): clean up import

Test

  • (30eddb4) test(cors): add empty test case
  • (a2f8464) test(http/header): add test case for additional headers

Dependencies

  • (0240403) chore(deps): bump sbt from 1.9.0 to 1.9.3

Misc

  • (df313f3) chore: add TODO comment
  • (f085ea9) chore(docker): bump docker images version

Docs

  • (501fa73) docs(docker): add Environment variables section
  • (a0e93d6) docs: add Using Stack section
  • (7d81caa) docs: update README.md
  • (bb5a1fe) docs(features): fix typo

Full Changelog

v2.7.0...v2.8.0

v2.7.0 (Scarlet Hagiri)

26 Jul 14:51
1bc86c2
Compare
Choose a tag to compare

「ハギリ先生ですね?」そう言った。日本語だ。
森博嗣.彼女は一人で歩くのか? Does She Walk Alone?Wシリーズ(講談社タイガ)(p.8).講談社.Kindle版.

New Features

  • (a1a6ca4) feat(contents): return content length
  • (43927e8) feat(http): add X-Response-Time header to response

Performances

  • (bfc2f86) perf: use opaque type instead of value class

Refactor

  • (8b00b3b) refactor: rename variable
  • (faabdcc) refactor: extends trait for value extension
  • (96feed5) refactor: extends apply method for Id field
  • (e8e0bf0) refactor(contents): use ContentId.apply()
  • (5cfbc33) refactor: delete unnecessary import
  • (2e2ff5d) refactor: move the db migration process into the run method to make the booting process easier to understand
  • (8ea19bc) refactor(cors): delete unnecessary import

Docs

Dependencies

  • (1f7f299) chore(deps): bump scalafmt from 3.5.9 to 3.7.9
  • (fed07d4) chore(plugins): update plugins
  • (9135c2d) chore(deps): update dependencies
  • (a405617) chore(docs/deps): bump @redocly/cli from ^1.0.0-beta.127 to 1.0.0
  • (bbc11e4) chore: bump docs package.json version

Misc

Full Changelog

v2.6.0...v2.7.0