Skip to content

pdf_manipulator 4.1.0

Latest

Choose a tag to compare

@github-actions github-actions released this 28 Jul 23:57
· 0 commits to bbf0ff8e45a9911458dfd493a92f84b6e080a0d0 since this release
  • Added scan-dirs: extra directories for keep: auto to scan, on top of your app's lib/ and bin/. Code living somewhere else — a tools/ folder, a sibling package in a monorepo — was invisible to the scan, so a capability you really call could be trimmed away. Now you point at it: scan-dirs: [tools, packages/shared/lib], paths relative to your app. It only applies where there is a scan to widen (keep: auto, and not detector: record-use), and a directory that isn't there keeps the full binary rather than quietly scanning less than you asked for.
  • Verify your app after upgrading: keep: auto now actually trims the native engine, so a build that had been silently shipping every capability gets a smaller one. If anything is missing, state it yourself with keep: [render, …].
  • Fixed setup ignoring your config when run from a subfolder of your project. It read the config and scanned for source relative to wherever you were standing, so from anywhere but the app root it found no pubspec, silently read that as "nothing configured", and shipped the full web engine. Both lanes now locate your app the same way — from a path inside its own .dart_tool/, which neither the working directory nor where you invoke the command can move.
  • Fixed keep: auto keeping every capability on native no matter what your app used. The build hook read its own working directory as your app's source, but hooks are started inside the package they belong to — so the scan matched pdf_manipulator's own implementations and concluded you used all of them, every time, while reporting success. It now derives your app from the hook's output path. Web was never affected: you run setup from your own project, so its scan was always looking in the right place.
  • Fixed the native keep decision being cached for good. The hook registered none of your source as a build dependency, so once it had decided it never looked again — add a sign() call to an app that had already been built and the engine kept compiling without signature support. The source the scan reads is now a hook dependency, so the decision re-evaluates when your app changes.
Commits since v4.0.0 (4)
  • bbf0ff8 release: v4.1.0
  • 00054ef release: promote dev → prod (v4.1.0) (#210)
  • bd94ef4 Merge branch 'prod' into dev
  • 65f4233 feat: scan-dirs, and make keep: auto actually scan your app (#209)

Install (git tag)

dependencies:
  pdf_manipulator:
    git:
      url: https://github.com/whuppi/pdf_manipulator.git
      ref: v4.1.0

Install (pub.dev)

dependencies:
  pdf_manipulator: ^4.1.0