Releases: Financial-Times/dotcom-page-kit
v12.3.0
with this release, n-ui-foundations
is deprecated, and what's left of it has moved into dotcom-ui-base-styles
. although you can migrate your app from n-ui-foundations
to dotcom-ui-base-styles
now, there's no migration guide, as there will be a migration script you can run soon.
What's Changed
- merge n-ui-foundations into dotcom-ui-base-styles by @apaleslimghost in #1062
- integrate ex-n-ui-foundations styles into dotcom-ui-base-styles by @apaleslimghost in #1063
Full Changelog: v12.2.1...v12.3.0
v12.2.1
v11.3.1
v11.3.1-beta.0
Full Changelog: v11.3.0...v11.3.1-beta.0
v12.2.0
What's Changed
- CPP-2223 Add plugin to build native CSS by @ivomurrell in #1124
Full Changelog: v12.1.0...v12.2.0
v12.1.0
What's Changed
- CPP-2222 Use Webpack's native import resolution for S/CSS and drop Postcss by @ivomurrell in #1123
Full Changelog: v12.0.1...v12.1.0
v12.0.1
What's Changed
- Fix compression-webpack-plugin filename option by @apaleslimghost in #1121
Full Changelog: v12.0.0...v12.0.1
v12.0.0 - Webpack 5
This release updates Page Kit's Webpack plugins to Webpack 5. You'll need to update your app to Webpack 5 when updating to this version of Page Kit. Most apps (i.e. ones using Page Kit plugins without any additional custom Webpack configuration) will be able to just update the packages and everything will be fine. If you have any custom Webpack config, follow the Webpack 5 migration guide.
When updating to Webpack 5, you may need to be aware of its breaking changes. In testing, I've found one breaking change that affects apps:
- when a package has an
exports
specifier inpackage.json
Webpack 5 is strict about not importing things that aren't exported inexports
. this may require code changes in packages and/or apps to export everything that should be and import things correctly.- for example,
next-article
imports@financial-times/custom-code-component/dist/custom-code-component.js
, but that package doesn't include that entrypoint in itsexports
(it exports.
, the top-level import, pointing that at the filedist/custom-code-component.js
, which isn't visible outside the package).next-article
won't build with Webpack 5 without changing thatimport
to@financial-times/custom-code-component
.
- for example,
This release contains a number of other breaking changes:
- We no longer use Autoprefixer. The CSS we write is supported in every browser we use, and browsers no longer use vendor prefixes for new features. The only holdouts are a handful of -webkit prefixed properties supported by every browser; i have verified via Github search that we never use any of these properties unprefixed.
- Our Babel config now targets the
latest
Browserslist default config. This is Browserslist best practice, slightly lenient than our current browser support policy, results in much smaller Babel output than our previous Browserslist config (which was inadvertently targeting some very old browsers), and means we don't have to keep updating the config. - The
prependData
option indotcom-build-sass
, which was deprecated in favour ofadditionalData
, has been removed.
What's Changed
- fix: bump cross-spawn by @dependabot in #1099
- [AG-194] chore: bump oAds to consume mvt2 flag changes by @AniaMakes in #1115
- build: remove storybook by @apaleslimghost in #1117
⚠️ BREAKING CHANGES
- CPP-2230: upgrade to Webpack 5 by @apaleslimghost in #1002
New Contributors
- @AniaMakes made their first contribution in #1115
Full Changelog: v11.3.0...v12.0.0
v11.3.0
What's Changed
- [Fix] README link to contribution guidelines by @Sqyphen in #1095
- [Update] source_code of Origami Build service URLs by @Sqyphen in #1096
- ADSDEV-2104: Removing moatAdsTraffic flag by @fabioleiteparserft in #1097
- fix: bump path-to-regexp and express by @dependabot in #1101
- Remove
aria-hidden="true"
from mobile navigation by @notlee in #954 - fix the default JSON-LD site url by @kavanagh in #916
- build(deps): bump glob-parent from 3.1.0 to 5.1.2 by @dependabot in #971
- fix: bump elliptic from 6.5.4 to 6.6.1 by @dependabot in #1100
- fix: bump sucrase from 3.34.0 to 3.35.0 by @dependabot in #1075
- fix: bump nanoid from 3.3.6 to 3.3.8 by @dependabot in #1104
- Remove old files + check engines process by @joelcarr in #1106
- Add Node 22 support and remove npm engine field by @joelcarr in #1105
- Update snapshots by @joelcarr in #1112
New Contributors
- @Sqyphen made their first contribution in #1095
- @fabioleiteparserft made their first contribution in #1097
Full Changelog: v11.2.1...v11.3.0
v11.2.1 - Support GTM first-party mode
What's Changed
- ADSDEV 2064: GTM first party mode update by @oliverturner in #1092
Full Changelog: v11.2.0...v11.2.1