Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Latest commit

 

History

History
298 lines (182 loc) · 11.8 KB

CHANGELOG.md

File metadata and controls

298 lines (182 loc) · 11.8 KB

Changelog

Unreleased

Fixes

Features

Breaking changes


Releases

v7.1.0

Features

  • React 18 support (Simply by loosening the peer dependency requirement).

v7.0.1

Fixes

v7.0.0

Fixes

Breaking changes

v6.2.1

Fixes

  • Fix misaligned govuk crown in header. (Missed an instance in the previous release) (#128)

v6.2.0

Features

Fixes

  • Fix misaligned govuk crown in header (#127)

v6.1.0

Features

v6.0.0

Fixes

  • Fix badly destructured react list keys on some components (#114)
  • Fix Template not passing text correctly to SkipLink component (#116)

Breaking changes

  • Table data structure changed in order to accomodate react list keys. Each row in the rows array now has a cells key instead of simply being a nested array of rows / cells.
    See the updated demos on the storybook.
    This breaking change was necessary in order to accomodate react list keys on table rows.

Features

v5.1.0

Fixes

  • Fix overeager instantiation of govuk JS (#110)

Features

v5.0.0

v4.1.1

Fixes

v4.1.0

Features

v4.0.3

Fixes

v4.0.2

Fixes

  • Add webpack magic comments to checkboxes and radios (accidentally missed from previous release)
  • Tweak babel to allow dynamic imports through to the final package. Previously they were being resolved before being published.

v4.0.1

Fixes

  • Add webpack magic comments to optimize the dynamically imported govuk-frontend js

v4.0.0

Features

Breaking changes

  • Upshot of the switch to govuk-frontend-diff was that it became necessary to dynamically import the GOVUK components which interact with the DOM, in order to enable Server Side Rendering for the tests.
    This is therefore marked up as a breaking change since it may require changes to your Webpack config to support code splitting (Although create-react-app supports this out the box, in which case you don't need to do anything).
    See https://reactjs.org/docs/code-splitting.html#import for more details.
    This should pave the way for serverside rendering of the components although this isn't tested or formally supported yet (But may well work just fine...)

v3.1.0

Features

v3.0.0

Breaking changes

  • Moved the published package's dependencies to peerDependencies, to avoid issues with multiple copies of React etc being installed (Such as https://reactjs.org/warnings/invalid-hook-call-warning.html#duplicate-react).
    If you aren't already, you will need to install compatible versions of govuk-frontend, react-router, react, react-router-dom, react-helmet since these are no longer installed as dependencies of this package

Fixes

  • Updated the package's govuk-frontend dependency to 3.6.0 - it was incorrectly pinned to an older version

Features

  • Updated dependency on react-helmet to 6

v2.0.1

Fixes

  • Remove erroneous space before comma in footer OGL statement

v2.0.0

Breaking changes

  • Header links - homepageUrl and serviceUrl have become homepageUrlHref / homepageUrlTo and serviceUrlHref / serviceUrlTo, with the To variants being passed to a react-router <Link> the Href variants being a plain html <a> tag

v1.5.0

Fixes

Features

v1.4.2

Fixes

  • Fix error summary not focusing after first form submission. Now correctly focuses every time submit is pressed

v1.4.1

Fixes

  • Fix bug when using controlled inputs whereby Radios would switch from uncontrolled to controlled and throw a console warning. Caused by the new features added in v1.4.0

v1.4.0

Features

  • defaultValue top level prop added to radios component to complement the value prop and facilitate compatibility with form libraries dealing with uncontrolled form inputs (Such as react-hook-form)

v1.3.0

Features

  • React.forwardRef now added to all singular form components allowing you to pass useRef refs into the component props. Components that return multiple form elements now accept a ref key for each item in the items array prop.

v1.2.0

Fixes

  • Update the date input component to use input type=text inputmode=numeric.
  • Update checkboxes and radio buttons to include item hint classes on item hint.

Features

Breaking changes

v1.1.0

Fixes

More extensive test suite added, resulting in several minor fixes as follows

  • Fix date input, file upload, input, select, textarea, checkboxes & radios not receiving correct aria-describedby attribute
  • Fix date input, file upload, input, select, textarea, checkboxes & radios hints and error messages receiving incorrect ids
  • Fix incorrect casing of date input labels
  • Fix lack of colon after error message visually hidden text
  • Fix missing attributes from error summary links
  • Prevent assetPath prop making it through to header component in case someone passes it
  • Prevent tag attributes making it through from phase banner (behaviour now consistent with govuk-frontend)
  • Fix missing attributes from select options
  • Omit role attribute from checkboxes/radios fieldset to be consistent with govuk-frontend

Features

  • onChange prop assigned directly to <DateInput> will now get passed through to the individual inputs (No need to put change handlers individually in the items now). This mirrors the behaviour already seen on other compound fields such as Radios and Checkboxes

v1.0.1

Fixes

  • Fix for uncontrolled -> controlled radio inputs caused by bug in value assignment
  • Slight tweak for Select component so that it accepts a top level value prop instead of individual selected booleans on each item to make it more React friendly

v1.0.0

Initial release