braid-design-system@27.3.1
·
1297 commits
to master
since this release
Patch Changes
-
Use
assertfor runtime assertions during development (#624)Please ensure you are on sku v10.3.0 or higher so that these assertions are removed in production. This ensures that these checks don't have a negative performance impact on users.
The main driver for this change is to ensure that runtime design validation occurs within the Braid Playroom.
Playroom is built in production mode to maximise performance, but this means that our custom development-time validation code isn't being executed. As a result, it's becoming increasingly common for prototypes to contain invalid code that only throws an error when transposed into a proper development environment. This change ensures that invalid designs are caught as early as possible.