Minor Changes
-
#421
6fd2aab
Thanks @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 theplayroom
package.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
03d145d
Thanks @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
e69f698
Thanks @felixhabib! - Improve snippets search ranking algorithm.
Results are now sorted primarily by thegroup
property over thename
property, making it easier to see related snippets together.Replace
fuzzy
dependency withfuse.js
to enable result sorting. -
#410
6b5eaa3
Thanks @felixhabib! - Refactor layout.Improve the code editor show/hide animation.
Prevent code contents from being searchable when the editor is hidden.
Patch Changes
-
#424
8795fde
Thanks @michaeltaranto! - Useclsx
consistently for building class listsRemove
classnames
in favor ofclsx
for building class lists in the Playroom codebase. -
#423
4640ca1
Thanks @michaeltaranto! - Preview: Improve accessibility of loading screen -
#418
1d59ba3
Thanks @felixhabib! - Migrate some internal files from Javascript to Typescript.