Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Removes the class export from the
all.mjs
moduleThis makes the class unavailable when
import
ing from theall.mjs
, and removes theI18n
property from theGOVUKFrontent
object. Tests have been updated to not check the presence of the property (and tidied up as they were excluding it when bulk testing the components were available on the object).Flags the class with
@private
in its JSDoc and reinforce that its internal in its descriptionIt won't stop anyone from running
import {I18n} from 'govuk-front/govuk-esm/I18n.mjs
, but will make it clear that they'd be using a private class that may change in the future. Unfortunately, we do need to have that file in the package as theaccordion.mjs
andcharacter-count.mjs
files willimport
it if they're imported individually.Closes #2927.