Skip to content

Commit

Permalink
PLATUI-3013: Added deprecated annotation to CurrencyInput, updated CH…
Browse files Browse the repository at this point in the history
…ANGELOG (#302)
  • Loading branch information
JoPintoPaul committed Apr 24, 2024
1 parent 6333fa1 commit 4221727
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 5 deletions.
11 changes: 8 additions & 3 deletions CHANGELOG.md
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
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
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
@@ -1 +1 @@
6.15.0
6.17.0
2 changes: 1 addition & 1 deletion project/LibDependencies.scala
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

0 comments on commit 4221727

Please sign in to comment.