Skip to content

Version 6.0.0

Latest

Choose a tag to compare

@jaydenseric jaydenseric released this 10 Feb 02:01
· 11 commits to master since this release

Major

  • Updated Node.js support to ^12.22.0 || ^14.17.0 || >= 16.0.0.
  • Updated dev dependencies, some of which require newer Node.js versions than previously supported.
  • Removed ./package from the package exports field; the full package.json filename must be used in a require path.
  • The API is now ESM in .mjs files instead of CJS in .js files, accessible via import but not require.
  • Implemented TypeScript types via JSDoc comments.

Minor

  • Added the main ./googleStaticMapsStylerQuery.mjs module to the package exports field to allow it to be deep imported.

Patch

  • Also run GitHub Actions CI with Node.js v17.
  • Simplified package scripts.
  • Simplified dev dependencies and config for ESLint.
  • Check TypeScript types via a new package types script.
  • Removed the jsdoc-md dev dependency and the related package scripts, replacing the readme “API” section with manually written “Examples” and “Exports” sections.
  • Reorganized the test file structure.
  • Test the bundle sizes for public modules individually.
  • Use a new assertBundleSize function to assert module bundle size in tests:
    • Failure message contains details about the bundle size and how much the limit was exceeded.
    • Errors when the surplus is greater than 25% of the limit, suggesting the limit should be reduced.
    • Resolves the minified bundle and its gzipped size for debugging in tests.
  • More reliable string coercion within the googleStaticMapsStylerQuery function.
  • Configured Prettier option singleQuote to the default, false.
  • Added a license.md MIT License file.
  • Improved documentation.