Skip to content
This repository has been archived by the owner on Jan 28, 2024. It is now read-only.

Latest commit

 

History

History
1923 lines (1300 loc) · 223 KB

CHANGELOG.md

File metadata and controls

1923 lines (1300 loc) · 223 KB

Changelog

7.1.14 (2023-12-19)

Dependencies

  • deps-dev: bump @types/jest from 29.5.10 to 29.5.11 (#929) (eb980b7)
  • deps-dev: bump esbuild from 0.19.8 to 0.19.10 (f5ac36b)
  • deps-dev: bump prettier from 3.1.0 to 3.1.1 (#930) (755d107)
  • deps-dev: bump the eslint group with 5 updates (#934) (c189462)
  • deps: bump the fastify-core group with 5 updates (#935) (014be62)
  • deps: bump the pino-core group with 1 update (#927) (f784150)
  • deps: bump the pino-core group with 2 updates (#933) (5f8d36f)
  • deps: bump transistive dependencies (461af02)

Miscellaneous

  • jsdoc comments must be complete sentences (c227cd8)
  • plugins/clean-object: allow mutation (bba2b7f)

Continuous integration

  • deps: bump actions/upload-artifact from 3 to 4 (#932) (cea80bd)
  • deps: bump github/codeql-action from 2 to 3 (#925) (57eea1a)

7.1.13 (2023-12-02)

Bug fixes

  • server: basic auth www-authenticate response header (11919c0)

Dependencies

  • deps-dev: bump @types/jest from 29.5.6 to 29.5.7 (#906) (f752b00)
  • deps-dev: bump @types/jest from 29.5.7 to 29.5.10 (#912) (a55c63e)
  • deps-dev: bump autocannon from 7.12.0 to 7.14.0 (#914) (164caa5)
  • deps-dev: bump esbuild from 0.19.5 to 0.19.8 (0b38b74)
  • deps-dev: bump eslint-config-prettier from 9.0.0 to 9.1.0 (26810ad)
  • deps-dev: bump nodemon from 3.0.1 to 3.0.2 (#923) (f8d01b8)
  • deps-dev: bump playwright from 1.39.0 to 1.40.0 (#913) (74be52d)
  • deps-dev: bump playwright from 1.40.0 to 1.40.1 (#918) (5f5e03b)
  • deps-dev: bump prettier from 3.0.3 to 3.1.0 (#915) (bfefb28)
  • deps-dev: bump the commitlint group with 2 updates (#909) (db925e8)
  • deps-dev: bump the eslint group with 1 update (#922) (c5b507f)
  • deps-dev: bump the eslint group with 2 updates (#911) (2cd9615)
  • deps-dev: remove broken eslint-plugin-security-node (c06aaf0)
  • deps: bump fastify-disablecache from 3.1.6 to 3.1.7 (#920) (5245a5a)
  • deps: bump fastify-floc-off from 2.1.6 to 2.1.7 (#917) (8a33b13)
  • deps: bump fastify-json-to-xml from 1.1.8 to 1.1.9 (#919) (ac563a6)
  • deps: bump the fastify-core group with 7 updates (83ac67c)
  • deps: bump the pino-core group with 1 update (#910) (ca6c76c)
  • deps: bump transistive dependencies (c71968d)
  • docker: bump node image from 18-alpine to 20-alpine (c8985f0)

Miscellaneous

  • .eslintrc: update no-param-reassign rule to ignore obj refs (114075a)
  • package: install playwright browsers on install (03f17c6)
  • package: remove typescript exts from lint script (90d8f0b)

Continuous integration

  • ci: add node 20 to test matrix (303741f)
  • dependabot: ignore release-please-action major updates (3fa92ae)
  • deps: bump actions/github-script from 6 to 7 (#908) (2d978ed)

Improvements

  • plugins/clean-object: remove useless obj reference (730cbc1)
  • plugins/convert-date-param-operator: use object over switch (5d0895c)

Documentation

  • readme: fix broken ci badge link (ca8fb19)
  • readme: update maintenance note (65350ce)

7.1.12 (2023-10-29)

Dependencies

  • deps-dev: add eslint-community/eslint-plugin-eslint-comments (8eeb59f)
  • deps-dev: bump @types/jest from 29.5.5 to 29.5.6 (#903) (f053288)
  • deps-dev: bump esbuild from 0.19.4 to 0.19.5 (9a5973b)
  • deps-dev: bump playwright from 1.38.1 to 1.39.0 (#902) (d601eda)
  • deps-dev: bump the commitlint group with 1 update (#884) (126a705)
  • deps-dev: bump the commitlint group with 2 updates (#897) (a83b09b)
  • deps-dev: bump the eslint group with 1 update (#886) (a42fd6b)
  • deps-dev: bump the eslint group with 1 update (#893) (1f12f87)
  • deps-dev: bump the eslint group with 4 updates (#900) (8ee48e1)
  • deps: bump @babel/traverse from 7.23.0 to 7.23.2 (#894) (7a8bd0c)
  • deps: bump fastify-json-to-xml from 1.1.7 to 1.1.8 (#904) (fffa37e)
  • deps: bump postcss from 8.4.30 to 8.4.31 (#889) (7a5fe94)
  • deps: bump redoc from 2.1.2 to 2.1.3 (#901) (be57a42)
  • deps: bump the fastify-core group with 1 update (#891) (570b0d4)
  • deps: bump the fastify-core group with 5 updates (#898) (7c9ff01)
  • deps: bump the pino-core group with 1 update (#885) (e00b708)
  • deps: bump the pino-core group with 2 updates (#892) (8aaf5cc)
  • deps: bump transistive dependencies (d0f55ca)

Miscellaneous

  • .vscode: add github-markdown-preview to recommended extension (e2a8a06)
  • .vscode: add gitlens to recommended extensions (e20ce34)
  • consolidate eslint comments, add justification for disabling (06d0f02)
  • jsconfig: use es2022 lib (655ce8c)
  • package: remove redundant nodemon config values (87617b8)
  • remove redundant eslint comments (2afced4)
  • scripts/license-checker: update link to deprecated list (62d0019)

Continuous integration

  • deps: bump actions/setup-node from 3 to 4 (#896) (91ee3fd)

Improvements

  • cache regex literals (84c7132)
  • migrate: use or operator over ternary (fb4ba45)
  • routes: consolidate regex alternatives into classes (a9141cf)
  • routes: use String.slice() over String.substring() (2c5517c)

7.1.11 (2023-09-28)

Dependencies

  • deps-dev: bump esbuild from 0.19.2 to 0.19.4 (38c0067)
  • deps-dev: bump esbuild-plugin-glob from 2.2.2 to 2.2.3 (9f24525)
  • deps-dev: bump eslint from 8.47.0 to 8.48.0 (#855) (0c513fa)
  • deps-dev: bump eslint from 8.48.0 to 8.50.0 (#876) (437b469)
  • deps-dev: bump eslint-plugin-import from 2.28.0 to 2.28.1 (#859) (703ea86)
  • deps-dev: bump eslint-plugin-jsdoc from 46.4.6 to 46.5.1 (#851) (badacac)
  • deps-dev: bump glob from 10.3.3 to 10.3.4 (#852) (cf1adaf)
  • deps-dev: bump glob from 10.3.4 to 10.3.6 (#873) (b3d6d8e)
  • deps-dev: bump glob from 10.3.6 to 10.3.10 (#880) (69f33b0)
  • deps-dev: bump jest and @types/jest (#858) (1ad6fb4)
  • deps-dev: bump jest and @types/jest (#874) (01e3c6d)
  • deps-dev: bump lockfile-lint from 4.12.0 to 4.12.1 (#854) (ba98a5e)
  • deps-dev: bump playwright from 1.37.0 to 1.37.1 (#860) (5de4cf7)
  • deps-dev: bump playwright from 1.37.1 to 1.38.1 (#875) (aca45b6)
  • deps-dev: bump prettier from 3.0.2 to 3.0.3 (#853) (14b9d03)
  • deps-dev: bump the eslint-plugins group with 2 updates (#870) (e0f8731)
  • deps: bump @fastify/swagger from 8.8.0 to 8.9.0 (#856) (0869ab7)
  • deps: bump fastify from 4.21.0 to 4.22.0 (#861) (a680f8c)
  • deps: bump fastify from 4.22.0 to 4.22.1 (#863) (1859e1b)
  • deps: bump fastify-disablecache from 3.1.5 to 3.1.6 (#881) (6443f13)
  • deps: bump fastify-floc-off from 2.1.5 to 2.1.6 (#879) (9de453e)
  • deps: bump fastify-json-to-xml from 1.1.6 to 1.1.7 (#882) (12b208d)
  • deps: bump mssql from 9.1.3 to 9.2.0 (#857) (29917a6)
  • deps: bump mssql from 9.2.0 to 10.0.1 (#877) (46ba282)
  • deps: bump pg from 8.11.2 to 8.11.3 (#862) (aeada41)
  • deps: bump redoc from 2.0.0 to 2.1.1 (#850) (930f797)
  • deps: bump redoc from 2.1.1 to 2.1.2 (#878) (8827480)
  • deps: bump the fastify-core group with 7 updates (#871) (7b13cb0)
  • deps: bump the pino-core group with 1 update (#872) (fbea969)
  • deps: bump transistive dependencies (fa538af)

Miscellaneous

  • .gitattributes: auto lf eol all files (3fc0b3c)
  • add missing .gitattributes file (99cbdf6)
  • change comment blocks with one line into single block (3732126)
  • consistent whitespace in jsdoc type tags (fa843af)
  • destruct upath and pg-connection-string module imports (#866) (630c72b)
  • eslintrc: bump ecma version to 2023 (cb27f36)
  • jsconfig: set module to nodenext (5f42977)
  • jsconfig: target es2022 (c526f36)
  • migrate: update inline istanbul comment (8c45738)
  • package: explicitly declare js module type (5fbab89)
  • package: ignore watching test files with nodemon (977eaec)
  • scripts/license-checker: declare copyLeftLicenses type (6feadc7)
  • scripts/license-checker: ignore invalid ts error (1783e44)
  • use @todo jsdoc tags for missed inline todo comments (8df9f3e)
  • use [@see](https://github.com/see) jsdoc tag for inline comment links (a121897)

Continuous integration

  • dependabot: group dependabot updates (cafe341)
  • dependabot: update eslint group (0eb1a76)
  • deps: bump actions/checkout from 3 to 4 (#868) (513134e)
  • deps: bump coverallsapp/github-action from 2.2.1 to 2.2.3 (#869) (3d9b43f)

Improvements

  • use node: prefix to bypass require.cache call for builtins (eb4c7ee)

Documentation

  • readme: remove duplicate word (e7a4dbe)

7.1.10 (2023-08-16)

Bug fixes

  • add missing strict mode directives (#790) (5b27bd0)
  • config: stop crash when logs written async (#842) (2332c58)
  • server: unintentional capture groups to non-capture groups (0a751ae)

Dependencies

  • deps-dev: add eslint-plugin-regexp (be83e27)
  • deps-dev: bump @commitlint/cli from 17.6.5 to 17.6.6 (#782) (11e98ee)
  • deps-dev: bump @commitlint/cli from 17.6.6 to 17.6.7 (#809) (bc7e58b)
  • deps-dev: bump @commitlint/cli from 17.6.7 to 17.7.1 (#836) (3b52064)
  • deps-dev: bump @commitlint/config-conventional (#779) (34fd117)
  • deps-dev: bump @commitlint/config-conventional (#808) (d8aabef)
  • deps-dev: bump @commitlint/config-conventional (#839) (1e183bf)
  • deps-dev: bump autocannon from 7.11.0 to 7.12.0 (#825) (b1e8b1b)
  • deps-dev: bump esbuild from 0.17.19 to 0.18.14 (70db186)
  • deps-dev: bump esbuild from 0.18.14 to 0.19.2 (3ef49fa)
  • deps-dev: bump eslint from 8.43.0 to 8.44.0 (#778) (87d1369)
  • deps-dev: bump eslint from 8.44.0 to 8.45.0 (#803) (954c325)
  • deps-dev: bump eslint from 8.45.0 to 8.46.0 (#820) (74c445a)
  • deps-dev: bump eslint from 8.46.0 to 8.47.0 (#833) (13c2911)
  • deps-dev: bump eslint-config-prettier from 8.10.0 to 9.0.0 (#837) (b714780)
  • deps-dev: bump eslint-config-prettier from 8.8.0 to 8.9.0 (#814) (4bfd627)
  • deps-dev: bump eslint-config-prettier from 8.9.0 to 8.10.0 (#826) (9b426ee)
  • deps-dev: bump eslint-plugin-import from 2.27.5 to 2.28.0 (#812) (af8fa0c)
  • deps-dev: bump eslint-plugin-jest from 27.2.2 to 27.2.3 (#798) (d641610)
  • deps-dev: bump eslint-plugin-jsdoc from 46.2.6 to 46.4.3 (#777) (f1d9a7d)
  • deps-dev: bump eslint-plugin-jsdoc from 46.4.3 to 46.4.4 (#804) (ad11a20)
  • deps-dev: bump eslint-plugin-jsdoc from 46.4.4 to 46.4.5 (#813) (96845b2)
  • deps-dev: bump eslint-plugin-jsdoc from 46.4.5 to 46.4.6 (#834) (0c0a7cd)
  • deps-dev: bump glob from 10.3.0 to 10.3.1 (#780) (601342a)
  • deps-dev: bump glob from 10.3.1 to 10.3.3 (#795) (7ad3c6f)
  • deps-dev: bump jest from 29.5.0 to 29.6.1 (#785) (06c221f)
  • deps-dev: bump jest from 29.6.1 to 29.6.2 (#823) (f795db5)
  • deps-dev: bump nodemon from 2.0.22 to 3.0.1 (#805) (0d7306a)
  • deps-dev: bump pino-pretty from 10.0.0 to 10.0.1 (#787) (66baf7b)
  • deps-dev: bump pino-pretty from 10.0.1 to 10.2.0 (#818) (4c1b4f1)
  • deps-dev: bump playwright from 1.35.1 to 1.36.1 (#807) (1136cea)
  • deps-dev: bump playwright from 1.36.1 to 1.36.2 (#815) (74e588f)
  • deps-dev: bump playwright from 1.36.2 to 1.37.0 (#835) (909778d)
  • deps-dev: bump prettier from 2.8.8 to 3.0.0 (24033cd)
  • deps-dev: bump prettier from 3.0.0 to 3.0.1 (#829) (967dc4b)
  • deps-dev: bump prettier from 3.0.1 to 3.0.2 (#843) (7d54200)
  • deps-dev: install lockfile-lint locally (#824) (7a0a808)
  • deps: bump @fastify/helmet from 10.1.1 to 11.0.0 (#775) (03f3e65)
  • deps: bump @fastify/rate-limit from 8.0.1 to 8.0.3 (#802) (60c1b89)
  • deps: bump @fastify/swagger from 8.6.0 to 8.8.0 (#786) (bc7aa71)
  • deps: bump @fastify/under-pressure from 8.2.0 to 8.3.0 (#800) (0de34ab)
  • deps: bump fastify from 4.18.0 to 4.19.0 (#781) (44c4108)
  • deps: bump fastify from 4.19.0 to 4.19.2 (#788) (5ad116d)
  • deps: bump fastify from 4.19.2 to 4.20.0 (#797) (c23e24a)
  • deps: bump fastify from 4.20.0 to 4.21.0 (#822) (7140d2d)
  • deps: bump fastify-disablecache from 3.1.3 to 3.1.4 (#801) (0aff2ac)
  • deps: bump fastify-disablecache from 3.1.4 to 3.1.5 (#844) (77ddfce)
  • deps: bump fastify-floc-off from 2.1.3 to 2.1.4 (#799) (127a801)
  • deps: bump fastify-floc-off from 2.1.4 to 2.1.5 (#845) (9573930)
  • deps: bump fastify-json-to-xml from 1.1.4 to 1.1.5 (#806) (ef2a723)
  • deps: bump fastify-json-to-xml from 1.1.5 to 1.1.6 (#846) (12d51cf)
  • deps: bump fastify-plugin from 4.5.0 to 4.5.1 (#796) (035da39)
  • deps: bump fluent-json-schema from 4.1.0 to 4.1.1 (#817) (9911427)
  • deps: bump mssql from 9.1.1 to 9.1.2 (#827) (7a2e098)
  • deps: bump mssql from 9.1.2 to 9.1.3 (#838) (392f6d9)
  • deps: bump pg from 8.11.0 to 8.11.1 (#776) (2d82e23)
  • deps: bump pg from 8.11.1 to 8.11.2 (#816) (fd5014c)
  • deps: bump pg-connection-string from 2.6.1 to 2.6.2 (#821) (abc70fe)
  • deps: bump pino from 8.14.1 to 8.14.2 (#819) (1aa5075)
  • deps: bump pino from 8.14.2 to 8.15.0 (#828) (7b30c40)
  • deps: bump semver from 5.7.1 to 5.7.2 (#792) (97556c5)
  • deps: bump transistive dependencies (8823d50)
  • deps: bump transistive dependencies (3908bcb)

Miscellaneous

  • .eslintrc: error on google closure jsdoc syntax (37210a0)
  • .eslintrc: sort extends array (7e2e501)
  • add jsconfig; type check js (#841) (a337fc5)
  • config: sort param types alphabetically (7667648)
  • config: use jsdoc syntax for arrays over interfaces (89ffa1f)
  • jsconfig: add target (a23b286)
  • rename lint:prettier scripts to reflect their function (5b32916)
  • routes: sort regex alternatives (e861bc2)
  • scripts/license-checker: use console.error() to log failures (f4f7dfb)
  • server: update inline comment re plugin function (d1e9766)
  • use jsdoc syntax for opt params over google closure syntax (c066a6e)

Continuous integration

  • ci: error on new jest snapshot (#840) (3af8750)
  • deps: bump coverallsapp/github-action from 2.2.0 to 2.2.1 (#794) (a260600)

Improvements

  • add strict u flag to all regex patterns (eed68b9)
  • app: use traditional function syntax (5cc2870)
  • config: use \d over [0-9] in regex patterns (11bd2f9)
  • destruct imports (6aa3dd3)
  • plugins/hashed: decorate request to stop object deoptimisation (#773) (a66c6a1)
  • plugins: move decorator functions inside plugins (d03a881)
  • remove useless range in regex (fd72d50)
  • routes: use ? quantifier over empty alternative (c02fd51)

7.1.9 (2023-06-24)

Bug fixes

  • routes/docs: stop all redoc files from being served (20ee86e)

Improvements

  • server: remove redundant await (a353ca3)

Continuous integration

  • ci: separate db migration tests; test on windows and macos (aefed3e)
  • deps: bump coverallsapp/github-action from 2.1.2 to 2.2.0 (#757) (69844e6)

Documentation

  • changelog: fix broken link (08f38ad)
  • readme: update maintenance note (19c8c27)

Miscellaneous

  • .env.template: punctuation fixes (239ca31)
  • .eslintrc: enable additional jest plugin rules (ea0710f)
  • .eslintrc: enable additional jsdoc plugin rules (3a8c1e1)
  • .eslintrc: only use jest plugin to lint test-related files (2a55aa0)
  • config: return types don't support promise rejection values (1b1fd27)
  • enable fluent-json-schema type definitions (0bb056d)
  • import fastify type for server jsdoc params (13b1db2)
  • package: set jest coverage threshold (0841fbc)
  • routes/admin/access/bearer-token: remove excess whitespace (cf6d41a)

Dependencies

  • deps-dev: bump @commitlint/cli from 17.6.3 to 17.6.5 (#747) (8c79635)
  • deps-dev: bump @commitlint/config-conventional (#749) (927d301)
  • deps-dev: bump eslint from 8.41.0 to 8.42.0 (#752) (72b68c3)
  • deps-dev: bump eslint from 8.42.0 to 8.43.0 (#764) (fa9fdf2)
  • deps-dev: bump eslint-plugin-jest from 27.2.1 to 27.2.2 (#758) (fa9b516)
  • deps-dev: bump eslint-plugin-jsdoc from 44.2.7 to 46.1.0 (#746) (e2377b5)
  • deps-dev: bump eslint-plugin-jsdoc from 46.1.0 to 46.2.0 (#753) (1002ce6)
  • deps-dev: bump eslint-plugin-jsdoc from 46.2.0 to 46.2.6 (#760) (a600daa)
  • deps-dev: bump glob from 10.2.6 to 10.3.0 (#766) (899ccc3)
  • deps-dev: bump playwright from 1.34.3 to 1.35.1 (#765) (69adaa5)
  • deps: bump @fastify/accepts from 4.1.0 to 4.2.0 (#761) (6f8a111)
  • deps: bump @fastify/rate-limit from 8.0.0 to 8.0.1 (#763) (363284c)
  • deps: bump @fastify/swagger from 8.5.1 to 8.6.0 (#762) (fc92ddd)
  • deps: bump dotenv from 16.0.3 to 16.1.3 (#748) (5c2952f)
  • deps: bump dotenv from 16.1.3 to 16.3.1 (#767) (723032d)
  • deps: bump fastify from 4.17.0 to 4.18.0 (#759) (8973a34)
  • deps: bump fastify-disablecache from 3.1.2 to 3.1.3 (#770) (dd16375)
  • deps: bump fastify-floc-off from 2.1.2 to 2.1.3 (#769) (04a25f5)
  • deps: bump fastify-json-to-xml from 1.1.3 to 1.1.4 (#771) (3f0d2a5)

7.1.8 (2023-05-27)

Documentation

  • readme: add unmaintained note (8ac3f46)

Continuous integration

  • cd: remove dev dependencies from package-lock.json (#731) (da86874)

Improvements

Miscellaneous

  • .vscode: add debugger launch config (#730) (224d7e3)
  • fix inline comment style (89e1492)
  • use nouns for leading word in function description tags (#735) (04038b3)

Bug fixes

  • plugins/db: close mssql connection pool on app close (37ee5a7)
  • routes: return more detailed error upon post request failures (e42695e)
  • server: handle arrays when pruning csp headers (ced89ba)
  • server: stop routes from accepting default text/plain requests (#733) (da4f492)

Dependencies

  • deps-dev: bump @commitlint/cli from 17.6.1 to 17.6.3 (#719) (4d51c2a)
  • deps-dev: bump @commitlint/config-conventional (#725) (2d4588d)
  • deps-dev: bump autocannon from 7.10.0 to 7.11.0 (#716) (d6626e2)
  • deps-dev: bump esbuild from 0.17.18 to 0.17.19 (c8f1a38)
  • deps-dev: bump esbuild-plugin-glob from 2.2.1 to 2.2.2 (be91fa5)
  • deps-dev: bump eslint from 8.39.0 to 8.40.0 (#722) (69c630f)
  • deps-dev: bump eslint from 8.40.0 to 8.41.0 (#728) (cdfa9d3)
  • deps-dev: bump eslint-plugin-jsdoc from 43.0.7 to 44.2.4 (#715) (eb1747d)
  • deps-dev: bump eslint-plugin-jsdoc from 44.2.4 to 44.2.7 (#743) (01909f1)
  • deps-dev: bump glob from 10.2.2 to 10.2.4 (#723) (bc86e2a)
  • deps-dev: bump glob from 10.2.4 to 10.2.5 (#726) (1ff4453)
  • deps-dev: bump glob from 10.2.5 to 10.2.6 (#739) (7920a10)
  • deps-dev: bump playwright from 1.32.3 to 1.33.0 (#714) (487532a)
  • deps-dev: bump playwright from 1.33.0 to 1.34.0 (#727) (42ee1c0)
  • deps-dev: bump playwright from 1.34.0 to 1.34.3 (#738) (d1a8759)
  • deps: bump @fastify/compress from 6.2.1 to 6.3.0 (#724) (f7167c1)
  • deps: bump @fastify/compress from 6.3.0 to 6.4.0 (#737) (69479b9)
  • deps: bump @fastify/cors from 8.2.1 to 8.3.0 (#741) (61a0b2f)
  • deps: bump @fastify/helmet from 10.1.0 to 10.1.1 (#721) (1148ec6)
  • deps: bump @fastify/static from 6.10.1 to 6.10.2 (#742) (8abebaa)
  • deps: bump @fastify/swagger from 8.3.1 to 8.4.0 (#713) (85d03bf)
  • deps: bump @fastify/swagger from 8.4.0 to 8.5.1 (#740) (fc0cf81)
  • deps: bump fastify from 4.15.0 to 4.17.0 (#717) (d2119c2)
  • deps: bump fastify-json-to-xml from 1.1.2 to 1.1.3 (#744) (56368db)
  • deps: bump pg from 8.10.0 to 8.11.0 (#711) (a48786d)
  • deps: bump pino from 8.11.0 to 8.14.1 (#720) (d868a4c)
  • deps: bump transistive dependencies (04d4b13)
  • deps: bump yaml from 2.2.1 to 2.2.2 (#712) (6e80f23)

7.1.7 (2023-04-24)

Improvements

  • server: replace json parse stringify with structuredClone() (#691) (64bcabc)

Documentation

Continuous integration

  • deps: bump coverallsapp/github-action from 2.0.0 to 2.1.2 (#697) (f4bec06)
  • deps: bump peter-evans/create-pull-request from 4 to 5 (#696) (ce16a36)

Miscellaneous

  • license: add somerset nhsft (d96c2e8)
  • rename repo to reflect organisation change (#693) (8725908)
  • replace ydh nhsft branding and links with somerset nhsft (#692) (05c32d9)
  • scripts/license-checker: resolve eslint jsdoc warning (8dbe13e)
  • update ydh email domain (df25657)

Dependencies

  • deps-dev: bump @commitlint/cli from 17.5.1 to 17.6.1 (#699) (bd5e493)
  • deps-dev: bump @commitlint/config-conventional (#700) (4f63274)
  • deps-dev: bump esbuild from 0.17.15 to 0.17.18 (dd91c5f)
  • deps-dev: bump eslint from 8.37.0 to 8.39.0 (#701) (8cdbc24)
  • deps-dev: bump eslint-plugin-jsdoc from 40.1.1 to 43.0.7 (#707) (920a16f)
  • deps-dev: bump glob from 9.3.4 to 10.2.2 (#702) (7d96165)
  • deps-dev: bump playwright from 1.32.2 to 1.32.3 (#703) (8c208f6)
  • deps-dev: bump prettier from 2.8.7 to 2.8.8 (#698) (de31538)
  • deps: bump @fastify/static from 6.10.0 to 6.10.1 (#704) (2f50188)
  • deps: bump fastify-disablecache from 3.1.1 to 3.1.2 (#706) (642756a)
  • deps: bump fastify-floc-off from 2.1.1 to 2.1.2 (#705) (c8cee92)
  • deps: bump fastify-json-to-xml from 1.1.1 to 1.1.2 (#708) (a4b18a2)
  • deps: bump transistive dependencies (6f23a11)

7.1.6 (2023-04-04)

Continuous integration

  • dependabot: change commit message prefix for gh actions to ci (#656) (56bcbc3)
  • dependabot: correct property type (#664) (a6d3e09)
  • dependabot: ignore esm major versions (#657) (16bea6e)

Bug fixes

  • config: missing CORS_ORIGIN env variable throws error (#680) (250da7a)

Miscellaneous

  • .prettierrc: enable arrowParens option (#681) (ce6bb43)

Improvements

  • config: ensure _ARRAY env variables match array patterns (#682) (774b29b)
  • remove redundant multi line regex flags (#670) (ebddb5b)
  • routes/admin/access: check req object is not falsey (#667) (a601e85)

Documentation

  • contributing: add link to conventional config (#658) (0ea966b)
  • contributing: note build script (b4afb05)

Dependencies

  • deps-dev: bump @commitlint/cli from 17.4.4 to 17.5.0 (#660) (279dc0b)
  • deps-dev: bump @commitlint/cli from 17.5.0 to 17.5.1 (#675) (2fb388d)
  • deps-dev: bump esbuild from 0.17.10 to 0.17.15 (#687) (f854e91)
  • deps-dev: bump eslint from 8.36.0 to 8.37.0 (#678) (22c6179)
  • deps-dev: bump eslint-plugin-jsdoc from 40.1.0 to 40.1.1 (#674) (bf6c0e5)
  • deps-dev: bump glob from 9.3.1 to 9.3.2 (#662) (eaf5592)
  • deps-dev: bump glob from 9.3.2 to 9.3.4 (#683) (f246b7f)
  • deps-dev: bump nodemon from 2.0.21 to 2.0.22 (#659) (2f1ed57)
  • deps-dev: bump playwright from 1.31.2 to 1.32.0 (#661) (b5c7e58)
  • deps-dev: bump playwright from 1.32.0 to 1.32.1 (#677) (8b70b6d)
  • deps-dev: bump playwright from 1.32.1 to 1.32.2 (#685) (94749d7)
  • deps-dev: bump prettier from 2.8.6 to 2.8.7 (#673) (8c5a310)
  • deps: bump @fastify/compress from 6.2.0 to 6.2.1 (#672) (719bfd9)
  • deps: bump @fastify/static from 6.9.0 to 6.10.0 (#686) (2cd785f)
  • deps: bump fastify-disablecache from 3.1.0 to 3.1.1 (#684) (b772061)
  • deps: bump fastify-floc-off from 2.1.0 to 2.1.1 (#671) (7557bc1)
  • deps: bump fastify-json-to-xml from 1.1.0 to 1.1.1 (#676) (35aeced)
  • deps: bump transistive dependencies (#688) (f034da5)

7.1.5 (2023-03-21)

Bug fixes

  • server: premature closes crashing server (4dfbefb)

Improvements

  • migrate: use path.joinSafe() over path.join() (6a62062)
  • remove optional chaining for first level properties (#647) (3c6888b)
  • server: convert sync async notfoundhandler to sync only (#645) (a8afcc8)

Miscellaneous

  • routes: update schema inline comment re injection attacks (#648) (2a4fbf6)
  • scripts: move esbuild to script dir (#644) (80dccc2)
  • scripts: remove redundant export (d0be16c)
  • scripts: use js script to check licenses (#641) (5f20e54)
  • server: inline comment re internal server error handling (a38a531)
  • server: inline comment spelling (a66fd0f)

Dependencies

  • deps-dev: bump eslint-config-prettier from 8.7.0 to 8.8.0 (#651) (d18106f)
  • deps-dev: bump eslint-plugin-jsdoc from 40.0.2 to 40.1.0 (#653) (3aed216)
  • deps-dev: bump glob from 9.3.0 to 9.3.1 (#650) (684b921)
  • deps-dev: bump prettier from 2.8.4 to 2.8.6 (#652) (2e3523a)
  • deps: bump @fastify/cors from 8.2.0 to 8.2.1 (#654) (92189da)
  • deps: bump coverallsapp/github-action from 1.2.4 to 2.0.0 (#649) (1f96ba7)
  • deps: bump fastify from 4.14.1 to 4.15.0 (#655) (75ad01e)
  • deps: bump webpack from 5.75.0 to 5.76.1 (#642) (9ae8df7)

7.1.4 (2023-03-14)

Documentation

  • readme: replace nhs digital mention with nhs england (a976b0a)

Miscellaneous

  • ignore bun lockfile (#623) (945c8ba)
  • package: add funding url (6037f40)
  • plugins/clean-object: ignore false eslint obj injection warnings (#627) (73f1837)

Improvements

  • remove redundant sql distinct keywords (#626) (7084b89)
  • routes/admin/access/bearer-token: use array map over push (8381c52)
  • routes/contact: use array map over push (f6c4ef1)
  • routes: create new arrays over single pushes (30b2e46)
  • routes: use optional chaining (#628) (736369f)

Dependencies

  • deps-dev: bump eslint from 8.35.0 to 8.36.0 (#633) (6c02b1d)
  • deps-dev: bump eslint-config-prettier from 8.6.0 to 8.7.0 (#637) (b628d12)
  • deps-dev: bump eslint-plugin-jsdoc from 40.0.0 to 40.0.2 (#640) (f679d94)
  • deps-dev: bump glob from 9.1.0 to 9.3.0 (#632) (1138cc9)
  • deps-dev: bump jest from 29.4.3 to 29.5.0 (#630) (685c9a4)
  • deps-dev: bump nodemon from 2.0.20 to 2.0.21 (#638) (a76277f)
  • deps-dev: bump pino-pretty from 9.4.0 to 10.0.0 (#639) (de27e0e)
  • deps-dev: bump playwright from 1.31.1 to 1.31.2 (#635) (ee6c513)
  • deps: bump @fastify/rate-limit from 7.6.0 to 8.0.0 (#636) (6812f38)
  • deps: bump coverallsapp/github-action from 1.2.3 to 1.2.4 (#622) (d4b1fe7)
  • deps: bump fastify from 4.13.0 to 4.14.1 (#631) (5523a41)
  • deps: bump pg from 8.9.0 to 8.10.0 (#634) (6fbd957)

7.1.3 (2023-03-01)

Improvements

Miscellaneous

  • routes/docs: use correct terminology for openapi definitions (#613) (c6a9deb)

Dependencies

  • deps-dev: bump esbuild from 0.17.5 to 0.17.10 (#620) (6619c6e)
  • deps-dev: bump eslint from 8.34.0 to 8.35.0 (#618) (1868160)
  • deps-dev: bump glob from 8.1.0 to 9.1.0 (442dbdd)
  • deps-dev: bump pino-pretty from 9.3.0 to 9.4.0 (#615) (6e4fba3)
  • deps-dev: bump playwright from 1.31.0 to 1.31.1 (#617) (b245ff3)
  • deps: bump coverallsapp/github-action from 1.1.3 to 1.2.3 (#614) (8ee53a4)
  • deps: bump pino from 8.10.0 to 8.11.0 (#616) (9bbf3b2)
  • deps: bump transistive dependencies (#621) (44f42d7)

7.1.2 (2023-02-22)

Documentation

  • images: update api documentation screenshot (a3e64fd)

Miscellaneous

  • config: correct jsdoc param types (f934bba)
  • plugins/hashed-bearer-auth: add message to logged client name (#600) (fc422f0)
  • prefix unused params with underscores (0ff36d5)

Bug fixes

  • config: misleading thrown error message (b024464)

Dependencies

  • deps-dev: bump @commitlint/cli from 17.4.3 to 17.4.4 (#604) (880a9ff)
  • deps-dev: bump @commitlint/config-conventional (#605) (cddb09e)
  • deps-dev: bump jest from 29.4.2 to 29.4.3 (#607) (14c401d)
  • deps-dev: bump pino-pretty from 9.2.0 to 9.3.0 (#603) (45e63bd)
  • deps-dev: bump playwright from 1.30.0 to 1.31.0 (#602) (ca3d1be)
  • deps: bump fastify-disablecache from 3.0.6 to 3.1.0 (#609) (e6c0b28)
  • deps: bump fastify-floc-off from 2.0.6 to 2.1.0 (#606) (fc18ed0)
  • deps: bump fastify-json-to-xml from 1.0.2 to 1.1.0 (#608) (03f34d7)

7.1.1 (2023-02-15)

Improvements

  • plugins: replace xml plugin with dedicated dependency (#575) (e08821a)
  • routes/contact: use json object over fluent schema (#578) (618874a)

Documentation

  • readme: use more inclusive language (c7cdf16)

Bug fixes

  • config: convert cors params to lowercase (0aafa64)
  • openapi title and doc page description (3617c56)
  • routes/contact: only add 401 response to schema when auth enabled (7a74c6f)
  • routes: search schema response key (ef53e51)

Continuous integration

  • cd: use sentence case for changelog headings (d805afe)

Miscellaneous

  • config: add comment re openapi components object (#579) (d5b781e)
  • config: correct inline comment (771d49e)
  • config: use consistent style across api repos (fea9684)
  • rename master branch to main (#581) (d71cf63)
  • use sentence case over ap style for titles and headings (438a038)

Dependencies

  • deps-dev: bump @commitlint/cli from 17.4.2 to 17.4.3 (#597) (189df23)
  • deps-dev: bump @commitlint/config-conventional (#593) (cc2cca8)
  • deps-dev: bump eslint from 8.33.0 to 8.34.0 (#594) (095f424)
  • deps-dev: bump eslint-plugin-jsdoc from 39.7.5 to 40.0.0 (#595) (0d7387f)
  • deps-dev: bump eslint-plugin-security from 1.7.0 to 1.7.1 (#590) (02586d5)
  • deps-dev: bump jest from 29.4.1 to 29.4.2 (#598) (0850c60)
  • deps-dev: bump pino-pretty from 9.1.1 to 9.2.0 (#589) (d0a15bf)
  • deps-dev: bump prettier from 2.8.3 to 2.8.4 (#583) (ecfd641)
  • deps: bump @fastify/static from 6.8.0 to 6.9.0 (#588) (3d389ef)
  • deps: bump @fastify/swagger from 8.3.0 to 8.3.1 (#591) (370c999)
  • deps: bump fastify from 4.12.0 to 4.13.0 (#596) (e26d5a9)
  • deps: bump fastify-disablecache from 3.0.5 to 3.0.6 (#586) (d07a392)
  • deps: bump fastify-floc-off from 2.0.5 to 2.0.6 (#584) (17d0b9f)
  • deps: bump fastify-json-to-xml from 1.0.0 to 1.0.2 (#585) (8844435)
  • deps: bump fluent-json-schema from 4.0.0 to 4.1.0 (#587) (0ae8fc2)
  • deps: bump pino from 8.8.0 to 8.10.0 (#592) (691024c)

7.1.0 (2023-02-01)

Features

  • routes/contact: add wildcard support to match.receiver param (#547) (527d961)

Bug fixes

  • pagination skipping concurrently created records (#546) (7a650ea)
  • routes: missing 400 response in openapi schema (#548) (e40c575)
  • server: response headers for static and 404 routes (#549) (91e7594)

Improvements

  • routes/docs: increase cache max-age from 3 to 5 minutes (d9fd504)

Miscellaneous

  • routes/docs/openapi: reduce cache max-age from 60 to 30 minutes (a3bf683)

Dependencies

  • deps-dev: bump @commitlint/cli from 17.4.0 to 17.4.1 (#545) (6162510)
  • deps-dev: bump @commitlint/cli from 17.4.1 to 17.4.2 (#553) (eb512f6)
  • deps-dev: bump @commitlint/config-conventional (#562) (7e13e67)
  • deps-dev: bump esbuild from 0.16.16 to 0.17.5 (f17314f)
  • deps-dev: bump eslint from 8.31.0 to 8.33.0 (#555) (9b68bca)
  • deps-dev: bump eslint-plugin-import from 2.26.0 to 2.27.5 (#571) (88ccbba)
  • deps-dev: bump eslint-plugin-jest from 27.2.0 to 27.2.1 (#540) (0efe5a8)
  • deps-dev: bump eslint-plugin-jsdoc from 39.6.4 to 39.7.5 (#566) (3d548be)
  • deps-dev: bump eslint-plugin-security from 1.5.0 to 1.7.0 (#570) (0f99c57)
  • deps-dev: bump glob from 8.0.3 to 8.1.0 (#559) (0cf71fe)
  • deps-dev: bump jest from 29.3.1 to 29.4.1 (#568) (7886b95)
  • deps-dev: bump playwright from 1.29.1 to 1.29.2 (#544) (e421eb0)
  • deps-dev: bump playwright from 1.29.2 to 1.30.0 (#564) (b9081f3)
  • deps-dev: bump prettier from 2.8.1 to 2.8.2 (#543) (f1ecee4)
  • deps-dev: bump prettier from 2.8.2 to 2.8.3 (#567) (2f4cc8f)
  • deps: bump @fastify/autoload from 5.7.0 to 5.7.1 (#557) (c390f21)
  • deps: bump @fastify/static from 6.6.0 to 6.8.0 (#561) (9c208b9)
  • deps: bump @fastify/swagger from 8.2.1 to 8.3.0 (#565) (8382e31)
  • deps: bump fastify from 4.11.0 to 4.12.0 (#556) (5a616f6)
  • deps: bump fastify-disablecache from 3.0.4 to 3.0.5 (#560) (de426a9)
  • deps: bump fastify-floc-off from 2.0.4 to 2.0.5 (#558) (4bb29cc)
  • deps: bump hadolint/hadolint-action from 3.0.0 to 3.1.0 (#552) (a0fefd6)
  • deps: bump mssql from 9.0.1 to 9.1.1 (#563) (45a1769)
  • deps: bump pg from 8.8.0 to 8.9.0 (#554) (0322295)
  • deps: bump secure-json-parse from 2.6.0 to 2.7.0 (#541) (4537068)
  • deps: bump transistive dependencies (9e7b368)
  • use esbuild to compile (#539) (ae41382)

Continuous integration

  • cd: add missing install step (bf9336d)

7.0.2 (2023-01-05)

Bug fixes

  • routes/docs: limit files served from redoc module (1a0c0ba)

Improvements

  • routes/docs: do not expand 200 response by default (7507918)
  • routes/docs: remove search web worker and blob (d74595d)

Documentation

  • grammar and clarity fixes (6570cba)

Miscellaneous

  • license: update license year (64a1615)
  • plugins: rename plugin to use british english spelling (938bd0a)
  • route/docs: remove x-ua-compatible meta tag (516cc08)
  • route/docs: remove redundant html comment (0862598)
  • routes: ignore false eslint regex warnings (26482c3)
  • update contact details (1f3f810)

Dependencies

  • deps-dev: bump @commitlint/cli from 17.3.0 to 17.4.0 (#536) (51c13ff)
  • deps-dev: bump @commitlint/config-conventional (#537) (11aaa03)
  • deps-dev: bump eslint from 8.29.0 to 8.31.0 (#528) (2e19622)
  • deps-dev: bump eslint-config-prettier from 8.5.0 to 8.6.0 (#533) (3ae1c7a)
  • deps-dev: bump eslint-plugin-jest from 27.1.6 to 27.2.0 (#525) (c090bfc)
  • deps-dev: bump husky from 8.0.2 to 8.0.3 (#534) (4cb53b0)
  • deps-dev: bump playwright from 1.28.1 to 1.29.1 (#526) (9397e0f)
  • deps: bump @fastify/autoload from 5.6.0 to 5.7.0 (#532) (7ed1764)
  • deps: bump fastify from 4.10.2 to 4.11.0 (#535) (95badfd)
  • deps: bump pino from 8.7.0 to 8.8.0 (#527) (c5ca73c)
  • deps: bump transistive dependencies (#538) (d90d43c)

7.0.1 (2022-12-12)

Miscellaneous

  • package: remove start:migrate script (969c846)

Documentation

  • readme: remove mention of db:migrate script (08d0af6)

Continuous integration

  • cd: remove dev values from package.json (#509) (ad7fdfb)

Improvements

Dependencies

  • dependabot: remove docker auto-updates (#499) (b17d272)
  • deps-dev: bump eslint from 8.28.0 to 8.29.0 (#516) (0e11f5d)
  • deps-dev: bump eslint-plugin-jest from 27.1.5 to 27.1.6 (#507) (4c19196)
  • deps-dev: bump eslint-plugin-jsdoc from 39.6.2 to 39.6.4 (#503) (6b07870)
  • deps-dev: bump playwright from 1.28.0 to 1.28.1 (#505) (d4c5abb)
  • deps-dev: bump prettier from 2.8.0 to 2.8.1 (#522) (cb044a0)
  • deps: bump @fastify/accepts from 4.0.1 to 4.1.0 (#506) (64ee053)
  • deps: bump @fastify/autoload from 5.5.0 to 5.6.0 (#502) (0cd20d3)
  • deps: bump @fastify/basic-auth from 4.0.0 to 5.0.0 (#513) (1bda2c8)
  • deps: bump @fastify/bearer-auth from 8.0.1 to 9.0.0 (#510) (26c36bc)
  • deps: bump @fastify/compress from 6.1.1 to 6.2.0 (#501) (bcb78d6)
  • deps: bump @fastify/helmet from 10.0.2 to 10.1.0 (#504) (4fb7458)
  • deps: bump @fastify/rate-limit from 7.5.0 to 7.6.0 (#512) (2e4e805)
  • deps: bump @fastify/sensible from 5.1.1 to 5.2.0 (#523) (2475be2)
  • deps: bump @fastify/static from 6.5.1 to 6.6.0 (#518) (7ae4c1b)
  • deps: bump @fastify/swagger from 8.1.0 to 8.2.0 (#511) (1075594)
  • deps: bump @fastify/swagger from 8.2.0 to 8.2.1 (#515) (7f8876a)
  • deps: bump @fastify/under-pressure from 8.1.0 to 8.2.0 (#517) (5d25622)
  • deps: bump env-schema from 5.1.1 to 5.2.0 (#520) (15b0feb)
  • deps: bump fastify-plugin from 4.3.0 to 4.4.0 (#521) (fc7a9ef)
  • deps: bump secure-json-parse from 2.5.0 to 2.6.0 (#519) (c6fa6e4)
  • deps: bump transistive dependencies (#524) (f09e0a1)

7.0.0 (2022-11-23)

⚠ BREAKING CHANGES

  • minimum required version of node increased from 16.0.0 to 18.12.1
  • config: use port 3000 if PORT env variable unset (#476)
  • deps: LOG_ROTATION_FREQUENCY env variable accepted values changed from "daily, custom, or test" to "daily, date, [1-12]h, or [1-30]m"

Bug fixes

  • config: use port 3000 if PORT env variable unset (#476) (f258daf)
  • routes: add HEAD to cors allowed methods (#468) (aaae7f6)

Miscellaneous

  • *.ignore: fix test log entry (5f795ca)
  • clean up multi-line comments (50584fb)
  • drop support for node 16 (#477) (b0b250a)
  • update inline documentation links (983b4a7)

Dependencies

  • deps-dev: bump @commitlint/cli from 17.2.0 to 17.3.0 (#492) (edbc3ad)
  • deps-dev: bump @commitlint/config-conventional (#493) (290bc06)
  • deps-dev: bump eslint from 8.26.0 to 8.27.0 (#480) (f1869de)
  • deps-dev: bump eslint from 8.27.0 to 8.28.0 (#495) (c320b8e)
  • deps-dev: bump eslint-plugin-jest from 27.1.3 to 27.1.5 (#486) (f58782d)
  • deps-dev: bump eslint-plugin-jsdoc from 39.4.0 to 39.6.2 (#483) (c60e9cf)
  • deps-dev: bump husky from 8.0.1 to 8.0.2 (#484) (be09f6a)
  • deps-dev: bump jest from 29.2.2 to 29.3.1 (#488) (b9e5f8f)
  • deps-dev: bump playwright from 1.27.1 to 1.28.0 (#481) (690c80c)
  • deps-dev: bump prettier from 2.7.1 to 2.8.0 (#497) (181eab8)
  • deps-dev: remove @faker-js/faker (#470) (d653bbb)
  • deps: bump @fastify/autoload from 5.4.1 to 5.5.0 (#494) (e42c24b)
  • deps: bump @fastify/cors from 8.1.1 to 8.2.0 (#482) (d217654)
  • deps: bump @fastify/static from 6.5.0 to 6.5.1 (#496) (1feebd2)
  • deps: bump actions/dependency-review-action from 2 to 3 (#478) (654108d)
  • deps: bump env-schema from 5.1.0 to 5.1.1 (#485) (ecd2909)
  • deps: bump fastify from 4.10.0 to 4.10.2 (#491) (1f17dfa)
  • deps: bump fastify from 4.9.2 to 4.10.0 (#487) (cd4dc48)
  • deps: bump file-stream-rotator from 0.6.1 to 1.0.0 (#474) (66ef733)
  • deps: bump hadolint/hadolint-action from 2.1.0 to 3.0.0 (#479) (b668372)
  • deps: bump transistive dependencies (#498) (a7c44ef)
  • docker: remove dev values from package.json (fc91a26)
  • docker: reorder instructions for build caching (9604668)

6.1.2 (2022-11-01)

Bug fixes

  • routes: accept header handling (e5fbb4b)
  • routes: openapi schema content types (812ac4f)

Miscellaneous

  • .env.template: remove PORT value (d5944c3)
  • eslint: use ecmascript 2021 globals (2f0ce52)

Documentation

Improvements

  • config: remove redundant required props (#464) (60b370d)

Dependencies

  • deps-dev: bump @commitlint/cli from 17.1.2 to 17.2.0 (#466) (d2ad55d)
  • deps-dev: bump @commitlint/config-conventional (#465) (f5b5d52)
  • deps-dev: bump eslint from 8.25.0 to 8.26.0 (#454) (99fbb5e)
  • deps-dev: bump eslint-plugin-jest from 27.1.2 to 27.1.3 (#456) (05e11ca)
  • deps-dev: bump eslint-plugin-jsdoc from 39.3.13 to 39.4.0 (#462) (4f15829)
  • deps-dev: bump eslint-plugin-promise from 6.1.0 to 6.1.1 (#458) (3a3d149)
  • deps-dev: bump jest from 29.2.0 to 29.2.2 (#460) (849efa2)
  • deps: bump @fastify/cors from 8.1.0 to 8.1.1 (#455) (cdfb782)
  • deps: bump @fastify/swagger from 8.0.0 to 8.1.0 (#457) (3fb164f)
  • deps: bump fastify from 4.9.1 to 4.9.2 (#463) (07ab67e)
  • deps: bump fastify-disablecache from 3.0.3 to 3.0.4 (#453) (694cafc)
  • deps: bump fastify-floc-off from 2.0.3 to 2.0.4 (#461) (214ef40)
  • deps: bump pino from 8.6.1 to 8.7.0 (#459) (b205c1a)
  • deps: bump transistive dependencies (#467) (9fd5db6)

6.1.1 (2022-10-18)

Bug fixes

  • routes/admin/access/bearer-token: remove stray , (#434) (8b1d4e3)

Miscellaneous

  • server: remove reference to hardcoded dir (9861afa)

Dependencies

  • deps-dev: bump @faker-js/faker from 7.5.0 to 7.6.0 (#437) (9d15e44)
  • deps-dev: bump eslint from 8.24.0 to 8.25.0 (#435) (ac64e68)
  • deps-dev: bump eslint-plugin-jest from 27.1.1 to 27.1.2 (#443) (159ef2f)
  • deps-dev: bump eslint-plugin-jsdoc from 39.3.6 to 39.3.13 (#447) (0a351b2)
  • deps-dev: bump eslint-plugin-promise from 6.0.1 to 6.1.0 (#438) (4391975)
  • deps-dev: bump jest from 29.1.2 to 29.2.0 (#444) (d2151f8)
  • deps-dev: bump playwright from 1.26.1 to 1.27.1 (#446) (0717d27)
  • deps: bump @fastify/autoload from 5.4.0 to 5.4.1 (#441) (ac2f3af)
  • deps: bump @fastify/helmet from 10.0.1 to 10.0.2 (#442) (ac32083)
  • deps: bump @fastify/rate-limit from 7.4.0 to 7.5.0 (#445) (9ef84fe)
  • deps: bump @fastify/swagger from 7.6.1 to 8.0.0 (#436) (56f9c2c)
  • deps: bump fastify from 4.7.0 to 4.8.1 (#432) (22d46b7)
  • deps: bump fastify from 4.8.1 to 4.9.1 (#440) (4c28107)
  • deps: bump fastify-plugin from 4.2.1 to 4.3.0 (#439) (46e3006)

Continuous integration

  • cd: remove test files from release asset (#448) (f98fd35)

6.1.0 (2022-10-06)

Features

  • config: use first available open port if PORT env variable unset (#424) (a2f3fa4)

Continuous integration

  • cd: create release asset (5401e56)

Dependencies

  • .dockerignore: add SECURITY.md (56d231f)
  • .dockerignore: fix CODE_OF_CONDUCT entry (#426) (47a2976)
  • deps-dev: bump eslint-plugin-jest from 27.0.4 to 27.1.1 (#430) (470d641)
  • deps-dev: bump pino-pretty from 9.1.0 to 9.1.1 (#429) (2696f7a)
  • deps: bump fluent-json-schema from 3.1.0 to 4.0.0 (#428) (3b2ef89)

6.0.0 (2022-10-03)

⚠ BREAKING CHANGES

  • config: SERVICE_HOST and SERVICE_PORT env variables renamed to HOST and PORT respectively.
  • routes/admin/access: bcrypt now used for hashing stored bearer tokens

Bug fixes

  • config: use HOST and PORT env variables for cloud services (45ead4f)
  • plugins/serialize-json-to-xml: rep invalid xml chars with U+FFFD (#402) (f337601)

Improvements

  • plugins/serialize-json-to-xml: minify xml responses (deabafa)
  • public/image/icons: compress mask-icon (cd5cd50)
  • routes/admin/access: use faster bcrypt over scrypt (9055943)
  • routes/docs: remove redundant html elem attributes (368b820)

Documentation

  • readme: remove redundant comma (3813d70)
  • use shorter urls; fix fastify links (8becde8)

Miscellaneous

  • .env.template: remove service section (a0ead40)
  • .vscode: add redhat.vscode-xml as default xml formatter (3e13f90)
  • *.ignore: add clinicjs directory (b5f8b88)
  • import destructuring (#401) (aec20bd)
  • LICENSE: remove trailing whitespace (ac5681e)
  • prefer object destructuring (#420) (f61ebc0)
  • sort imports alphabetically (e093e75)

Dependencies

  • deps-dev: bump autocannon from 7.9.0 to 7.10.0 (#416) (dae48c8)
  • deps-dev: bump eslint from 8.23.0 to 8.24.0 (#410) (83c283d)
  • deps-dev: bump eslint-plugin-jest from 27.0.1 to 27.0.4 (#417) (bd5bb7e)
  • deps-dev: bump jest from 29.0.2 to 29.1.2 (#418) (6e47749)
  • deps-dev: bump nodemon from 2.0.19 to 2.0.20 (#408) (97b294c)
  • deps-dev: bump playwright from 1.25.1 to 1.26.1 (#406) (60444e9)
  • deps: bump @fastify/autoload from 5.3.1 to 5.4.0 (#412) (e90e582)
  • deps: bump @fastify/helmet from 10.0.0 to 10.0.1 (#409) (0e89089)
  • deps: bump @fastify/swagger from 7.5.0 to 7.6.1 (#419) (bee710c)
  • deps: bump dotenv from 16.0.2 to 16.0.3 (#415) (3002d89)
  • deps: bump env-schema from 5.0.0 to 5.1.0 (#414) (f3314d6)
  • deps: bump fastify from 4.5.3 to 4.7.0 (#411) (956d3d2)
  • deps: bump fastify-disablecache from 3.0.2 to 3.0.3 (#422) (2f9471f)
  • deps: bump fastify-floc-off from 2.0.2 to 2.0.3 (#421) (a96c371)
  • deps: bump js2xmlparser from 4.0.2 to 5.0.0 (#407) (2b053d9)
  • deps: bump pino from 8.5.0 to 8.6.1 (#413) (ab69de1)
  • deps: bump redoc from 2.0.0-rc.76 to 2.0.0 (#405) (5b32e68)
  • deps: bump transistive dependencies (#423) (19bf8c4)

5.0.7 (2022-09-05)

Bug fixes

  • config: default throws exceptions when used in anyOf schemas (81dd1fd)
  • plugins/shared-schemas: replace 500 response message const (d864253)

Improvements

  • routes/docs/openapi: ensure response is openapi object (71f6dce)
  • routes: remove additional properties from req queries (0f28ff4)

Miscellaneous

  • .husky: shell path and arg updates (76544e2)
  • .vscode/extensions: remove unmaintained extension (9f40e3f)
  • config: remove redundant todo inline comment (f11ec47)
  • plugins/shared-schemas: remove commented out code (0fbba8a)

Dependencies

  • deps-dev: bump @commitlint/cli from 17.0.3 to 17.1.2 (#381) (dcc4e42)
  • deps-dev: bump @commitlint/config-conventional (#374) (74cdd2f)
  • deps-dev: bump @faker-js/faker from 7.4.0 to 7.5.0 (#386) (39e1629)
  • deps-dev: bump eslint from 8.22.0 to 8.23.0 (#372) (cedcee5)
  • deps-dev: bump eslint-plugin-jest from 26.8.4 to 27.0.1 (#391) (a567b41)
  • deps-dev: bump eslint-plugin-promise from 6.0.0 to 6.0.1 (#373) (10cecbc)
  • deps-dev: bump jest from 28.1.3 to 29.0.1 (#376) (f1fd4db)
  • deps-dev: bump jest from 29.0.1 to 29.0.2 (#393) (95be058)
  • deps-dev: bump pino-pretty from 9.0.1 to 9.1.0 (#382) (8dbab03)
  • deps-dev: bump playwright from 1.25.0 to 1.25.1 (#384) (218c4db)
  • deps: bump @fastify/accepts from 4.0.0 to 4.0.1 (#375) (65d1b64)
  • deps: bump @fastify/autoload from 5.2.0 to 5.3.0 (#378) (4ee890f)
  • deps: bump @fastify/autoload from 5.3.0 to 5.3.1 (#394) (7765a7a)
  • deps: bump @fastify/compress from 6.1.0 to 6.1.1 (#389) (5ab9c09)
  • deps: bump @fastify/helmet from 9.1.0 to 10.0.0 (#379) (a996b48)
  • deps: bump @fastify/rate-limit from 7.3.0 to 7.4.0 (#392) (d4aaf57)
  • deps: bump @fastify/sensible from 5.1.0 to 5.1.1 (#387) (4cd6d8e)
  • deps: bump @fastify/swagger from 7.4.1 to 7.5.0 (#390) (150e5a2)
  • deps: bump @fastify/under-pressure from 8.0.0 to 8.1.0 (#383) (21524a5)
  • deps: bump dotenv from 16.0.1 to 16.0.2 (#377) (aeac77e)
  • deps: bump fastify from 4.5.2 to 4.5.3 (#380) (a073ddb)
  • deps: bump fastify-plugin from 4.2.0 to 4.2.1 (#385) (db6d3ea)
  • deps: bump pg from 8.7.3 to 8.8.0 (#388) (8f8693b)
  • deps: bump transistive dependencies (4c59268)

5.0.6 (2022-08-20)

Miscellaneous

Dependencies

  • deps-dev: bump eslint-plugin-jest from 26.8.3 to 26.8.4 (#368) (d8e6a90)
  • deps: bump fastify from 4.5.0 to 4.5.2 (#367) (93b6b03)
  • deps: bump mssql from 9.0.0 to 9.0.1 (#364) (010b94b)
  • deps: bump pino from 8.4.1 to 8.4.2 (#365) (ba28a09)
  • deps: bump redoc from 2.0.0-rc.75 to 2.0.0-rc.76 (#366) (dcca1db)

5.0.5 (2022-08-18)

Improvements

  • check accept header is supported before parsing req body (66bd127)
  • convert sync async handlers to sync only (7ae3411)
  • plugins/serialize-json-to-xml: consolidate if statements (159058f)
  • remove redundant returns (df485ee)
  • routes: remove reassignment of variables (3a34b37)

Dependencies

  • deps-dev: bump eslint from 8.21.0 to 8.22.0 (#359) (b30132b)
  • deps-dev: bump eslint-plugin-jest from 26.8.2 to 26.8.3 (#356) (6c659f0)
  • deps-dev: bump pino-pretty from 8.1.0 to 9.0.1 (#354) (55668cd)
  • deps-dev: bump playwright from 1.24.2 to 1.25.0 (#357) (d2bf7a7)
  • deps: bump @fastify/under-pressure from 7.0.0 to 8.0.0 (#358) (3082bd0)
  • deps: bump fastify from 4.4.0 to 4.5.0 (#351) (f30f475)
  • deps: bump fastify-plugin from 4.1.0 to 4.2.0 (#352) (e91aaf3)
  • deps: bump mssql from 8.1.3 to 9.0.0 (#353) (3bae181)
  • deps: bump pino from 8.4.0 to 8.4.1 (#355) (dd0d95c)
  • deps: bump redoc from 2.0.0-rc.74 to 2.0.0-rc.75 (#360) (6b94175)
  • deps: bump sub-dependencies (#361) (68a01f1)

5.0.4 (2022-08-09)

Bug fixes

Dependencies

  • deps-dev: bump @faker-js/faker from 7.3.0 to 7.4.0 (#343) (e74a13b)
  • deps-dev: bump eslint-plugin-jest from 26.7.0 to 26.8.2 (#338) (64b3cd2)
  • deps-dev: bump eslint-plugin-jsdoc from 39.3.4 to 39.3.6 (#339) (fb02a6a)
  • deps: bump @fastify/autoload from 5.1.0 to 5.2.0 (#342) (b63b47d)
  • deps: bump fastify from 4.3.0 to 4.4.0 (#337) (77e68d8)
  • deps: bump fastify-disablecache from 3.0.1 to 3.0.2 (#345) (322ad1a)
  • deps: bump fastify-floc-off from 2.0.1 to 2.0.2 (#340) (9db14b0)
  • deps: bump mssql from 8.1.2 to 8.1.3 (#346) (51cf267)
  • deps: bump pino from 8.3.1 to 8.4.0 (#344) (e200850)

5.0.3 (2022-08-04)

Bug fixes

  • routes: invalid openapi shared schema definitions (#331) (77c184c)
  • server: reduce content-security-policy for options routes (#333) (e6d216a)

Dependencies

  • deps: bump @fastify/cors from 8.0.0 to 8.1.0 (#334) (e818250)

5.0.2 (2022-08-01)

Improvements

Continuous integration

  • ci: audit npm package signatures (4fe5fb3)

Miscellaneous

  • *.ignore: add pnpm lockfile (#322) (ea4d409)
  • replace --production npm arg with --omit=dev (fa63699)

Dependencies

  • deps-dev: bump eslint from 8.20.0 to 8.21.0 (#324) (026ca13)
  • deps-dev: bump eslint-plugin-jest from 26.6.0 to 26.7.0 (#325) (acc159e)
  • deps-dev: bump eslint-plugin-jsdoc from 39.3.3 to 39.3.4 (#328) (9ea335b)
  • deps-dev: bump playwright from 1.24.1 to 1.24.2 (#329) (b9ef1e1)
  • deps: bump @fastify/static from 6.4.1 to 6.5.0 (#326) (ff56d7e)
  • deps: bump fastify-disablecache from 3.0.0 to 3.0.1 (#320) (4e726c7)
  • deps: bump fastify-floc-off from 2.0.0 to 2.0.1 (#319) (54ed1a5)
  • deps: bump pino from 8.3.0 to 8.3.1 (#321) (1703413)
  • deps: bump redoc from 2.0.0-rc.72 to 2.0.0-rc.74 (#323) (37981a7)
  • deps: bump secure-json-parse from 2.4.0 to 2.5.0 (#327) (4e14774)
  • deps: bump sub-dependencies (#330) (6ebdea7)

5.0.1 (2022-07-14)

Dependencies

  • dependabot: increase open-pull-requests-limit from 5 to 20 (64a2a26)
  • deps-dev: bump @commitlint/cli from 17.0.2 to 17.0.3 (#304) (3f25913)
  • deps-dev: bump @commitlint/config-conventional (#293) (d0da5b3)
  • deps-dev: bump @faker-js/faker from 7.2.0 to 7.3.0 (#307) (326fe08)
  • deps-dev: bump eslint from 8.18.0 to 8.19.0 (#298) (bddc795)
  • deps-dev: bump jest from 28.1.1 to 28.1.2 (#303) (9d345f8)
  • deps-dev: bump jest from 28.1.2 to 28.1.3 (#314) (0295715)
  • deps-dev: bump nodemon from 2.0.16 to 2.0.19 (#302) (e62b711)
  • deps-dev: bump pino-pretty from 8.0.0 to 8.1.0 (#305) (c95620d)
  • deps-dev: bump playwright from 1.22.2 to 1.23.2 (#299) (cea97df)
  • deps-dev: bump playwright from 1.23.2 to 1.23.3 (#313) (a61183a)
  • deps: bump @fastify/autoload from 4.0.1 to 5.1.0 (#306) (776706c)
  • deps: bump fastify-plugin from 3.0.1 to 4.0.0 (#310) (ef8a544)
  • deps: bump moment from 2.29.3 to 2.29.4 (#300) (adafa78)
  • deps: bump pino from 8.0.0 to 8.1.0 (#296) (54bce11)
  • deps: bump sub-dependencies (#315) (7ae9742)

5.0.0 (2022-06-20)

⚠ BREAKING CHANGES

  • package: drop support for non-lts node 15
  • plugins/hashed-bearer-auth: Dropped support for node 14 to be able to use Promise.any()
  • scrypt now used for hashing stored bearer tokens

Bug fixes

  • plugins/serialize-json-to-xml: ignore swagger and openapi specs (#289) (982a16c)
  • routes: pagination count returning as string for postgres conns (#288) (8541e17)

Improvements

  • plugins/hashed-bearer-auth: replace blocking for() loop (c07777e)
  • replace pbkdf2 with scrypt (9b2cc52)

Miscellaneous

  • .github/funding: remove comments (b3715c7)
  • .github: add FUNDING.yml (deeeb5e)
  • .gitignore: use latest github ignore template (49e2589)
  • .prettierignore: add new paths from .gitignore (11b8440)
  • package: drop support for non-lts node 15 (5eea440)
  • remove redundant async keywords (5e84ef6)

Documentation

  • readme: grammar fixes (ea220c5)
  • readme: update minimum node version required (00c20a0)
  • readme: use block quotes for notes to enable github md highlights (c08f678)

Dependencies

  • deps-dev: add missing caret range for prettier (a9498b6)
  • deps-dev: bump @faker-js/faker from 7.1.0 to 7.2.0 (#276) (d4fa8c3)
  • deps-dev: bump eslint from 8.16.0 to 8.17.0 (#274) (af104c6)
  • deps-dev: bump eslint from 8.17.0 to 8.18.0 (#290) (9c07cfb)
  • deps-dev: bump eslint-plugin-jest from 26.4.6 to 26.5.3 (#272) (3905df0)
  • deps-dev: bump eslint-plugin-jsdoc from 39.3.2 to 39.3.3 (#291) (d2fd5bf)
  • deps-dev: bump jest from 28.1.0 to 28.1.1 (#275) (dc4e6e8)
  • deps-dev: bump prettier from 2.6.2 to 2.7.1 (#270) (8cecb4c)
  • deps: bump actions/dependency-review-action from 1 to 2 (#268) (0a9764f)
  • deps: bump pino from 7.11.0 to 8.0.0 (#259) (f71136b)
  • deps: bump pino-pretty from 7.6.1 to 8.0.0 (#260) (c507e48)
  • deps: bump redoc from 2.0.0-rc.71 to 2.0.0-rc.72 (#280) (d73c54b)
  • deps: bump sub-dependencies (#292) (e27b548)
  • deps: bump wagoid/commitlint-github-action from 4 to 5 (#269) (2502d43)
  • deps: move pino-pretty to dev dependencies (91ce470)

4.0.4 (2022-06-01)

Bug fixes

  • plugins/serialize-json-to-xml: 204 resps do not have content types (0df37a4)
  • routes: time and timezone suffix are case-sensitive (ade2c0b)
  • routes: timestamptz data type does not support YYYY patterns (7e9a629)

Improvements

  • config: replace forEach() with map() (#240) (cc62d2a)

Continuous integration

Dependencies

  • deps-dev: bump @commitlint/cli from 17.0.0 to 17.0.2 (#250) (2c43227)
  • deps-dev: bump @commitlint/config-conventional (#246) (1a6d323)
  • deps-dev: bump @faker-js/faker from 6.3.1 to 7.1.0 (#253) (4535dac)
  • deps-dev: bump eslint from 8.15.0 to 8.16.0 (#245) (7a4603f)
  • deps-dev: bump eslint-plugin-jest from 26.2.2 to 26.4.6 (#251) (54059a2)
  • deps-dev: bump eslint-plugin-jsdoc from 39.2.9 to 39.3.2 (#256) (83d9667)
  • deps-dev: bump playwright from 1.22.1 to 1.22.2 (#247) (a2fbb2b)
  • deps: bump @fastify/helmet from 8.0.1 to 8.1.0 (#257) (02fb21f)
  • deps: bump @fastify/rate-limit from 6.0.0 to 6.0.1 (#248) (a6918a0)
  • deps: bump env-schema from 4.0.0 to 5.0.0 (#255) (9fd6c0f)
  • deps: bump mssql from 8.1.1 to 8.1.2 (#254) (c0c5599)
  • deps: bump redoc from 2.0.0-rc.70 to 2.0.0-rc.71 (#244) (e83b07f)
  • deps: bump sub-dependencies (fca5acb)

Miscellaneous

  • plugins/serialize-json-to-xml: correct inline comments (111e1b3)
  • remove redundant eslint comments (#242) (31c79d9)
  • server: fix inline comment (5e8d56b)

4.0.3 (2022-05-18)

Bug fixes

  • routes/admin/access/bearer-token: missing record url path (aae13ed)
  • server: do not transform 503 http err into 500 http err response (d9c56b1)

Documentation

  • update deployment steps to use npm ci (43fe000)

Miscellaneous

  • .eslintrc: enable plugin:jest/style rules (89d3e90)
  • .github/codeql-config: remove quotation marks (6a97601)
  • bug_report: use node 18 as placeholder for node-version (41f0453)
  • server: use optional chaining for error message logging (68a519d)

Continuous integration

  • automerge: fix context (325e14d)
  • check user.login is dependabot instead of actor (33fd019)
  • ci: require unit-tests job to pass for save-pr-number job to run (01f3540)
  • ci: use lts/* for node setup in lint job (1488a64)
  • ci: use node-version for node matrix key (5501de5)
  • codeql: only run on pr changes to .html, .js, and .yml files (1fa8213)
  • codeql: resolve missing analyses (4c5375b)
  • codeql: specify which files to scan during analysis (f609aac)

Dependencies

  • deps-dev: bump @commitlint/cli from 16.2.4 to 17.0.0 (#227) (f97e3d3)
  • deps-dev: bump @commitlint/config-conventional (#233) (cc1f957)
  • deps-dev: bump autocannon from 7.8.1 to 7.9.0 (#229) (840f1d6)
  • deps-dev: bump eslint from 8.14.0 to 8.15.0 (#225) (30f7c98)
  • deps-dev: bump eslint-plugin-jest from 26.1.5 to 26.2.2 (#222) (002fbde)
  • deps-dev: bump glob from 8.0.1 to 8.0.3 (#234) (3eca8bf)
  • deps-dev: bump husky from 7.0.4 to 8.0.1 (#224) (d9cbff0)
  • deps-dev: bump jest from 28.0.3 to 28.1.0 (#235) (8b6cbee)
  • deps-dev: bump playwright from 1.21.1 to 1.22.1 (#220) (f48252a)
  • deps: bump @fastify/basic-auth from 3.0.1 to 3.0.2 (#228) (371ce74)
  • deps: bump @fastify/helmet from 8.0.0 to 8.0.1 (#230) (0d8ee66)
  • deps: bump @fastify/sensible from 4.0.0 to 4.1.0 (#226) (20ea2b5)
  • deps: bump @fastify/static from 5.0.1 to 5.0.2 (#231) (b2006ee)
  • deps: bump dotenv from 16.0.0 to 16.0.1 (#232) (2a65173)
  • deps: bump mssql from 8.1.0 to 8.1.1 (#236) (74b7612)
  • deps: bump redoc from 2.0.0-rc.67 to 2.0.0-rc.70 (#223) (a0645d2)
  • deps: bump sub-dependencies (8699105)

Improvements

  • access fs/promises api via newer route (ac89225)

4.0.2 (2022-05-04)

Bug fixes

  • log error stack trace; adjust http 500 error responses (#188) (1140481)

Improvements

  • routes/contact: remove implicit require of URL (#185) (070e09c)

Continuous integration

  • add dependency-review job (6777345)
  • link-check: replace npx linkinator call with github action (9b5fa72)
  • only trigger dependency-review on pr (511ddf0)
  • use shorter arg aliases for lockfile lint step (1d564b4)
  • validate that resolved url matches the package name (afc84e2)

Documentation

  • readme: add mention of insomnia example requests (1443cee)
  • readme: remove db:migrate step, now runs on start of api (71baac2)
  • readme: remove snyk badge (f1c3140)

Dependencies

  • deps-dev: bump @commitlint/cli from 16.2.3 to 16.2.4 (#203) (4431bca)
  • deps-dev: bump @commitlint/config-conventional (#194) (11570c8)
  • deps-dev: bump @faker-js/faker from 6.1.2 to 6.2.0 (#196) (cc3dc4e)
  • deps-dev: bump @faker-js/faker from 6.2.0 to 6.3.1 (#208) (d145376)
  • deps-dev: bump eslint from 8.13.0 to 8.14.0 (#197) (a173269)
  • deps-dev: bump eslint-plugin-jest from 26.1.4 to 26.1.5 (#198) (0d7bd65)
  • deps-dev: bump eslint-plugin-jsdoc from 39.1.1 to 39.2.9 (#201) (48fb1a3)
  • deps-dev: bump eslint-plugin-security from 1.4.0 to 1.5.0 (#202) (8c6aea0)
  • deps-dev: bump jest from 27.5.1 to 28.0.3 (#193) (9e57b36)
  • deps-dev: bump nodemon from 2.0.15 to 2.0.16 (#192) (feca91b)
  • deps-dev: bump playwright from 1.20.2 to 1.21.1 (#195) (f77ecf9)
  • deps: bump @fastify/autoload from 4.0.0 to 4.0.1 (#211) (1336854)
  • deps: bump @fastify/basic-auth from 3.0.0 to 3.0.1 (#206) (3bd5e52)
  • deps: bump @fastify/bearer-auth from 7.0.0 to 7.0.1 (#207) (1550efb)
  • deps: bump @fastify/static from 5.0.0 to 5.0.1 (#209) (2fbb432)
  • deps: bump fastify from 3.28.0 to 3.29.0 (#200) (2576cf4)
  • deps: bump github/codeql-action from 1 to 2 (#191) (cac9444)
  • deps: bump pino from 7.10.0 to 7.11.0 (#204) (9f9652b)
  • deps: bump redoc from 2.0.0-rc.66 to 2.0.0-rc.67 (#205) (a36654d)
  • deps: bump sub-dependencies (47648e1)
  • deps: bump under-pressure from 5.8.0 to 5.8.1 (#210) (acf29c9)
  • use new [@fastify](https://github.com/fastify) org dependencies (#189) (07e1fd1)

Miscellaneous

  • .github/workflows/link-check: use skip input (38aa71d)
  • ci: remove quotation marks from step name (a0ff9ba)
  • server: add missing asterisk to inline comment block (793d7c9)
  • use npm install alias (fcc9302)

4.0.1 (2022-04-12)

Bug fixes

  • stop npm from swallowing exit signals; run migrations on launch (d4169fa)

Continuous integration

  • automerge: squash automerge prs (1d4f55a)
  • cd: update org name for release-please-action (8430711)
  • reduce workflow permissions to minimum (b834c5a)
  • replace workflow-run-cleanup-action with github concurrency (02277ae)
  • test migrations (#168) (0f5aeb1)

Improvements

  • migrate: convert callback to async (859d3f1)
  • migrate: replace path with upath (ce6d190)
  • plugins/db: remove case declaration (149b710)
  • server: call reply object over raw when overwriting header (#156) (14507e6)

Miscellaneous

  • routes/admin/access/bearer-token: fix jsdoc tags (#173) (1e29877)

Dependencies

  • deps-dev: bump @faker-js/faker from 6.1.1 to 6.1.2 (#165) (beebce4)
  • deps-dev: bump eslint from 8.12.0 to 8.13.0 (#179) (fc23717)
  • deps-dev: bump eslint-plugin-import from 2.25.4 to 2.26.0 (#177) (171e732)
  • deps-dev: bump eslint-plugin-jest from 26.1.3 to 26.1.4 (#180) (8721c9b)
  • deps-dev: bump eslint-plugin-jsdoc from 38.1.4 to 38.1.6 (#166) (3c07e0f)
  • deps-dev: bump eslint-plugin-jsdoc from 38.1.6 to 39.1.1 (#176) (7c3d7b4)
  • deps-dev: bump glob from 7.2.0 to 8.0.1 (#175) (d032e51)
  • deps-dev: bump playwright from 1.20.1 to 1.20.2 (#163) (891a19d)
  • deps-dev: bump prettier from 2.6.1 to 2.6.2 (#164) (adcfd58)
  • deps: bump actions/upload-artifact from 2 to 3 (#174) (3e6fb2e)
  • deps: bump fastify from 3.27.4 to 3.28.0 (#167) (5f43ad2)
  • deps: bump hadolint/hadolint-action from 2.0.0 to 2.1.0 (8f17a79)
  • deps: bump moment from 2.29.1 to 2.29.2 (#172) (46d01de)
  • deps: bump mssql from 8.0.2 to 8.1.0 (#181) (54c6def)
  • deps: bump pino from 7.9.2 to 7.10.0 (#178) (7fe6836)
  • deps: bump pino-pretty from 7.6.0 to 7.6.1 (#182) (8b1bc7e)
  • deps: bump redoc from 2.0.0-rc.65 to 2.0.0-rc.66 (32a6395)
  • docker: install production deps only (#171) (f790528)

4.0.0 (2022-03-30)

⚠ BREAKING CHANGES

  • routes: datetime search params require timezone if time provided
  • migrations: DATETIME2 replaced with DATETIMEOFFSET in MSSQL. TIMESTAMP replaced with TIMESTAMPTZ in Postgres
  • routes/docs: docs/json route renamed to docs/openapi

Bug fixes

  • migrations: datetime with timezone data types now used (d160e7e)
  • routes/docs/json: add cors support (#138) (b550a01)
  • routes: datetime search params require timezone if time provided (9d447be)
  • server: enable xml serialisation api-wide; fix missing route elem (531ffbf)

Miscellaneous

  • routes/docs: rename docs/json to docs/openapi (#141) (4cb4213)

Dependencies

  • deps-dev: bump @faker-js/faker from 6.0.0 to 6.1.1 (7985584)
  • deps-dev: bump autocannon from 7.8.0 to 7.8.1 (5438a60)
  • deps-dev: bump eslint from 8.11.0 to 8.12.0 (68ae534)
  • deps-dev: bump eslint-plugin-jsdoc from 38.0.6 to 38.1.4 (a3b88c3)
  • deps-dev: bump prettier from 2.6.0 to 2.6.1 (8df1f64)
  • deps: bump fastify-disablecache from 2.0.6 to 2.0.7 (febf477)
  • deps: bump fastify-floc-off from 1.0.5 to 1.0.6 (890f423)
  • deps: bump hadolint/hadolint-action from 1.7.0 to 2.0.0 (c0e4d73)
  • deps: bump pino-pretty from 7.5.4 to 7.6.0 (3f05ba3)
  • deps: replace jstoxml with js2xmlparser (d44cee0)

Improvements

  • chain response functions (860c425)
  • plugins/serialize-json-to-xml: target application/json only (#154) (0ab4be5)
  • routes: clean accept header conditionals (7488032)
  • server: add error handler (1e44e1e)
  • server: move xml serialisation to plugin (d0d8b9e)
  • use type() alias function to set content-type (23f782c)
  • use secure-json-parse for json parsing (633d395)

3.1.0 (2022-03-25)

Features

  • routes: add location header to 201 responses (#113) (7720af8)

Bug fixes

  • routes/docs: add ie unsupported script (8e71438)
  • routes/docs: resolve cwe-676 (2af5aec)
  • server: disable cache for all routes besides documentation (2b97593)

Documentation

  • improve readability (2480213)
  • readme: update min version of node, mssql, and postgres (2c2e16e)

Improvements

  • routes/contact/schema: move phone number patterns (5df34b4)
  • server: return instead of break in switch statement (8210ceb)
  • server: use new hook config option for rate-limit plugin (3cf3603)

Miscellaneous

  • .github/workflows/optimise-images: reorder event list (0b17dc8)
  • scripts: remove redundant gitkraken fix from prepare script (66b80fb)
  • scripts: use shorter arg aliases; remove debugging args from jest (17cd36c)

Continuous integration

  • add job step names, workflow comments, and whitespace (f1c327b)
  • codeql-analysis: remove unused autobuild step (6aa6779)
  • codeql: grant minimum permissions to run; rename file (#116) (abde602)
  • only save pr number artifact for dependabot (5bdcdaf)
  • use docker compose v2 (32f2035)

Dependencies

  • deps-dev: bump @commitlint/cli from 16.2.1 to 16.2.3 (fd0faab)
  • deps-dev: bump autocannon from 7.7.0 to 7.8.0 (cb33e34)
  • deps-dev: bump eslint from 8.10.0 to 8.11.0 (ee35521)
  • deps-dev: bump eslint-plugin-jest from 26.1.1 to 26.1.3 (889277d)
  • deps-dev: bump eslint-plugin-jsdoc from 37.9.7 to 38.0.6 (2d3b228)
  • deps-dev: bump playwright from 1.19.2 to 1.20.1 (92b33af)
  • deps-dev: bump prettier from 2.5.1 to 2.6.0 (3997979)
  • deps-dev: replace faker with @faker-js/faker (#134) (da18382)
  • deps: bump env-schema from 3.5.2 to 4.0.0 (9b9580c)
  • deps: bump fastify-accepts from 2.1.0 to 2.2.0 (e5ba247)
  • deps: bump fastify-static from 4.5.0 to 4.6.1 (b27c16f)
  • deps: bump hadolint/hadolint-action from 1.6.0 to 1.7.0 (0844715)
  • deps: bump jstoxml from 3.2.0 to 3.2.2 (4c5c6cd)
  • deps: bump minimist from 1.2.5 to 1.2.6 (4ff2b0d)
  • deps: bump peter-evans/create-pull-request from 3 to 4 (c33b214)
  • deps: bump pino from 7.8.1 to 7.9.2 (952e242)
  • deps: bump pino-pretty from 7.5.3 to 7.5.4 (ef922bc)
  • deps: bump redoc from 2.0.0-rc.64 to 2.0.0-rc.65 (af1ccdf)
  • deps: bump sub-dependencies (#135) (f150899)

3.0.0 (2022-03-10)

⚠ BREAKING CHANGES

  • admin/access: access.scopes search param no longer case-insensitive
  • config: ADMIN_PASSWORD env variable now has minimum length of 8 characters
  • routes: admin/access route moved to admin/access/bearer-token

Bug fixes

  • admin/access: searching using access.scopes (9c8c24f)
  • config: enforce minimum length for ADMIN_PASSWORD env variable (7decdca)
  • plugins/hashed-bearer-auth: log client name (48de80e)

Continuous integration

Miscellaneous

  • auto-compress images (#101) (2a52749)
  • plugins/db: whitespace in switch statement (90b4e33)
  • routes/contact/query: correct jsdoc tag (a14c857)
  • routes/schemas: update produces and consumes values (b00ed08)

Dependencies

  • deps: bump fastify from 3.27.3 to 3.27.4 (276f9c3)
  • deps: bump jstoxml from 3.1.0 to 3.2.0 (adc026c)
  • deps: bump pino from 7.8.0 to 7.8.1 (75dfea1)

Improvements

  • migrate: use db variable in switch statement (985bcbb)
  • remove redundant strict equality operators (494a7c4)
  • routes/admin/access/b-t: remove unused param (7bfc9b3)
  • routes: move admin/access to admin/access/bearer-token (f21c9a9)

2.1.0 (2022-03-08)

Features

  • admin/access: allow more than one access.scopes search param (ddb866f)

Bug fixes

  • admin/access: searching using access.scopes in postgres (c3c5b0b)
  • docker-compose: declare DB_CLIENT env variable (c816fef)

Documentation

  • readme: move api docs access to usage section (22527c6)

Miscellaneous

  • .gitignore: remove redundant exclusion (e9ac060)
  • add .dockerignore file (55909d3)

2.0.0 (2022-03-08)

⚠ BREAKING CHANGES

  • Minimum node engine bumped from >=14.0.0 to ^14.17.0 || ^15.6.0 || >=16.0.0
  • AUTH_BEARER_TOKEN_ARRAY env variable removed
  • access.tokens table added to migration SQL queries

Features

Bug fixes

  • config: redact request auth header from logs (318f94f)

Documentation

  • readme: add usage section (158f02e)

1.1.1 (2022-03-08)

Bug fixes

  • plugins/shared-schemas: use examples not enum for 404 responses (2fc06e2)
  • routes/contact: make match.value param case-insensitive (1dd1a4c)
  • routes/contact: use singular not plurals in read responses (441a20c)

Continuous integration

  • only install chromium and firefox with playwright (0ddb239)

Improvements

  • public/images/icons: compress apple-touch-icons (#85) (b357954)
  • routes/docs: move html and redoc out of root context (ac6bfb8)
  • routes: add preValidation hooks directly into routes (1dd4a94)
  • server: move db and db util functions to root context (1d4d784)

Miscellaneous

  • .env.template: double-quote example strings (#86) (cd48d62)
  • routes/contact/schema: use plural in search summary (911b3da)

Dependencies

  • deps-dev: bump eslint-config-prettier from 8.4.0 to 8.5.0 (fd88774)
  • deps-dev: bump eslint-plugin-jsdoc from 37.9.4 to 37.9.5 (d0da88a)
  • deps-dev: bump eslint-plugin-jsdoc from 37.9.5 to 37.9.7 (20e8a9c)
  • deps: bump actions/checkout from 2 to 3 (4881ba8)
  • deps: bump fastify from 3.27.2 to 3.27.3 (ca5e5dc)
  • deps: bump fluent-json-schema from 3.0.1 to 3.1.0 (1d2e80e)
  • deps: bump jstoxml from 2.2.9 to 3.1.0 (af1e3b8)
  • deps: bump pino-pretty from 7.5.1 to 7.5.3 (99685a7)

1.1.0 (2022-02-28)

Features

  • routes/contact: support application/xml responses (#45) (62c6380)

Bug fixes

  • config: renew rate-limit if user attempts req in limit time window (#36) (70b2c35)
  • migrate: catch errors thrown (156373d)
  • public/docs: add x-ua-compatible meta tag (565b2c3)
  • routes/contact: return 201 code and new record id on post reqs (#43) (03f9530)

Improvements

  • config: call Error as constructor, not function (a361657)
  • migrate: allow for function to be exported (820da78)
  • public: remove unused web app manifest and icons (127b2ff)

Miscellaneous

  • .gitignore: ignore live insert file (df43b36)
  • public/site.webmanifest: reduce short_name to 12 chars (6129b13)
  • public: add more apple-touch-icon sizes (d30783c)
  • public: rename mask-icon (5588b5a)
  • remove trailing whitespace (7470ea5)
  • routes: update cors inline comment (#39) (1954454)

Dependencies

  • dependabot: major tags no longer need ignore support (cc3e71d)
  • deps-dev: bump @commitlint/cli from 16.1.0 to 16.2.1 (0937c05)
  • deps-dev: bump @commitlint/config-conventional (87f6e22)
  • deps-dev: bump autocannon from 7.6.0 to 7.7.0 (19347b3)
  • deps-dev: bump eslint from 8.8.0 to 8.9.0 (6c07895)
  • deps-dev: bump eslint from 8.9.0 to 8.10.0 (a6a5ee7)
  • deps-dev: bump eslint-config-prettier from 8.3.0 to 8.4.0 (4a5ce3e)
  • deps-dev: bump eslint-plugin-jest from 26.0.0 to 26.1.1 (8792c0b)
  • deps-dev: bump eslint-plugin-jsdoc from 37.7.0 to 37.9.4 (529fc40)
  • deps-dev: bump jest from 27.4.7 to 27.5.1 (b838c57)
  • deps-dev: bump playwright from 1.18.1 to 1.19.1 (9682554)
  • deps-dev: bump playwright from 1.19.1 to 1.19.2 (54a4adb)
  • deps: bump actions/github-script from 5 to 6 (156009b)
  • deps: bump actions/setup-node from 2 to 3 (6299d6e)
  • deps: bump dotenv from 15.0.0 to 16.0.0 (93bf697)
  • deps: bump fastify from 3.27.0 to 3.27.2 (0612a0f)
  • deps: bump fastify-autoload from 3.10.0 to 3.11.0 (23a7b3a)
  • deps: bump fastify-bearer-auth from 6.1.0 to 6.2.0 (55e8597)
  • deps: bump fastify-cors from 6.0.2 to 6.0.3 (696ebc2)
  • deps: bump fastify-disablecache from 2.0.5 to 2.0.6 (ae5bbd3)
  • deps: bump fastify-floc-off from 1.0.4 to 1.0.5 (430cbe4)
  • deps: bump fastify-rate-limit from 5.7.0 to 5.7.2 (407dbcf)
  • deps: bump fastify-swagger from 4.12.0 to 4.15.0 (d425abc)
  • deps: bump follow-redirects from 1.14.7 to 1.14.8 (172a220)
  • deps: bump mssql from 8.0.1 to 8.0.2 (0a9f8b9)
  • deps: bump pg from 8.7.1 to 8.7.3 (39571aa)
  • deps: bump pino from 7.6.5 to 7.8.0 (d181c32)
  • deps: bump postgrator from 5.0.0 to 5.0.1 (d6ab7d0)
  • deps: bump prismjs from 1.26.0 to 1.27.0 (9f99aea)
  • deps: bump redoc from 2.0.0-rc.63 to 2.0.0-rc.64 (3d645de)
  • deps: bump simple-get from 3.1.0 to 3.1.1 (345aae3)
  • deps: bump sub-dependencies (#78) (fd995f2)

1.0.2 (2022-02-01)

Bug fixes

  • routes/contact: ignore additional properties in pagination object (#25) (55ad339)
  • utils/escape-single-quotes: ignore non-string expressions (#27) (2379a86)

Continuous integration

Dependencies

  • deps-dev: add playwright (81c4aa9)
  • deps-dev: bump eslint from 8.7.0 to 8.8.0 (7b60adc)
  • deps: bump dotenv from 14.3.2 to 15.0.0 (e13a52a)
  • deps: bump fastify-helmet from 5.3.2 to 7.0.1 (#12) (fc3320e)
  • deps: bump mssql from 7.3.0 to 8.0.1 (91b2e73)
  • deps: bump pino from 7.6.4 to 7.6.5 (0d5ced4)
  • deps: bump sub-dependencies (#33) (2235ef4)

1.0.1 (2022-01-28)

Bug fixes

  • plugins/db: log error if connection fails (3d36949)
  • routes/contact: escape single-quote characters (74b83ed)
  • routes/contact: ignore additional properties in puts and posts objs (#23) (68fa3b6)
  • routes/contact: remove duplicates caused by cross apply (4c9155c)
  • routes/contact: restrict telecom values (0bba7da)

Documentation

  • readme: add note regarding live records (#24) (3196399)
  • readme: reduce verbosity of note (82f387a)

Dependencies

  • dependabot: ignore minor and patch commit-lint updates (#15) (4f2527e)
  • dependabot: use default open-pull-requests-limit value (f91e198)
  • deps-dev: bump eslint-plugin-jsdoc from 37.6.3 to 37.7.0 (2f315d9)
  • deps: bump dotenv from 14.2.0 to 14.3.2 (344a390)
  • deps: bump fastify-plugin from 3.0.0 to 3.0.1 (2426cf1)
  • deps: bump pino-pretty from 7.5.0 to 7.5.1 (e5ff8fb)
  • deps: bump redoc from 2.0.0-rc.59 to 2.0.0-rc.61 (7424132)
  • deps: bump redoc from 2.0.0-rc.61 to 2.0.0-rc.63 (#21) (349544f)

1.0.0 (2022-01-24)

Miscellaneous

Dependencies

  • deps-dev: bump dev dependencies (55c8123)
  • deps: bump dotenv from 10.0.0 to 14.2.0 (8508d17)
  • deps: bump env-schema from 3.5.1 to 3.5.2 (c65c7f0)
  • deps: bump fastify from 3.25.3 to 3.27.0 (7d2accf)
  • deps: bump file-stream-rotator from 0.5.7 to 0.6.1 (12e2d73)
  • deps: bump pino from 7.6.3 to 7.6.4 (75bac7f)
  • deps: bump pino-pretty from 7.3.0 to 7.5.0 (a2b1e1c)
  • deps: bump sub-dependencies (6237922)

Documentation

  • readme: add case study and update acknowledgements section (d65b0ca)
  • readme: remove database setup; clarify purpose (13ed6c1)