Basic Next.js support
daniel-ac-martin
released this
26 Nov 19:18
·
119 commits
to master
since this release
Adds rudimentary support for Next.js to the components. Next.js users can import the supported components via the new @not-govuk/simple-components
NPM package. There is also an example Next.js application that can be viewed.
See:
- Instructions: https://not-gov.uk/components
- Example application: https://github.com/daniel-ac-martin/NotGovUK/tree/master/apps/next-example
The <Form>
component/framework is not currently available for Next.js, but the other components should work, and links should automatically make use of the Next.js router, although only the newer 'App router' is supported'.
Migration
See BREAKING changes below.
It is also possible to view a commit that updates to this version, but it updates all the way from from v0.8.6 to this v0.15.0: UKHomeOffice/design-system@f30d817
BREAKING
- Some components will now override global styles. Most people will want this, however in the future it would be nice to make this optional. We probably need govuk-frontend to provide modules in order to do that. c6b970d
- The route-utils package has been discontinued.
- Router hooks can now be obtained from
@not-govuk/router
but we no longer provideuseMatch
. useActive
has been renameduseIsActive
and is also in '@not-govuk/router'.useIsMounted
is now obtained from the new@not-govuk/client-component-helpers
package.urlParse
is nowURI.parse
and is in@not-govuk/uri
and returns a slightly different object. b344ed3queryString
has been moved to@not-govuk/uri
- Router hooks can now be obtained from
- Strict mode has been enabled in our base tsconfig which may break things for users that update to it. You will need to either fix each error in your code or disable strict mode. a1553dc
What's Changed
- Add Next.js support by @daniel-ac-martin in #1039
- Update dependency cookie to ^0.7.0 [SECURITY] by @renovate in #1106
- Update dependency http-proxy-middleware to v3.0.3 [SECURITY] by @renovate in #1111
- Update dependency next [SECURITY] by @renovate in #1113
- Update cypress to v13.15.1 by @renovate in #1110
- Update dependency @graphql-tools/schema to v10.0.7 by @renovate in #1109
- Update dependency @swc/core to ^1.8.0 by @renovate in #1107
- Update dependency @types/express-serve-static-core to v4.19.6 by @renovate in #1102
- Update react by @renovate in #1105
- Update babel monorepo by @renovate in #1104
- Update node by @renovate in #1103
- Migrate renovate config by @renovate in #1114
- Update dependency next to v14.2.16 by @renovate in #1116
- Update zaproxy/action-baseline action to v0.13.0 - autoclosed by @renovate in #1117
- Update zaproxy/action-full-scan action to v0.11.0 by @renovate in #1118
- Update dependency cookie to ^0.7.2 by @renovate in #1115
- components: Migrate and simplify meta-package by @daniel-ac-martin in #1119
- Update cypress to v13.15.2 by @renovate in #1120
- Update dependency @swc/core to ^1.9.1 by @renovate in #1121
- Update dependency @types/passport to v1.0.17 by @renovate in #1122
- Update dependency @types/prettier to ^2.7.3 by @renovate in #1123
- Update dependency http-proxy-middleware to ^3.0.3 by @renovate in #1125
- Update dependency mini-css-extract-plugin to ^2.9.2 by @renovate in #1126
- Update dependency sass to ^1.80.6 by @renovate in #1127
- Update dependency sass-loader to ^16.0.3 by @renovate in #1128
- Update dependency @testing-library/jest-dom to ^6.6.3 by @renovate in #1129
- Update dependency chromatic to v11.16.4 by @renovate in #1130
- Update react-router to v6.27.0 by @renovate in #1133
- Update dependency webpack to v5.96.1 by @renovate in #1132
- Update dependency sass-embedded to v1.80.6 by @renovate in #1131
- Update dependency @types/prismjs to ^1.26.5 by @renovate in #1124
- Update dependency @apollo/client to v3.11.9 by @renovate in #1134
- Update dependency @types/qs to ^6.9.17 - autoclosed by @renovate in #1135
- Update dependency chromatic to v11.16.5 by @renovate in #1136
- Update dependency next to v14.2.17 by @renovate in #1137
- Update jest by @renovate in #1138
- Update dependency govuk-frontend to v5.7.1 by @renovate in #1139
- Update react-router to v6.28.0 by @renovate in #1140
- Update dependency @types/express-serve-static-core to v5 by @renovate in #1141
- Update dependency next to v15 by @renovate in #1146
- Update dependency chromatic to v11.18.0 by @renovate in #1145
- Checkboxes: Fix conditional reveal by @daniel-ac-martin in #1144
- Update Node.js to v22 by @daniel-ac-martin in #1151
- Update dependency next to v15.0.3 by @renovate in #1152
- Update dependency @types/node to v22.9.0 by @renovate in #1153
- Misc fixes and clean-up by @daniel-ac-martin in #1154
Full Changelog: v0.14.0...v0.15.0