apps/docs/content/releases/v2.1.0.mdx
This release includes completely redesigned sticky notes, an overhaul to our migration system, and significant performance improvements.
Sticky notes have been completely redesigned with a fresh look and improved functionality.
The migrations system has been overhauled for better reliability and developer experience.
Migrations type is now called LegacyMigrationsStoreSchema.serialize() and Store.getSnapshot()) has changedcompareRecordVersions and RecordVersion have been removedcompareSchemas is gone—use schema.getMigrationsSince(prevSchema) insteaddefineMigrations has been deprecated. See updating legacy shape migrations for upgrade instructionsmigrate has been removedEvents are now buffered and sent to state nodes every tick, instead of immediately. This unlocks big performance improvements but could introduce subtle issues with custom tools—make sure to test any custom tools thoroughly.
If any of your shapes implement toSvg for exports, you'll need to replace your implementation with a new version that returns JSX instead of manually constructing SVG DOM nodes.
editor.getSvg is deprecated. Use editor.getSvgElement or editor.getSvgString instead.
If you're using the toolbar callback to override toolbar items, switch to using the new Toolbar component override. See the toolbar groups example for details.
getRenderingShapes no longer returns isCulled—use getCulledShapes instead.Editor.getStyleForNextShape. (#3039)usePreloadAssets export. (#3545)localStorage crash in React Native webviews. (#3043)createShapePropsMigrationIds, part of the new migrations API. (#3594)defaultEditorAssetUrls, PORTRAIT_BREAKPOINT, useDefaultColorTheme, and getPerfectDashProps. (#3594)defaultShapeSchemas which can be passed directly to createTLSchema. (#3613)