@ministryofjustice/hmpps-connect-dps-components 5.5.0 → 6.1.0
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/package.json +17 -16
- package/readme/publishing.md +21 -0
- package/scripts/patch.diff +1 -1
package/package.json
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ministryofjustice/hmpps-connect-dps-components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.1.0",
|
|
4
4
|
"description": "A package to allow the inclusion of connect DPS micro frontend components within DPS applications",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.esm.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"files": [
|
|
9
|
+
"*.md",
|
|
9
10
|
"dist/**/*",
|
|
10
11
|
"scripts/**/*"
|
|
11
12
|
],
|
|
12
13
|
"bin": "./scripts/install.ts",
|
|
13
14
|
"engines": {
|
|
14
|
-
"node": "
|
|
15
|
+
"node": "22 || 24 || 26"
|
|
15
16
|
},
|
|
16
17
|
"scripts": {
|
|
17
18
|
"prepare": "hmpps-precommit-hooks-prepare",
|
|
@@ -49,11 +50,11 @@
|
|
|
49
50
|
},
|
|
50
51
|
"homepage": "https://github.com/ministryofjustice/hmpps-connect-dps-components#readme",
|
|
51
52
|
"devDependencies": {
|
|
52
|
-
"@ministryofjustice/eslint-config-hmpps": "
|
|
53
|
-
"@ministryofjustice/hmpps-auth-clients": "
|
|
54
|
-
"@ministryofjustice/hmpps-npm-script-allowlist": "0.0.
|
|
55
|
-
"@ministryofjustice/hmpps-precommit-hooks": "
|
|
56
|
-
"@rollup/plugin-commonjs": "^29.0.
|
|
53
|
+
"@ministryofjustice/eslint-config-hmpps": "2.0.0-alpha.2",
|
|
54
|
+
"@ministryofjustice/hmpps-auth-clients": "2.0.0",
|
|
55
|
+
"@ministryofjustice/hmpps-npm-script-allowlist": "0.0.6",
|
|
56
|
+
"@ministryofjustice/hmpps-precommit-hooks": "3.0.1",
|
|
57
|
+
"@rollup/plugin-commonjs": "^29.0.2",
|
|
57
58
|
"@rollup/plugin-multi-entry": "^7.1.0",
|
|
58
59
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
59
60
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
@@ -61,26 +62,26 @@
|
|
|
61
62
|
"@types/bunyan": "^1.8.11",
|
|
62
63
|
"@types/express": "^5.0.6",
|
|
63
64
|
"@types/jest": "^30.0.0",
|
|
64
|
-
"@types/superagent": "
|
|
65
|
+
"@types/superagent": "8.1.10",
|
|
65
66
|
"@types/supertest": "^7.2.0",
|
|
66
67
|
"cheerio": "^1.2.0",
|
|
67
68
|
"express": "^5.2.1",
|
|
68
|
-
"govuk-frontend": "
|
|
69
|
-
"jest": "^30.2
|
|
70
|
-
"jest-html-reporter": "^4.
|
|
69
|
+
"govuk-frontend": "6.1.0",
|
|
70
|
+
"jest": "^30.4.2",
|
|
71
|
+
"jest-html-reporter": "^4.4.0",
|
|
71
72
|
"jest-junit": "^17.0.0",
|
|
72
|
-
"lint-staged": "^
|
|
73
|
+
"lint-staged": "^17.0.5",
|
|
73
74
|
"nock": "^15.0.0",
|
|
74
|
-
"rollup": "4.60.
|
|
75
|
+
"rollup": "4.60.4",
|
|
75
76
|
"rollup-plugin-dts": "6.4.1",
|
|
76
77
|
"supertest": "^7.2.2",
|
|
77
|
-
"ts-jest": "
|
|
78
|
+
"ts-jest": "29.4.11",
|
|
78
79
|
"tslib": "^2.8.1",
|
|
79
80
|
"typescript": "6.0.3"
|
|
80
81
|
},
|
|
81
82
|
"dependencies": {
|
|
82
|
-
"@ministryofjustice/hmpps-rest-client": "1.
|
|
83
|
-
"@types/node": "24.12.
|
|
83
|
+
"@ministryofjustice/hmpps-rest-client": "2.1.0",
|
|
84
|
+
"@types/node": "24.12.4",
|
|
84
85
|
"@types/nunjucks": "^3.2.6",
|
|
85
86
|
"nunjucks": "^3.2.4",
|
|
86
87
|
"superagent": "^10.3.0"
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[< Back](../README.md)
|
|
2
|
+
---
|
|
3
|
+
|
|
4
|
+
## Publishing to NPM
|
|
5
|
+
|
|
6
|
+
This library is [published to NPM](https://www.npmjs.com/package/@ministryofjustice/hmpps-connect-dps-components).
|
|
7
|
+
|
|
8
|
+
The process to publish a change is as follows:
|
|
9
|
+
|
|
10
|
+
* Create a branch from `main`
|
|
11
|
+
* Make the code changes
|
|
12
|
+
* Run `npm version <patch|minor|major> --no-git-tag-version` to bump the version number appropriately (for help with
|
|
13
|
+
semantic versioning, see https://semver.org/)
|
|
14
|
+
* Commit the changes, push the branch and raise a PR
|
|
15
|
+
* Once the PR has been merged to `main`, [create a new release](https://github.com/ministryofjustice/hmpps-connect-dps-components/releases/new):
|
|
16
|
+
* Select the `Choose a tag` dropdown and create a new tag entering the new version number (this must start with a `v`, e.g. `v0.0.1`)
|
|
17
|
+
* Enter a release title with the following format `<version>: <short title>` e.g. `v0.0.1: First Release`
|
|
18
|
+
* Enter a more detailed description of the release
|
|
19
|
+
* Click `Publish release`
|
|
20
|
+
|
|
21
|
+
Github Actions pipeline will trigger on the tagged release and publish to NPM.
|
package/scripts/patch.diff
CHANGED
|
@@ -77,7 +77,7 @@ index eddaa67..0dfb1fe 100644
|
|
|
77
77
|
+import config from './config'
|
|
78
78
|
import nunjucksSetup from './utils/nunjucksSetup'
|
|
79
79
|
import errorHandler from './errorHandler'
|
|
80
|
-
import
|
|
80
|
+
import authorisationMiddleware from './middleware/authorisationMiddleware'
|
|
81
81
|
@@ -38,6 +41,15 @@ export default function createApp(services: Services): express.Application {
|
|
82
82
|
app.use(setUpCsrf())
|
|
83
83
|
app.use(setUpCurrentUser())
|