Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Jul 2, 2025

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

@platejs/[email protected]

Patch Changes

  • #4441 by @delijah – Expose mimeType to plugin parser functions

  • #4431 by @felixfeng33 – Added comprehensive copy functionality and view editor support for static rendering.

    New Components:

    • Added PlateView component for static editor rendering with copy support
    • Added usePlateViewEditor hook for creating memoized static editors

    Static Editor Enhancements:

    • Added withStatic HOC to enhance editors with static rendering capabilities
    • Added ViewPlugin that enables copy operations in static editors
    • Added getStaticPlugins to configure plugins for static rendering
    • Added onCopy handler that properly serializes content with x-slate-fragment format

    New Utilities:

    • Added getSelectedDomBlocks to extract selected DOM elements with Slate metadata
    • Added getSelectedDomNode to get DOM nodes from browser selection
    • Added isSelectOutside to check if selection is outside editor bounds
    • Added getPlainText to recursively extract plain text from DOM nodes

    This enables seamless copy operations from static Plate editors, allowing content to be pasted into other Slate editors while preserving rich formatting and structure.

[email protected]

@platejs/[email protected]

@codesandbox
Copy link

codesandbox bot commented Jul 2, 2025

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@vercel
Copy link

vercel bot commented Jul 2, 2025

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

Name Status Preview Comments Updated (UTC)
plate 🛑 Canceled (Inspect) Jul 2, 2025 1:06pm

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. release labels Jul 2, 2025
@felixfeng33
Copy link
Collaborator

@claude Why does a minor changeset cause the major version number to increase?

@claude
Copy link
Contributor

claude bot commented Jul 2, 2025

Claude finished @felixfeng33's task —— View job


I found the answer! This isn't actually a case of a minor changeset causing a major version bump. Here's what's happening:

Todo List:

  • Check changesets configuration
  • Investigate versioning strategy
  • Provide explanation

Explanation

The packages were already bumped to version 50.0.0 before this changeset was added. Looking at the CHANGELOG, I can see that version 50.0.0 already exists with your minor changes listed under it.

This appears to be how the workflow operates:

  1. The maintainers decided to bump to v50.0.0 (major version) for milestone/strategic reasons
  2. The version numbers in package.json files were updated to 50.0.0
  3. Your minor changeset was then added to the already-bumped v50 packages
  4. Now the changeset action is creating this PR to publish the already-versioned packages to npm

The changeset configuration shows all packages are linked together:

"linked": [
  [
    "platejs",
    "@platejs/*",
    "@udecode/react*",
    "@udecode/cn",
    "@udecode/utils"
  ]
]

This means all packages maintain the same major version number. When the decision was made to go to v50, all packages were updated together, regardless of the individual changesets being minor or patch.

TL;DR: The major version bump to 50.0.0 was a deliberate decision that happened before your changeset. Your minor changeset is just being included in the v50 release, not causing it.

@felixfeng33
Copy link
Collaborator

@claude This PR was automatically created by CI, so did the minor changeset cause the major version bump but why?

@claude
Copy link
Contributor

claude bot commented Jul 2, 2025

Claude finished @felixfeng33's task —— View job


Looking into why the minor changeset caused a major version bump to 50.0.0...

Todo List:

  • Check changeset configuration
  • Look for other changesets that might have triggered major bump
  • Check recent commits for version bump decisions
  • Provide explanation

Analysis

After investigating, here's what I found:

  1. Your changeset was correctly marked as "minor" - The deleted .changeset/platejs-core-minor.md file shows it was properly tagged as a minor change.

  2. All packages are linked together - The changeset configuration shows all Plate packages are in a linked group, meaning they share the same version number:

"linked": [
  [
    "platejs",
    "@platejs/*",
    "@udecode/react*",
    "@udecode/cn",
    "@udecode/utils"
  ]
]
  1. Version jumped from 49.0.15 to 50.0.0 - The git history shows packages were at version 49.0.15 before this release.

  2. No major changesets found - There's no evidence of any major changesets that would have triggered this bump.

Conclusion

The major version bump to 50.0.0 appears to be a deliberate decision by the maintainers rather than something triggered by your minor changeset. This likely happened for one of these reasons:

  • Milestone release: The project reached a significant milestone warranting v50
  • Strategic versioning: The maintainers decided to start a new major version cycle
  • Manual intervention: Someone manually set the version to 50.0.0 during the release process

Your minor changeset didn't cause the major bump - it's just being included in the v50 release. The major version bump was a separate decision that happened to coincide with your changes being released.

@github-actions github-actions bot force-pushed the changeset-release/main branch 4 times, most recently from ae3ebd8 to 9f1ce62 Compare July 2, 2025 12:37
@github-actions github-actions bot force-pushed the changeset-release/main branch from 9f1ce62 to b683700 Compare July 2, 2025 12:39
@felixfeng33 felixfeng33 merged commit d2788a7 into main Jul 2, 2025
4 of 5 checks passed
@felixfeng33 felixfeng33 deleted the changeset-release/main branch July 2, 2025 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants