Changelog
create()
or copy()
will result in runtime
error. If type system is properly utilized, this should not create any issues to existing code.copy()
copy()
methods now both can omit the argument, creating a referential copy of the instance.equals()
now compares all keys (previously it was checking only the ones overriding defaults).
The assumed optimizaiton in time didn't pay out and only caused unnecessary complication to
copying mechanism and higher memory consumtion.Changelog
Record
to Data
.create()
static method instead of new
operator
new
operator now throws a runtime errorimport { Data } from "dataclass"
toJSON()
implementation has been removed, but the behavior is preserveddataclass
is transpiled if
necessaryequals()
algorithm to ensure proper custom values comparisonequals()
algorithm to avoid runtime errors for nullable propertiessideEffects: false
to package.json