Skip to content

Releases: Fdawgs/docsmith

v5.2.3

11 Nov 14:40
dbd989c
Compare
Choose a tag to compare

Bug Fixes

  • plugins/embed-html-images: create image path safely (ebd2b7d)
  • plugins: separate user and server error responses (#548) (0fdc0f3)

Miscellaneous

  • .env.template: add note regarding required logging variables (693d17b)
  • .prettierrc: only enable bracketSameLine for html (#519) (b53e630)
  • rename fsp variable to fs (19f3015)

Continuous Integration

  • ci: do not run clean-up on draft prs (4a13559)
  • spell-check: do not run on draft prs (888ab78)
  • use actions/setup-node's cache option (#521) (959ec09)

Dependencies

  • deps-dev: bump eslint-config-airbnb-base from 14.2.1 to 15.0.0 (8317bfa)
  • deps-dev: bump eslint-plugin-import from 2.25.2 to 2.25.3 (ff1b7dc)
  • deps-dev: bump eslint-plugin-jest from 25.2.2 to 25.2.4 (364ce9d)
  • deps-dev: bump nodemon from 2.0.14 to 2.0.15 (a0f743c)
  • deps: bump actions/checkout from 2.3.5 to 2.4.0 (d826b19)
  • deps: bump env-schema from 3.4.0 to 3.5.0 (96c9b98)
  • deps: bump fastify from 3.22.1 to 3.23.1 (925c3a5)
  • deps: bump fastify-static from 4.4.2 to 4.5.0 (86f704a)
  • deps: bump jsdom from 18.0.0 to 18.0.1 (f179def)
  • deps: bump node-poppler from 5.0.2 to 5.0.3 (1756dbf)
  • deps: bump node-poppler from 5.0.3 to 5.1.0 (ab5d71a)
  • deps: bump node-unrtf from 2.0.4 to 2.0.5 (ce2a420)
  • deps: bump pino from 7.0.5 to 7.1.0 (24514c7)
  • deps: bump pino from 7.1.0 to 7.2.0 (c523570)
  • deps: bump pino-pretty from 7.1.0 to 7.2.0 (6f1d967)

Improvements

  • config: normalize file paths (#526) (cc5f80b)
  • plugins/embed-html-images: convert to async function (#547) (fe2d316)
  • plugins: normalize tempDirectory param (21730c4)
  • plugins: provide generic error response (#546) (64d941c)
  • plugins: remove fs.access() calls (#527) (2818db1)
  • plugins: use path.joinSafe() over template literals (e3d5273)
  • routes: throw notAcceptable errors not return (#528) (5fa94ac)
  • server: use path.joinSafe() over path.join() (71af90f)

v5.2.2

01 Nov 11:15
df08183
Compare
Choose a tag to compare

Bug Fixes

  • plugins/tidy-css: correct escaping for fonts param (#514) (67bb360)
  • plugins/tidy-css: remove global flag from regex (#511) (88560e2)
  • plugins/tidy-css: replace all instances of value (#518) (090231f)
  • plugins/tidy-css: wrap non-alphabetical font families in quotes (#508) (8ccf49d)
  • routes: allow for rgb and hsl values in backgroundColor param (#515) (e864302)

Improvements

  • plugins/tidy-css: replace match() with test() (#510) (dc2e319)

Dependencies

  • deps-dev: bump @commitlint/cli from 13.2.1 to 14.1.0 (8991105)
  • deps-dev: bump @commitlint/config-conventional (e33a440)
  • deps-dev: bump eslint from 7.32.0 to 8.1.0 (b6cd2b9)
  • deps: bump fastify-sensible from 3.1.1 to 3.1.2 (5aca88b)

v5.2.1

29 Oct 10:11
4ce574b
Compare
Choose a tag to compare

Bug Fixes

  • config: remove additional env variables (ef5f9bf)
  • routes/pdf: set max length for password params (864d218)
  • routes: clarify on valid input for language params (4c6b50d)
  • routes: remove additional properties from req query (6875a59)

Documentation

Improvements

  • use secure-json-parse for json parsing (f5c3170)

Miscellaneous

  • .eslintrc: remove redundant impliedStrict option (#484) (7742bce)
  • plugins/tidy-css: add whitespace (8001076)
  • routes/pdf: use shorter syntax for outputEncodingregex pattern (c8e3a05)

Dependencies

  • deps-dev: bump autocannon from 7.4.0 to 7.5.0 (8b9a485)
  • deps-dev: bump eslint-plugin-jest from 25.0.5 to 25.2.2 (337cde3)
  • deps-dev: bump eslint-plugin-jsdoc from 36.1.1 to 37.0.3 (ce08525)
  • deps-dev: bump eslint-plugin-promise from 5.1.0 to 5.1.1 (b0f39d5)
  • deps-dev: bump husky from 7.0.2 to 7.0.4 (9511f9b)
  • deps-dev: bump jest from 27.2.5 to 27.3.1 (2b9769d)
  • deps-dev: bump nodemon from 2.0.13 to 2.0.14 (e6ec937)
  • deps: add secure-json-parse (6d16dd6)
  • deps: bump actions/checkout from 2.3.4 to 2.3.5 (76fa389)
  • deps: bump fastify from 3.22.0 to 3.22.1 (b8fa640)
  • deps: bump fastify-compress from 3.6.0 to 3.6.1 (8eff1f5)
  • deps: bump fastify-disablecache from 2.0.3 to 2.0.4 (e0b9ce7)
  • deps: bump fastify-floc-off from 1.0.2 to 1.0.3 (33712c1)
  • deps: bump fastify-swagger from 4.12.4 to 4.12.6 (23eba6f)
  • deps: bump mammoth from 1.4.18 to 1.4.19 (cd05469)
  • deps: bump node-unrtf from 2.0.2 to 2.0.4 (61d4a6b)
  • deps: bump pino from 6.13.3 to 7.0.5 (a651961)
  • deps: bump pino-pretty from 7.0.1 to 7.1.0 (386ff26)
  • update lockfile from v1 to v2; bump sub-dependencies (#507) (7f141b2)

v5.2.0

13 Oct 13:07
efe78ec
Compare
Choose a tag to compare

Features

  • plugins/tidy-html: check language is valid IANA language tag (#464) (6894d37)

Bug Fixes

  • plugins/pdf-to-html: correct key name for output encoding (10c8044)
  • routes/docs: remove cors support (0659e47)
  • routes/pdf: set accepted pattern for outputEncoding param (#469) (6b8f99d)

Documentation

  • readme: capitalization fixes (b080016)

Miscellaneous

  • .eslintrc: remove inaccurate sourcetype (#467) (3709cc2)
  • .vscode: remove deprecated settings (c0dfc77)
  • apply eslint rules per line, not file-wide (7596c3b)
  • routes/schemas: improve removeAlt param description (#465) (323b316)
  • routes: add missing jsdoc tag for options.bearertokenauthkeys (9bacd41)
  • server: update inline comment re clickjacking (9adb742)

Improvements

  • plugins: make temp file removal hooks concurrent (0055f15)
  • plugins: remove redundant awaits (70675a9)

Dependencies

  • deps-dev: bump @commitlint/cli from 13.2.0 to 13.2.1 (1a2ab1c)
  • deps-dev: bump eslint-plugin-import from 2.24.2 to 2.25.2 (a3faf64)
  • deps-dev: bump eslint-plugin-jest from 24.5.2 to 25.0.5 (33fd43b)
  • deps-dev: bump eslint-plugin-jsdoc from 36.1.0 to 36.1.1 (f47090b)
  • deps-dev: bump jest from 27.2.4 to 27.2.5 (4002ef2)
  • deps: bump fastify-static from 4.2.4 to 4.4.1 (c9cc5d0)
  • deps: bump fastify-static from 4.4.1 to 4.4.2 (1222b4b)
  • deps: bump jsdom from 17.0.0 to 18.0.0 (f520183)
  • deps: bump node-poppler from 5.0.1 to 5.0.2 (e396b03)
  • deps: bump redoc from 2.0.0-rc.56 to 2.0.0-rc.57 (7fd5224)
  • deps: bump wagoid/commitlint-github-action from 4.1.5 to 4.1.9 (504d15a)

v5.1.3

06 Oct 10:04
b13e9bc
Compare
Choose a tag to compare

Bug Fixes

  • routes/docs/json: add missing cache-control header (579776d)

Documentation

  • readme: add note regarding using docker compose up (5ff789b)

Dependencies

  • deps-dev: bump eslint-plugin-jest from 24.5.0 to 24.5.2 (0650841)
  • deps: bump fastify-static from 4.2.3 to 4.2.4 (d737a22)
  • deps: bump fastify-swagger from 4.12.3 to 4.12.4 (975a911)
  • deps: bump GoogleCloudPlatform/release-please-action (6ed3150)
  • deps: bump hadolint/hadolint-action from 1.5.0 to 1.6.0 (1646d61)
  • deps: bump under-pressure from 5.7.0 to 5.8.0 (7d6f7da)
  • deps: bump wagoid/commitlint-github-action from 4.1.4 to 4.1.5 (3a9dbb7)
  • docker: update image from lts-stretch-slim to lts-bullseye-slim (b6aead9)

Improvements

  • public/docs: move css from inline to own file (#463) (806cfcc)
  • routes/docs: allow for html to be cached for 3 minutes (877dc91)
  • server: allow for redoc js to be cached for 1 day (29818e1)
  • server: use aggressive caching for static files (bec9208)

v5.1.2

01 Oct 10:03
0fc948e
Compare
Choose a tag to compare

Improvements

  • plugins/tidy-html: move conditional check outside of loop (#435) (90e3fbe)
  • routes: move cors options route config to config file (476875d)
  • server: exclude all html and xml responses from transform (#440) (1c8b776)
  • server: move helmet config to config file (e42160b)
  • server: reduce globbing use when registering routes (#438) (7fba268)
  • server: reduce response header size (a1f3502)

Dependencies

  • deps-dev: bump @commitlint/cli from 13.1.0 to 13.2.0 (8f36842)
  • deps-dev: bump @commitlint/config-conventional (37aa6af)
  • deps-dev: bump eslint-plugin-jest from 24.4.2 to 24.5.0 (985e4ae)
  • deps-dev: bump jest from 27.2.1 to 27.2.4 (5aa3566)
  • deps: bump actions/github-script from 4.1 to 5 (5492181)
  • deps: bump actions/setup-node from 2.4.0 to 2.4.1 (a1d5be8)
  • deps: bump fastify from 3.21.6 to 3.22.0 (92ffb00)
  • deps: bump fastify-swagger from 4.12.0 to 4.12.3 (d961c9b)
  • docker: remove package versioning (e1ebc61)

Continuous Integration

  • automerge: update location of octokit rest methods (#449) (5b46430)
  • ignore hadolint rule DL3008 (cadb6c0)
  • update hadolint-action namespace (710f044)

Miscellaneous

  • .prettierrc: enable bracketsameline option (#451) (29fc16b)
  • config: remove whitespace (7866add)
  • improve descriptions of query string params (e1c586f)
  • package: add separate script for benchmarking /pdf/txt route (62c7f54)
  • plugins/tidy-css: sort jsdoc param tags alphabetically ascending (57bdd52)
  • tidy inline comments re plugins (8f1eaa1)

v5.1.1

24 Sep 13:59
7e7745c
Compare
Choose a tag to compare

Bug Fixes

  • plugins/docx-to-txt: add missing content-type response header (85f39bf)
  • public/site.webmanifest: set name values (255fbf6)
  • routes/docs: add missing content-type response header (ed5daa8)

Miscellaneous

  • .env.template: document SERVICE_HOST default (#416) (d12a589)
  • plugins/tidy-css: add inline comment regarding legacy css (49ee2fc)
  • plugins: remove outdated eslint comments (#420) (69b8834)
  • public/docs: add -moz-tab-size css property (3cb595f)
  • public: move icons from public/ to public/images/icons (e9fec86)
  • routes: remove trailing punctuation mark (db8a81d)
  • server: update inline comments re child contexts (026d096)

Improvements

  • plugins/tidy-css: remove param reassign (#419) (88f8be0)
  • public/docs: defer redoc script loading (3419d7d)
  • routes/docs: enable caching of static files (43bdc8c)
  • server: move loading of static files into public context (2619f44)

Dependencies

  • deps-dev: add eslint-plugin-security-node (#421) (cfc9dcb)
  • deps-dev: bump eslint-plugin-jest from 24.4.0 to 24.4.2 (e974cea)
  • deps-dev: bump jest from 27.2.0 to 27.2.1 (b969894)
  • deps-dev: bump nodemon from 2.0.12 to 2.0.13 (1b462b8)
  • deps-dev: bump prettier from 2.4.0 to 2.4.1 (b50f729)
  • deps: bump fastify from 3.21.1 to 3.21.6 (c6b6422)
  • deps: bump fastify-accepts from 2.0.1 to 2.1.0 (8a90978)
  • deps: bump glob from 7.1.7 to 7.2.0 (16ec020)
  • deps: bump GoogleCloudPlatform/release-please-action (431bcff)
  • deps: bump pino from 6.13.2 to 6.13.3 (61508db)
  • deps: bump pino-pretty from 7.0.0 to 7.0.1 (19fa351)
  • deps: bump prismjs from 1.24.1 to 1.25.0 (9b24fd8)

v5.1.0

15 Sep 17:37
5758fdc
Compare
Choose a tag to compare

Features

  • config: support HTTP/2 via HTTPS_HTTP2_ENABLED env variable (#400) (17207dc)

Miscellaneous

  • .dockerignore: ignore development documentation (988019a)
  • .env.template: correct acronym (0f0ee2e)
  • .husky/.gitignore: remove now redundant file (00c55df)
  • .vscode: add mhutchie.git-graph extension (#397) (873c020)

Improvements

  • config: check cert/key exists before enabling HTTP/2 (#402) (2bf4122)
  • plugins: file deletion hooks now async (#403) (6a27104)

Dependencies

  • deps-dev: bump eslint-plugin-jsdoc from 36.0.8 to 36.1.0 (8a8a200)
  • deps-dev: bump jest from 27.1.0 to 27.2.0 (20ab1d2)
  • deps-dev: bump prettier from 2.3.2 to 2.4.0 (1d44b16)
  • deps: bump env-schema from 3.3.0 to 3.4.0 (bf41828)
  • deps: bump fastify from 3.21.0 to 3.21.1 (583bbcf)
  • deps: bump fastify-autoload from 3.8.1 to 3.9.0 (e86ea63)
  • deps: bump fastify-swagger from 4.10.0 to 4.12.0 (6503a8b)
  • deps: bump GoogleCloudPlatform/release-please-action (ea33e69)
  • deps: bump node-poppler from 5.0.0 to 5.0.1 (aa29d3f)
  • deps: bump pino-pretty from 6.0.0 to 7.0.0 (08e6e95)
  • deps: bump sub-dependencies (#415) (54f92be)
  • deps: bump wagoid/commitlint-github-action from 4.1.1 to 4.1.4 (5803732)

v5.0.1

07 Sep 13:33
fed3c19
Compare
Choose a tag to compare

Bug Fixes

  • plugins/pdf-to-txt: remove test code (eb5699e)

v5.0.0

07 Sep 13:17
7db78c0
Compare
Choose a tag to compare

⚠ BREAKING CHANGES

  • config: OCR_ENABLED environment variable now defaults to false. Lower spec servers were struggling to run with the defaults, due to how CPU intensive Tesseract OCR workers are.

Bug Fixes

  • config: OCR_ENABLED defaults to false (a3d1036)
  • plugins: use onSend hook to remove files for all requests (#395) (703faef)

Dependencies

  • deps: bump fastify from 3.20.2 to 3.21.0 (c43f2f7)
  • deps: bump fastify-swagger from 4.9.1 to 4.10.0 (072b423)
  • deps: bump pino from 6.13.1 to 6.13.2 (1901568)

Miscellaneous

  • .env.template: add note regarding ocr functionality (ced63f7)
  • .prettierrc: override defaults for html, css, and scss files (#388) (492a5e2)
  • routes/pdf/txt: emphasise resource intensiveness of ocr param (1ae51ef)