hof 24.3.1 → 24.4.0-ga-fix-beta

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 CHANGED
@@ -1,13 +1,3 @@
1
- ## 2026-06-30, Version 24.3.1 (Stable), @gregwolversonHO
2
-
3
- ### Security
4
-
5
- - Updated dependencies to resolve numerous critical, high and moderate vulnerabilities
6
-
7
- ### Changed
8
-
9
- - Updated CHANGELOG to add entry for backdated changes
10
-
11
1
  ## 2026-06-17, Version 24.0.0 (Stable), @gregwolversonHO, @nzorba
12
2
 
13
3
  ⚠️ Major release which removes nodemailer dependency and email functionality
@@ -0,0 +1,118 @@
1
+
2
+ <!DOCTYPE html>
3
+ <!--[if lt IE 9]><html class="lte-ie8" lang="{{htmlLang}}"><![endif]-->
4
+ <!--[if gt IE 8]><!--><html lang="{{htmlLang}}" class="govuk-template--rebranded"><!--<![endif]-->
5
+ <head>
6
+ <meta charset="utf-8" />
7
+ <title>{{$pageTitle}}{{/pageTitle}}</title>
8
+ {{$head}}{{/head}}
9
+ <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
10
+ <meta name="theme-color" content="#1d70b8">
11
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
12
+ <link rel="icon" sizes="48x48" href="{{govukAssetPath}}rebrand/images/favicon.ico">
13
+ <link rel="icon" sizes="any" href="{{govukAssetPath}}rebrand/images/favicon.svg" type="image/svg+xml">
14
+ <link rel="mask-icon" href="{{govukAssetPath}}rebrand/images/govuk-icon-mask.svg" color="#1d70b8">
15
+ <link rel="apple-touch-icon" href="{{govukAssetPath}}rebrand/images/govuk-icon-180.png">
16
+ <link rel="manifest" href="{{govukAssetPath}}rebrand/manifest.json">
17
+ <meta property="og:image" content="{{govukAssetPath}}rebrand/images/govuk-opengraph-image.png">
18
+ </head>
19
+
20
+ <body class="{{$bodyClasses}}{{/bodyClasses}} govuk-template__body js-enabled" >
21
+ <script {{#nonce}}nonce="{{nonce}}"{{/nonce}}>document.body.className += ' js-enabled' + ('noModule' in HTMLScriptElement.prototype ? ' govuk-frontend-supported' : '');</script>
22
+
23
+
24
+ <div id="global-cookie-message" class="gem-c-cookie-banner govuk-clearfix" data-module="cookie-banner" role="region" aria-label="cookie banner" data-nosnippet="">
25
+ {{$cookieMessage}}{{/cookieMessage}}
26
+ </div>
27
+
28
+ {{$bodyStart}}{{/bodyStart}}
29
+
30
+ <header role="banner" id="govuk-header" class="{{$headerClass}}{{/headerClass}}">
31
+ <div class="govuk-header__container govuk-width-container">
32
+
33
+ <div class="govuk-header__logo">
34
+ <a href="{{$homepageUrl}}https://www.gov.uk{{/homepageUrl}}" title="{{$logoLinkTitle}}Go to the GOV.UK homepage{{/logoLinkTitle}}" id="logo" class="govuk-header__link govuk-header__link--homepage" target="_blank" data-module="track-click" data-track-category="homeLinkClicked" data-track-action="homeHeader">
35
+ <!--[if gt IE 8]><!-->
36
+ <div id="govuk-header__logo"></div>
37
+ <img src="/public/images/govuk-logo.svg" id="govuk-header__logo" alt="Logo" loading="lazy" />
38
+ <!--<![endif]-->
39
+ <!--[if IE 8]>
40
+ <img src="{{govukAssetPath}}rebrand/images/govuk-logotype-tudor-crown.png" class="govuk-header__logotype-crown-fallback-image" width="32" height="30" alt="">
41
+ <![endif]-->
42
+ </a>
43
+ </div>
44
+ {{$insideHeader}}{{/insideHeader}}
45
+
46
+ {{$propositionHeader}}{{/propositionHeader}}
47
+ </div>
48
+ </header>
49
+
50
+
51
+ {{$afterHeader}}{{/afterHeader}}
52
+
53
+
54
+ {{$main}}{{/main}}
55
+
56
+ <footer class="govuk-footer">
57
+ <div class="govuk-width-container">
58
+ <svg
59
+ focusable="false"
60
+ role="presentation"
61
+ xmlns="http://www.w3.org/2000/svg"
62
+ viewBox="0 0 64 60"
63
+ height="30"
64
+ width="32"
65
+ fill="currentcolor" class="govuk-footer__crown">
66
+ <g>
67
+ <circle cx="20" cy="17.6" r="3.7" />
68
+ <circle cx="10.2" cy="23.5" r="3.7" />
69
+ <circle cx="3.7" cy="33.2" r="3.7" />
70
+ <circle cx="31.7" cy="30.6" r="3.7" />
71
+ <circle cx="43.3" cy="17.6" r="3.7" />
72
+ <circle cx="53.2" cy="23.5" r="3.7" />
73
+ <circle cx="59.7" cy="33.2" r="3.7" />
74
+ <circle cx="31.7" cy="30.6" r="3.7" />
75
+ <path d="M33.1,9.8c.2-.1.3-.3.5-.5l4.6,2.4v-6.8l-4.6,1.5c-.1-.2-.3-.3-.5-.5l1.9-5.9h-6.7l1.9,5.9c-.2.1-.3.3-.5.5l-4.6-1.5v6.8l4.6-2.4c.1.2.3.3.5.5l-2.6,8c-.9,2.8,1.2,5.7,4.1,5.7h0c3,0,5.1-2.9,4.1-5.7l-2.6-8ZM37,37.9s-3.4,3.8-4.1,6.1c2.2,0,4.2-.5,6.4-2.8l-.7,8.5c-2-2.8-4.4-4.1-5.7-3.8.1,3.1.5,6.7,5.8,7.2,3.7.3,6.7-1.5,7-3.8.4-2.6-2-4.3-3.7-1.6-1.4-4.5,2.4-6.1,4.9-3.2-1.9-4.5-1.8-7.7,2.4-10.9,3,4,2.6,7.3-1.2,11.1,2.4-1.3,6.2,0,4,4.6-1.2-2.8-3.7-2.2-4.2.2-.3,1.7.7,3.7,3,4.2,1.9.3,4.7-.9,7-5.9-1.3,0-2.4.7-3.9,1.7l2.4-8c.6,2.3,1.4,3.7,2.2,4.5.6-1.6.5-2.8,0-5.3l5,1.8c-2.6,3.6-5.2,8.7-7.3,17.5-7.4-1.1-15.7-1.7-24.5-1.7h0c-8.8,0-17.1.6-24.5,1.7-2.1-8.9-4.7-13.9-7.3-17.5l5-1.8c-.5,2.5-.6,3.7,0,5.3.8-.8,1.6-2.3,2.2-4.5l2.4,8c-1.5-1-2.6-1.7-3.9-1.7,2.3,5,5.2,6.2,7,5.9,2.3-.4,3.3-2.4,3-4.2-.5-2.4-3-3.1-4.2-.2-2.2-4.6,1.6-6,4-4.6-3.7-3.7-4.2-7.1-1.2-11.1,4.2,3.2,4.3,6.4,2.4,10.9,2.5-2.8,6.3-1.3,4.9,3.2-1.8-2.7-4.1-1-3.7,1.6.3,2.3,3.3,4.1,7,3.8,5.4-.5,5.7-4.2,5.8-7.2-1.3-.2-3.7,1-5.7,3.8l-.7-8.5c2.2,2.3,4.2,2.7,6.4,2.8-.7-2.3-4.1-6.1-4.1-6.1h10.6,0Z" />
76
+ </g>
77
+ </svg>
78
+ <div class="govuk-footer__meta">
79
+ <div class="govuk-footer__meta-item govuk-footer__meta-item--grow">
80
+ <h2 class="govuk-visually-hidden">Support links</h2>
81
+ {{$footerSupportLinks}}{{/footerSupportLinks}}
82
+ <svg
83
+ aria-hidden="true"
84
+ focusable="false"
85
+ class="govuk-footer__licence-logo"
86
+ xmlns="http://www.w3.org/2000/svg"
87
+ viewBox="0 0 483.2 195.7"
88
+ height="17"
89
+ width="41">
90
+ <path
91
+ fill="currentColor"
92
+ d="M421.5 142.8V.1l-50.7 32.3v161.1h112.4v-50.7zm-122.3-9.6A47.12 47.12 0 0 1 221 97.8c0-26 21.1-47.1 47.1-47.1 16.7 0 31.4 8.7 39.7 21.8l42.7-27.2A97.63 97.63 0 0 0 268.1 0c-36.5 0-68.3 20.1-85.1 49.7A98 98 0 0 0 97.8 0C43.9 0 0 43.9 0 97.8s43.9 97.8 97.8 97.8c36.5 0 68.3-20.1 85.1-49.7a97.76 97.76 0 0 0 149.6 25.4l19.4 22.2h3v-87.8h-80l24.3 27.5zM97.8 145c-26 0-47.1-21.1-47.1-47.1s21.1-47.1 47.1-47.1 47.2 21 47.2 47S123.8 145 97.8 145" />
93
+ </svg>
94
+ <span class="govuk-footer__licence-description">
95
+ {{$licenceMessage}}All content is available under the <a href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" id="open-government-licence" class="govuk-footer__link" target="_blank" rel="license">Open Government Licence v3.0</a>, except where otherwise stated{{/licenceMessage}}
96
+ </span>
97
+ </div>
98
+ <div class="govuk-footer__meta-item">
99
+ <a
100
+ class="govuk-footer__link govuk-footer__copyright-logo"
101
+ href="https://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/uk-government-licensing-framework/crown-copyright/">
102
+ {{$crownCopyrightMessage}}© Crown copyright{{/crownCopyrightMessage}}
103
+ </a>
104
+ </div>
105
+ </div>
106
+ </div>
107
+ </footer>
108
+
109
+ <div id="global-app-error" class="app-error hidden"></div>
110
+
111
+
112
+ {{$bodyEnd}}{{/bodyEnd}}
113
+
114
+
115
+ <script {{#nonce}}nonce="{{nonce}}"{{/nonce}}>if (typeof window.GOVUK === 'undefined') document.body.className = document.body.className.replace('js-enabled', '');</script>
116
+
117
+ </body>
118
+ </html>
package/index.js CHANGED
@@ -100,7 +100,7 @@ const getContentSecurityPolicy = (config, res) => {
100
100
  manifestSrc: ["'self'"]
101
101
  };
102
102
 
103
- if (config.gaTagId) {
103
+ if (config.gaTagId || config.ga4TagId) {
104
104
  directives.styleSrc = directives.styleSrc.concat(gaDirectives.styleSrc);
105
105
  directives.scriptSrc = directives.scriptSrc.concat(gaDirectives.scriptSrc);
106
106
  directives.fontSrc = directives.fontSrc.concat(gaDirectives.fontSrc);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hof",
3
3
  "description": "A bootstrap for HOF projects",
4
- "version": "24.3.1",
4
+ "version": "24.4.0-ga-fix-beta",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
7
7
  "author": "HomeOffice",
@@ -91,7 +91,7 @@
91
91
  "urijs": "^1.19.11",
92
92
  "uuid": "^11.1.1",
93
93
  "winston": "^3.18.3",
94
- "vite": "^7.3.6"
94
+ "vite": "^7.3.5"
95
95
  },
96
96
  "devDependencies": {
97
97
  "@cucumber/cucumber": "^7.3.2",
@@ -120,7 +120,7 @@
120
120
  "playwright": "^1.56.0",
121
121
  "postcode": "0.2.2",
122
122
  "proxyquire": "^1.8.0",
123
- "release-it": "^20.2.1",
123
+ "release-it": "^20.2.0",
124
124
  "sinon": "^11.1.2",
125
125
  "sinon-chai": "^3.7.0",
126
126
  "supertest": "^3.4.2",
@@ -145,7 +145,6 @@
145
145
  "qs": "^6.14.1",
146
146
  "serialize-javascript": "^7.0.3",
147
147
  "tough-cookie": "^4.1.3",
148
- "vite": "^7.3.6",
149
- "esbuild": "^0.28.1"
148
+ "vite": "^7.3.5"
150
149
  }
151
150
  }