Minor Changes
-
#421
6fd2aabThanks @askoufis! - Playroom's utility API is now bundled for both ESM and CJSBREAKING CHANGE:
Migrating the utils entries to TypeScript has necessitated an internal build step to produce both ESM and CJS versions.
As a result, these APIs are now exposed as named exports at the top level of theplayroompackage.MIGRATION GUIDE:
For ESM imports:
-import { createUrl } from 'playroom/utils'; +import { createUrl } from 'playroom';
or for CJS usage:
-const { createUrl } = require('playroom/utils'); +const { createUrl } = require('playroom');
-
#417
03d145dThanks @michaeltaranto! - Improved handling of rendering errorsErrors occurring during render no longer replace the frame contents with a red error message.
Instead, the error is caught and overlaid on top of the last successful render result (when possible). -
#414
e69f698Thanks @felixhabib! - Improve snippets search ranking algorithm.
Results are now sorted primarily by thegroupproperty over thenameproperty, making it easier to see related snippets together.Replace
fuzzydependency withfuse.jsto enable result sorting. -
#410
6b5eaa3Thanks @felixhabib! - Refactor layout.Improve the code editor show/hide animation.
Prevent code contents from being searchable when the editor is hidden.
Patch Changes
-
#424
8795fdeThanks @michaeltaranto! - Useclsxconsistently for building class listsRemove
classnamesin favor ofclsxfor building class lists in the Playroom codebase. -
#423
4640ca1Thanks @michaeltaranto! - Preview: Improve accessibility of loading screen -
#418
1d59ba3Thanks @felixhabib! - Migrate some internal files from Javascript to Typescript.