github udecode/plate @udecode/plate-node-id@49.0.0

latest releases: @platejs/dnd@49.2.22, @platejs/core@49.2.21, @platejs/slate@49.2.21...
2 months ago

Major Changes

  • #4327 by @zbeyens

    • Package @udecode/plate-node-id has been deprecated.

    • NodeIdPlugin functionality is now part of @platejs/core and is enabled by default.

    • Migration:

      • Remove NodeIdPlugin from your explicit plugin list if it was added manually.

      • Remove @udecode/plate-node-id from your dependencies.

      • If you had NodeIdPlugin configured with options, move these options to the nodeId field in your main editor configuration (createPlateEditor or usePlateEditor options).
        Example:

        // Before
        // const editor = usePlateEditor({
        //   plugins: [
        //     NodeIdPlugin.configure({ /* ...your options... */ }),
        //   ],
        // });
        
        // After
        const editor = usePlateEditor({
          nodeId: {
            /* ...your options... */
          },
          // ...other editor options
        });
      • If you want to disable automatic node ID generation (to replicate behavior if you weren't using NodeIdPlugin before), set nodeId: false in your editor configuration.

Don't miss a new plate release

NewReleases is sending notifications on new releases.