Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PLATUI-3013: Added deprecated annotation to CurrencyInput, updated CH… #302

Merged
merged 1 commit into from
Apr 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 8 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,27 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
For compatibility information see `govukFrontendVersion` and `hmrcFrontendVersion` in
[LibDependencies](project/LibDependencies.scala)

## [9.9.0] - 2024-04-22
## [9.9.0] - 2024-04-24

### Changed

- Compress whitespace in integration tests (test change only)
- Deprecated the `CurrencyInput` / `HmrcCurrencyInput` component. This component is now replaced by using `Input` / `GovukInput`
with prefix of `£`. Examples of the new pattern can be seen at:
- HMRC Design Patterns: https://design.tax.service.gov.uk/hmrc-design-patterns/currency-input/
- GOV.UK Design System: https://design-system.service.gov.uk/components/text-input/#prefixes-and-suffixes
The `CurrencyInput` / `HmrcCurrencyInput` component will be removed in a future library version.

### Compatible with

- [hmrc/hmrc-frontend v6.15.0](https://github.com/hmrc/hmrc-frontend/releases/tag/v6.15.0)
- [hmrc/hmrc-frontend v6.17.0](https://github.com/hmrc/hmrc-frontend/releases/tag/v6.17.0)
- [alphagov/govuk-frontend v5.3.0](https://github.com/alphagov/govuk-frontend/releases/tag/v5.3.0)

## [9.8.0] - 2024-04-19

### Changed

- Added beforeInput(s) and afterInput(s) options to form groups
- Compress whitespace in integration tests (test change only)

### Compatible with

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,14 @@ trait Aliases {
val ReportTechnicalIssue = viewmodels.reporttechnicalissue.ReportTechnicalIssue

type CurrencyInput = viewmodels.currencyinput.CurrencyInput

@deprecated(
"Use GovukInput template with `£` prefix instead. For examples, please see:\n" +
"- HMRC Design Patterns: https://design.tax.service.gov.uk/hmrc-design-patterns/currency-input/, and \n" +
"- GOV.UK Design System: https://design-system.service.gov.uk/components/text-input/#prefixes-and-suffixes. \n" +
"CurrencyInput component will be removed in a future library version.",
"9.9.0"
)
val CurrencyInput = viewmodels.currencyinput.CurrencyInput

type UserResearchBanner = viewmodels.userresearchbanner.UserResearchBanner
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ import uk.gov.hmrc.govukfrontend.views.viewmodels.hint.Hint
import uk.gov.hmrc.govukfrontend.views.viewmodels.label.Label
import uk.gov.hmrc.govukfrontend.views.viewmodels.errormessage.ErrorMessage

@deprecated(
"Use GovukInput template with `£` prefix instead. For examples, please see:\n" +
"- HMRC Design Patterns: https://design.tax.service.gov.uk/hmrc-design-patterns/currency-input/, and \n" +
"- GOV.UK Design System: https://design-system.service.gov.uk/components/text-input/#prefixes-and-suffixes. \n" +
"CurrencyInput component will be removed in a future library version.",
"9.9.0"
)
case class CurrencyInput(
id: String = "",
name: String = "",
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.15.0
6.17.0
2 changes: 1 addition & 1 deletion project/LibDependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import sbt._

object LibDependencies {
val govukFrontendVersion: String = "5.3.0"
val hmrcFrontendVersion: String = "6.15.0"
val hmrcFrontendVersion: String = "6.17.0"
val playLanguageVersion: String = "7.0.0"

val play28Version = "2.8.20"
Expand Down