@dwp/govuk-casa 7.1.12 → 7.1.14

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