Skip to content

Commit dadace1

Browse files
Update version number and changelog for v8 release (#190)
This updates the README, CHANGELOG and package.json ready for the version 8.0.0 release. --------- Co-authored-by: Colin Rotherham <work@colinr.com>
1 parent 3db0b49 commit dadace1

File tree

4 files changed

+37
-14
lines changed

4 files changed

+37
-14
lines changed

CHANGELOG.md

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# NHS prototype kit Changelog
22

3-
## 8.0.0 – Beta release
3+
## 8.0.0 – 3 Feb 2026
44

5-
### Breaking changes
5+
### :boom: **Breaking changes**
66

7-
The NHS Prototype kit is now published as an NPM package.
7+
The NHS prototype kit is now published as an npm package.
88

99
To use it, you should add `nhsuk-prototype-kit` to your `package.json` file and then run `npm install`. Then in your `app.js` file, add:
1010

@@ -15,14 +15,23 @@ const locals = require('./app/locals')
1515
const routes = require('./app/routes')
1616
const sessionDataDefaults = require('./app/data/session-data-defaults')
1717

18+
const viewsPath = [
19+
'app/views/'
20+
]
21+
22+
const entryPoints = [
23+
'app/stylesheets/*.scss'
24+
]
25+
1826
const prototype = await NHSPrototypeKit.init({
1927
serviceName: 'Your service name',
2028
buildOptions: {
21-
entryPoints: ['app/stylesheets/*.scss']
29+
entryPoints
2230
},
2331
locals,
2432
routes,
25-
sessionDataDefaults
33+
sessionDataDefaults,
34+
viewsPath
2635
})
2736

2837
prototype.start()
@@ -168,7 +177,7 @@ to
168177

169178
## 5.1.0 - 12 November 2024
170179

171-
- Remove guidance and tutorials - these can now be found online on the [NHS Prototype Kit website](https://prototype-kit.service-manual.nhs.uk) - ([PR 385](https://github.com/nhsuk/nhsuk-prototype-kit/pull/385))
180+
- Remove guidance and tutorials - these can now be found online on the [NHS prototype kit website](https://prototype-kit.service-manual.nhs.uk) - ([PR 385](https://github.com/nhsuk/nhsuk-prototype-kit/pull/385))
172181
- Update NHS frontend to 9.1.0
173182
- Show errors when session data defaults crashes ([PR 402](https://github.com/nhsuk/nhsuk-prototype-kit/pull/402))
174183

README.md

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# NHS prototype kit
22

3-
This repo contains the code for the NHS Prototype kit that will be distributed as an npm package.
3+
This repo contains the code for the NHS prototype kit is distributed as an npm package.
44

55
The code contains:
66

@@ -13,7 +13,7 @@ The code contains:
1313

1414
### Using the template repository
1515

16-
The simplest way to get started is to use the [NHS Prototype kit template repository](https://github.com/nhsuk/nhsuk-prototype-kit-package/pull/2).
16+
The simplest way to get started is to use the [NHS prototype kit template repository](https://github.com/nhsuk/nhsuk-prototype-kit).
1717

1818
From there, select 'Use this as a template' and follow the instructions.
1919

@@ -42,12 +42,21 @@ Initialise the prototype with a reference to your custom routes like this:
4242
```js
4343
import routes from './app/routes.js'
4444

45+
const viewsPath = [
46+
'app/views/'
47+
]
48+
49+
const entryPoints = [
50+
'app/stylesheets/*.scss'
51+
]
52+
4553
const prototype = await NHSPrototypeKit.init({
4654
serviceName: 'Your service name',
4755
buildOptions: {
48-
entryPoints: ['app/stylesheets/*.scss']
56+
entryPoints
4957
},
50-
routes
58+
routes,
59+
viewsPath
5160
})
5261
```
5362

@@ -64,14 +73,19 @@ import sessionDataDefaults from './app/data/session-data-defaults.js'
6473
import locals from './app/locals.js'
6574
import routes from './app/routes.js'
6675

76+
const viewsPath = [
77+
'app/views/'
78+
]
79+
6780
const prototype = await NHSPrototypeKit.init({
6881
serviceName: 'Your service name',
6982
buildOptions: {
7083
entryPoints: ['app/stylesheets/*.scss']
7184
},
7285
routes,
7386
locals,
74-
sessionDataDefaults
87+
sessionDataDefaults,
88+
viewsPath
7589
})
7690
```
7791

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nhsuk-prototype-kit",
3-
"version": "8.0.0-beta.10",
3+
"version": "8.0.0",
44
"description": "Rapidly create HTML prototypes of NHS services",
55
"type": "module",
66
"main": "lib/index.js",

0 commit comments

Comments
 (0)