data
data copied to clipboard
tracking: replace @ember/debug and enable production asserts
Over time many issues have been reported that were due to emergent unspecified behaviors that occur once system expectations have not been met.
Some examples:
- #9038
- #8846
- https://github.com/emberjs/data/issues/5958
- https://github.com/emberjs/data/issues/4428
- https://github.com/emberjs/data/issues/8710
Generally speaking we don't want the default to be that asserts are left in production environments, as these massively balloon the size of the project and create performance bottlenecks. But we also want to continue using asserts as inline-unit-tests and guardrails for debug builds.
We have the infra in place though to move to a pattern that would allow some or all asserts to be left in production builds if thats what the user wanted in order to provide better debugging of their app.
Note Likely we would want to at least specify some asserts as still being debug-only due to their overhead.