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

# stix2 breaking changes

stix2 3.0.0 (July 13, 2021) is its newest release with breaking changes, 110 of them. The first: Drops the six dependency in stix2 3.0.0. Every breaking API change we have recorded in stix2 on PyPI: 122 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.0.2`, released February 12, 2026. [Source repository](https://github.com/oasis-open/cti-python-stix2)

Its 0.5.0 release drops Python 3.3. [Python end of life dates](https://since.dev/calendar/python.md).

- From [1.0.0](#v-1-0-0) to [3.0.0](#v-3-0-0): 110 breaking changes in 1 version.
- From [0.5.0](#v-0-5-0) to [3.0.0](#v-3-0-0): 120 breaking changes in 2 versions.

## stix2 3.0.0 breaking changes

stix2 3.0.0, released July 13, 2021: 110 breaking changes.

- **Removed**  

The package no longer depends on six. Code that relied on six being installed through stix2 must install it directly. [github.com](https://github.com/oasis-open/cti-python-stix2/releases/tag/v3.0.0)
- **Removed** `stix2.base._STIXBase`  

stix2.base.\_STIXBase was removed in stix2 3.0.0 [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Removed** `stix2.base.STIXJSONIncludeOptionalDefaultsEncoder`  

stix2.base.STIXJSONIncludeOptionalDefaultsEncoder was removed in stix2 3.0.0 [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Removed** `stix2.datastore.filesystem.serialize`  

stix2.datastore.filesystem.serialize was removed in stix2 3.0.0 [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Removed** `stix2.environment.check_property_present`  

stix2.environment.check_property_present was removed in stix2 3.0.0 [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Removed** `stix2.environment.custom_pattern_based`  

stix2.environment.custom_pattern_based was removed in stix2 3.0.0 [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Removed** `stix2.environment.Environment.graphically_equivalent`  

Environment.graphically_equivalent was removed in stix2 3.0.0 [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Removed** `stix2.environment.Environment.semantically_equivalent`  

Environment.semantically_equivalent was removed in stix2 3.0.0 [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Removed** `stix2.environment.exact_match`  

stix2.environment.exact_match was removed in stix2 3.0.0 [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Removed** `stix2.environment.graphically_equivalent`  

stix2.environment.graphically_equivalent was removed in stix2 3.0.0 [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Removed** `stix2.Environment.graphically_equivalent`  

Environment.graphically_equivalent was removed in stix2 3.0.0 [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Removed** `stix2.environment.list_reference_check`  

stix2.environment.list_reference_check was removed in stix2 3.0.0 [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Removed** `stix2.environment.partial_external_reference_based`  

stix2.environment.partial_external_reference_based was removed in stix2 3.0.0 [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Removed** `stix2.environment.partial_list_based`  

stix2.environment.partial_list_based was removed in stix2 3.0.0 [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Removed** `stix2.environment.partial_location_distance`  

stix2.environment.partial_location_distance was removed in stix2 3.0.0 [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Removed** `stix2.environment.partial_string_based`  

stix2.environment.partial_string_based was removed in stix2 3.0.0 [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Removed** `stix2.environment.partial_timestamp_based`  

stix2.environment.partial_timestamp_based was removed in stix2 3.0.0 [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Removed** `stix2.environment.reference_check`  

stix2.environment.reference_check was removed in stix2 3.0.0 [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Removed** `stix2.environment.semantically_equivalent`  

stix2.environment.semantically_equivalent was removed in stix2 3.0.0 [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Removed** `stix2.Environment.semantically_equivalent`  

Environment.semantically_equivalent was removed in stix2 3.0.0 [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Removed** `stix2.environment.WEIGHTS`  

stix2.environment.WEIGHTS was removed in stix2 3.0.0 [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Removed** `stix2.equivalence.graph.GRAPH_WEIGHTS`  

stix2.equivalence.graph.GRAPH_WEIGHTS was removed in stix2 3.0.0 [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Removed** `stix2.equivalence.graph.graphically_equivalent`  

stix2.equivalence.graph.graphically_equivalent was removed in stix2 3.0.0 [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Removed** `stix2.equivalence.object.semantically_equivalent`  

stix2.equivalence.object.semantically_equivalent was removed in stix2 3.0.0 [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Removed** `stix2.equivalence.patterns`  

stix2.equivalence.patterns was removed in stix2 3.0.0 [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Removed** `stix2.parsing.PREFIX_21_REGEX`  

stix2.parsing.PREFIX_21_REGEX was removed in stix2 3.0.0 [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Removed** `stix2.parsing.stix2`  

stix2.parsing.stix2 was removed in stix2 3.0.0 [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Removed** `stix2.parsing.STIX2_OBJ_MAPS`  

stix2.parsing.STIX2_OBJ_MAPS was removed in stix2 3.0.0 [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Removed** `stix2.pattern_visitor.six`  

stix2.pattern_visitor.six was removed in stix2 3.0.0 [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Removed** `stix2.properties.enumerate_types`  

stix2.properties.enumerate_types was removed in stix2 3.0.0 [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Removed** `stix2.properties.ExtensionsProperty.allow_custom`  

ExtensionsProperty.allow_custom was removed in stix2 3.0.0 [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Removed** `stix2.properties.ExtensionsProperty.enclosing_type`  

ExtensionsProperty.enclosing_type was removed in stix2 3.0.0 [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Removed** `stix2.properties.HASHES_REGEX`  

stix2.properties.HASHES_REGEX was removed in stix2 3.0.0 [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Removed** `stix2.properties.ObservableProperty.allow_custom`  

ObservableProperty.allow_custom was removed in stix2 3.0.0 [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Removed** `stix2.properties.Property.__call__`  

Property.\_\_call\_\_ was removed in stix2 3.0.0 [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Removed** `stix2.properties.ReferenceProperty.invalid_types`  

ReferenceProperty.invalid_types was removed in stix2 3.0.0 [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Removed** `stix2.properties.ReferenceProperty.valid_types`  

ReferenceProperty.valid_types was removed in stix2 3.0.0 [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Removed** `stix2.properties.STIX2_OBJ_MAPS`  

stix2.properties.STIX2_OBJ_MAPS was removed in stix2 3.0.0 [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Removed** `stix2.properties.STIXObjectProperty.allow_custom`  

STIXObjectProperty.allow_custom was removed in stix2 3.0.0 [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Removed** `stix2.v20.bundle.Bundle.object_properties`  

Bundle.object_properties was removed in stix2 3.0.0 [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Removed** `stix2.v20.bundle.STIXObjectProperty.allow_custom`  

STIXObjectProperty.allow_custom was removed in stix2 3.0.0 [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Removed** `stix2.v20.common.Property.__call__`  

Property.\_\_call\_\_ was removed in stix2 3.0.0 [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Removed** `stix2.v20.common.ReferenceProperty.invalid_types`  

ReferenceProperty.invalid_types was removed in stix2 3.0.0 [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Removed** `stix2.v20.common.ReferenceProperty.valid_types`  

ReferenceProperty.valid_types was removed in stix2 3.0.0 [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Removed** `stix2.v20.observables.ExtensionsProperty.allow_custom`  

ExtensionsProperty.allow_custom was removed in stix2 3.0.0 [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Removed** `stix2.v20.observables.ExtensionsProperty.enclosing_type`  

ExtensionsProperty.enclosing_type was removed in stix2 3.0.0 [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Removed** `stix2.v20.sdo.ObservableProperty.allow_custom`  

ObservableProperty.allow_custom was removed in stix2 3.0.0 [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Removed** `stix2.v20.sdo.ObservedData.__init__`  

ObservedData() was removed in stix2 3.0.0 [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Renamed** `stix2.equivalence.pattern.CanonicalizeComparisonExpressionsTransformer`  

Use stix2.equivalence.pattern.NormalizeComparisonExpressionsTransformer instead. [pypi.org](https://pypi.org/project/stix2/3.0.0/)
- **Renamed** `stix2.parsing.DuplicateRegistrationError`  

Use stix2.registration.DuplicateRegistrationError instead. [pypi.org](https://pypi.org/project/stix2/3.0.0/)

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

## stix2 1.0.0 breaking changes

stix2 1.0.0, released April 16, 2018: 10 breaking changes.

- **Removed** `get_dict`  

get_dict is no longer a public function. Code that calls it directly must stop doing so. [github.com](https://github.com/oasis-open/cti-python-stix2/releases/tag/v1.0.0)
- **Removed** `stix2.AndBooleanExpression.escape_quotes_and_backslashes`  

AndBooleanExpression.escape_quotes_and_backslashes was removed in stix2 1.0.0 [pypi.org](https://pypi.org/project/stix2/1.0.0/)
- **Removed** `stix2.get_dict`  

stix2.get_dict was removed in stix2 1.0.0 [pypi.org](https://pypi.org/project/stix2/1.0.0/)
- **Removed** `stix2.utils.get_dict`  

stix2.utils.get_dict was removed in stix2 1.0.0 [pypi.org](https://pypi.org/project/stix2/1.0.0/)
- **Configuration changed**  

taxii2-client is no longer installed automatically with the package. Install it separately if your code depends on it. [github.com](https://github.com/oasis-open/cti-python-stix2/releases/tag/v1.0.0)
- **Signature changed**  

Custom observable extension properties must now be defined as a list of tuples instead of a dictionary. Update existing custom observable definitions to use tuples. [github.com](https://github.com/oasis-open/cti-python-stix2/releases/tag/v1.0.0)
- **Signature changed** `stix2.AlternateDataStream.serialize`  

Was def serialize(self, pretty=False, \*\*kwargs); now def serialize(self, pretty=False, include_optional_defaults=False, \*\*kwargs). [pypi.org](https://pypi.org/project/stix2/1.0.0/)
- **Signature changed** `stix2.base._STIXBase.serialize`  

Was def serialize(self, pretty=False, \*\*kwargs); now def serialize(self, pretty=False, include_optional_defaults=False, \*\*kwargs). [pypi.org](https://pypi.org/project/stix2/1.0.0/)
- **Signature changed** `stix2.datastore.DataSource.related_to`  

Was def related_to(self, obj, relationship_type=None, source_only=False, target_only=False); now def related_to(self, obj, relationship_type=None, source_only=False, target_only=False, filters=None). [pypi.org](https://pypi.org/project/stix2/1.0.0/)
- **Signature changed** `stix2.datastore.filesystem.DataSource.related_to`  

Was def related_to(self, obj, relationship_type=None, source_only=False, target_only=False); now def related_to(self, obj, relationship_type=None, source_only=False, target_only=False, filters=None). [pypi.org](https://pypi.org/project/stix2/1.0.0/)

## stix2 0.5.0 breaking changes

stix2 0.5.0, released March 6, 2018: 2 breaking changes.

- **Removed**  

The package no longer supports Python 3.3. Run it on a newer Python version. [github.com](https://github.com/oasis-open/cti-python-stix2/releases/tag/v0.5.0)
- **Renamed** `stix2.sources`  

The stix2.sources module is renamed to stix2.datastore. Update imports that reference stix2.sources to use stix2.datastore. [github.com](https://github.com/oasis-open/cti-python-stix2/releases/tag/v0.5.0)

## 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.
