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