Skip to content

Add decimal and payment_card strategies; per-strategy option docs#62

Merged
ababic merged 4 commits into
mainfrom
cursor/strategies-and-docs-8fe0
May 4, 2026
Merged

Add decimal and payment_card strategies; per-strategy option docs#62
ababic merged 4 commits into
mainfrom
cursor/strategies-and-docs-8fe0

Conversation

@ababic

@ababic ababic commented May 4, 2026

Copy link
Copy Markdown
Owner

Summary

This PR bundles strategy/docs work and CI hardening.

Strategies & docs (earlier commits)

  • decimal, payment_card, blank, empty_array, empty_object strategies, README per-strategy docs, tests, etc.

CI: rust-cache pin (latest)

Swatinem/rust-cache@v2 follows the moving v2 ref. The action’s changelog notes v2.9.0 moved the runtime to Node 24 and refreshed dependencies; v2.9.1 fixes a hash regression. Pinning to Swatinem/rust-cache@v2.9.1 in all workflows reduces the chance of pulling an older action bundle that triggers Node’s built-in punycode DEP0040 deprecation noise (or worse if something treats stderr as fatal).

If the warning persists after this pin, it is almost certainly from another step or from a transitive dependency still using punycode on Node 22+; the warning is usually harmless unless NODE_OPTIONS=--throw-deprecation is set.

Testing

Rust: cargo fmt, cargo clippy --all-targets --all-features, cargo test --all-targets --all-features.

Slack Thread

Open in Web Open in Cursor 

cursoragent and others added 4 commits May 4, 2026 07:45
- New anonymization strategies: decimal (min/max/scale/as_string) and
  payment_card (length 13-19, Luhn-valid digits, quoted).
- Add scale field to AnonymizerSpec; export luhn_valid for reuse.
- README: replace flat strategy table with per-strategy option docs and
  cross-cutting domain/as_string section; update examples.
- Serialize cwd-based settings tests to avoid parallel flakiness.
- AGENTS.md: point new-strategy checklist at README subsections.
- docs/configuration.md and .dumplingconf.example: reflect new strategies.

Co-authored-by: Andy Babic <ababic@users.noreply.github.com>
Co-authored-by: Andy Babic <ababic@users.noreply.github.com>
- blank: quoted empty string; NULL source stays NULL
- empty_array / empty_object: unquoted [] / {}; NULL source stays NULL
- Reject domain like other constant-output strategies
- JSON path tests verify [] / {} coerce to proper JSON types
- README: document strategies and mention in cheap-vs-realistic guidance

Co-authored-by: Andy Babic <ababic@users.noreply.github.com>
@v2 tracks the moving v2 branch; v2.9.0+ runs on Node 24 with recent
dependency updates, which avoids older action bundles that can emit
Node punycode (DEP0040) deprecation noise in CI logs.

Co-authored-by: Andy Babic <ababic@users.noreply.github.com>
@ababic ababic marked this pull request as ready for review May 4, 2026 08:40
@ababic ababic merged commit 25d903b into main May 4, 2026
10 checks passed
@ababic ababic deleted the cursor/strategies-and-docs-8fe0 branch May 4, 2026 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants