@dwp/govuk-casa 8.6.0 → 8.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md DELETED
@@ -1,755 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
-
5
- ## [8.6.0](https://github.com/dwp/govuk-casa/compare/8.5.2...8.6.0) (2022-11-04)
6
-
7
-
8
- ### Features
9
-
10
- * **better-typescript-support:** fixes and additions to types ([8dda905](https://github.com/dwp/govuk-casa/commit/8dda9050b53ee8a5f53c8f7c1cb4afa91df2e674))
11
-
12
- ### [8.5.2](https://github.com/dwp/govuk-casa/compare/8.5.1...8.5.2) (2022-10-31)
13
-
14
- ### [8.5.1](https://github.com/dwp/govuk-casa/compare/8.5.0...8.5.1) (2022-10-13)
15
-
16
- ## [8.5.0](https://github.com/dwp/govuk-casa/compare/8.4.0...8.5.0) (2022-09-22)
17
-
18
-
19
- ### Features
20
-
21
- * refactor formatDateObject to allow custom date format ([cff1d95](https://github.com/dwp/govuk-casa/commit/cff1d957e084566606892be631dede1c9b0b1c3c))
22
-
23
- ## [8.4.0](https://github.com/dwp/govuk-casa/compare/8.3.0...8.4.0) (2022-07-19)
24
-
25
-
26
- ### Features
27
-
28
- * clone field ([916f2f2](https://github.com/dwp/govuk-casa/commit/916f2f2497c4e8177a5a3b33b9b3e70aa9cd5dd1))
29
-
30
- ## [8.3.0](https://github.com/dwp/govuk-casa/compare/8.2.8...8.3.0) (2022-06-30)
31
-
32
-
33
- ### Features
34
-
35
- * add support for complex field names ([a380b01](https://github.com/dwp/govuk-casa/commit/a380b01ce22b8b7957ad4950e4189cc404b5d9c5))
36
-
37
- ### [8.2.8](https://github.com/dwp/govuk-casa/compare/8.2.7...8.2.8) (2022-06-29)
38
-
39
- ### [8.2.7](https://github.com/dwp/govuk-casa/compare/8.2.6...8.2.7) (2022-06-15)
40
-
41
- ### [8.2.6](https://github.com/dwp/govuk-casa/compare/8.2.5...8.2.6) (2022-06-06)
42
-
43
- ### [8.2.5](https://github.com/dwp/govuk-casa/compare/8.2.3...8.2.5) (2022-06-01)
44
-
45
-
46
- ### Bug Fixes
47
-
48
- * serve statics correctly from deeply nested apps ([0fd00a5](https://github.com/dwp/govuk-casa/commit/0fd00a5f10de28706afe87a993072d3184e3c7aa))
49
-
50
- ### [8.2.3](https://github.com/dwp/govuk-casa/compare/8.2.2...8.2.3) (2022-05-23)
51
-
52
- ### [8.2.2](https://github.com/dwp/govuk-casa/compare/8.2.1...8.2.2) (2022-05-23)
53
-
54
-
55
- ### Bug Fixes
56
-
57
- * escape from sticky edit on return to edit origin in a proxied app ([9303af1](https://github.com/dwp/govuk-casa/commit/9303af140ec383801741d50f3404fd7cfe930d90))
58
-
59
- ### [8.2.1](https://github.com/dwp/govuk-casa/compare/8.2.0...8.2.1) (2022-05-20)
60
-
61
-
62
- ### Bug Fixes
63
-
64
- * preserve compatibility with existing proxy mounting methods ([41040e6](https://github.com/dwp/govuk-casa/commit/41040e6ac891ec64ce4b70328dda333178c48b99))
65
-
66
- ## [8.2.0](https://github.com/dwp/govuk-casa/compare/8.1.0...8.2.0) (2022-05-17)
67
-
68
-
69
- ### Features
70
-
71
- * add means to create empty epehemeral context ([3e6f0da](https://github.com/dwp/govuk-casa/commit/3e6f0dad41d4150f23746bedcb46e43b8aab312d))
72
- * add support for a parameterised mounting point ([ecdecde](https://github.com/dwp/govuk-casa/commit/ecdecded7c69e689821afc8c5c7092e966566296)), closes [#87](https://github.com/dwp/govuk-casa/issues/87)
73
- * automatically send user to first waypoint in journey ([2362d1a](https://github.com/dwp/govuk-casa/commit/2362d1a864aa3e87dbd6d8abdcdb09ad14580d8f))
74
- * expose autocomplete attribute in form helper ([ba092b7](https://github.com/dwp/govuk-casa/commit/ba092b723389672e0ae45db149bdf5a61f2ab4f7)), closes [#60](https://github.com/dwp/govuk-casa/issues/60)
75
- * pass session to context event handlers ([1e8218c](https://github.com/dwp/govuk-casa/commit/1e8218cc4b9e608982c3c8a2917683b5aa7ab48f))
76
-
77
- ## [8.1.0](https://github.com/dwp/govuk-casa/compare/8.0.3...8.1.0) (2022-03-11)
78
-
79
-
80
- ### Features
81
-
82
- * add option to configure Helmet headers ([490ca73](https://github.com/dwp/govuk-casa/commit/490ca73854d59ea10c56b065828692bf65efd74c)), closes [#85](https://github.com/dwp/govuk-casa/issues/85)
83
-
84
-
85
- ### Bug Fixes
86
-
87
- * ensure validation state deserialises to ValidationError instances ([e4dd0a9](https://github.com/dwp/govuk-casa/commit/e4dd0a9cb343da6629664a45c8d026d27089dc78)), closes [#86](https://github.com/dwp/govuk-casa/issues/86)
88
-
89
- ### [8.0.3](https://github.com/dwp/govuk-casa/compare/8.0.2...8.0.3) (2022-02-04)
90
-
91
-
92
- ### Bug Fixes
93
-
94
- * add google analytics to default CSP ([6408140](https://github.com/dwp/govuk-casa/commit/6408140501c124221219def66094af9121935a1e))
95
- * correct typo ([56e0c8d](https://github.com/dwp/govuk-casa/commit/56e0c8d5e1ae8843c4f309ddf5cb8299faf7aaa4))
96
- * set 404 status code on 404 page render response ([2296a9d](https://github.com/dwp/govuk-casa/commit/2296a9dc01ae8aa00d5cb28c71e5ae718e782386))
97
-
98
- ### [8.0.2](https://github.com/dwp/govuk-casa/compare/8.0.1...8.0.2) (2022-01-14)
99
-
100
- ### [8.0.1](https://github.com/dwp/govuk-casa/compare/8.0.0...8.0.1) (2022-01-12)
101
-
102
- ## [8.0.0](https://github.com/dwp/govuk-casa/compare/7.0.8...8.0.0) (2021-12-21)
103
-
104
-
105
- ### ⚠ BREAKING CHANGES
106
-
107
- * The framework has been rewritten. Refer to
108
- docs/migration-guides/MIGRATION_7.x-8.x.md for more details.
109
-
110
- * rewrite framework ([48c44ec](https://gitlab.com/dwp/engineering/capture-and-submit-application/govuk-casa/commit/48c44ec78d9a93eb736e74f7b23b62b0898a1e1c))
111
-
112
- ### [7.0.8](https://github.com/dwp/govuk-casa/compare/7.0.7...7.0.8) (2021-12-10)
113
-
114
- ### [7.0.7](https://github.com/dwp/govuk-casa/compare/7.0.6...7.0.7) (2021-10-19)
115
-
116
-
117
- ### Bug Fixes
118
-
119
- * **typescript:** add import for type definition ([c7bc531](https://github.com/dwp/govuk-casa/commit/c7bc531c9cab7c202dc0f6d34ac374128cf284ed))
120
- * **typescript:** correct types for validation rules ([69d70c6](https://github.com/dwp/govuk-casa/commit/69d70c69a408c6ba42d3f4e075430659d97ffbeb))
121
-
122
- ### [7.0.6](https://github.com/dwp/govuk-casa/compare/7.0.5...7.0.6) (2021-09-28)
123
-
124
- ### [7.0.5](https://github.com/dwp/govuk-casa/compare/7.0.4...7.0.5) (2021-08-06)
125
-
126
- ### [7.0.4](https://github.com/dwp/govuk-casa/compare/7.0.3...7.0.4) (2021-08-05)
127
-
128
-
129
- ### Bug Fixes
130
-
131
- * **journey-context-tags:** Bumped ecmaVersion in eslintrc and refactored getContextsByTag to use optional chaining ([3d6fcb0](https://github.com/dwp/govuk-casa/commit/3d6fcb04386f121cd7f9906d33c87354151e33be))
132
- * **journey-context-tags:** Fixed bug where TypeError was thrown if a JC had no tags ([7e56c3e](https://github.com/dwp/govuk-casa/commit/7e56c3e4e2fa99010bb89f11ce187b05f487e33c))
133
-
134
- ### [7.0.3](https://github.com/dwp/govuk-casa/compare/7.0.2...7.0.3) (2021-06-10)
135
-
136
- ### [7.0.2](https://github.com/dwp/govuk-casa/compare/7.0.1...7.0.2) (2021-06-08)
137
-
138
-
139
- ### Bug Fixes
140
-
141
- * move husky install to prepare stage ([dad2fde](https://github.com/dwp/govuk-casa/commit/dad2fde0c4e5d182750dab2782c3ac2518c909af))
142
-
143
- ### [7.0.1](https://github.com/dwp/govuk-casa/compare/7.0.0...7.0.1) (2021-06-07)
144
-
145
- ## [7.0.0](https://github.com/dwp/govuk-casa/compare/7.0.0-beta1...7.0.0) (2021-06-07)
146
-
147
- # [7.0.0-beta1](https://github.com/dwp/govuk-casa/compare/6.8.4...7.0.0-beta1) (2021-03-18)
148
-
149
-
150
- ### Bug Fixes
151
-
152
- * postalAddressObject welsh translations ([9f311ab](https://github.com/dwp/govuk-casa/commit/9f311ab618879648229d2e47a9640c986b45ba0c)), closes [#124](https://github.com/dwp/govuk-casa/issues/124)
153
- * skip link only appears in English, even when browsing in Welsh ([a5ec074](https://github.com/dwp/govuk-casa/commit/a5ec074dc3b36f7894b8fb22d74b999cf53d1ac9))
154
-
155
-
156
- ### Code Refactoring
157
-
158
- * [bc] add govuk/ prefix to nunjucks macros ([94012d8](https://github.com/dwp/govuk-casa/commit/94012d8bb33132fcccd680b23ab5f99ae1c072cc)), closes [#104](https://github.com/dwp/govuk-casa/issues/104)
159
- * [bc] add sanitise sibling methods to validators ([1b15b27](https://github.com/dwp/govuk-casa/commit/1b15b27101780d8619a73de72bc2132c0e740bf3))
160
- * [bc] replace moment with luxon ([d971882](https://github.com/dwp/govuk-casa/commit/d971882bfdef7be54a203bdfa6410803cd171f0a)), closes [#145](https://github.com/dwp/govuk-casa/issues/145)
161
- * **plan:** [bc] change default route condition behaviour ([892ed4b](https://github.com/dwp/govuk-casa/commit/892ed4ba4af6f422e7a342f2f6086a005697d34f)), closes [#140](https://github.com/dwp/govuk-casa/issues/140)
162
-
163
-
164
- ### Features
165
-
166
- * [bc] add support for ephemeral contexts ([e48242b](https://github.com/dwp/govuk-casa/commit/e48242bf356bd00a3547e760244da0fb63ea4240)), closes [#128](https://github.com/dwp/govuk-casa/issues/128)
167
- * [bc] upgrade to latest node LTS version ([a4f1d24](https://github.com/dwp/govuk-casa/commit/a4f1d24b22792b2797392aa90abb9cb85f6b33f8)), closes [#145](https://github.com/dwp/govuk-casa/issues/145)
168
- * add new wordCount validator ([f9a6a22](https://github.com/dwp/govuk-casa/commit/f9a6a226024ecd91e3186afe266cf6359b367eca))
169
- * add translations for error pages ([e2a7db2](https://github.com/dwp/govuk-casa/commit/e2a7db205af29383f07a7ea661174439e442fdb3))
170
- * style error pages using GovUK frontend ([eaf6ad2](https://github.com/dwp/govuk-casa/commit/eaf6ad224ca435e49fcb7a16de72ab246193055c)), closes [#151](https://github.com/dwp/govuk-casa/issues/151)
171
-
172
-
173
- ### BREAKING CHANGES
174
-
175
- * Any existing templates will need to update their
176
- references to the govuk macros. See migration guide for details.
177
- * Built-in validation rules are no longer simple
178
- functions so cannot be bound. See docs/migration-guides/MIGRATING-6.x-7.x.md
179
- for migration path.
180
- * Large swathes of the codebase have changes, which has
181
- affected some of the public-facing API. See migrations notes in
182
- docs/migration-guides/MIGRATING-6.x-7.x.md
183
- * this replaces the moment datetime library with the
184
- luxon datetime library
185
- * Upgrade to node version 14 and set an minimum version
186
- * **plan:** This differs to the existing default behaviour, where custom
187
- logic functions completely override those validation checks. The old behaviour
188
- can still be obtained by applying the "validateBeforeRouteCondition" flag on
189
- a Plan.
190
-
191
-
192
-
193
- ## [6.8.4](https://github.com/dwp/govuk-casa/compare/6.8.3...6.8.4) (2021-02-24)
194
-
195
-
196
- ### Bug Fixes
197
-
198
- * add missing parser middleware ([75c457f](https://github.com/dwp/govuk-casa/commit/75c457fa81ad67dea451fcee8293430d07b94c9e))
199
-
200
-
201
-
202
- ## [6.8.3](https://github.com/dwp/govuk-casa/compare/6.8.2...6.8.3) (2021-02-23)
203
-
204
-
205
- ### Performance Improvements
206
-
207
- * call field read/write function only if defined ([6d7765e](https://github.com/dwp/govuk-casa/commit/6d7765ef00b4f3488e3e7b6df7a0bfbeec9a37fd))
208
-
209
-
210
-
211
- ## [6.8.2](https://github.com/dwp/govuk-casa/compare/6.8.1...6.8.2) (2021-02-17)
212
-
213
-
214
- ### Bug Fixes
215
-
216
- * reorder middleware to avoid errors when receiving sessionless POSTs ([84840a3](https://github.com/dwp/govuk-casa/commit/84840a30a28baefe6ecd3387aa30048db60e2f35))
217
-
218
-
219
-
220
- ## [6.8.1](https://github.com/dwp/govuk-casa/compare/6.8.0...6.8.1) (2020-12-10)
221
-
222
-
223
- ### Bug Fixes
224
-
225
- * extract path from editorigin without querstring ([d5625b6](https://github.com/dwp/govuk-casa/commit/d5625b661bc0c267776dffb95960f8f9dd7a70a0))
226
-
227
-
228
-
229
- # [6.8.0](https://github.com/dwp/govuk-casa/compare/6.7.2...6.8.0) (2020-10-23)
230
-
231
-
232
- ### Features
233
-
234
- * option to make edit mode "sticky" until user is back on track ([4f9b397](https://github.com/dwp/govuk-casa/commit/4f9b39703c6facde376c9622f1d720042a7f4171)), closes [#95](https://github.com/dwp/govuk-casa/issues/95)
235
-
236
-
237
-
238
- ## [6.7.2](https://github.com/dwp/govuk-casa/compare/6.7.1...6.7.2) (2020-10-16)
239
-
240
-
241
-
242
- ## [6.7.1](https://github.com/dwp/govuk-casa/compare/6.7.0...6.7.1) (2020-10-08)
243
-
244
-
245
-
246
- # [6.7.0](https://github.com/dwp/govuk-casa/compare/6.6.1...6.7.0) (2020-09-04)
247
-
248
-
249
- ### Features
250
-
251
- * package SCSS files for users who wish to compile their own CSS ([79bd972](https://github.com/dwp/govuk-casa/commit/79bd972b100665553c7420c2161b5db02dd08ba6))
252
-
253
-
254
-
255
- <a name="6.6.1"></a>
256
- ## [6.6.1](https://github.com/dwp/govuk-casa/compare/6.6.0...6.6.1) (2020-06-02)
257
-
258
-
259
- ### Performance Improvements
260
-
261
- * moment is slow so removing from session expiry which is a hot path ([8c63f8d](https://github.com/dwp/govuk-casa/commit/8c63f8d))
262
-
263
-
264
-
265
- <a name="6.6.0"></a>
266
- # [6.6.0](https://github.com/dwp/govuk-casa/compare/6.5.0...6.6.0) (2020-05-26)
267
-
268
-
269
- ### Features
270
-
271
- * add current language to journey context ([5b3e682](https://github.com/dwp/govuk-casa/commit/5b3e682))
272
-
273
-
274
-
275
- <a name="6.5.0"></a>
276
- # [6.5.0](https://github.com/dwp/govuk-casa/compare/6.4.1...6.5.0) (2020-05-13)
277
-
278
-
279
- ### Features
280
-
281
- * add a default robots.txt file ([1ad9ed8](https://github.com/dwp/govuk-casa/commit/1ad9ed8))
282
- * serve default, implicit favicon to browsers on root path ([58f9294](https://github.com/dwp/govuk-casa/commit/58f9294))
283
-
284
-
285
- ### Performance Improvements
286
-
287
- * array concat is really slow, assign instead ([63f3ae6](https://github.com/dwp/govuk-casa/commit/63f3ae6))
288
- * implement minor performance improvements in traversal methods ([e55fd70](https://github.com/dwp/govuk-casa/commit/e55fd70))
289
- * might be faster to filter once rather than twice? Not measurable ([5177c4a](https://github.com/dwp/govuk-casa/commit/5177c4a))
290
- * unnecessary reassign ([4db320a](https://github.com/dwp/govuk-casa/commit/4db320a))
291
- * unnecessary spread ([b1565ed](https://github.com/dwp/govuk-casa/commit/b1565ed))
292
- * wrap main code to avoid validating options every on every call ([9dfbcde](https://github.com/dwp/govuk-casa/commit/9dfbcde))
293
-
294
-
295
-
296
- <a name="6.4.1"></a>
297
- ## [6.4.1](https://github.com/dwp/govuk-casa/compare/6.4.0...6.4.1) (2020-05-05)
298
-
299
-
300
- ### Performance Improvements
301
-
302
- * user faster clone when reading page data ([45ba9e4](https://github.com/dwp/govuk-casa/commit/45ba9e4))
303
-
304
-
305
-
306
- <a name="6.4.0"></a>
307
- # [6.4.0](https://github.com/dwp/govuk-casa/compare/6.3.2...6.4.0) (2020-05-04)
308
-
309
-
310
- ### Features
311
-
312
- * add option to check validation state during traversal ([210dfb0](https://github.com/dwp/govuk-casa/commit/210dfb0)), closes [#118](https://github.com/dwp/govuk-casa/issues/118)
313
-
314
-
315
-
316
- <a name="6.3.2"></a>
317
- ## [6.3.2](https://github.com/dwp/govuk-casa/compare/6.3.1...6.3.2) (2020-04-28)
318
-
319
-
320
-
321
- <a name="6.3.1"></a>
322
- ## [6.3.1](https://github.com/dwp/govuk-casa/compare/6.3.0...6.3.1) (2020-04-24)
323
-
324
-
325
- ### Bug Fixes
326
-
327
- * changelog typo ([9f3103a](https://github.com/dwp/govuk-casa/commit/9f3103a))
328
-
329
-
330
-
331
- <a name="6.3.0"></a>
332
- # [6.3.0](https://github.com/dwp/govuk-casa/compare/6.2.0...6.3.0) (2020-04-24)
333
-
334
-
335
- ### Bug Fixes
336
-
337
- * Welsh local for date macro had incorrect keys ([588c17b](https://github.com/dwp/govuk-casa/commit/588c17b))
338
-
339
-
340
- ### Features
341
-
342
- * label graph edges with routing function name ([ddba1ba](https://github.com/dwp/govuk-casa/commit/ddba1ba))
343
- * **components:** add wrapper for govukCharacterCount component ([0f4d54a](https://github.com/dwp/govuk-casa/commit/0f4d54a))
344
-
345
-
346
-
347
- <a name="6.2.0"></a>
348
- # [6.2.0](https://github.com/dwp/govuk-casa/compare/6.1.0...6.2.0) (2020-04-22)
349
-
350
-
351
- ### Bug Fixes
352
-
353
- * mount static handlers on the proxy url ([eaf8062](https://github.com/dwp/govuk-casa/commit/eaf8062))
354
-
355
-
356
- ### Features
357
-
358
- * add means to access Plan's raw graph structure ([650a0a7](https://github.com/dwp/govuk-casa/commit/650a0a7))
359
-
360
-
361
-
362
- <a name="6.1.0"></a>
363
- # [6.1.0](https://github.com/dwp/govuk-casa/compare/6.0.0...6.1.0) (2020-04-21)
364
-
365
-
366
- ### Features
367
-
368
- * add proxyMountUrl to support proxying servers ([f8ce731](https://github.com/dwp/govuk-casa/commit/f8ce731))
369
- * **templates:** add Google Tag Manager attributes to radio/checkboxes ([7d36f9b](https://github.com/dwp/govuk-casa/commit/7d36f9b)), closes [#116](https://github.com/dwp/govuk-casa/issues/116)
370
-
371
-
372
-
373
- <a name="6.0.0"></a>
374
- # [6.0.0](https://github.com/dwp/govuk-casa/compare/5.2.2...6.0.0) (2020-03-26)
375
-
376
-
377
- ### Code Refactoring
378
-
379
- * change minimum NodeJS version to 12 ([6e362e1](https://github.com/dwp/govuk-casa/commit/6e362e1))
380
-
381
-
382
- ### Features
383
-
384
- * add support for custom data model ([a8ffac5](https://github.com/dwp/govuk-casa/commit/a8ffac5)), closes [#107](https://github.com/dwp/govuk-casa/issues/107)
385
- * add support for string interpolation in validation error messages ([e015c5c](https://github.com/dwp/govuk-casa/commit/e015c5c)), closes [#54](https://github.com/dwp/govuk-casa/issues/54)
386
- * Adding ability to set the text of a button in a journey ([340a238](https://github.com/dwp/govuk-casa/commit/340a238))
387
- * **test:** add utility for testing Plan traversals. ([4e69673](https://github.com/dwp/govuk-casa/commit/4e69673))
388
- * **validation:** pass full journey context to validators and conditionals ([bc12325](https://github.com/dwp/govuk-casa/commit/bc12325)), closes [#89](https://github.com/dwp/govuk-casa/issues/89)
389
-
390
-
391
- ### BREAKING CHANGES
392
-
393
- * All validator functions must reject with an instance of
394
- `ValidationError`, rather than the basic object as previously. See
395
- `docs/MIGRATION-5.x-6.x.md` for more details.
396
- * A minimum of NodeJS 12.0.0 is now required to use
397
- CASA.
398
- * **validation:** The apis for field validator functions, field validator conditionals
399
- and the Validation.processor() function, have all changed and existing codebases
400
- will need to be modified to continue working as expected. See MIGRATING-5.x-6.x.md
401
- for details on these changes.
402
-
403
-
404
-
405
- <a name="5.2.2"></a>
406
- ## [5.2.2](https://github.com/dwp/govuk-casa/compare/5.2.1...5.2.2) (2020-03-16)
407
-
408
-
409
- ### Bug Fixes
410
-
411
- * **ci:** include locale specifically when running zap ([677a575](https://github.com/dwp/govuk-casa/commit/677a575))
412
-
413
-
414
-
415
- <a name="5.2.1"></a>
416
- ## [5.2.1](https://github.com/dwp/govuk-casa/compare/5.2.0...5.2.1) (2020-01-15)
417
-
418
-
419
- ### Bug Fixes
420
-
421
- * traverse to correct page after edit if linear journey is shortened ([6d3beb2](https://github.com/dwp/govuk-casa/commit/6d3beb2))
422
-
423
-
424
-
425
- <a name="5.2.0"></a>
426
- # [5.2.0](https://github.com/dwp/govuk-casa/compare/5.1.0...5.2.0) (2019-12-05)
427
-
428
-
429
- ### Features
430
-
431
- * stop traversal beyond a given editorigin ([9228cb5](https://github.com/dwp/govuk-casa/commit/9228cb5))
432
-
433
-
434
-
435
- <a name="5.1.0"></a>
436
- # [5.1.0](https://github.com/dwp/govuk-casa/compare/5.1.0-beta.3...5.1.0) (2019-11-08)
437
-
438
-
439
- ### Bug Fixes
440
-
441
- * pass logger to static middleware function ([62dff0e](https://github.com/dwp/govuk-casa/commit/62dff0e))
442
- * **session:** Ensure sessionExpiryController() has new session ([1a434a0](https://github.com/dwp/govuk-casa/commit/1a434a0))
443
-
444
-
445
-
446
- <a name="5.1.0-beta.3"></a>
447
- # [5.1.0-beta.3](https://github.com/dwp/govuk-casa/compare/5.1.0-beta.2...5.1.0-beta.3) (2019-10-22)
448
-
449
-
450
- ### Bug Fixes
451
-
452
- * Remove referer query before session timeout redirect ([31d54e8](https://github.com/dwp/govuk-casa/commit/31d54e8))
453
-
454
-
455
- ### Features
456
-
457
- * **session:** add sessionExpiryController() config option ([c3edb27](https://github.com/dwp/govuk-casa/commit/c3edb27))
458
-
459
-
460
-
461
- <a name="5.1.0-beta.2"></a>
462
- # [5.1.0-beta.2](https://github.com/dwp/govuk-casa/compare/5.1.0-beta.1...5.1.0-beta.2) (2019-10-21)
463
-
464
-
465
- ### Bug Fixes
466
-
467
- * **traversal:** inject correct origin when calculating altered route after edit ([0c84170](https://github.com/dwp/govuk-casa/commit/0c84170))
468
- * **validator:** add type checking to email validator ([57de412](https://github.com/dwp/govuk-casa/commit/57de412))
469
-
470
-
471
-
472
- <a name="5.1.0-beta.1"></a>
473
- # [5.1.0-beta.1](https://github.com/dwp/govuk-casa/compare/5.0.1...5.1.0-beta.1) (2019-10-20)
474
-
475
-
476
- ### Bug Fixes
477
-
478
- * Don’t use <footer> to wrap form buttons ([ca91fae](https://github.com/dwp/govuk-casa/commit/ca91fae))
479
- * Update e-mail validation ([28cd300](https://github.com/dwp/govuk-casa/commit/28cd300))
480
- * use correct logger in skip middleware ([66360a3](https://github.com/dwp/govuk-casa/commit/66360a3))
481
- * **gather:** ensure gathered state is set for solely optional forms ([039fb94](https://github.com/dwp/govuk-casa/commit/039fb94))
482
- * **plan:** take into account route conditions when calculating previous waypoint ([41e2208](https://github.com/dwp/govuk-casa/commit/41e2208))
483
-
484
-
485
- ### Features
486
-
487
- * add functionality to convert from map to plan ([d98e055](https://github.com/dwp/govuk-casa/commit/d98e055))
488
-
489
-
490
- ### Performance Improvements
491
-
492
- * **plan:** add option to stop traversal early when conditions are met ([c4ab26e](https://github.com/dwp/govuk-casa/commit/c4ab26e))
493
-
494
-
495
-
496
- <a name="5.0.1"></a>
497
- ## [5.0.1](https://github.com/dwp/govuk-casa/compare/5.0.0...5.0.1) (2019-09-08)
498
-
499
-
500
- ### Bug Fixes
501
-
502
- * strip invalid characters from editorigin ([0a9d8a8](https://github.com/dwp/govuk-casa/commit/0a9d8a8))
503
-
504
-
505
-
506
- <a name="5.0.0"></a>
507
- # [5.0.0](https://github.com/dwp/govuk-casa/compare/5.0.0-alpha.4...5.0.0) (2019-08-15)
508
-
509
- ### Features
510
-
511
- * Upgrade to GOV.UK Frontend 3.0.0 ([e986a56](https://github.com/dwp/govuk-casa/commit/e986a56))
512
- * add support for hooks as arrays ([047ed46](https://github.com/dwp/govuk-casa/commit/047ed46))
513
- * implement graph data structure for handling journey traversals ([9f1d920](https://github.com/dwp/govuk-casa/commit/9f1d920))
514
-
515
- ### Bug Fixes
516
-
517
- * stop traversal once a loop is encountered ([33ce8f6](https://github.com/dwp/govuk-casa/commit/33ce8f6))
518
-
519
- ### Code Refactoring
520
-
521
- * rename variables and change references to request variables ([2b76135](https://github.com/dwp/govuk-casa/commit/2b76135))
522
-
523
- ### BREAKING CHANGES
524
-
525
- * GOVUK Frontend - See all changes documented in https://github.com/alphagov/govuk-frontend/releases/tag/v3.0.0
526
- * All existing references to `req.*` casa variables will need to be modified.
527
- * The UserJourney.* classes are no longer supported and existing journey
528
- definitions will need to be modified to use the new `Plan` class.
529
-
530
-
531
-
532
- <a name="4.0.5"></a>
533
- ## [4.0.5](https://github.com/dwp/govuk-casa/compare/4.0.4...4.0.5) (2019-07-24)
534
-
535
-
536
-
537
- <a name="4.0.4"></a>
538
- ## [4.0.4](https://github.com/dwp/govuk-casa/compare/4.0.3...4.0.4) (2019-07-13)
539
-
540
-
541
-
542
- <a name="4.0.3"></a>
543
- ## [4.0.3](https://github.com/dwp/govuk-casa/compare/4.0.2...4.0.3) (2019-07-01)
544
-
545
-
546
-
547
- <a name="4.0.2"></a>
548
- ## [4.0.2](https://github.com/dwp/govuk-casa/compare/4.0.1...4.0.2) (2019-05-28)
549
-
550
-
551
- ### Bug Fixes
552
-
553
- * **journey:** obey conditional on very first waypoint in journey ([4145df0](https://github.com/dwp/govuk-casa/commit/4145df0)), closes [#60](https://github.com/dwp/govuk-casa/issues/60)
554
-
555
-
556
-
557
- <a name="4.0.1"></a>
558
- ## [4.0.1](https://github.com/dwp/govuk-casa/compare/4.0.0...4.0.1) (2019-05-24)
559
-
560
-
561
- ### Code Refactoring
562
-
563
- * whitelist fields with validators for session ingestion ([57e4c95](https://github.com/dwp/govuk-casa/commit/57e4c95)), closes [#38](https://github.com/dwp/govuk-casa/issues/38)
564
-
565
-
566
- ### Features
567
-
568
- * **review:** use govukSummaryList component for Check Answers screen ([e97462c](https://github.com/dwp/govuk-casa/commit/e97462c))
569
-
570
-
571
- ### BREAKING CHANGES
572
-
573
- * **review:** Any services using the current layout will need to
574
- modify review block template for each individual page in their service.
575
- * Where previously field validators were optional, they
576
- are now mandatory if the data submitted for those fields is required to
577
- be ingested into the CASA session.
578
-
579
-
580
-
581
- <a name="4.0.0"></a>
582
- # [4.0.0](https://github.com/dwp/govuk-casa/compare/3.0.1...4.0.0) (2019-05-17)
583
-
584
-
585
- ### Features
586
-
587
- * **session:** pass referer url in session-timeout redirect ([7e0b3d0](https://github.com/dwp/govuk-casa/commit/7e0b3d0)), closes [#56](https://github.com/dwp/govuk-casa/issues/56)
588
-
589
-
590
- ### Performance Improvements
591
-
592
- * **nunjucks:** improve performance of template rendering and loading ([0838fbc](https://github.com/dwp/govuk-casa/commit/0838fbc))
593
-
594
-
595
- ### BREAKING CHANGES
596
-
597
- * **nunjucks:** Macros now require access to the same scope as the
598
- templates being rendered, so must be imported with context. See
599
- docs/MIGRATING-3.x-4.x.md
600
-
601
-
602
-
603
- <a name="3.0.1"></a>
604
- ## [3.0.1](https://github.com/dwp/govuk-casa/compare/3.0.0...3.0.1) (2019-05-09)
605
-
606
-
607
-
608
- <a name="3.0.0"></a>
609
- # [3.0.0](https://github.com/dwp/govuk-casa/compare/2.4.2...3.0.0) (2019-05-02)
610
-
611
-
612
- ### Bug Fixes
613
-
614
- * **security:** remove 'unsafe-inline' from script src in CSP header ([e6a4fbd](https://github.com/dwp/govuk-casa/commit/e6a4fbd))
615
- * **security:** set x-xss-protection header to `1; mode=block` ([9824762](https://github.com/dwp/govuk-casa/commit/9824762))
616
-
617
-
618
- ### Code Refactoring
619
-
620
- * remove sass and uglify; compile assets at build time ([97c2ceb](https://github.com/dwp/govuk-casa/commit/97c2ceb))
621
- * remove v1 macros and CSS ([40a419a](https://github.com/dwp/govuk-casa/commit/40a419a))
622
-
623
-
624
- ### Features
625
-
626
- * add support for `report-uri` and `report-to` CSP directives ([2616f44](https://github.com/dwp/govuk-casa/commit/2616f44))
627
- * add support for mulitple user journey maps ([c56211b](https://github.com/dwp/govuk-casa/commit/c56211b))
628
-
629
-
630
- ### Performance Improvements
631
-
632
- * some small performance improvements to headers middleware ([4831264](https://github.com/dwp/govuk-casa/commit/4831264))
633
-
634
-
635
- ### BREAKING CHANGES
636
-
637
- * If your service relies on CASA running sass/uglify
638
- compilation at boot-time, this will no longer be the case and your
639
- sources will need to be compiled in an alternative way.
640
-
641
- Signed-off-by: james.gauld <james.gauld@engineering.digital.dwp.gov.uk>
642
- * Any templates using the v1 macros or CSS/Sass rules
643
- will need to migrate to using latest equivalents. See
644
- docs/MIGRARTING-2.x-3.x.md for more details.
645
-
646
- Signed-off-by: james.gauld <james.gauld@engineering.digital.dwp.gov.uk>
647
- * **security:** Having 'unsafe-inline' set by default in the CSP header
648
- prevents protection against XSS attacks by allowing any inline JS to be
649
- executed in the browser. I'm removing this in favour of developers
650
- explicitly allowing each inline script block.
651
-
652
- Signed-off-by: Niall Molloy <niall.molloy@engineering.digital.dwp.gov.uk>
653
- * The review page page is no longer automatically added and
654
- must now be manually defined in page meta config. Conditional waypoint syntax
655
- change.
656
-
657
- Signed-off-by: james.gauld <james.gauld@engineering.digital.dwp.gov.uk>
658
-
659
-
660
-
661
- <a name="2.4.2"></a>
662
- ## [2.4.2](https://github.com/dwp/govuk-casa/compare/2.4.1...2.4.2) (2019-04-10)
663
-
664
-
665
- ### Bug Fixes
666
-
667
- * error link hrefs ([eafe887](https://github.com/dwp/govuk-casa/commit/eafe887)), closes [#49](https://github.com/dwp/govuk-casa/issues/49)
668
- * **gather-modifier:** postcode reformatting accessibility changes ([f291509](https://github.com/dwp/govuk-casa/commit/f291509))
669
- * udpate csp options docs ([e618bb5](https://github.com/dwp/govuk-casa/commit/e618bb5))
670
- * **validation:** dateObject before/after offset comparison ([6153995](https://github.com/dwp/govuk-casa/commit/6153995))
671
-
672
-
673
- ### Features
674
-
675
- * **static:** back to the future fix ([49353d0](https://github.com/dwp/govuk-casa/commit/49353d0))
676
-
677
-
678
-
679
- <a name="2.4.1"></a>
680
- ## [2.4.1](https://github.com/dwp/govuk-casa/compare/2.4.0...2.4.1) (2019-03-20)
681
-
682
-
683
- ### Performance Improvements
684
-
685
- * **memory:** remove potential source of memory leaks ([7dd658d](https://github.com/dwp/govuk-casa/commit/7dd658d))
686
-
687
-
688
-
689
- <a name="2.4.0"></a>
690
- # [2.4.0](https://github.com/dwp/govuk-casa/compare/2.3.1...2.4.0) (2019-03-05)
691
-
692
-
693
- ### Bug Fixes
694
-
695
- * Update typo on documentation for NINO ([9e73565](https://github.com/dwp/govuk-casa/commit/9e73565))
696
-
697
-
698
- ### Features
699
-
700
- * **middleware:** allow extra middleware from config ([61db293](https://github.com/dwp/govuk-casa/commit/61db293))
701
-
702
-
703
-
704
- <a name="2.3.1"></a>
705
- ## [2.3.1](https://github.com/dwp/govuk-casa/compare/2.3.0...2.3.1) (2019-02-14)
706
-
707
-
708
-
709
- <a name="2.3.0"></a>
710
- # [2.3.0](https://github.com/dwp/govuk-casa/compare/2.2.2...2.3.0) (2019-02-13)
711
-
712
-
713
- ### Bug Fixes
714
-
715
- * check compiled assets dir exists ([6e34562](https://github.com/dwp/govuk-casa/commit/6e34562))
716
- * **accessibility:** apply correct error highlighting and linking ([08cb9a8](https://github.com/dwp/govuk-casa/commit/08cb9a8))
717
- * **validation:** fix to the postcode regex ([8f4f2c0](https://github.com/dwp/govuk-casa/commit/8f4f2c0))
718
- * handle userland journey errors ([fcb7842](https://github.com/dwp/govuk-casa/commit/fcb7842))
719
- * sass compilation on Windows ([3af3794](https://github.com/dwp/govuk-casa/commit/3af3794))
720
- * update class name in form helper to be more explicit ([70a0433](https://github.com/dwp/govuk-casa/commit/70a0433))
721
-
722
-
723
- ### Features
724
-
725
- * **negative regex:** add negative regex ([ddad066](https://github.com/dwp/govuk-casa/commit/ddad066))
726
- * **postal address:** visually group address lines 1 & 2 together ([dcea90f](https://github.com/dwp/govuk-casa/commit/dcea90f))
727
- * protect against double-submission of journey form ([a366777](https://github.com/dwp/govuk-casa/commit/a366777))
728
- * update journey-form to allow removing footer ([dd9801e](https://github.com/dwp/govuk-casa/commit/dd9801e))
729
-
730
-
731
-
732
- <a name="2.2.2"></a>
733
- ## [2.2.2](https://github.com/dwp/govuk-casa/compare/2.2.1...2.2.2) (2019-01-18)
734
-
735
-
736
- ### Bug Fixes
737
-
738
- * **postcode-validation:** replace post code validator with a better one ([62280b2](https://github.com/dwp/govuk-casa/commit/62280b2))
739
- * **validation:** allow numeric first line address ([470d9df](https://github.com/dwp/govuk-casa/commit/470d9df))
740
-
741
-
742
-
743
- <a name="2.2.1"></a>
744
- ## [2.2.1](https://github.com/dwp/govuk-casa/compare/2.1.1...2.2.1) (2018-12-20)
745
-
746
-
747
- ### Features
748
-
749
- * **data gatherers:** add support for gather modifiers ([23f9afc](https://github.com/dwp/govuk-casa/commit/23f9afc))
750
- * **validation:** update nino validation rule with allowWhitespace flag ([5a4e01a](https://github.com/dwp/govuk-casa/commit/5a4e01a))
751
-
752
-
753
-
754
- <a name="2.1.1"></a>
755
- ## 2.1.1 (2018-10-27)