v2.0.0
Changelog
- Breaking: Go version 1.19 is now the minimum required version to build this. (#430)
- Breaking:
enable-lilliput
config renamed toenable-animated-thumbnails
. (#312) - Breaking: Thumbnail generation now requires libvips. See docs/build.md for prerequisite instructions. (#366, #369, #312)
- Breaking: Resolver caches are now stored in PostgreSQL. See docs/build.md for prerequisite instructions. (#271)
- PDF: Generate customized tooltips for PDF files. (#374, #377)
- Twitter: Generate thumbnails with all images of a tweet. (#373)
- YouTube: Added support for 'YouTube shorts' URLs. (#299)
- Media files: Generate tooltips for Video and Audio files. (#427)
- Minor: Add ability to opt out hostnames from the API. (#405)
- Fix: SevenTV emotes now resolve correctly. (#281, #288, #307)
- Fix: YouTube videos are no longer resolved as channels. (#284)
- Fix: Default resolver no longer crashes when provided url is broken. (#310)
- Fix: JSON responses now always return the proper content type. (#334)
- Dev: Improve BetterTTV emote tests. (#282)
- Minor: BetterTTV cache key changed from plural to singular form. (#282)
- Dev: Add docker-compose support. (#395)
- Dev: Improve Twitch.tv clip tests. (#283)
- Dev: Improve YouTube tests. (#284)
- Dev: Resolver Check now returns a context. (#287)
- Dev: Improve Wikipedia tests. (#286)
- Dev: Improve Imgur tests. (#289)
- Dev: Improve migration tests. (#290)
- Dev: Improve Twitter tests. (#293)
- Dev: Improve SevenTV tests. (#294)
- Dev: Improve FrankerFaceZ tests. (#295)
- Dev: Improve Livestreamfails tests. (#297, #301)
- Dev: Improve default resolver tests. (#300)
- Dev: Resolve imgur.io links. (#365)
- Dev: Don't use
stampede
for link resolver links. (#394) - Dev: Update to Twitter's v2 API. (#414)
- Dev: Add HTTP Caching headers. (#417)
- Dev: Add custom middleware to strip trailing slashes. (#422)
- Dev: Make cache timeout durations configurable. (#419)
- Dev: Add prometheus middleware for chi. (#425)
What's Changed (Commit list)
- Cache resolved data in PostgreSQL instead of in-memory by @pajlada in #271
- Fix SevenTV emote resolver by @pajlada in #281
- Improve BetterTTV emote tests by @pajlada in #282
- Improve Twitch.tv clip tests by @pajlada in #283
- Improve YouTube tests by @pajlada in #284
- Bump google.golang.org/api from 0.71.0 to 0.73.0 by @dependabot in #285
- Check now returns a context by @pajlada in #287
- Improve wikipedia tests by @pajlada in #286
- Fix 7tv emote resolving again by @pajlada in #288
- Improve Imgur tests by @pajlada in #289
- Bump github.com/frankban/quicktest from 1.14.2 to 1.14.3 by @dependabot in #291
- Update minimum required Go version to 1.17 by @pajlada in #292
- Add tests to migration running by @pajlada in #290
- Improve Twitter tests by @pajlada in #293
- Improve SevenTV tests by @pajlada in #294
- Improve FrankerFaceZ tests by @pajlada in #295
- Add tests for resolvers without any tests by @pajlada in #296
- Add Livestreamfails tests by @pajlada in #297
- Fix Livestreamfails tests by @pajlada in #301
- Bump codecov/codecov-action from 2 to 3 by @dependabot in #302
- Bump actions/upload-artifact from 2 to 3 by @dependabot in #304
- Bump actions/download-artifact from 2 to 3 by @dependabot in #305
- Bump google.golang.org/api from 0.73.0 to 0.74.0 by @dependabot in #298
- Bump github.com/go-chi/stampede from 0.5.0 to 0.5.1 by @dependabot in #303
- Add youtube shorts URLs by @NotNotQuinn in #299
- Bump github.com/spf13/viper from 1.10.1 to 1.11.0 by @dependabot in #306
- Fix 7tv API URL by @Leppunen in #307
- Bump google.golang.org/api from 0.74.0 to 0.75.0 by @dependabot in #308
- Bump github.com/jackc/pgconn from 1.11.0 to 1.12.0 by @dependabot in #309
- Bump github.com/jackc/pgx/v4 from 4.15.0 to 4.16.0 by @dependabot in #310
- Add default resolver tests by @pajlada in #300
- Fix link resolver crashing when provided url is invalid by @pajlada in #311
- docs: Include mention to fill dsn in config. by @KararTY in #313
- Bump github.com/pashagolub/pgxmock from 1.4.4 to 1.5.0 by @dependabot in #315
- Bump google.golang.org/api from 0.75.0 to 0.77.0 by @dependabot in #316
- Bump google.golang.org/api from 0.77.0 to 0.78.0 by @dependabot in #317
- Bump google.golang.org/api from 0.78.0 to 0.79.0 by @dependabot in #320
- Bump github.com/prometheus/client_golang from 1.12.1 to 1.12.2 by @dependabot in #321
- Bump github.com/jackc/pgx/v4 from 4.16.0 to 4.16.1 by @dependabot in #319
- Bump github.com/pashagolub/pgxmock from 1.5.0 to 1.6.0 by @dependabot in #323
- Bump google.golang.org/api from 0.79.0 to 0.80.0 by @dependabot in #322
- Bump google.golang.org/api from 0.80.0 to 0.81.0 by @dependabot in #324
- Bump github.com/spf13/viper from 1.11.0 to 1.12.0 by @dependabot in #325
- Bump google.golang.org/api from 0.81.0 to 0.82.0 by @dependabot in #327
- Bump google.golang.org/api from 0.82.0 to 0.84.0 by @dependabot in #329
- Bump google.golang.org/api from 0.84.0 to 0.85.0 by @dependabot in #330
- Bump google.golang.org/api from 0.85.0 to 0.86.0 by @dependabot in #331
- Bump google.golang.org/api from 0.86.0 to 0.88.0 by @dependabot in #337
- Bump google.golang.org/api from 0.88.0 to 0.90.0 by @dependabot in #339
- Start working on having status codes settable by resolvers by @pajlada in #334
- Bump google.golang.org/api from 0.90.0 to 0.91.0 by @dependabot in #340
- Bump github.com/pashagolub/pgxmock from 1.6.0 to 1.7.0 by @dependabot in #341
- Update minimum required Go version to 1.18 by @pajlada in #348
- Bump github.com/prometheus/client_golang from 1.12.2 to 1.13.0 by @dependabot in #344
- Bump pgx versions by @pajlada in #349
- Bump go.uber.org/zap from 1.21.0 to 1.22.0 by @dependabot in #343
- Bump google.golang.org/api from 0.91.0 to 0.92.0 by @dependabot in #350
- Bump google.golang.org/api from 0.92.0 to 0.93.0 by @dependabot in #351
- Update dependencies by @pajlada in #352
- Bump go.uber.org/zap from 1.22.0 to 1.23.0 by @dependabot in #354
- Bump google.golang.org/api from 0.93.0 to 0.94.0 by @dependabot in #353
- Bump github.com/jackc/pgx/v4 from 4.17.0 to 4.17.1 by @dependabot in #356
- Bump github.com/jackc/pgx/v4 from 4.17.1 to 4.17.2 by @dependabot in #357
- Bump google.golang.org/api from 0.94.0 to 0.95.0 by @dependabot in #358
- Bump github.com/spf13/viper from 1.12.0 to 1.13.0 by @dependabot in #359
- Bump google.golang.org/api from 0.95.0 to 0.96.0 by @dependabot in #360
- Bump google.golang.org/api from 0.96.0 to 0.97.0 by @dependabot in #362
- Bump google.golang.org/api from 0.97.0 to 0.98.0 by @dependabot in #364
- feat: auto-rotate thumbnails based on metadata by @leon-richardt in #366
- Bump go-imgur to v0.4.0 by @pajlada in #368
- feat: Enable static thumbnail generation on Windows by @KararTY in #369
- Bump golang.org/x/text from 0.3.7 to 0.3.8 by @dependabot in #370
- Bump google.golang.org/api from 0.98.0 to 0.99.0 by @dependabot in #372
- feat: generate multi-image thumbnails for multi-image tweets by @leon-richardt in #373
- feat: add tooltip support for PDF files by @leon-richardt in #374
- Bump golang.org/x/text from 0.3.8 to 0.4.0 by @dependabot in #375
- fix: Don't return inputBuf if input is of type PDF by @KararTY in #377
- Bump google.golang.org/api from 0.99.0 to 0.100.0 by @dependabot in #376
- implement imgur.io resolving by @gempir in #365
- chore: Use GitHub badge for README by @KararTY in #381
- fix: Twitch clips crash when twitch tokens not set by @KararTY in #380
- Bump google.golang.org/api from 0.100.0 to 0.101.0 by @dependabot in #382
- fix: Add checksums for Windows Github Action by @KararTY in #383
- feat!: Replace lilliput with govips by @KararTY in #312
- Bump google.golang.org/api from 0.101.0 to 0.102.0 by @dependabot in #384
- Bump github.com/prometheus/client_golang from 1.13.0 to 1.13.1 by @dependabot in #385
- Bump github.com/spf13/viper from 1.13.0 to 1.14.0 by @dependabot in #386
- Bump google.golang.org/api from 0.102.0 to 0.103.0 by @dependabot in #387
- Bump github.com/prometheus/client_golang from 1.13.1 to 1.14.0 by @dependabot in #388
- Bump github.com/frankban/quicktest from 1.14.3 to 1.14.4 by @dependabot in #389
- Bump go.uber.org/zap from 1.23.0 to 1.24.0 by @dependabot in #390
- Update indirect dependencies by @pajlada in #392
- Migrate dockerfile back to alpine by @pajlada in #393
- Switch from stampede to self-rolled-mutex-locked-channels-solution by @pajlada in #394
- Add vips-poppler to the Dockerfile as a run-time package by @Leppunen in #396
- Add font-noto to docker image by @Leppunen in #397
- Don't warn, just debug for missing status code & content type by @pajlada in #398
- Bump golang.org/x/text from 0.4.0 to 0.5.0 by @dependabot in #399
- Bump google.golang.org/api from 0.103.0 to 0.104.0 by @dependabot in #400
- Bump go-chi from v5.0.7 to v5.0.8 by @pajlada in #402
- Add docker-compose file by @pajlada in #395
- Remove Windows CI support by @pajlada in #404
- Ignore websites based on their hosts by @pajlada in #405
- Bump google.golang.org/api from 0.104.0 to 0.105.0 by @dependabot in #406
- Bump google.golang.org/api from 0.105.0 to 0.106.0 by @dependabot in #408
- Bump golang.org/x/text from 0.5.0 to 0.6.0 by @dependabot in #407
- Increase YouTube cache time from 24h to 48h by @pajlada in #409
- Bump google.golang.org/api from 0.106.0 to 0.108.0 by @dependabot in #413
- Bump github.com/spf13/viper from 1.14.0 to 1.15.0 by @dependabot in #412
- Migrate to Twitter API v2 by @M4tthewDE in #414
- Add HTTP Caching headers to links and thumbnails by @nuuls in #417
- Make resolver cache durations configurable by @M4tthewDE in #419
- Add custom middleware to strip slashes by @M4tthewDE in #422
- Add total requests prometheus metric by @M4tthewDE in #420
- Revert "Add total requests prometheus metric (#420)" by @pajlada in #424
- Bump google.golang.org/api from 0.108.0 to 0.109.0 by @dependabot in #426
- Bump minimum Go version from 1.18 to 1.19 by @pajlada in #430
- Only create prometheus metrics for router patterns by @M4tthewDE in #425
- Bump golang.org/x/text from 0.6.0 to 0.7.0 by @dependabot in #431
- Add Media Resolver by @nuuls in #427
- Bump github.com/jackc/pgx/v4 from 4.17.2 to 4.18.0 by @dependabot in #434
- Bump google.golang.org/api from 0.109.0 to 0.110.0 by @dependabot in #433
- Bump honnef.co/go/tools from 0.4.0 to 0.4.1 by @dependabot in #435
- Disable MacOS builds in CI by @pajlada in #438
- Bump honnef.co/go/tools from 0.4.1 to 0.4.2 by @dependabot in #436
- Bump golang.org/x/net from 0.6.0 to 0.7.0 by @dependabot in #437
- Bump github.com/PuerkitoBio/goquery from 1.8.0 to 1.8.1 by @dependabot in #439
- Bump github.com/jackc/pgx/v4 from 4.18.0 to 4.18.1 by @dependabot in #442
- Bump google.golang.org/api from 0.110.0 to 0.111.0 by @dependabot in #441
- Bump google.golang.org/api from 0.111.0 to 0.112.0 by @dependabot in #446
- Bump golang.org/x/image from 0.0.0-20210220032944-ac19c3e999fb to 0.5.0 by @dependabot in #445
- Bump google.golang.org/api from 0.112.0 to 0.113.0 by @dependabot in #448
- Bump honnef.co/go/tools from 0.4.2 to 0.4.3 by @dependabot in #449
- Bump google.golang.org/api from 0.113.0 to 0.114.0 by @dependabot in #450
- Bump actions/setup-go from 3 to 4 by @dependabot in #447
- Use github actions token to publish ghcr image by @pajlada in #451
- Remove Docker build image step by @pajlada in #452
New Contributors
- @NotNotQuinn made their first contribution in #299
- @M4tthewDE made their first contribution in #414
- @nuuls made their first contribution in #417
Full Changelog: v1.2.3...v2.0.0