Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency @ampproject/toolbox-optimizer to v2 #672

Merged
merged 1 commit into from
Mar 31, 2020
Merged

chore(deps): update dependency @ampproject/toolbox-optimizer to v2 #672

merged 1 commit into from
Mar 31, 2020

Conversation

renovate-bot
Copy link
Contributor

This PR contains the following updates:

Package Type Update Change
@ampproject/toolbox-optimizer devDependencies major 1.1.0-beta.0 -> 2.0.1

Release Notes

ampproject/amp-toolbox

v2.0.1

Compare Source

🚀 Enhancement
🐛 Bug Fix
🏠 Internal
Committers: 3

v2.0.0

Compare Source

Migration notes:

  • 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);
      }
    
    }
🚀 Enhancement
🐛 Bug Fix
🏠 Internal
  • cli, core, cors, optimizer, update-cache
  • linter, optimizer-express
  • cache-list, cache-url, cli, core, cors, lighthouse-plugin-amp, linter, optimizer-express, optimizer, runtime-version, script-csp, update-cache, validator-rules
Committers: 2

v1.1.2

Compare Source

🐛 Bug Fix
Committers: 1

v1.1.1

Compare Source

v1.1.0

Compare Source

🚀 Enhancement
Committers: 4

v1.1.0-beta.1

Compare Source

🚀 Enhancement
🐛 Bug Fix
🏠 Internal
Committers: 6

Renovate configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻️ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by WhiteSource Renovate. View repository job log here.

@renovate-bot renovate-bot changed the title Update dependency @ampproject/toolbox-optimizer to v2 chore(deps): update dependency @ampproject/toolbox-optimizer to v2 Mar 31, 2020
@sebastianbenz sebastianbenz merged commit 41a5afd into ampproject:master Mar 31, 2020
@renovate-bot renovate-bot deleted the renovate/ampproject-toolbox-optimizer-2.x branch March 31, 2020 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants