Releases: mohatt/gatsby-plugin-postbuild
Releases · mohatt/gatsby-plugin-postbuild
v2.0.0
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 auser
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
andconsoleReport
options in one optionreporting
(cd83e3a) - plugin: move
on.shutdown
event toPostbuild.run
method (d64d4e8) - plugin: move
processFiles
outside ofpostbuild.run
(8c65b67) - plugin: optimized tasks api (6ded889)
- plugin: remove file.getEventPayload and use a class property instead (2af57c4)
- plugin: rename
file
events toglob
(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
towriteRejected
and set it tofalse
by default (23488f5)
v1.2.2
v1.2.1
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
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)