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

Releases: Fdawgs/yh-community-contacts-api

v4.0.4

01 Jun 10:08
86bc265
Compare
Choose a tag to compare

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)

v4.0.3

18 May 11:43
055051f
Compare
Choose a tag to compare

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)

v4.0.2

04 May 08:14
c97011a
Compare
Choose a tag to compare

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)

v4.0.1

12 Apr 09:26
768769a
Compare
Choose a tag to compare

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)

v4.0.0

30 Mar 10:20
b1c7cba
Compare
Choose a tag to compare

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)

v3.1.0

25 Mar 08:26
e97343a
Compare
Choose a tag to compare

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)

v3.0.0

10 Mar 13:43
faa0112
Compare
Choose a tag to compare

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)

v2.1.0

08 Mar 11:55
265005a
Compare
Choose a tag to compare

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)

v2.0.0

08 Mar 09:39
dddc46e
Compare
Choose a tag to compare

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)

v1.1.1

08 Mar 07:48
59a14ce
Compare
Choose a tag to compare

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)