Releases: DEFRA/forms-engine-plugin
v4.1.0
Whilst we've been publishing regular releases, we've not been publishing them to GitHub so dependabot visibility has been poor.
We're now moving the plugin to GitHub Releases, which will handle our version numbers and enforce release notes. You'll find the release notes are a lot clearer going forward.
This latest release has some major dependency updates for the most part. However, since it's been a while since our last GitHub release, we're including the full changelog for visibility:
What's Changed
- Feat DF-388: Adapter V1 formatter by @mokhld in #174
- Fix/df 380 resolve circular imports by @whitewaterdesign in #178
- refactor: DF-380 - Move enums to separate types file by @whitewaterdesign in #179
- refactor: DF-380 - Add component dot getDisplayStringFromFormValue & … by @whitewaterdesign in #180
- Fix/typo in docs by @davidjamesstone in #181
- Use sonarqube-scan-action v5 by @alexluckett in #184
- Docs on using our client-side assets by @alexluckett in #185
- feat: add CSV file IDs to adapter v1 for form runner integration by @mokhld in #183
- TGC-842: Fix multilineTextField render issue by @davidatdefra in #188
- Feat/df 370 save progress by @jbarnsley10 in #182
- Add file upload documentation by @alexluckett in #196
- Add front-matter for file upload docs by @alexluckett in #197
- feat DF-468: include form definition version in payload by @mokhld in #198
- DF-370: Allow save and exit from the repeater summary page by @davidjamesstone in #199
- Save state before save and exit by @davidjamesstone in #200
- Test/df 380 improve notify coverage by @whitewaterdesign in #207
- Update to error first logging by @davidjamesstone in #208
- Fix/df 513 empty checkbox condition by @jbarnsley10 in #209
- Initialise evaluationState using empty state by @davidjamesstone in #210
- Reduce backend data leakage on frontend by @alexluckett in #211
- DF 330 - confirmation email to user by @jbarnsley10 in #212
- chore(docs) DF-333: PLUGIN_OPTIONS documentation with required and optional … by @mokhld in #221
- Move onRequest from prehandler to get and post handlers by @Andrew-Folga in #214
- feature/DF-511: Postcode lookup by @davidjamesstone in #216
- Move styles into shared by @davidjamesstone in #224
- Fixed zero days in past/future by @jbarnsley10 in #227
- Fix/postcode lookup repeater by @davidjamesstone in #229
- Printer friendly urls by @jbarnsley10 in #233
- Printer-friendly URLs by @jbarnsley10 in #234
- feat DF-527: location components by @mokhld in #225
- Feat/df 341 create a declaration question - WIP by @whitewaterdesign in #226
- Defaults v2 summary title when not supplied by @jbarnsley10 in #230
- feat DF-527Add minimum precision validation for latitude and longitud… by @mokhld in #235
- Don't override SummaryWithConfirmationEmail by @alexluckett in #236
- feat: Update latitude and longitude validation ranges in LatLongField by @mokhld in #238
- Switch to expr-eval-fork for security fixes (prototype pollution) by @alexluckett in #240
- Fix location component error messages by @davidjamesstone in #243
- Feat - DF-312 Handles Declaration field output for CYA, emails and CSV by @jbarnsley10 in #242
- Fix - reinstates original value for declaration checkbox by @jbarnsley10 in #249
- feat DF-529: enhance error handling in location fields by @mokhld in #248
- Node update by @alexluckett in #251
- Bulk update dependencies by @alexluckett in #250
- fix/DF-477 - Gives correct JSON values in email by @jbarnsley10 in #253
- Fix DF 529: location cosmetics by @mokhld in #260
- Correcting the order of declaration vs confirmation e-mail on the summary page by @Scullyon in #261
- Fix/df 657 optional by @jbarnsley10 in #259
- refactor: Add location fields styling and update application stylesheet by @mokhld in #263
- Fix DF-529: lowercase short desc in location components (error preview in Designer) by @mokhld in #264
- Feat/df 480 - demote h1 in markdown by @jbarnsley10 in #246
- feat/DF-553: CSAT feedback by @jbarnsley10 in #268
- Feat/df 702 - dont log for summary page with missing title by @jbarnsley10 in #276
- feat/DF-710 - Allows later npm by @jbarnsley10 in #277
- Change error type when session is missing by @davidjamesstone in #278
- feat: importable
getFormContextby @davidkelley in #269 - fix NO-JIRA: display sections with forms that use sectionId by @mokhld in #281
- fix DF-73: correct section titles and summary list ordering in SummaryView… by @mokhld in #282
- Feat/df 607 - Bypass validation when clicking 'Save and exit' by @jbarnsley10 in #283
- Delete docker-compose.yaml by @alexluckett in #285
- Bugfix/fix null failures checkboxes by @alexluckett in #286
- Gracefully handle file upload persistence errors by clearing state by @alexluckett in #275
- Reworked to apply invalid state to payload by @jbarnsley10 in #284
- Fixed restoration of state from save and exit if partial page by @jbarnsley10 in #288
- fix(DF-773): preserve capitalisation of National Grid, OS, and Or… by @mokhld in #291
- Reset specific file upload page state when a failure occurs by @alexluckett in #290
- feat/DF-717: Shows reference number on confirmation page if enabled by @jbarnsley10 in #292
- fix/DF-717: Fixed ref-num being double-generated by @jbarnsley10 in #294
- fix/DF-648: Fixed form status in adapter message by @jbarnsley10 in #297
- feature/DF-680 location maps latlong, E&N and OSGR by @davidjamesstone in #287
- Feat/df 623 payment 2 by @mokhld in #295
- Feature/DF-680 location maps auth by @davidjamesstone in #300
- Feat/df 623 payment by @mokhld in #293
- Bump version of @defra/interactive-map to 0.0.4-alpha by @davidjamesstone in #302
- feat/df-634: Added extra logging for payments by @jbarnsley10 in #303
- feature/DF-810 repeater titles by @davidjamesstone in #301
- Feat/df 634 further logging by @jbarnsley10 in #304
- feat/df-634: Changed some logging fields by @jbarnsley10 in #306
- feat/df-634: Revert logging by @jbarnsley10 in #307
- fix(DF-626): payment formatting and add test by @mokhld in #305
- Handle cases where CDP's file upload service can't find the upload ID by @A...
2.1.4
What's Changed
- Update form state with validation upon save and return by @alexluckett in #157
Full Changelog: 2.1.2...2.1.4
2.1.3
Accidental release - not intended for use. Duplicate of 2.1.2.
2.1.2
What's Changed
- Warn if form with v1 schema constructed by @alexluckett in #156
Full Changelog: 2.1.1...2.1.2
2.1.1
What's Changed
- Bump jest-extended from 4.0.2 to 6.0.0 by @dependabot[bot] in #107
- Bump slackapi/slack-github-action from 2.1.0 to 2.1.1 by @dependabot[bot] in #120
- Bump the types group across 1 directory with 3 updates by @dependabot[bot] in #126
- Bump govuk-frontend from 5.11.0 to 5.11.1 by @dependabot[bot] in #136
- Bump @testing-library/jest-dom from 6.6.3 to 6.6.4 by @dependabot[bot] in #143
- Bump SonarSource/sonarqube-scan-action from 5.2.0 to 5.3.0 by @dependabot[bot] in #146
- Bump pino-pretty from 13.0.0 to 13.1.1 in the logging group by @dependabot[bot] in #144
- Bump jest from 30.0.4 to 30.0.5 in the tools group by @dependabot[bot] in #145
- Bump dotenv from 17.0.1 to 17.2.1 by @dependabot[bot] in #147
- Fixed file upload first failure by @jbarnsley10 in #155
Full Changelog: 2.1.0...2.1.1
2.1.0
New feature: onSave page event
Called on save of a page, after the data has been validated by DXT and the page controller returns a 2xx or 3xx response. Note: if there’s any data validation issues requiring a redirect/error, these are handled by the engine before a page controller’s involvement and as a result the page event will only trigger when the engine is satisfied and the page controller is.
Documentation:
- onSave page event: https://defra.github.io/forms-engine-plugin/features/configuration-based/PAGE_EVENTS.html
- forms-engine-plugin request lifecycle: https://defra.github.io/forms-engine-plugin/REQUEST_LIFECYCLE.html