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
On this page
Latest version 3.0.2, released February 12, 2026. Source repository
Its 0.5.0 release drops Python 3.3. Python end of life dates.
- From 1.0.0 to 3.0.0: 110 breaking changes in 1 version.
- From 0.5.0 to 3.0.0: 120 breaking changes in 2 versions.
stix2 3.0.0 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 - Removed
stix2.base._STIXBase
stix2.base._STIXBase was removed in stix2 3.0.0 pypi.org - Removed
stix2.base.STIXJSONIncludeOptionalDefaultsEncoder
stix2.base.STIXJSONIncludeOptionalDefaultsEncoder was removed in stix2 3.0.0 pypi.org - Removed
stix2.datastore.filesystem.serialize
stix2.datastore.filesystem.serialize was removed in stix2 3.0.0 pypi.org - Removed
stix2.environment.check_property_present
stix2.environment.check_property_present was removed in stix2 3.0.0 pypi.org - Removed
stix2.environment.custom_pattern_based
stix2.environment.custom_pattern_based was removed in stix2 3.0.0 pypi.org - Removed
stix2.environment.Environment.graphically_equivalent
Environment.graphically_equivalent was removed in stix2 3.0.0 pypi.org - Removed
stix2.environment.Environment.semantically_equivalent
Environment.semantically_equivalent was removed in stix2 3.0.0 pypi.org - Removed
stix2.environment.exact_match
stix2.environment.exact_match was removed in stix2 3.0.0 pypi.org - Removed
stix2.environment.graphically_equivalent
stix2.environment.graphically_equivalent was removed in stix2 3.0.0 pypi.org - Removed
stix2.Environment.graphically_equivalent
Environment.graphically_equivalent was removed in stix2 3.0.0 pypi.org - Removed
stix2.environment.list_reference_check
stix2.environment.list_reference_check was removed in stix2 3.0.0 pypi.org - Removed
stix2.environment.partial_external_reference_based
stix2.environment.partial_external_reference_based was removed in stix2 3.0.0 pypi.org - Removed
stix2.environment.partial_list_based
stix2.environment.partial_list_based was removed in stix2 3.0.0 pypi.org - Removed
stix2.environment.partial_location_distance
stix2.environment.partial_location_distance was removed in stix2 3.0.0 pypi.org - Removed
stix2.environment.partial_string_based
stix2.environment.partial_string_based was removed in stix2 3.0.0 pypi.org - Removed
stix2.environment.partial_timestamp_based
stix2.environment.partial_timestamp_based was removed in stix2 3.0.0 pypi.org - Removed
stix2.environment.reference_check
stix2.environment.reference_check was removed in stix2 3.0.0 pypi.org - Removed
stix2.environment.semantically_equivalent
stix2.environment.semantically_equivalent was removed in stix2 3.0.0 pypi.org - Removed
stix2.Environment.semantically_equivalent
Environment.semantically_equivalent was removed in stix2 3.0.0 pypi.org - Removed
stix2.environment.WEIGHTS
stix2.environment.WEIGHTS was removed in stix2 3.0.0 pypi.org - Removed
stix2.equivalence.graph.GRAPH_WEIGHTS
stix2.equivalence.graph.GRAPH_WEIGHTS was removed in stix2 3.0.0 pypi.org - Removed
stix2.equivalence.graph.graphically_equivalent
stix2.equivalence.graph.graphically_equivalent was removed in stix2 3.0.0 pypi.org - Removed
stix2.equivalence.object.semantically_equivalent
stix2.equivalence.object.semantically_equivalent was removed in stix2 3.0.0 pypi.org - Removed
stix2.equivalence.patterns
stix2.equivalence.patterns was removed in stix2 3.0.0 pypi.org - Removed
stix2.parsing.PREFIX_21_REGEX
stix2.parsing.PREFIX_21_REGEX was removed in stix2 3.0.0 pypi.org - Removed
stix2.parsing.stix2
stix2.parsing.stix2 was removed in stix2 3.0.0 pypi.org - Removed
stix2.parsing.STIX2_OBJ_MAPS
stix2.parsing.STIX2_OBJ_MAPS was removed in stix2 3.0.0 pypi.org - Removed
stix2.pattern_visitor.six
stix2.pattern_visitor.six was removed in stix2 3.0.0 pypi.org - Removed
stix2.properties.enumerate_types
stix2.properties.enumerate_types was removed in stix2 3.0.0 pypi.org - Removed
stix2.properties.ExtensionsProperty.allow_custom
ExtensionsProperty.allow_custom was removed in stix2 3.0.0 pypi.org - Removed
stix2.properties.ExtensionsProperty.enclosing_type
ExtensionsProperty.enclosing_type was removed in stix2 3.0.0 pypi.org - Removed
stix2.properties.HASHES_REGEX
stix2.properties.HASHES_REGEX was removed in stix2 3.0.0 pypi.org - Removed
stix2.properties.ObservableProperty.allow_custom
ObservableProperty.allow_custom was removed in stix2 3.0.0 pypi.org - Removed
stix2.properties.Property.__call__
Property.__call__ was removed in stix2 3.0.0 pypi.org - Removed
stix2.properties.ReferenceProperty.invalid_types
ReferenceProperty.invalid_types was removed in stix2 3.0.0 pypi.org - Removed
stix2.properties.ReferenceProperty.valid_types
ReferenceProperty.valid_types was removed in stix2 3.0.0 pypi.org - Removed
stix2.properties.STIX2_OBJ_MAPS
stix2.properties.STIX2_OBJ_MAPS was removed in stix2 3.0.0 pypi.org - Removed
stix2.properties.STIXObjectProperty.allow_custom
STIXObjectProperty.allow_custom was removed in stix2 3.0.0 pypi.org - Removed
stix2.v20.bundle.Bundle.object_properties
Bundle.object_properties was removed in stix2 3.0.0 pypi.org - Removed
stix2.v20.bundle.STIXObjectProperty.allow_custom
STIXObjectProperty.allow_custom was removed in stix2 3.0.0 pypi.org - Removed
stix2.v20.common.Property.__call__
Property.__call__ was removed in stix2 3.0.0 pypi.org - Removed
stix2.v20.common.ReferenceProperty.invalid_types
ReferenceProperty.invalid_types was removed in stix2 3.0.0 pypi.org - Removed
stix2.v20.common.ReferenceProperty.valid_types
ReferenceProperty.valid_types was removed in stix2 3.0.0 pypi.org - Removed
stix2.v20.observables.ExtensionsProperty.allow_custom
ExtensionsProperty.allow_custom was removed in stix2 3.0.0 pypi.org - Removed
stix2.v20.observables.ExtensionsProperty.enclosing_type
ExtensionsProperty.enclosing_type was removed in stix2 3.0.0 pypi.org - Removed
stix2.v20.sdo.ObservableProperty.allow_custom
ObservableProperty.allow_custom was removed in stix2 3.0.0 pypi.org - Removed
stix2.v20.sdo.ObservedData.__init__
ObservedData() was removed in stix2 3.0.0 pypi.org - Renamed
stix2.equivalence.pattern.CanonicalizeComparisonExpressionsTransformer
Use stix2.equivalence.pattern.NormalizeComparisonExpressionsTransformer instead. pypi.org - Renamed
stix2.parsing.DuplicateRegistrationError
Use stix2.registration.DuplicateRegistrationError instead. pypi.org
And 60 more in this version. Sign up to see every change
stix2 1.0.0 breaking changes
- Removed
get_dict
get_dict is no longer a public function. Code that calls it directly must stop doing so. github.com - Removed
stix2.AndBooleanExpression.escape_quotes_and_backslashes
AndBooleanExpression.escape_quotes_and_backslashes was removed in stix2 1.0.0 pypi.org - Removed
stix2.get_dict
stix2.get_dict was removed in stix2 1.0.0 pypi.org - Removed
stix2.utils.get_dict
stix2.utils.get_dict was removed in stix2 1.0.0 pypi.org - Configuration changed
taxii2-client is no longer installed automatically with the package. Install it separately if your code depends on it. github.com - 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 - 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 - 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 - 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 - 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
stix2 0.5.0 breaking changes
- Removed
The package no longer supports Python 3.3. Run it on a newer Python version. github.com - Renamed
stix2.sources
The stix2.sources module is renamed to stix2.datastore. Update imports that reference stix2.sources to use stix2.datastore. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.