Skip to content

Releases: mohatt/gatsby-plugin-postbuild

v2.0.0

14 Mar 17:14
Compare
Choose a tag to compare

2.0.0 (2021-03-14)

BREAKING CHANGES

  • plugin: The plugin options schema has been changed

Features

  • task:netlify-headers: add header merging functionality (fbbb0d6)
  • task:netlify-headers: add link priority for sorting Link headers (bd5f82e)
  • task:netlify-headers: add option transformPathLinks for manipulating links under each path (bc144d0)
  • task:netlify-headers: add support for prerender links (c491491)
  • task:netlify-headers: support space delimited multi-value rel attribute (36131c9)
  • plugin: add events option to allow custom events to be added as a user task (f9fc71e)
  • plugin: add html.pagePath to get the path of the current html file (c6dfbb3)
  • plugin: add netlify-headers task (38dbec3)
  • plugin: add event ext.configure that allows tasks to change processing options for different extensions (edc3d10)
  • plugin: add html.write event (021e87d)
  • plugin: allow customizing concurrency and processing strategy on a per extension basis (0a364f9)
  • plugin: implemented tasks api (9facd94)
  • plugin: The plugin is now written in Typescript (83013f7)

Bug Fixes

  • plugin: add ext.configure event to plugin options schema (9d6d8cd)
  • plugin: correctly handle both 404 and 404.html (1242415)
  • plugin: fix concurrency option (04d8fc6)
  • plugin: fix glob matches sorting (6f07e36)
  • plugin: fix incorrect file size for updated files (b29e89f)
  • plugin: ignore running when there is no enabled tasks (c6514b5)
  • plugin: sort matches found by glob (a561b59)
  • task:purgecss: fix purgecss types (b97d36b)
  • task:netlify-headers: don't remove links with unsupported rel types (adc126b)
  • task:purgecss: no need to export DI container (9981160)

Performance Improvements

  • deps: no need for glob-to-regexp anymore (cda1d2d)
  • plugin: change defaultConcurrency to 10 (3c01272)
  • plugin: check for empty events options before adding user task (2602f46)
  • plugin: merge report and consoleReport options in one option reporting (cd83e3a)
  • plugin: move on.shutdown event to Postbuild.run method (d64d4e8)
  • plugin: move processFiles outside of postbuild.run (8c65b67)
  • plugin: optimized tasks api (6ded889)
  • plugin: remove file.getEventPayload and use a class property instead (2af57c4)
  • plugin: rename file events to glob (fed250f)
  • plugin: Replace option.purgecss.rejected with options.reportRejected (f8e4a91)
  • plugin: support checking for a list of extensions (a942e03)
  • plugin: use import type when possible (5410d4b)
  • plugin: use one event to handle generic files since we dont need to retain their data (daea1ba)
  • plugin: no need to include current task in event payload (3fda7ed)
  • task:purgecss: rename reportRejected to writeRejected and set it to false by default (23488f5)

v1.2.2

20 Feb 21:43
Compare
Choose a tag to compare

1.2.2 (2021-02-20)

Bug Fixes

  • plugin: avoid mutating options.purgecss (230c4c6)

v1.2.1

17 Feb 03:22
Compare
Choose a tag to compare

1.2.1 (2021-02-17)

Bug Fixes

  • plugin: check for assets extension before adding them (fcfd24b)
  • plugin: fix a minor bug when loading ignored files (77dd129)

Performance Improvements

  • plugin: ignore loading webpack chunks if no webpack ignores is defined (d116e4c)

Reverts

  • "chore(test): setup tests to run on both node 10 and 12" (e1faad9)

v1.2.0

16 Feb 03:20
Compare
Choose a tag to compare

1.2.0 (2021-02-16)

Bug Fixes

  • plugin: remove unused class method (daa1ec3)
  • plugin: use _.mergeWith with a customizer to avoid merging arrays by index (ee4a3cd)

Features

  • plugin: add the ability to exclude webpack chunks, pages, css and js files from optimization (ab43853)

Performance Improvements

  • plugin: rename purgecss.allowSymbols to allowSymbols since its not being passed to purgecss (12acc1a)

v1.1.3

15 Feb 15:59
Compare
Choose a tag to compare

1.1.3 (2021-02-15)

Bug Fixes

  • plugin: fix a TypeError when an ignored webpack chunkName doesn't exist (6014f80)
  • plugin: fixed reading external css files (8373021)
  • plugin: omit extractors option since its something we should handle it internally (f846684)

v1.1.2

14 Feb 21:03
Compare
Choose a tag to compare

1.1.2 (2021-02-14)

Performance Improvements

  • plugin: implemented reporter.activityTimer for better console output (490c0e0)
  • plugin: improved error reporting (8fa4052)

v1.1.1

14 Feb 04:43
Compare
Choose a tag to compare

1.1.1 (2021-02-14)

Performance Improvements

  • plugin: add debug messages for most tasks (86db102)
  • plugin: add total saving to final report (fa9eca1)
  • plugin: no need for glob anymore (72a7f72)

v1.1.0

13 Feb 16:29
Compare
Choose a tag to compare

1.1.0 (2021-02-13)

Bug Fixes

  • plugin: lazy-load tasks module to allow utils to load first (5edeb2d)

Features

  • plugin: add support for local link and script files (da21e3e)

Performance Improvements

  • plugin: split purgecss task into several submodules for better readability and testing (fccf86a)

v1.0.3

11 Feb 06:36
Compare
Choose a tag to compare

1.0.3 (2021-02-11)

Performance Improvements

  • plugin: change tailwind option to allowSymbols (4ec8913)
  • plugin: improved some helper functions (313ce5e)
  • plugin: remove tasks API as its not needed (07ec32a)

v1.0.2

10 Feb 21:36
Compare
Choose a tag to compare

1.0.2 (2021-02-10)

Bug Fixes

  • plugin: uncomment this line NOW (1977dc1)