Skip to content

Fix to previous javascript filename in CHANGELOG#1575

Merged
frankieroberto merged 1 commit into
mainfrom
fix-changelog-upgrade-path
Sep 12, 2025
Merged

Fix to previous javascript filename in CHANGELOG#1575
frankieroberto merged 1 commit into
mainfrom
fix-changelog-upgrade-path

Conversation

@frankieroberto
Copy link
Copy Markdown
Contributor

We made a small mistake in the v10 upgrade guide by saying that the javascripts path in the templates used to be nhsuk-frontend.min.js but it actually used to be nhsuk.min.js.

We've also realised that the path prefix is not necessarily /javascripts/ but can vary depending on your setup (eg the NHS prototype kit uses /nhsuk-frontend/). So this makes that clearer by using <JAVASCRIPTS-PATH> to hopefully make it clear that that bit isn't part of the upgrade guidance.

We made a small mistake in the v10 upgrade guide by saying that the javascripts path in the templates used to be `nhsuk-frontend.min.js` but it actually used to be `nhsuk.min.js`.

We've also realised that the path prefix is not necessarily `/javascripts/` but can vary depending on your setup (eg the NHS prototype kit uses `/nhsuk-frontend/`). So this makes that clearer by using `<JAVASCRIPTS-PATH>` to hopefully make it clear that that bit isn't part of the upgrade guidance.
@colinrotherham colinrotherham temporarily deployed to nhsuk-frontend-pr-1575 September 12, 2025 13:04 Inactive
@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

@colinrotherham colinrotherham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @frankieroberto, this is definitely clearer

For context, we (wrongly) assumed this change was completed in an earlier step to update file paths:

If you are using the precompiled file in the npm package at node_modules/nhsuk-frontend/dist/nhsuk.min.js, update this path to node_modules/nhsuk-frontend/dist/nhsuk/nhsuk-frontend.min.js

Much better now

@frankieroberto frankieroberto merged commit f4c5d2d into main Sep 12, 2025
14 checks passed
@frankieroberto frankieroberto deleted the fix-changelog-upgrade-path branch September 12, 2025 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants