Skip to content

v0.2.0

Choose a tag to compare

@fvarrui fvarrui released this 10 Oct 00:08
· 11 commits to main since this release

New: redaction for more data and more countries (#8)

  • redact() now always replaces payment cards (issuer prefix, length and Luhn) → [CARD_n], and IBANs of any country (registry length and mod 97) → [IBAN_n].
  • A countries option chooses whose national ids and phones to look for: redact(text, { service, countries: ["US", "CA"] }). Default ["ES"]. Supported, each checked with its check digit or issued ranges: Spain (DNI, NIE, phones, and now the Seguridad Social number), United States (SSN, ITIN, phones), Canada (SIN, phones), Germany (Steuer-ID, Personalausweis, Rentenversicherungsnummer, Krankenversichertennummer), Mexico (CURP), Chile (RUT), Argentina (CUIL/CUIT), Brazil (CPF) and Portugal (NIF). Values without a check digit are left out on purpose.
  • New exports: COUNTRIES, Country, RedactOptions. Redacted.replaced gains cards.

New: the CLI covers the library without code (#9, #10, #11)

  • pseudonym redact [--service] [--countries] [file]: a text safe to paste into a chat with a model.
  • pseudonym reveal [--with-alias] [file]: a model's answer with the names back.
  • pseudonym remember: one person's alias, or a whole CSV in one go (--only-aliases drops names and identifiers so the result can go to a model).
  • pseudonym resolve <alias>: the service's id behind an alias.
  • pseudonym services: the services in the directory.
  • pseudonym forget --service <service> and forget --all: forget a closed course, or everyone, after a confirmation.
  • A default service for every command: --service, else PSEUDONYM_SERVICE, else default. aliases no longer requires --service.

Behavior change

  • With the default countries, redact() now also replaces payment cards and non-Spanish IBANs it used to leave as they were. Aliases and directories from 0.1.x work as they are.

Documentation