@dwp/govuk-casa 8.5.2 → 8.7.0

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