Packages

@ampproject/toolbox-optimizer

2.10.1 · 14 Jun 2024Apache-2.052.9k / weekRepositoryHomepagenpmAtom feed

Your version

47 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 2.x · latest line
  2. 2.10.1

    14 Jun 2024
  3. 2.10.0

    13 Jun 2024
    • `optimizer'

  4. 2.9.0

    23 Jun 2022
    • Security

      cache-url, cli, cloudflare-optimizer-scripts, linter, optimizer-docker, optimizer, page-experience, update-cache: Update dependencies to fix critical security issues (@sebastianbenz)

    • cloudflare-optimizer-scripts: Add support for Opaque redirects (@abdulhannanali)

    • optimizer: Implement SSR for amp-audio extension (@ediamin)

  5. 2.8.10

    16 Mar 2022
    • optimizer: More robust auto extension import

  6. 2.8.9

    10 Mar 2022
    • optimizer: Fix for issue #1302: "SSR: Duplicated ids in rendered markup, if there are nodes with attributes 'media', 'heights' or 'sizes'"

    • optimizer: Fix for issue #1304: "SSR: Transforming of nodes with attribute 'heights' fails, if value contains multiple media queries"

  7. 2.8.8

    11 Feb 2022
    • linter: Upgrade to latest amphtml validator version

  8. 2.8.6 – 2.8.72 releases without a noteShow each
  9. 2.8.5

    12 Jan 2022
    • optimizer: Pull in latest version from bundles.legacy-latest-versions.jsonc

  10. 2.8.4

    17 Nov 2021
    • optimizer: Migrate to htmlparser2 v7.2.0

  11. 2.8.3

    12 Jul 2021
  12. 2.8.2

    2 Jul 2021
    • optimizer: Disable preloading runtime script/style by default (@westonruter)

    • optimizer-docker, optimizer: feat: add monitoring to the docker image (@mathieu-pousse)

    • optimizer: Fix: don't import amp-inputmask for svg masks (@sebastianbenz)

  13. 2.8.1

    10 Jun 2021
    • optimizer: Add SSR support for fluid layout (@westonruter)

    • optimizer: Update error handler to support module and nomodule version (@sebastianbenz)

  14. 2.8.0

    31 May 2021
    • optimizer: Enable OptimizeAmpBind transformer by default (@schlessera)

    • optimizer: Add AmpBoilerplateErrorHandler transformer (@schlessera)

    • optimizer: Add crossorigin=anonymous to nomodule scripts the same as module ones (@westonruter)

  15. 2.7.6

    1 Feb 2021
  16. 2.7.5

    18 Jan 2021
    • optimizer: account for cases when parentNode and nextNode are undefined (@patrickkettner)

    • optimizer: Only add space between classes if preexisting class is present (@schlessera)

    • cli, linter, optimizer, update-cache: Support script based templates (@sebastianbenz)

  17. 2.7.4

    23 Dec 2020
    • cli, core, linter, optimizer, runtime-fetch, validator-rules: Readd cross fetch (@sebastianbenz)

  18. 2.7.3

    17 Dec 2020
  19. 2.7.2

    15 Dec 2020
    • optimizer: Encode SVG sizer with base64 (@schlessera)

    • linter: Add check for disabled tap delay (@sebastianbenz)

    • linter: Add check for amp-img placeholder does not make additional request (@kevinkimball)

  20. 2.7.1

    2 Dec 2020
    • linter: Add amp-img srcset linter check (@tharders)

    • optimizer: Allow users to specify version numbers for auto imported extensions (@digijin)

    • optimizer: Use node instead of root for checking templates in PreloadHeroImages (@schlessera)

  21. 2.6.0

    10 Aug 2020
  22. 2.5.14

    24 Jul 2020
  23. 2.5.12

    15 Jul 2020
    • optimizer: add experimental amp-img -> img transformation (@sebastianbenz)

    • linter: Story thumbnail dim req update (@Dbrown910)

  24. 2.5.11

    14 Jul 2020
  25. 2.5.10

    8 Jul 2020
  26. 2.5.9

    8 Jul 2020
  27. 2.5.8

    8 Jul 2020
    • optimizer: Only inject runtime-host meta tag if host is given (@sebastianbenz)

  28. 2.5.7

    8 Jul 2020
    • optimizer: Fix runtime-host meta tag when using relative URLs (@sebastianbenz)

  29. 2.5.6

    7 Jul 2020
    • optimizer: Improve preload handling with runtime self hosting (@sebastianbenz)

  30. 2.5.5

    26 Jun 2020
  31. 2.5.4

    22 Jun 2020

    🐛 Bug Fix

  32. 2.5.3

    15 Jun 2020
    • optimizer: fix(optimizer): add missing dependency node-fetch (@merceyz)

  33. 2.5.2

    11 Jun 2020
  34. 2.5.1

    9 Jun 2020
    • linter: Updated og image check to include name attr (@Dbrown910)

    • cache-list, cli, core, cors, lighthouse-plugin-amp, linter, optimizer-express, optimizer, runtime-fetch, runtime-version, update-cache: Move hero image preload out of experimental (@sebastianbenz)

    • cli, linter: Sort linter output (@Dbrown910)

  35. 2.5.0

    29 May 2020
    • optimizer: List all supported options in README (@sebastianbenz)

    • optimizer: Support media attribute for hero image preloading (@sebastianbenz)

    • optimizer: SSR: Add support for media, sizes and heights attribute (@sebastianbenz)

  36. 2.4.0

    13 May 2020
    • optimizer: Fix postinstall failing on windows (@sebastianbenz)

    • core, optimizer: Optimizer: cache runtime artifacts on filesystem (@sebastianbenz)

    • linter: Added og:image and alt text checks to linter for Stories (@Dbrown910)

  37. 2.3.1

    5 May 2020
  38. 2.3.0

    15 Apr 2020
    • runtime-fetch: runtime-fetch: Update amp-geo for subdivision matching (@mdmower)

    • cli, optimizer: optimizer: Add lts option to URL rewriter (@mdmower)

    • cli, runtime-version: runtime-version: Update for custom hosts and lts (@mdmower)

  39. 2.2.0

    3 Apr 2020
    • optimizer: Update to use postcss and cssnano for SeparateKeyframes transform (@ijjk)

    • cli: cli: Expose runtime-version options (@mdmower)

    • cli, runtime-fetch: Rename download-runtime => runtime-fetch (@sebastianbenz)

  40. 2.1.0

    1 Apr 2020
    • cli, download-runtime: download-runtime: Add tool to download AMP runtime (@mdmower)

    • cache-url, cli: Update CURLs hasing algorithm (@sebastianbenz)

    • optimizer: optimizer: Output amp-geo API meta tags (@mdmower)

  41. 2.0.1

    18 Mar 2020
    • optimizer: optimizer: Add meta tags for singleDoc self-host (@mdmower)

    • optimizer: Encode JSON values (@sebastianbenz)

    • optimizer: Fix: auto extension import amp-access-laterpay & amp-subscriptions-google (@sebastianbenz)

  42. 2.0.0

    13 Feb 2020
    • The SeparateKeyframe transformer's compress option has been renamed to minify. The same option will also be used by the MinifyHtml transformer. The default value continues to be true.

    • The API for implementing a custom transformer has changed. We no longer monkey patch the node class, but instead rely on helper methods defined in NodeUtils:

      const {firstChildByTag, appendChild, createElement} =
      require('@ampproject/toolbox-optimizer').NodeUtils; class CustomTransformer { constructor(config)
      { this.log_ = config.log.tag('CUSTOM'); } transform(tree, params) { this.log_.info('Running custom
      transformation for ', params.filePath); const html = firstChildByTag(tree, 'html'); if (!html)
      return; const head = firstChildByTag(html, 'head'); if (!head) return; const desc =
      createElement('meta', { name: 'description', content: 'this is just a demo', }); appendChild(head,
      desc); } }
    • core, optimizer: Add MinifyHtml transformer (@sebastianbenz)

  43. 1.x
  44. 1.1.2

    15 Oct 2019
    • optimizer: Fix: dont' fail optimizer if inline amp-script is empty (@sebastianbenz)

  45. 1.1.1

    8 Oct 2019
  46. 1.1.0

    8 Oct 2019
  47. 1.0.0 – 1.0.12 releases without a noteShow each

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.