Skip to content

Update abp-snippets dependency to 0.3.1

Background / User story

We want to update the extension to use the latest version of abp-snippets to make use of the new snippets architecture and to introduce a new snippet.

Dependency changes

  • Name: abp/snippets
  • New version: 0.3.1 - commit 41d7d719
  • Breaking changes:
    • New snippets architecture
    • Removed dir-string snippet
  • Other changes:
    • Added new snippet: hide-if-graph-matches
    • New distributable: dist/ml/bundle.ml.mjs to replace both adblockpluscore/lib/ml.js and adblockpluschrome/lib/ml.js

Integration changes

  • Development:
    • Adjust code in the following files accordingly, to load the new snippets bundles
      • adblockpluschrome/build/config/base.js
      • adblockpluschrome/lib/contentFiltering.js
    • Remove adblockpluschrome/lib/ml.js
    • Adjust code in the following files accordingly, to change the location of the ML dependency
      • adblockpluschrome/build/config/base.js
    • Change tensorflow/tfjs version to 3.7.0. No longer needs tensorflow/tfjs-converter and tensorflow/tfjs-core submodules added seperately. Previously this required manually combining functions/properties from both modules.
    • Ensure that users without access to private dependency, are still able to generate extension builds, albeit without snippets.

Hints for testers

Same as here.

See also https://gitlab.com/eyeo/adblockplus/abpui/adblockplusui/-/issues/990#hints-for-testers.

Edited by Georgiana Piscoi
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information