---
title: "safety 3.0.0 Breaking Changes on PyPI | Since.dev"
description: "What each safety release removed, renamed or changed: 140 breaking changes in 3 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/safety
last_updated: 2026-12-04
---

# safety breaking changes

safety 3.0.0 (January 18, 2024) is its newest release with breaking changes, 74 of them. The first: Removed alert. Every breaking API change we have recorded in safety on PyPI: 140 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `3.8.1`, released May 29, 2026. 

Packages on PyPI run on Python. [Python end of life dates](https://since.dev/calendar/python.md).

- From [2.0.0](#v-2-0-0) to [3.0.0](#v-3-0-0): 74 breaking changes in 1 version.
- From [1.0.0](#v-1-0-0) to [3.0.0](#v-3-0-0): 125 breaking changes in 2 versions.

## safety 3.0.0 breaking changes

safety 3.0.0, released January 18, 2024: 74 breaking changes.

- **Removed** `alert`  

The alert section of the old policy file is no longer supported and must be removed. Its function is replaced by Safety Platform. [docs.safetycli.com](https://docs.safetycli.com/safety-docs/safety-cli-3/migrating-from-safety-cli-2.x-to-safety-cli-3.x)
- **Removed** `safety.cli.fetch_policy`  

safety.cli.fetch_policy was removed in safety 3.0.0 [pypi.org](https://pypi.org/project/safety/3.0.0/)
- **Removed** `safety.cli.get_proxy_dict`  

safety.cli.get_proxy_dict was removed in safety 3.0.0 [pypi.org](https://pypi.org/project/safety/3.0.0/)
- **Removed** `safety.cli.license`  

safety.cli.license was removed in safety 3.0.0 [pypi.org](https://pypi.org/project/safety/3.0.0/)
- **Removed** `safety.cli.post_results`  

safety.cli.post_results was removed in safety 3.0.0 [pypi.org](https://pypi.org/project/safety/3.0.0/)
- **Removed** `safety.cli.review`  

safety.cli.review was removed in safety 3.0.0 [pypi.org](https://pypi.org/project/safety/3.0.0/)
- **Removed** `safety.constants.API_BASE_URL`  

safety.constants.API_BASE_URL was removed in safety 3.0.0 [pypi.org](https://pypi.org/project/safety/3.0.0/)
- **Removed** `safety.constants.API_VERSION`  

safety.constants.API_VERSION was removed in safety 3.0.0 [pypi.org](https://pypi.org/project/safety/3.0.0/)
- **Removed** `safety.constants.CACHE_FILE`  

safety.constants.CACHE_FILE was removed in safety 3.0.0 [pypi.org](https://pypi.org/project/safety/3.0.0/)
- **Removed** `safety.constants.SAFETY_ENDPOINT`  

safety.constants.SAFETY_ENDPOINT was removed in safety 3.0.0 [pypi.org](https://pypi.org/project/safety/3.0.0/)
- **Removed** `safety.errors.InvalidKeyError`  

safety.errors.InvalidKeyError was removed in safety 3.0.0 [pypi.org](https://pypi.org/project/safety/3.0.0/)
- **Removed** `safety.models.package_nmt`  

safety.models.package_nmt was removed in safety 3.0.0 [pypi.org](https://pypi.org/project/safety/3.0.0/)
- **Removed** `safety.safety.API_BASE_URL`  

safety.safety.API_BASE_URL was removed in safety 3.0.0 [pypi.org](https://pypi.org/project/safety/3.0.0/)
- **Removed** `safety.safety.CACHE_FILE`  

safety.safety.CACHE_FILE was removed in safety 3.0.0 [pypi.org](https://pypi.org/project/safety/3.0.0/)
- **Removed** `safety.safety.close_session`  

safety.safety.close_session was removed in safety 3.0.0 [pypi.org](https://pypi.org/project/safety/3.0.0/)
- **Removed** `safety.safety.InvalidKeyError`  

safety.safety.InvalidKeyError was removed in safety 3.0.0 [pypi.org](https://pypi.org/project/safety/3.0.0/)
- **Removed** `safety.safety.RequirementFile`  

safety.safety.RequirementFile was removed in safety 3.0.0 [pypi.org](https://pypi.org/project/safety/3.0.0/)
- **Removed** `safety.safety.session`  

safety.safety.session was removed in safety 3.0.0 [pypi.org](https://pypi.org/project/safety/3.0.0/)
- **Removed** `security:continue-on-vulnerability-error`  

The security:continue-on-vulnerability-error setting no longer exists. To suppress exit codes, set fail-scan-with-exit-code:dependency-vulnerabilities:enabled to False. [docs.safetycli.com](https://docs.safetycli.com/safety-docs/safety-cli-3/migrating-from-safety-cli-2.x-to-safety-cli-3.x)
- **Renamed** `security:ignore-cvss-severity-below`  

The security:ignore-cvss-severity-below setting moved into report:auto-ignore-in-report:cvss-severity, which is now a YAML list of severities. [docs.safetycli.com](https://docs.safetycli.com/safety-docs/safety-cli-3/migrating-from-safety-cli-2.x-to-safety-cli-3.x)
- **Renamed** `security:ignore-cvss-unknown-severity`  

The security:ignore-cvss-unknown-severity setting moved into report:auto-ignore-in-report:cvss-severity as the unknown option in a YAML list. [docs.safetycli.com](https://docs.safetycli.com/safety-docs/safety-cli-3/migrating-from-safety-cli-2.x-to-safety-cli-3.x)
- **Renamed** `security:ignore-vulnerabilities`  

The security:ignore-vulnerabilities policy setting moved to report:auto-ignore-in-report:vulnerabilities with the same list of ignores. [docs.safetycli.com](https://docs.safetycli.com/safety-docs/safety-cli-3/migrating-from-safety-cli-2.x-to-safety-cli-3.x)
- **Behavior changed** `safety check`  

Users upgrading from safety 2.3.5 or older to 3.x will see a different JSON output structure from safety check and may need to adjust parsers. [docs.safetycli.com](https://docs.safetycli.com/safety-docs/safety-cli-3/migrating-from-safety-cli-2.x-to-safety-cli-3.x)
- **Behavior changed** `validate`  

The validate command now validates a 3.0 policy file by default instead of the older format. [docs.safetycli.com](https://docs.safetycli.com/safety-docs/safety-cli-3/migrating-from-safety-cli-2.x-to-safety-cli-3.x)
- **Configuration changed** `safety-policy.yml`  

The .safety-policy.yml file used by safety scan has a different structure and cannot be shared with safety check. Convert existing policy files to the new format. [docs.safetycli.com](https://docs.safetycli.com/safety-docs/safety-cli-3/migrating-from-safety-cli-2.x-to-safety-cli-3.x)
- **Signature changed** `safety.__main__.cli`  

Was def cli(ctx, debug, telemetry, disable_optional_telemetry_data); now def cli(ctx, debug, disable_optional_telemetry). [pypi.org](https://pypi.org/project/safety/3.0.0/)
- **Signature changed** `safety.alerts.utils.fetch_changelog`  

Was def fetch_changelog(package, from_version, to_version, \*, api_key); now def fetch_changelog(package, from_version: Optional\[str\], to_version: str, \*, api_key, from_spec=None). [pypi.org](https://pypi.org/project/safety/3.0.0/)
- **Signature changed** `safety.cli.check`  

Was def check(ctx, key, db, full_report, stdin, files, cache, ignore, output, json, bare, proxy_protocol, proxy_host, proxy_port, exit_code, policy_file, save_json, audit_and_monitor, project); now def check(ctx, db, full_report, stdin... [pypi.org](https://pypi.org/project/safety/3.0.0/)
- **Signature changed** `safety.cli.cli`  

Was def cli(ctx, debug, telemetry, disable_optional_telemetry_data); now def cli(ctx, debug, disable_optional_telemetry). [pypi.org](https://pypi.org/project/safety/3.0.0/)
- **Signature changed** `safety.cli.get_packages_licenses`  

Was def get_packages_licenses(packages=None, licenses_db=None); now def get_packages_licenses(\*, packages=None, licenses_db=None). [pypi.org](https://pypi.org/project/safety/3.0.0/)
- **Signature changed** `safety.cli.get_processed_options`  

Was def get_processed_options(policy_file, ignore, ignore_severity_rules, exit_code); now def get_processed_options(policy_file, ignore, ignore_severity_rules, exit_code, ignore_unpinned_requirements=None, project=None). [pypi.org](https://pypi.org/project/safety/3.0.0/)
- **Signature changed** `safety.cli.SafetyError.__init__`  

Was def \_\_init\_\_(self, message='Unhandled Safety generic error'); now def \_\_init\_\_(self, message='Unhandled Safety generic error', error_code=None). [pypi.org](https://pypi.org/project/safety/3.0.0/)
- **Signature changed** `safety.cli.SafetyFormatter.__init__`  

Was def \_\_init\_\_(self, output); now def \_\_init\_\_(self, output, \*\*kwargs). [pypi.org](https://pypi.org/project/safety/3.0.0/)
- **Signature changed** `safety.cli.validate`  

Was def validate(ctx, name, path); now def validate(ctx, name, version, path). [pypi.org](https://pypi.org/project/safety/3.0.0/)
- **Signature changed** `safety.formatter.FormatterAPI.render_vulnerabilities`  

Was def render_vulnerabilities(self, announcements, vulnerabilities, remediations, full, packages); now def render_vulnerabilities(self, announcements, vulnerabilities, remediations, full, packages, fixes=()). [pypi.org](https://pypi.org/project/safety/3.0.0/)
- **Signature changed** `safety.formatters.bare.get_basic_announcements`  

Was def get_basic_announcements(announcements); now def get_basic_announcements(announcements, include_local: bool = True). [pypi.org](https://pypi.org/project/safety/3.0.0/)
- **Signature changed** `safety.formatters.json.get_basic_announcements`  

Was def get_basic_announcements(announcements); now def get_basic_announcements(announcements, include_local: bool = True). [pypi.org](https://pypi.org/project/safety/3.0.0/)
- **Signature changed** `safety.formatters.screen.build_announcements_section_content`  

Was def build_announcements_section_content(announcements, columns=get_terminal_size().columns, start_line_decorator=' ', end_line_decorator=' '); now def build_announcements_section_content(announcements... [pypi.org](https://pypi.org/project/safety/3.0.0/)
- **Signature changed** `safety.formatters.screen.format_long_text`  

Was def format_long_text(text, color='', columns=get_terminal_size().columns, start_line_decorator=' ', end_line_decorator=' ', left_padding='', max_lines=None, styling=None, indent='', sub_indent=''); now def format_long_text(text... [pypi.org](https://pypi.org/project/safety/3.0.0/)
- **Signature changed** `safety.formatters.screen.get_basic_announcements`  

Was def get_basic_announcements(announcements); now def get_basic_announcements(announcements, include_local: bool = True). [pypi.org](https://pypi.org/project/safety/3.0.0/)
- **Signature changed** `safety.formatters.screen.get_final_brief`  

Was def get_final_brief(total_vulns_found, total_remediations, ignored, total_ignored, kwargs=None); now def get_final_brief(total_vulns_found, remediations, ignored, total_ignored, kwargs=None). [pypi.org](https://pypi.org/project/safety/3.0.0/)
- **Signature changed** `safety.formatters.text.build_announcements_section_content`  

Was def build_announcements_section_content(announcements, columns=get_terminal_size().columns, start_line_decorator=' ', end_line_decorator=' '); now def build_announcements_section_content(announcements... [pypi.org](https://pypi.org/project/safety/3.0.0/)
- **Signature changed** `safety.formatters.text.get_basic_announcements`  

Was def get_basic_announcements(announcements); now def get_basic_announcements(announcements, include_local: bool = True). [pypi.org](https://pypi.org/project/safety/3.0.0/)
- **Signature changed** `safety.formatters.text.get_final_brief`  

Was def get_final_brief(total_vulns_found, total_remediations, ignored, total_ignored, kwargs=None); now def get_final_brief(total_vulns_found, remediations, ignored, total_ignored, kwargs=None). [pypi.org](https://pypi.org/project/safety/3.0.0/)
- **Signature changed** `safety.models.Package`  

Was class Package(package_nmt, DictConverter); now class Package(DictConverter). [pypi.org](https://pypi.org/project/safety/3.0.0/)
- **Signature changed** `safety.output_utils.build_announcements_section_content`  

Was def build_announcements_section_content(announcements, columns=get_terminal_size().columns, start_line_decorator=' ', end_line_decorator=' '); now def build_announcements_section_content(announcements... [pypi.org](https://pypi.org/project/safety/3.0.0/)
- **Signature changed** `safety.output_utils.build_telemetry_data`  

Was def build_telemetry_data(telemetry=True); now def build_telemetry_data(telemetry=True, command: Optional\[str\] = None, subcommand: Optional\[str\] = None) -> TelemetryModel. [pypi.org](https://pypi.org/project/safety/3.0.0/)
- **Signature changed** `safety.output_utils.build_using_sentence`  

Was def build_using_sentence(key, db); now def build_using_sentence(account, key, db). [pypi.org](https://pypi.org/project/safety/3.0.0/)
- **Signature changed** `safety.output_utils.format_long_text`  

Was def format_long_text(text, color='', columns=get_terminal_size().columns, start_line_decorator=' ', end_line_decorator=' ', left_padding='', max_lines=None, styling=None, indent='', sub_indent=''); now def format_long_text(text... [pypi.org](https://pypi.org/project/safety/3.0.0/)
- **Signature changed** `safety.output_utils.get_final_brief`  

Was def get_final_brief(total_vulns_found, total_remediations, ignored, total_ignored, kwargs=None); now def get_final_brief(total_vulns_found, remediations, ignored, total_ignored, kwargs=None). [pypi.org](https://pypi.org/project/safety/3.0.0/)

And 24 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## safety 2.0.0 breaking changes

safety 2.0.0, released June 28, 2022: 51 breaking changes.

- **Removed**  

Python versions older than 3.6 are no longer supported. [github.com](https://github.com/pyupio/safety/releases/tag/2.0.0)
- **Removed** `--bare`  

The --output flag replaces --bare; use --output bare instead. [github.com](https://github.com/pyupio/safety/releases/tag/2.0.0)
- **Removed** `--json`  

The --output flag replaces --json; use --output json instead. [github.com](https://github.com/pyupio/safety/releases/tag/2.0.0)
- **Removed** `--screen`  

The --output flag replaces --screen; use --output screen instead. [github.com](https://github.com/pyupio/safety/releases/tag/2.0.0)
- **Removed** `--text`  

The --output flag replaces --text; use --output text instead. [github.com](https://github.com/pyupio/safety/releases/tag/2.0.0)
- **Removed** `safety.__version__`  

safety.\_\_version\_\_ was removed in safety 2.0.0 [pypi.org](https://pypi.org/project/safety/2.0.0/)
- **Removed** `safety.cli.DatabaseFetchError`  

safety.cli.DatabaseFetchError was removed in safety 2.0.0 [pypi.org](https://pypi.org/project/safety/2.0.0/)
- **Removed** `safety.cli.DatabaseFileNotFoundError`  

safety.cli.DatabaseFileNotFoundError was removed in safety 2.0.0 [pypi.org](https://pypi.org/project/safety/2.0.0/)
- **Removed** `safety.cli.InvalidKeyError`  

safety.cli.InvalidKeyError was removed in safety 2.0.0 [pypi.org](https://pypi.org/project/safety/2.0.0/)
- **Removed** `safety.cli.license_report`  

safety.cli.license_report was removed in safety 2.0.0 [pypi.org](https://pypi.org/project/safety/2.0.0/)

And 41 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## safety 1.0.0 breaking changes

safety 1.0.0, released March 23, 2017: 15 breaking changes.

- **Removed** `safety.constants.DATABASE_MIRRORS`  

safety.constants.DATABASE_MIRRORS was removed in safety 1.0.0 [pypi.org](https://pypi.org/project/safety/1.0.0/)
- **Removed** `safety.formatter.REPORT_BANNER`  

safety.formatter.REPORT_BANNER was removed in safety 1.0.0 [pypi.org](https://pypi.org/project/safety/1.0.0/)
- **Removed** `safety.formatter.REPORT_FOOTER`  

safety.formatter.REPORT_FOOTER was removed in safety 1.0.0 [pypi.org](https://pypi.org/project/safety/1.0.0/)
- **Removed** `safety.formatter.REPORT_HEADING`  

safety.formatter.REPORT_HEADING was removed in safety 1.0.0 [pypi.org](https://pypi.org/project/safety/1.0.0/)
- **Removed** `safety.formatter.REPORT_SECTION`  

safety.formatter.REPORT_SECTION was removed in safety 1.0.0 [pypi.org](https://pypi.org/project/safety/1.0.0/)
- **Removed** `safety.formatter.TABLE_BREAK`  

safety.formatter.TABLE_BREAK was removed in safety 1.0.0 [pypi.org](https://pypi.org/project/safety/1.0.0/)
- **Removed** `safety.formatter.TABLE_FOOTER`  

safety.formatter.TABLE_FOOTER was removed in safety 1.0.0 [pypi.org](https://pypi.org/project/safety/1.0.0/)
- **Removed** `safety.formatter.TABLE_HEADING`  

safety.formatter.TABLE_HEADING was removed in safety 1.0.0 [pypi.org](https://pypi.org/project/safety/1.0.0/)
- **Removed** `safety.safety.DATABASE_MIRRORS`  

safety.safety.DATABASE_MIRRORS was removed in safety 1.0.0 [pypi.org](https://pypi.org/project/safety/1.0.0/)
- **Signature changed** `safety.cli.check`  

Was def check(full_report, stdin, files); now def check(key, db, full_report, stdin, files, cache). [pypi.org](https://pypi.org/project/safety/1.0.0/)

And 5 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
