Repository navigation
Bump GovUk.Frontend.AspNetCore from 3.4.3 to 5.1.0 - #20
Open
dependabot[bot] wants to merge 1 commit into
Open
dependabot[bot] wants to merge 1 commit into
dependabot[bot] wants to merge 1 commit into
Conversation
--- updated-dependencies: - dependency-name: GovUk.Frontend.AspNetCore dependency-version: 5.1.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Updated GovUk.Frontend.AspNetCore from 3.4.3 to 5.1.0.
Release notes
Sourced from GovUk.Frontend.AspNetCore's releases.
5.1.0
Targets GOV.UK Frontend v6.6.0.
New features
Character count
count-type<govuk-character-count>has acount-typeattribute for how the text is counted:CharacterCountType.Length(the default) counts as JavaScript'sString.lengthdoes, as before.CharacterCountType.Characterscounts the characters a user would perceive, so an emoji or an accented letter counts as one.CharacterCountType.Wordscounts words, makingmax-lengtha number of words.CharacterCountType.CharactersandCharacterCountType.Wordsneed a browser that supportsIntl.Segmenter.Character count validation
[CharacterCount]andCharacterCountValidatorvalidate text against a character count's limit on the server, counting it the same way as the component for eachcount-type:They count a line break as one character, as the browser does, though it's submitted as two.
See Character count validation.
Deprecations
The character count's
max-wordsattribute is deprecated, following GOV.UK Frontend, and using it gives aGFA0008warning; usemax-lengthwithcount-type="CharacterCountType.Words"instead.max-wordsstill works for now.The two count words differently:
max-wordscounts runs of characters separated by whitespace, so "well-known" is one word, whereascount-type="CharacterCountType.Words"makes it two and doesn't count punctuation on its own.[MaxWords]andMaxWordsValidatorcontinue to matchmax-words.Fixes
MaxWordsValidatornow treats the same characters as whitespace as the component's JavaScript does. Previously U+0085 separated words and U+FEFF didn't.5.0.1
Targets GOV.UK Frontend v6.5.1.
Fixes
[MaxWords]andMaxWordsValidatorthrew anArgumentNullExceptionfor anullvalue, so submitting an empty field failed the request instead of letting[Required]report the error. Anullvalue is now considered valid.<title>now gets its "Error:" prefix when the error summary is generated in_GovUkPageTemplate's<main>element, which is the default. Previously the prefix was only added when the error summary was rendered before the<title>, such as withPrependToFormElementsor a<govuk-error-summary>in the view.stringattribute became an emptyTemplateStringrather thannull..snupkg), so Source Link can step into the library's source when debugging.5.0.0
Targets GOV.UK Frontend v6.5.1.
New features
Short tag names
All tag helpers now support short tag names for child elements:
The old
govuk-prefixed names are still supported.Table tag helpers
The caption, head and rows go directly inside
<govuk-table>, in that order. Each element also has agovuk-table-prefixed long name.Language navigation tag helpers