@dwp/govuk-casa 5.2.4 → 5.3.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,362 +0,0 @@
1
- ## [5.2.4](https://github.com/dwp/govuk-casa/compare/5.2.3...5.2.4) (2021-09-28)
2
-
3
-
4
-
5
- ## [5.2.3](https://github.com/dwp/govuk-casa/compare/5.2.2...5.2.3) (2021-02-17)
6
-
7
-
8
-
9
- <a name="5.2.2"></a>
10
- ## [5.2.2](https://github.com/dwp/govuk-casa/compare/5.2.1...5.2.2) (2020-03-16)
11
-
12
-
13
- ### Bug Fixes
14
-
15
- * **ci:** include locale specifically when running zap ([677a575](https://github.com/dwp/govuk-casa/commit/677a575))
16
-
17
-
18
-
19
- <a name="5.2.1"></a>
20
- ## [5.2.1](https://github.com/dwp/govuk-casa/compare/5.2.0...5.2.1) (2020-01-15)
21
-
22
-
23
- ### Bug Fixes
24
-
25
- * traverse to correct page after edit if linear journey is shortened ([6d3beb2](https://github.com/dwp/govuk-casa/commit/6d3beb2))
26
-
27
-
28
-
29
- <a name="5.2.0"></a>
30
- # [5.2.0](https://github.com/dwp/govuk-casa/compare/5.1.0...5.2.0) (2019-12-05)
31
-
32
-
33
- ### Features
34
-
35
- * stop traversal beyond a given editorigin ([9228cb5](https://github.com/dwp/govuk-casa/commit/9228cb5))
36
-
37
-
38
-
39
- <a name="5.1.0"></a>
40
- # [5.1.0](https://github.com/dwp/govuk-casa/compare/5.1.0-beta.3...5.1.0) (2019-11-08)
41
-
42
-
43
- ### Bug Fixes
44
-
45
- * pass logger to static middleware function ([62dff0e](https://github.com/dwp/govuk-casa/commit/62dff0e))
46
- * **session:** Ensure sessionExpiryController() has new session ([1a434a0](https://github.com/dwp/govuk-casa/commit/1a434a0))
47
-
48
-
49
-
50
- <a name="5.1.0-beta.3"></a>
51
- # [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)
52
-
53
-
54
- ### Bug Fixes
55
-
56
- * Remove referer query before session timeout redirect ([31d54e8](https://github.com/dwp/govuk-casa/commit/31d54e8))
57
-
58
-
59
- ### Features
60
-
61
- * **session:** add sessionExpiryController() config option ([c3edb27](https://github.com/dwp/govuk-casa/commit/c3edb27))
62
-
63
-
64
-
65
- <a name="5.1.0-beta.2"></a>
66
- # [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)
67
-
68
-
69
- ### Bug Fixes
70
-
71
- * **traversal:** inject correct origin when calculating altered route after edit ([0c84170](https://github.com/dwp/govuk-casa/commit/0c84170))
72
- * **validator:** add type checking to email validator ([57de412](https://github.com/dwp/govuk-casa/commit/57de412))
73
-
74
-
75
-
76
- <a name="5.1.0-beta.1"></a>
77
- # [5.1.0-beta.1](https://github.com/dwp/govuk-casa/compare/5.0.1...5.1.0-beta.1) (2019-10-20)
78
-
79
-
80
- ### Bug Fixes
81
-
82
- * Don’t use <footer> to wrap form buttons ([ca91fae](https://github.com/dwp/govuk-casa/commit/ca91fae))
83
- * Update e-mail validation ([28cd300](https://github.com/dwp/govuk-casa/commit/28cd300))
84
- * use correct logger in skip middleware ([66360a3](https://github.com/dwp/govuk-casa/commit/66360a3))
85
- * **gather:** ensure gathered state is set for solely optional forms ([039fb94](https://github.com/dwp/govuk-casa/commit/039fb94))
86
- * **plan:** take into account route conditions when calculating previous waypoint ([41e2208](https://github.com/dwp/govuk-casa/commit/41e2208))
87
-
88
-
89
- ### Features
90
-
91
- * add functionality to convert from map to plan ([d98e055](https://github.com/dwp/govuk-casa/commit/d98e055))
92
-
93
-
94
- ### Performance Improvements
95
-
96
- * **plan:** add option to stop traversal early when conditions are met ([c4ab26e](https://github.com/dwp/govuk-casa/commit/c4ab26e))
97
-
98
-
99
-
100
- <a name="5.0.1"></a>
101
- ## [5.0.1](https://github.com/dwp/govuk-casa/compare/5.0.0...5.0.1) (2019-09-08)
102
-
103
-
104
- ### Bug Fixes
105
-
106
- * strip invalid characters from editorigin ([0a9d8a8](https://github.com/dwp/govuk-casa/commit/0a9d8a8))
107
-
108
-
109
-
110
- <a name="5.0.0"></a>
111
- # [5.0.0](https://github.com/dwp/govuk-casa/compare/5.0.0-alpha.4...5.0.0) (2019-08-15)
112
-
113
- ### Features
114
-
115
- * Upgrade to GOV.UK Frontend 3.0.0 ([e986a56](https://github.com/dwp/govuk-casa/commit/e986a56))
116
- * add support for hooks as arrays ([047ed46](https://github.com/dwp/govuk-casa/commit/047ed46))
117
- * implement graph data structure for handling journey traversals ([9f1d920](https://github.com/dwp/govuk-casa/commit/9f1d920))
118
-
119
- ### Bug Fixes
120
-
121
- * stop traversal once a loop is encountered ([33ce8f6](https://github.com/dwp/govuk-casa/commit/33ce8f6))
122
-
123
- ### Code Refactoring
124
-
125
- * rename variables and change references to request variables ([2b76135](https://github.com/dwp/govuk-casa/commit/2b76135))
126
-
127
- ### BREAKING CHANGES
128
-
129
- * GOVUK Frontend - See all changes documented in https://github.com/alphagov/govuk-frontend/releases/tag/v3.0.0
130
- * All existing references to `req.*` casa variables will need to be modified.
131
- * The UserJourney.* classes are no longer supported and existing journey
132
- definitions will need to be modified to use the new `Plan` class.
133
-
134
-
135
-
136
- <a name="4.0.5"></a>
137
- ## [4.0.5](https://github.com/dwp/govuk-casa/compare/4.0.4...4.0.5) (2019-07-24)
138
-
139
-
140
-
141
- <a name="4.0.4"></a>
142
- ## [4.0.4](https://github.com/dwp/govuk-casa/compare/4.0.3...4.0.4) (2019-07-13)
143
-
144
-
145
-
146
- <a name="4.0.3"></a>
147
- ## [4.0.3](https://github.com/dwp/govuk-casa/compare/4.0.2...4.0.3) (2019-07-01)
148
-
149
-
150
-
151
- <a name="4.0.2"></a>
152
- ## [4.0.2](https://github.com/dwp/govuk-casa/compare/4.0.1...4.0.2) (2019-05-28)
153
-
154
-
155
- ### Bug Fixes
156
-
157
- * **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)
158
-
159
-
160
-
161
- <a name="4.0.1"></a>
162
- ## [4.0.1](https://github.com/dwp/govuk-casa/compare/4.0.0...4.0.1) (2019-05-24)
163
-
164
-
165
- ### Code Refactoring
166
-
167
- * 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)
168
-
169
-
170
- ### Features
171
-
172
- * **review:** use govukSummaryList component for Check Answers screen ([e97462c](https://github.com/dwp/govuk-casa/commit/e97462c))
173
-
174
-
175
- ### BREAKING CHANGES
176
-
177
- * **review:** Any services using the current layout will need to
178
- modify review block template for each individual page in their service.
179
- * Where previously field validators were optional, they
180
- are now mandatory if the data submitted for those fields is required to
181
- be ingested into the CASA session.
182
-
183
-
184
-
185
- <a name="4.0.0"></a>
186
- # [4.0.0](https://github.com/dwp/govuk-casa/compare/3.0.1...4.0.0) (2019-05-17)
187
-
188
-
189
- ### Features
190
-
191
- * **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)
192
-
193
-
194
- ### Performance Improvements
195
-
196
- * **nunjucks:** improve performance of template rendering and loading ([0838fbc](https://github.com/dwp/govuk-casa/commit/0838fbc))
197
-
198
-
199
- ### BREAKING CHANGES
200
-
201
- * **nunjucks:** Macros now require access to the same scope as the
202
- templates being rendered, so must be imported with context. See
203
- docs/MIGRATING-3.x-4.x.md
204
-
205
-
206
-
207
- <a name="3.0.1"></a>
208
- ## [3.0.1](https://github.com/dwp/govuk-casa/compare/3.0.0...3.0.1) (2019-05-09)
209
-
210
-
211
-
212
- <a name="3.0.0"></a>
213
- # [3.0.0](https://github.com/dwp/govuk-casa/compare/2.4.2...3.0.0) (2019-05-02)
214
-
215
-
216
- ### Bug Fixes
217
-
218
- * **security:** remove 'unsafe-inline' from script src in CSP header ([e6a4fbd](https://github.com/dwp/govuk-casa/commit/e6a4fbd))
219
- * **security:** set x-xss-protection header to `1; mode=block` ([9824762](https://github.com/dwp/govuk-casa/commit/9824762))
220
-
221
-
222
- ### Code Refactoring
223
-
224
- * remove sass and uglify; compile assets at build time ([97c2ceb](https://github.com/dwp/govuk-casa/commit/97c2ceb))
225
- * remove v1 macros and CSS ([40a419a](https://github.com/dwp/govuk-casa/commit/40a419a))
226
-
227
-
228
- ### Features
229
-
230
- * add support for `report-uri` and `report-to` CSP directives ([2616f44](https://github.com/dwp/govuk-casa/commit/2616f44))
231
- * add support for mulitple user journey maps ([c56211b](https://github.com/dwp/govuk-casa/commit/c56211b))
232
-
233
-
234
- ### Performance Improvements
235
-
236
- * some small performance improvements to headers middleware ([4831264](https://github.com/dwp/govuk-casa/commit/4831264))
237
-
238
-
239
- ### BREAKING CHANGES
240
-
241
- * If your service relies on CASA running sass/uglify
242
- compilation at boot-time, this will no longer be the case and your
243
- sources will need to be compiled in an alternative way.
244
-
245
- Signed-off-by: james.gauld <james.gauld@engineering.digital.dwp.gov.uk>
246
- * Any templates using the v1 macros or CSS/Sass rules
247
- will need to migrate to using latest equivalents. See
248
- docs/MIGRARTING-2.x-3.x.md for more details.
249
-
250
- Signed-off-by: james.gauld <james.gauld@engineering.digital.dwp.gov.uk>
251
- * **security:** Having 'unsafe-inline' set by default in the CSP header
252
- prevents protection against XSS attacks by allowing any inline JS to be
253
- executed in the browser. I'm removing this in favour of developers
254
- explicitly allowing each inline script block.
255
-
256
- Signed-off-by: Niall Molloy <niall.molloy@engineering.digital.dwp.gov.uk>
257
- * The review page page is no longer automatically added and
258
- must now be manually defined in page meta config. Conditional waypoint syntax
259
- change.
260
-
261
- Signed-off-by: james.gauld <james.gauld@engineering.digital.dwp.gov.uk>
262
-
263
-
264
-
265
- <a name="2.4.2"></a>
266
- ## [2.4.2](https://github.com/dwp/govuk-casa/compare/2.4.1...2.4.2) (2019-04-10)
267
-
268
-
269
- ### Bug Fixes
270
-
271
- * error link hrefs ([eafe887](https://github.com/dwp/govuk-casa/commit/eafe887)), closes [#49](https://github.com/dwp/govuk-casa/issues/49)
272
- * **gather-modifier:** postcode reformatting accessibility changes ([f291509](https://github.com/dwp/govuk-casa/commit/f291509))
273
- * udpate csp options docs ([e618bb5](https://github.com/dwp/govuk-casa/commit/e618bb5))
274
- * **validation:** dateObject before/after offset comparison ([6153995](https://github.com/dwp/govuk-casa/commit/6153995))
275
-
276
-
277
- ### Features
278
-
279
- * **static:** back to the future fix ([49353d0](https://github.com/dwp/govuk-casa/commit/49353d0))
280
-
281
-
282
-
283
- <a name="2.4.1"></a>
284
- ## [2.4.1](https://github.com/dwp/govuk-casa/compare/2.4.0...2.4.1) (2019-03-20)
285
-
286
-
287
- ### Performance Improvements
288
-
289
- * **memory:** remove potential source of memory leaks ([7dd658d](https://github.com/dwp/govuk-casa/commit/7dd658d))
290
-
291
-
292
-
293
- <a name="2.4.0"></a>
294
- # [2.4.0](https://github.com/dwp/govuk-casa/compare/2.3.1...2.4.0) (2019-03-05)
295
-
296
-
297
- ### Bug Fixes
298
-
299
- * Update typo on documentation for NINO ([9e73565](https://github.com/dwp/govuk-casa/commit/9e73565))
300
-
301
-
302
- ### Features
303
-
304
- * **middleware:** allow extra middleware from config ([61db293](https://github.com/dwp/govuk-casa/commit/61db293))
305
-
306
-
307
-
308
- <a name="2.3.1"></a>
309
- ## [2.3.1](https://github.com/dwp/govuk-casa/compare/2.3.0...2.3.1) (2019-02-14)
310
-
311
-
312
-
313
- <a name="2.3.0"></a>
314
- # [2.3.0](https://github.com/dwp/govuk-casa/compare/2.2.2...2.3.0) (2019-02-13)
315
-
316
-
317
- ### Bug Fixes
318
-
319
- * check compiled assets dir exists ([6e34562](https://github.com/dwp/govuk-casa/commit/6e34562))
320
- * **accessibility:** apply correct error highlighting and linking ([08cb9a8](https://github.com/dwp/govuk-casa/commit/08cb9a8))
321
- * **validation:** fix to the postcode regex ([8f4f2c0](https://github.com/dwp/govuk-casa/commit/8f4f2c0))
322
- * handle userland journey errors ([fcb7842](https://github.com/dwp/govuk-casa/commit/fcb7842))
323
- * sass compilation on Windows ([3af3794](https://github.com/dwp/govuk-casa/commit/3af3794))
324
- * update class name in form helper to be more explicit ([70a0433](https://github.com/dwp/govuk-casa/commit/70a0433))
325
-
326
-
327
- ### Features
328
-
329
- * **negative regex:** add negative regex ([ddad066](https://github.com/dwp/govuk-casa/commit/ddad066))
330
- * **postal address:** visually group address lines 1 & 2 together ([dcea90f](https://github.com/dwp/govuk-casa/commit/dcea90f))
331
- * protect against double-submission of journey form ([a366777](https://github.com/dwp/govuk-casa/commit/a366777))
332
- * update journey-form to allow removing footer ([dd9801e](https://github.com/dwp/govuk-casa/commit/dd9801e))
333
-
334
-
335
-
336
- <a name="2.2.2"></a>
337
- ## [2.2.2](https://github.com/dwp/govuk-casa/compare/2.2.1...2.2.2) (2019-01-18)
338
-
339
-
340
- ### Bug Fixes
341
-
342
- * **postcode-validation:** replace post code validator with a better one ([62280b2](https://github.com/dwp/govuk-casa/commit/62280b2))
343
- * **validation:** allow numeric first line address ([470d9df](https://github.com/dwp/govuk-casa/commit/470d9df))
344
-
345
-
346
-
347
- <a name="2.2.1"></a>
348
- ## [2.2.1](https://github.com/dwp/govuk-casa/compare/2.1.1...2.2.1) (2018-12-20)
349
-
350
-
351
- ### Features
352
-
353
- * **data gatherers:** add support for gather modifiers ([23f9afc](https://github.com/dwp/govuk-casa/commit/23f9afc))
354
- * **validation:** update nino validation rule with allowWhitespace flag ([5a4e01a](https://github.com/dwp/govuk-casa/commit/5a4e01a))
355
-
356
-
357
-
358
- <a name="2.1.1"></a>
359
- ## 2.1.1 (2018-10-27)
360
-
361
-
362
-