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