Skip to content

Version 6.0.0

Compare
Choose a tag to compare
@jaydenseric jaydenseric released this 23 Dec 04:59
· 80 commits to master since this release

Major

  • Updated the react and react-dom peer dependencies to 16.14.0 - 17.
  • Updated dependencies, some of which require newer Node.js versions than were previously supported.
  • Updated Node.js support from v8.10+ to ^10.17.0 || ^12.0.0 || >= 13.7.0.
  • Removed the package module field.
  • Added a package exports field with conditional exports to support native ESM in Node.js and keep internal code private, whilst avoiding the dual package hazard. Published files have been reorganized and most are now CJS instead of ESM, so previously undocumented deep imports will need to be rewritten.
  • Updated the Babel config to use the new JSX transform and removed now redundant React requires.
  • Ensure using the data-daui-color-scheme HTML attribute also updates the element’s font color to match the specified color scheme.

Minor

  • Allow React component displayName and propTypes to be removed in production builds.
  • Setup GitHub Sponsors funding:
    • Added .github/funding.yml to display a sponsor button in GitHub.
    • Added a package.json funding field to enable npm CLI funding features.

Patch

  • Update the next peer dependency to 9.0.4 - 10.
  • Stop using husky and lint-staged.
  • Stop using size-limit temporarily due to ai/size-limit#205.
  • Use coverage-node to enforce 100% code coverage for tests.
  • Updated GitHub Actions CI config:
    • Ensure it also runs on pull request.
    • Updated actions/checkout to v2.
    • Updated actions/setup-node to v2.
    • Also test Node.js v14 and v15.
    • Simplified config with the npm install-test command.
    • Don’t specify the CI environment variable as it’s set by default.
  • Use strict mode for scripts.
  • Custom Babel plugins now run before and after the styled-jsx/babel plugin, to workaround vercel/styled-jsx#680 and vercel/styled-jsx#689.
  • Improved the package prepare:prettier and test:prettier scripts.
  • Reordered the package test:eslint script args for consistency with test:prettier.
  • Configured Prettier option semi to the default, true.
  • Removed npm-debug.log from the .gitignore file as npm v4.2.0+ doesn’t create it in the current working directory.
  • Updated the .editorconfig file.