Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Release] Version packages #3524

Merged
merged 1 commit into from
Sep 11, 2024
Merged

[Release] Version packages #3524

merged 1 commit into from
Sep 11, 2024

Conversation

github-actions[bot]
Copy link
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@udecode/[email protected]

Major Changes

  • #3506 by @zbeyens

    • Change plugin.options merging behavior from deep merge to shallow merge.
    • This affects .extend(), .configure(), and other methods that modify plugin options.
    • This update addresses a performance regression introduced in v37 that affected editor creation.

    Before:

    const plugin = createSlatePlugin({
      key: 'test',
      options: { nested: { a: 1 } },
    }).extend({
      options: { nested: { b: 1 } },
    });
    
    // Result: { nested: { a: 1, b: 1 } }

    After:

    const plugin = createSlatePlugin({
      key: 'test',
      options: { nested: { a: 1 } },
    }).extend(({ getOptions }) => ({
      options: {
        ...getOptions(),
        nested: { ...getOptions().nested, b: 1 },
      },
    }));
    
    // Result: { nested: { a: 1, b: 1 } }

    Migration:

    • If you're using nested options and want to preserve the previous behavior, you need to manually spread both the top-level options and the nested objects.
    • If you're not using nested options, no changes are required.

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

Copy link

vercel bot commented Sep 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
plate ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 11, 2024 8:59am

Copy link

codesandbox bot commented Sep 11, 2024

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@zbeyens zbeyens merged commit 6e42b38 into main Sep 11, 2024
2 of 3 checks passed
@zbeyens zbeyens deleted the changeset-release/main branch September 11, 2024 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant